blob: e9ccb2adcaabb1eb2bc7ed5b79f9a18396811bcc [file] [log] [blame]
John Criswell3ef61af2003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Hans Wennborgd94a5f02015-01-14 17:38:03 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
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#
Eric Christophera1bafae2015-03-12 01:25:29 +000012# Copyright (c) 2003-2015 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
Eric Christopher14b76d52014-07-28 22:00:44 +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'
Hans Wennborgd94a5f02015-01-14 17:38:03 +0000564PACKAGE_VERSION='3.7.0svn'
565PACKAGE_STRING='LLVM 3.7.0svn'
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
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000642LLVM_VERSION_MAJOR
643LLVM_VERSION_MINOR
Tom Stellarde6ba81d2014-03-03 15:22:00 +0000644LLVM_VERSION_PATCH
645LLVM_VERSION_SUFFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000646LLVM_COPYRIGHT
Eric Christopher58839712011-09-16 20:36:25 +0000647CC
648CFLAGS
649LDFLAGS
650CPPFLAGS
651ac_ct_CC
652EXEEXT
653OBJEXT
654CXX
655CXXFLAGS
656ac_ct_CXX
657CPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000658subdirs
Tobias Grosserea9dca42010-10-30 00:54:26 +0000659ENABLE_POLLY
660LLVM_HAS_POLLY
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000661build
662build_cpu
663build_vendor
664build_os
665host
666host_cpu
667host_vendor
668host_os
669target
670target_cpu
671target_vendor
672target_os
673OS
674HOST_OS
675TARGET_OS
676LINKALL
677NOLINKALL
678LLVM_ON_UNIX
679LLVM_ON_WIN32
680ARCH
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000681LLVM_NATIVE_ARCH
Danil Malyshev7c5db452012-05-17 21:07:47 +0000682HOST_ARCH
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000683LLVM_CROSS_COMPILING
684BUILD_CC
685BUILD_EXEEXT
686BUILD_CXX
687CVSBUILD
Eric Christopher1094ded2011-11-11 22:51:42 +0000688ENABLE_LIBCPP
Chandler Carruthbbae5122014-03-01 03:33:08 +0000689ENABLE_CXX1Y
Eric Christopherf1bd7702013-06-25 01:12:25 +0000690ENABLE_SPLIT_DWARF
Roman Divackyf2bb66b2012-12-13 16:07:19 +0000691ENABLE_CLANG_ARCMT
Rafael Espindolae33f06c2014-03-10 16:58:35 +0000692CLANG_PLUGIN_SUPPORT
Roman Divackyf2bb66b2012-12-13 16:07:19 +0000693ENABLE_CLANG_STATIC_ANALYZER
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000694ENABLE_OPTIMIZED
695ENABLE_PROFILING
696DISABLE_ASSERTIONS
Eric Christopher84864012012-08-03 19:58:20 +0000697ENABLE_WERROR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000698ENABLE_EXPENSIVE_CHECKS
699EXPENSIVE_CHECKS
700DEBUG_RUNTIME
701DEBUG_SYMBOLS
Daniel Dunbar39c04622012-08-14 18:14:22 +0000702KEEP_SYMBOLS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000703JIT
704TARGET_HAS_JIT
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000705TARGETS_WITH_JIT
Rafael Espindola7ac506d2010-11-12 19:24:06 +0000706ENABLE_DOCS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000707ENABLE_DOXYGEN
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +0000708LLVM_ENABLE_THREADS
NAKAMURA Takumic6fce172010-12-29 03:59:03 +0000709ENABLE_PTHREADS
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000710LLVM_ENABLE_ZLIB
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000711ENABLE_PIC
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000712ENABLE_SHARED
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +0000713ENABLE_EMBED_STDCXX
Daniel Dunbardac18242010-05-10 20:11:56 +0000714ENABLE_TIMESTAMPS
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000715ALL_TARGETS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000716TARGETS_TO_BUILD
717LLVM_ENUM_TARGETS
718LLVM_ENUM_ASM_PRINTERS
719LLVM_ENUM_ASM_PARSERS
720LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000721OPTIMIZE_OPTION
722EXTRA_OPTIONS
Daniel Dunbar3b95df82011-06-16 22:30:41 +0000723EXTRA_LD_OPTIONS
NAKAMURA Takumi914f1922011-10-16 02:54:26 +0000724CLANG_SRC_ROOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000725BINUTILS_INCDIR
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000726ENABLE_TERMINFO
Bob Wilson3f354702011-11-28 07:59:52 +0000727INTERNAL_PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000728ifGNUmake
729LN_S
Rafael Espindolafd1355a2014-02-28 18:17:54 +0000730NM
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000731CMP
732CP
733DATE
734FIND
Eric Christopherd7ed36b2014-01-09 01:09:57 +0000735GREP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000736MKDIR
737MV
738RANLIB
739AR
740RM
741SED
742TAR
743BINPWD
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000744DOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000745INSTALL_PROGRAM
746INSTALL_SCRIPT
747INSTALL_DATA
748BZIP2
mike-me08af302010-05-06 23:45:43 +0000749CAT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000750DOXYGEN
Daniel Dunbard1888822012-05-08 18:26:07 +0000751GROFF
Eric Christopher77560892010-12-10 01:31:51 +0000752GZIPBIN
Daniel Dunbard1888822012-05-08 18:26:07 +0000753PDFROFF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000754ZIP
Peter Collingbourne82e3e372014-10-16 22:48:02 +0000755GO
Peter Zotov668f9672014-10-30 08:29:45 +0000756OCAMLFIND
Daniel Dunbard1888822012-05-08 18:26:07 +0000757GAS
Dan Gohmanb7edb422010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Eric Christopherd7ed36b2014-01-09 01:09:57 +0000759EGREP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000760NO_VARIADIC_MACROS
761NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola42e94d12012-02-28 23:32:06 +0000762COVERED_SWITCH_DEFAULT
David Greene9ff8d472013-01-09 22:11:13 +0000763NO_MAYBE_UNINITIALIZED
764NO_UNINITIALIZED
Eric Christopher65ec83b2014-11-05 00:35:15 +0000765NO_COMMENT
Saleem Abdulrasoola1665742013-01-30 04:44:17 +0000766PYTHON
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000767HAVE_DLOPEN
768HAVE_TERMINFO
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000769USE_OPROFILE
Eli Bendersky5262ad22012-03-13 08:33:15 +0000770USE_INTEL_JITEVENTS
Eric Christopherc807c532012-08-03 19:47:19 +0000771XML2CONFIG
772LIBXML2_LIBS
773LIBXML2_INC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000774HAVE_PTHREAD
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000775HAVE_LIBZ
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000776HUGE_VAL_SANITY
777MMAP_FILE
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000778SHLIBEXT
779LLVM_PREFIX
780LLVM_BINDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
Peter Zotov668f9672014-10-30 08:29:45 +0000789HAVE_OCAMLOPT
790HAVE_OCAML_OUNIT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000791OCAML_LIBDIR
792ENABLE_VISIBILITY_INLINES_HIDDEN
793RPATH
794RDYNAMIC
Jordan Rose3c837ab2012-10-01 18:40:32 +0000795program_prefix
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000796LIBOBJS
797LTLIBOBJS'
John Criswell3eaf0b42003-09-10 15:17:25 +0000798ac_subst_files=''
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805CPPFLAGS
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000806CXX
807CXXFLAGS
Eric Christopher58839712011-09-16 20:36:25 +0000808CCC
Rui Ueyama292fb6d2014-10-27 08:16:18 +0000809CPP'
Chandler Carruthaf968ed2014-01-14 04:01:01 +0000810ac_subdirs_all='projects/test-suite
John Criswellf369e772010-03-19 21:31:39 +0000811projects/llvm-test
812projects/poolalloc
813projects/llvm-poolalloc
John Criswell4d377d82010-02-25 22:57:19 +0000814projects/safecode
Tobias Grosserea9dca42010-10-30 00:54:26 +0000815tools/polly'
John Criswell3ef61af2003-06-30 21:59:07 +0000816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820# The variables have the same names as the options, with
821# dashes changed to underlines.
822cache_file=/dev/null
823exec_prefix=NONE
824no_create=
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
833verbose=
834x_includes=NONE
835x_libraries=NONE
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000842# (The list follows the same order as the GNU Coding Standards.)
John Criswell3ef61af2003-06-30 21:59:07 +0000843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
John Criswell3ef61af2003-06-30 21:59:07 +0000848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
John Criswell3ef61af2003-06-30 21:59:07 +0000851includedir='${prefix}/include'
852oldincludedir='/usr/include'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
John Criswell3ef61af2003-06-30 21:59:07 +0000862
863ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000864ac_dashdash=
John Criswell3ef61af2003-06-30 21:59:07 +0000865for ac_option
866do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000869 eval $ac_prev=\$ac_option
John Criswell3ef61af2003-06-30 21:59:07 +0000870 ac_prev=
871 continue
872 fi
873
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
John Criswell3ef61af2003-06-30 21:59:07 +0000878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000905 -datadir | --datadir | --datadi | --datad)
John Criswell3ef61af2003-06-30 21:59:07 +0000906 ac_prev=datadir ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell3ef61af2003-06-30 21:59:07 +0000908 datadir=$ac_optarg ;;
909
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
John Criswell3ef61af2003-06-30 21:59:07 +0000917 -disable-* | --disable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000919 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000935
936 -enable-* | --enable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000938 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
John Criswell3ef61af2003-06-30 21:59:07 +0000976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
John Criswell3ef61af2003-06-30 21:59:07 +00001005 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001006 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell3ef61af2003-06-30 21:59:07 +00001007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell3ef61af2003-06-30 21:59:07 +00001010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
John Criswell3ef61af2003-06-30 21:59:07 +00001084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001135 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001141
1142 -without-* | --without-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001144 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001180 eval $ac_envvar=\$ac_optarg
John Criswell3ef61af2003-06-30 21:59:07 +00001181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001198fi
1199
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001200# Be sure to have absolute directory names.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001201for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
John Criswell3ef61af2003-06-30 21:59:07 +00001205do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001206 eval ac_val=\$$ac_var
John Criswell3ef61af2003-06-30 21:59:07 +00001207 case $ac_val in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell3ef61af2003-06-30 21:59:07 +00001210 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell3ef61af2003-06-30 21:59:07 +00001227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001244test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001247
1248
John Criswell3ef61af2003-06-30 21:59:07 +00001249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001252 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001253 ac_confdir=`$as_dirname -- "$0" ||
1254$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258echo X"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
John Criswell3ef61af2003-06-30 21:59:07 +00001276 srcdir=$ac_confdir
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001277 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell3ef61af2003-06-30 21:59:07 +00001278 srcdir=..
1279 fi
1280else
1281 ac_srcdir_defaulted=no
1282fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001283if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001287fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001292 pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
John Criswell3ef61af2003-06-30 21:59:07 +00001309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001317\`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
John Criswell3ef61af2003-06-30 21:59:07 +00001318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
John Criswell3ef61af2003-06-30 21:59:07 +00001337Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001339 [$ac_default_prefix]
John Criswell3ef61af2003-06-30 21:59:07 +00001340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001341 [PREFIX]
John Criswell3ef61af2003-06-30 21:59:07 +00001342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherafbe7522011-12-21 00:52:44 +00001365 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
John Criswell3ef61af2003-06-30 21:59:07 +00001370_ACEOF
1371
1372 cat <<\_ACEOF
1373
1374System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382 case $ac_init_help in
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001383 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
John Criswell3ef61af2003-06-30 21:59:07 +00001384 esac
1385 cat <<\_ACEOF
1386
1387Optional Features:
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chandler Carruth7206eae2014-01-15 19:19:13 +00001390 --enable-polly Use polly if available (default is YES)
1391 --enable-libcpp Use libc++ if available (default is NO)
Chandler Carruth75a65452014-01-14 05:02:38 +00001392 --enable-compiler-version-checks
1393 Check the version of the host compiler (default is
1394 YES)
Chandler Carruthbbae5122014-03-01 03:33:08 +00001395 --enable-cxx1y Use c++1y if available (default is NO)
Eric Christopherf1bd7702013-06-25 01:12:25 +00001396 --enable-split-dwarf Use split-dwarf if available (default is NO)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001397 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
Rafael Espindolae33f06c2014-03-10 16:58:35 +00001398 --enable-clang-plugin-support
1399 Enable plugin support in clang (default is YES)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001400 --enable-clang-static-analyzer
1401 Enable building of clang Static Analyzer (default is
1402 YES)
Nick Lewycky86679902009-06-06 06:25:09 +00001403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1406 YES)
Eric Christopher84864012012-08-03 19:58:20 +00001407 --enable-werror Compile with -Werror enabled (default is NO)
David Greenecbc8ddf2007-06-28 19:36:08 +00001408 --enable-expensive-checks
Nick Lewycky86679902009-06-06 06:25:09 +00001409 Compile with expensive debug checks enabled (default
1410 is NO)
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1412 NO)
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00001413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
Daniel Dunbar39c04622012-08-14 18:14:22 +00001415 --enable-keep-symbols Do not strip installed executables)
Reid Spencer0241e382004-11-25 04:51:04 +00001416 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola7ac506d2010-11-12 19:24:06 +00001417 --enable-docs Build documents (default is YES)
Reid Spencer0194c9a2004-11-29 04:56:35 +00001418 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencerf85fabeb2005-08-24 10:07:20 +00001419 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00001420 --enable-pthreads Use pthreads if available (default is YES)
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00001421 --enable-zlib Use zlib for compression/decompression if available
1422 (default is YES)
Reid Spencer05a1fe52006-12-16 22:07:52 +00001423 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky38525192009-02-19 06:18:56 +00001424 is YES)
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00001425 --enable-shared Build a shared library and link tools against it
1426 (default is NO)
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00001427 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00001428 Win32 DLL (default is NO)
Daniel Dunbardac18242010-05-10 20:11:56 +00001429 --enable-timestamps Enable embedding timestamp information in build
1430 (default is YES)
Eric Christopher9fafe072012-09-21 23:03:29 +00001431 --enable-backtraces Enable embedding backtraces on crash (default is
1432 YES)
Daniel Dunbareb6c7082013-08-30 20:39:21 +00001433 --enable-crash-overrides
1434 Enable crash handling overrides (default is YES)
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00001435 --enable-targets Build specific host targets: all or
1436 target1,target2,... Valid targets are: host, x86,
Tim Northover00ed9962014-03-29 10:18:08 +00001437 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438 hexagon, xcore, msp430, nvptx, systemz, r600, and
1439 cpp (default=all)
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00001440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
Gordon Henriksene61dd672007-10-02 09:50:32 +00001443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
Chandler Carruthf11f1e42013-08-12 09:49:17 +00001445 --enable-terminfo Query the terminfo database if available (default is
1446 YES)
Peter Collingbournec7d437c2014-01-31 23:46:14 +00001447 --enable-libedit Use libedit if available (default is YES)
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00001448 --enable-libffi Check for the presence of libffi (default is NO)
John Criswell3ef61af2003-06-30 21:59:07 +00001449
1450Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00001453 --with-optimize-option Select the compiler options to use for optimized
1454 builds
Duncan Sandsef8c8ec2009-05-13 13:13:18 +00001455 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbar3b95df82011-06-16 22:30:41 +00001456 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00001457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1458 is stdlib)
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00001459 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruthffae4a62010-10-19 08:21:25 +00001460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1462 resource files
Rafael Espindolad95960b2009-11-12 05:46:09 +00001463 --with-c-include-dirs Colon separated list of directories clang will
1464 search for headers
Rafael Espindolaec217f62012-02-03 00:59:30 +00001465 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop5c9e1842012-04-16 04:11:45 +00001466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00001467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
Eric Christopher65080cc2011-07-20 17:04:49 +00001469 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00001470 submitted (default=http://llvm.org/bugs/)
Bob Wilson3f354702011-11-28 07:59:52 +00001471 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00001472 --with-python path to python
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00001473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor5808c7d2012-09-28 17:35:20 +00001475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1476
John Criswell3ef61af2003-06-30 21:59:07 +00001477
1478Some influential environment variables:
Reid Spencer0241e382004-11-25 04:51:04 +00001479 CC C compiler command
1480 CFLAGS C compiler flags
John Criswell3ef61af2003-06-30 21:59:07 +00001481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001484 you have headers in a nonstandard directory <include dir>
Reid Spencer0241e382004-11-25 04:51:04 +00001485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
Eric Christopher58839712011-09-16 20:36:25 +00001487 CPP C preprocessor
John Criswell3ef61af2003-06-30 21:59:07 +00001488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
Eric Christopherafbe7522011-12-21 00:52:44 +00001492Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00001493_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001494ac_status=$?
John Criswell3ef61af2003-06-30 21:59:07 +00001495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
John Criswell3ef61af2003-06-30 21:59:07 +00001499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001500 test -d "$ac_dir" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00001501 ac_builddir=.
1502
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001507 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +00001518
1519case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001520 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +00001521 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +00001525 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001532esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +00001534
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell3ef61af2003-06-30 21:59:07 +00001543 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell3ef61af2003-06-30 21:59:07 +00001547 done
1548fi
1549
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001550test -n "$ac_init_help" && exit $ac_status
John Criswell3ef61af2003-06-30 21:59:07 +00001551if $ac_init_version; then
1552 cat <<\_ACEOF
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001553LLVM configure 3.7.0svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001554generated by GNU Autoconf 2.60
John Criswell3ef61af2003-06-30 21:59:07 +00001555
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001556Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00001558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +00001560
Eric Christophera1bafae2015-03-12 01:25:29 +00001561Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
John Criswell3ef61af2003-06-30 21:59:07 +00001562_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001563 exit
John Criswell3ef61af2003-06-30 21:59:07 +00001564fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001565cat >config.log <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00001566This file contains any messages produced by compilers while
1567running configure, to aid debugging if configure makes a mistake.
1568
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001569It was created by LLVM $as_me 3.7.0svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001570generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +00001571
1572 $ $0 $@
1573
1574_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001575exec 5>>config.log
John Criswell3ef61af2003-06-30 21:59:07 +00001576{
1577cat <<_ASUNAME
1578## --------- ##
1579## Platform. ##
1580## --------- ##
1581
1582hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590
1591/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001594/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell3ef61af2003-06-30 21:59:07 +00001595/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598
1599_ASUNAME
1600
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001606 echo "PATH: $as_dir"
1607done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001608IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00001609
1610} >&5
1611
1612cat >&5 <<_ACEOF
1613
1614
1615## ----------- ##
1616## Core tests. ##
1617## ----------- ##
1618
1619_ACEOF
1620
1621
1622# Keep a trace of the command line.
1623# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell3eaf0b42003-09-10 15:17:25 +00001624# Strip out --silent because we don't want to record it for future runs.
John Criswell3ef61af2003-06-30 21:59:07 +00001625# Also quote any args containing shell meta-characters.
John Criswell3eaf0b42003-09-10 15:17:25 +00001626# Make two passes to allow for proper duplicate-argument suppression.
John Criswell3ef61af2003-06-30 21:59:07 +00001627ac_configure_args=
John Criswell3eaf0b42003-09-10 15:17:25 +00001628ac_configure_args0=
1629ac_configure_args1=
John Criswell3eaf0b42003-09-10 15:17:25 +00001630ac_must_keep_next=false
1631for ac_pass in 1 2
John Criswell3ef61af2003-06-30 21:59:07 +00001632do
John Criswell3eaf0b42003-09-10 15:17:25 +00001633 for ac_arg
1634 do
1635 case $ac_arg in
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 continue ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001640 *\'*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001642 esac
1643 case $ac_pass in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001645 2)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001647 if test $ac_must_keep_next = true; then
Reid Spencerf184a862004-09-19 23:53:36 +00001648 ac_must_keep_next=false # Got value, back to normal.
John Criswell3eaf0b42003-09-10 15:17:25 +00001649 else
Reid Spencerf184a862004-09-19 23:53:36 +00001650 case $ac_arg in
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 esac
1658 ;;
1659 -* ) ac_must_keep_next=true ;;
1660 esac
John Criswell3eaf0b42003-09-10 15:17:25 +00001661 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001662 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001663 ;;
1664 esac
1665 done
John Criswell3ef61af2003-06-30 21:59:07 +00001666done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001667$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668$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 +00001669
1670# When interrupted or exit'd, cleanup temporary files, and complete
1671# config.log. We remove comments because anyway the quotes in there
1672# would cause problems or look ugly.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001673# WARNING: Use '\'' to represent an apostrophe within the trap.
1674# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell3ef61af2003-06-30 21:59:07 +00001675trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1677 {
1678 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001679
John Criswell3ef61af2003-06-30 21:59:07 +00001680 cat <<\_ASBOX
1681## ---------------- ##
1682## Cache variables. ##
1683## ---------------- ##
1684_ASBOX
1685 echo
1686 # The following way of writing the cache mishandles newlines in values,
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001687(
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1690 case $ac_val in #(
1691 *${as_nl}*)
1692 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001695 esac
1696 case $ac_var in #(
1697 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001698 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001699 esac ;;
1700 esac
1701 done
John Criswell3ef61af2003-06-30 21:59:07 +00001702 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
John Criswell3ef61af2003-06-30 21:59:07 +00001705 sed -n \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +00001709 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +00001711 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001712 esac |
1713 sort
1714)
John Criswell3ef61af2003-06-30 21:59:07 +00001715 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001716
1717 cat <<\_ASBOX
1718## ----------------- ##
1719## Output variables. ##
1720## ----------------- ##
1721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_vars
1724 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732
1733 if test -n "$ac_subst_files"; then
1734 cat <<\_ASBOX
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001735## ------------------- ##
1736## File substitutions. ##
1737## ------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +00001738_ASBOX
1739 echo
1740 for ac_var in $ac_subst_files
1741 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001742 eval ac_val=\$$ac_var
1743 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001745 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001746 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001747 done | sort
1748 echo
1749 fi
1750
John Criswell3ef61af2003-06-30 21:59:07 +00001751 if test -s confdefs.h; then
1752 cat <<\_ASBOX
1753## ----------- ##
1754## confdefs.h. ##
1755## ----------- ##
1756_ASBOX
1757 echo
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001758 cat confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001759 echo
1760 fi
1761 test "$ac_signal" != 0 &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
John Criswell3ef61af2003-06-30 21:59:07 +00001764 } >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell3ef61af2003-06-30 21:59:07 +00001767 exit $exit_status
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001768' 0
John Criswell3ef61af2003-06-30 21:59:07 +00001769for ac_signal in 1 2 13 15; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell3ef61af2003-06-30 21:59:07 +00001771done
1772ac_signal=0
1773
1774# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001775rm -f -r conftest* confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001776
1777# Predefined preprocessor variables.
1778
1779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_NAME "$PACKAGE_NAME"
1781_ACEOF
1782
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001783
John Criswell3ef61af2003-06-30 21:59:07 +00001784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786_ACEOF
1787
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001788
John Criswell3ef61af2003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_VERSION "$PACKAGE_VERSION"
1791_ACEOF
1792
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001793
John Criswell3ef61af2003-06-30 21:59:07 +00001794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_STRING "$PACKAGE_STRING"
1796_ACEOF
1797
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001798
John Criswell3ef61af2003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801_ACEOF
1802
1803
1804# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001805# Prefer explicitly selected file to automatically selected ones.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001806if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001807 set x "$CONFIG_SITE"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001808elif test "x$prefix" != xNONE; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001810else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
John Criswell3ef61af2003-06-30 21:59:07 +00001813fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001814shift
1815for ac_site_file
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001816do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1822 fi
1823done
1824
1825if test -r "$cache_file"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830echo "$as_me: loading cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001831 case $cache_file in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
John Criswell3ef61af2003-06-30 21:59:07 +00001834 esac
1835 fi
1836else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838echo "$as_me: creating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001839 >$cache_file
1840fi
1841
1842# Check that the precious variables saved in the cache have kept the same
1843# value.
1844ac_cache_corrupted=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001845for ac_var in $ac_precious_vars; do
John Criswell3ef61af2003-06-30 21:59:07 +00001846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell3ef61af2003-06-30 21:59:07 +00001850 case $ac_old_set,$ac_new_set in
1851 set,)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001854 ac_cache_corrupted=: ;;
1855 ,set)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001858 ac_cache_corrupted=: ;;
1859 ,);;
1860 *)
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
John Criswell3ef61af2003-06-30 21:59:07 +00001869 fi;;
1870 esac
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1873 case $ac_new_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001875 *) ac_arg=$ac_var=$ac_new_val ;;
1876 esac
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001880 esac
1881 fi
1882done
1883if $ac_cache_corrupted; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001889fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001914
John Criswell3ef61af2003-06-30 21:59:07 +00001915ac_ext=c
1916ac_cpp='$CPP $CPPFLAGS'
1917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001923LLVM_VERSION_MAJOR=3
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001924LLVM_VERSION_MINOR=7
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001925LLVM_VERSION_PATCH=0
1926LLVM_VERSION_SUFFIX=svn
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001927
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001928
1929cat >>confdefs.h <<_ACEOF
1930#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001931_ACEOF
1932
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001933
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001934cat >>confdefs.h <<_ACEOF
1935#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001936_ACEOF
1937
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001938
1939cat >>confdefs.h <<_ACEOF
1940#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1941_ACEOF
1942
1943
Peter Collingbournea8ed79a2014-11-19 03:34:17 +00001944cat >>confdefs.h <<_ACEOF
1945#define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1946_ACEOF
1947
1948
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001949
1950
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001951
1952
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001953
Eric Christophera1bafae2015-03-12 01:25:29 +00001954LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
Reid Spencer0241e382004-11-25 04:51:04 +00001955
1956
1957
1958
1959
1960
1961
John Criswell3ef61af2003-06-30 21:59:07 +00001962ac_aux_dir=
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001963for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001964 if test -f "$ac_dir/install-sh"; then
1965 ac_aux_dir=$ac_dir
1966 ac_install_sh="$ac_aux_dir/install-sh -c"
1967 break
1968 elif test -f "$ac_dir/install.sh"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/install.sh -c"
1971 break
1972 elif test -f "$ac_dir/shtool"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/shtool install -c"
1975 break
1976 fi
John Criswell3ef61af2003-06-30 21:59:07 +00001977done
1978if test -z "$ac_aux_dir"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001979 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001982fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001983
1984# These three variables are undocumented and unsupported,
1985# and are intended to be withdrawn in a future Autoconf release.
1986# They can cause serious problems if a builder's source tree is in a directory
1987# whose full name contains unusual characters.
1988ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1989ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1990ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1991
John Criswell3ef61af2003-06-30 21:59:07 +00001992
John Criswellc933eeb2003-07-22 19:18:09 +00001993
Reid Spencerf184a862004-09-19 23:53:36 +00001994if test ${srcdir} != "." ; then
Reid Spencer0241e382004-11-25 04:51:04 +00001995 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001996 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00001999 fi
John Criswell22107a72003-09-15 17:04:06 +00002000fi
2001
Patrik Hagglund98578472013-09-24 11:38:45 +00002002: ${CFLAGS=}
2003: ${CXXFLAGS=}
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00002004
Nick Lewyckyc5975fc2009-09-29 05:48:51 +00002005ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +00002006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002010if test -n "$ac_tool_prefix"; then
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002011 for ac_prog in clang gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002012 do
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002019else
Reid Spencer0241e382004-11-25 04:51:04 +00002020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 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 +00002030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002032 break 2
2033 fi
2034done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002035done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002036IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002037
2038fi
2039fi
Reid Spencer0241e382004-11-25 04:51:04 +00002040CC=$ac_cv_prog_CC
2041if test -n "$CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002042 { echo "$as_me:$LINENO: result: $CC" >&5
2043echo "${ECHO_T}$CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002044else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002045 { echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002047fi
2048
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002049
Reid Spencer0241e382004-11-25 04:51:04 +00002050 test -n "$CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002051 done
2052fi
Reid Spencer0241e382004-11-25 04:51:04 +00002053if test -z "$CC"; then
2054 ac_ct_CC=$CC
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002055 for ac_prog in clang gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002056do
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002063else
Reid Spencer0241e382004-11-25 04:51:04 +00002064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 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 +00002074 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002076 break 2
2077 fi
2078done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002079done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002080IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002081
2082fi
2083fi
Reid Spencer0241e382004-11-25 04:51:04 +00002084ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085if test -n "$ac_ct_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002086 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002088else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002089 { echo "$as_me:$LINENO: result: no" >&5
2090echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002091fi
2092
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002093
Reid Spencer0241e382004-11-25 04:51:04 +00002094 test -n "$ac_ct_CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002095done
John Criswell3ef61af2003-06-30 21:59:07 +00002096
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002097 if test "x$ac_ct_CC" = x; then
2098 CC=""
2099 else
2100 case $cross_compiling:$ac_tool_warned in
2101yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002102{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2103whose name does not start with the host triplet. If you think this
2104configuration is useful to you, please write to autoconf@gnu.org." >&5
2105echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2106whose name does not start with the host triplet. If you think this
2107configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002108ac_tool_warned=yes ;;
2109esac
2110 CC=$ac_ct_CC
2111 fi
Reid Spencer0241e382004-11-25 04:51:04 +00002112fi
2113
John Criswell3ef61af2003-06-30 21:59:07 +00002114
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: no acceptable C compiler found in \$PATH
2118See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002120
John Criswell3ef61af2003-06-30 21:59:07 +00002121# Provide some information about the compiler.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002122echo "$as_me:$LINENO: checking for C compiler version" >&5
2123ac_compiler=`set X $ac_compile; echo $2`
2124{ (ac_try="$ac_compiler --version >&5"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002125case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler --version >&5") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002131 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134{ (ac_try="$ac_compiler -v >&5"
2135case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138esac
2139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -v >&5") 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144{ (ac_try="$ac_compiler -V >&5"
2145case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148esac
2149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -V >&5") 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
John Criswell3ef61af2003-06-30 21:59:07 +00002154
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002155cat >conftest.$ac_ext <<_ACEOF
2156/* confdefs.h. */
2157_ACEOF
2158cat confdefs.h >>conftest.$ac_ext
2159cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002160/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002161
John Criswell3ef61af2003-06-30 21:59:07 +00002162int
2163main ()
2164{
2165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002171ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell3ef61af2003-06-30 21:59:07 +00002172# Try to create an executable without -o first, disregard a.out.
2173# It will help us diagnose broken compilers, and finding out an intuition
2174# of exeext.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002175{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2177ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178#
2179# List of possible output files, starting from the most likely.
2180# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2181# only as a last resort. b.out is created by i960 compilers.
2182ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2183#
2184# The IRIX 6 linker writes into existing files which may not be
2185# executable, retaining their permissions. Remove them first so a
2186# subsequent execution test works.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002187ac_rmfiles=
2188for ac_file in $ac_files
2189do
2190 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2193 esac
2194done
2195rm -f $ac_rmfiles
2196
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002197if { (ac_try="$ac_link_default"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002198case "(($ac_try" in
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2201esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002203 (eval "$ac_link_default") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002204 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2208# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2209# in a Makefile. We should not override ac_cv_exeext if it was cached,
2210# so that the user can short-circuit this test for compilers unknown to
2211# Autoconf.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002212for ac_file in $ac_files
John Criswell3eaf0b42003-09-10 15:17:25 +00002213do
2214 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002215 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencerf184a862004-09-19 23:53:36 +00002217 ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002218 [ab].out )
Reid Spencerf184a862004-09-19 23:53:36 +00002219 # We found the default executable, but exeext='' is most
2220 # certainly right.
2221 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002222 *.* )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002224 then :; else
2225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226 fi
2227 # We set ac_cv_exeext here because the later test for it is not
2228 # safe: cross compilers may not add the suffix if given an `-o'
2229 # argument, so we may need to know it at that point already.
2230 # Even if this section looks crufty: it has the advantage of
2231 # actually working.
Reid Spencerf184a862004-09-19 23:53:36 +00002232 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002233 * )
Reid Spencerf184a862004-09-19 23:53:36 +00002234 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002235 esac
2236done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002237test "$ac_cv_exeext" = no && ac_cv_exeext=
2238
John Criswell3ef61af2003-06-30 21:59:07 +00002239else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002240 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002241sed 's/^/| /' conftest.$ac_ext >&5
2242
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002243{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: C compiler cannot create executables
2246See \`config.log' for more details." >&2;}
2247 { (exit 77); exit 77; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002248fi
John Criswell3ef61af2003-06-30 21:59:07 +00002249
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002250ac_exeext=$ac_cv_exeext
2251{ echo "$as_me:$LINENO: result: $ac_file" >&5
2252echo "${ECHO_T}$ac_file" >&6; }
2253
2254# Check that the compiler produces executables we can run. If not, either
2255# the compiler is broken, or we cross compile.
2256{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2258# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259# If not cross compiling, check that we can run a simple program.
2260if test "$cross_compiling" != yes; then
2261 if { ac_try='./$ac_file'
2262 { (case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265esac
2266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_try") 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 cross_compiling=no
2272 else
2273 if test "$cross_compiling" = maybe; then
2274 cross_compiling=yes
2275 else
2276 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277If you meant to cross compile, use \`--host'.
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: cannot run C compiled programs.
2280If you meant to cross compile, use \`--host'.
2281See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2283 fi
2284 fi
2285fi
2286{ echo "$as_me:$LINENO: result: yes" >&5
2287echo "${ECHO_T}yes" >&6; }
2288
2289rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell3ef61af2003-06-30 21:59:07 +00002290ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002291# Check that the compiler produces executables we can run. If not, either
2292# the compiler is broken, or we cross compile.
2293{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2295{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296echo "${ECHO_T}$cross_compiling" >&6; }
2297
2298{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2300if { (ac_try="$ac_link"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002301case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002306 (eval "$ac_link") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002307 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002310 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2311# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2312# work properly (i.e., refer to `conftest.exe'), while it won't with
2313# `rm'.
John Criswell3eaf0b42003-09-10 15:17:25 +00002314for ac_file in conftest.exe conftest conftest.*; do
2315 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002316 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencerf184a862004-09-19 23:53:36 +00002319 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002320 * ) break;;
2321 esac
2322done
2323else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002324 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325See \`config.log' for more details." >&5
2326echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002329fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002330
2331rm -f conftest$ac_cv_exeext
2332{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002334
2335rm -f conftest.$ac_ext
2336EXEEXT=$ac_cv_exeext
2337ac_exeext=$EXEEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002338{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2340if test "${ac_cv_objext+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00002342else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002343 cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h. */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002348/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002349
John Criswell3ef61af2003-06-30 21:59:07 +00002350int
2351main ()
2352{
2353
2354 ;
2355 return 0;
2356}
2357_ACEOF
2358rm -f conftest.o conftest.obj
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002359if { (ac_try="$ac_compile"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002360case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002365 (eval "$ac_compile") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002366 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002369 for ac_file in conftest.o conftest.obj conftest.*; do
2370 test -f "$ac_file" || continue;
John Criswell3ef61af2003-06-30 21:59:07 +00002371 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374 break;;
2375 esac
2376done
2377else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002378 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002379sed 's/^/| /' conftest.$ac_ext >&5
2380
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002381{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382See \`config.log' for more details." >&5
2383echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002386fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002387
John Criswell3ef61af2003-06-30 21:59:07 +00002388rm -f conftest.$ac_cv_objext conftest.$ac_ext
2389fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002390{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002392OBJEXT=$ac_cv_objext
2393ac_objext=$OBJEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002394{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2396if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002398else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002399 cat >conftest.$ac_ext <<_ACEOF
2400/* confdefs.h. */
2401_ACEOF
2402cat confdefs.h >>conftest.$ac_ext
2403cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002404/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002405
John Criswell3ef61af2003-06-30 21:59:07 +00002406int
2407main ()
2408{
2409#ifndef __GNUC__
2410 choke me
2411#endif
2412
2413 ;
2414 return 0;
2415}
2416_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002417rm -f conftest.$ac_objext
2418if { (ac_try="$ac_compile"
2419case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422esac
2423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435esac
2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445esac
2446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002451 ac_compiler_gnu=yes
2452else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002453 echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 ac_compiler_gnu=no
John Criswell3ef61af2003-06-30 21:59:07 +00002457fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002458
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002460ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002461
2462fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002463{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2465GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer0241e382004-11-25 04:51:04 +00002466ac_test_CFLAGS=${CFLAGS+set}
2467ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002468{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2470if test "${ac_cv_prog_cc_g+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002472else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002473 ac_save_c_werror_flag=$ac_c_werror_flag
2474 ac_c_werror_flag=yes
2475 ac_cv_prog_cc_g=no
2476 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002482/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002483
John Criswell3ef61af2003-06-30 21:59:07 +00002484int
2485main ()
2486{
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002492rm -f conftest.$ac_objext
2493if { (ac_try="$ac_compile"
2494case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497esac
2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510esac
2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002526 ac_cv_prog_cc_g=yes
John Criswell3ef61af2003-06-30 21:59:07 +00002527else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002528 echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 CFLAGS=""
2532 cat >conftest.$ac_ext <<_ACEOF
2533/* confdefs.h. */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002537/* end confdefs.h. */
2538
2539int
2540main ()
2541{
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002547rm -f conftest.$ac_objext
2548if { (ac_try="$ac_compile"
2549case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552esac
2553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compile") 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565esac
2566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575esac
2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 :
Torok Edwinaec06332010-01-26 08:50:50 +00002582else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002583 echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002587 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002588 cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h. */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002593/* end confdefs.h. */
2594
2595int
2596main ()
2597{
2598
2599 ;
2600 return 0;
2601}
2602_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002603rm -f conftest.$ac_objext
2604if { (ac_try="$ac_compile"
2605case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608esac
2609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_compile") 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621esac
2622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631esac
2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_try") 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002637 ac_cv_prog_cc_g=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002638else
2639 echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
2641
2642
John Criswell3ef61af2003-06-30 21:59:07 +00002643fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002644
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00002646fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002647
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002650
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 ac_c_werror_flag=$ac_save_c_werror_flag
2653fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002654{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00002656if test "$ac_test_CFLAGS" = set; then
2657 CFLAGS=$ac_save_CFLAGS
2658elif test $ac_cv_prog_cc_g = yes; then
2659 if test "$GCC" = yes; then
2660 CFLAGS="-g -O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002661 else
Reid Spencer0241e382004-11-25 04:51:04 +00002662 CFLAGS="-g"
John Criswell3ef61af2003-06-30 21:59:07 +00002663 fi
2664else
Reid Spencer0241e382004-11-25 04:51:04 +00002665 if test "$GCC" = yes; then
2666 CFLAGS="-O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002667 else
Reid Spencer0241e382004-11-25 04:51:04 +00002668 CFLAGS=
John Criswell3ef61af2003-06-30 21:59:07 +00002669 fi
2670fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002671{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2672echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2673if test "${ac_cv_prog_cc_c89+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00002675else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002676 ac_cv_prog_cc_c89=no
Reid Spencer0241e382004-11-25 04:51:04 +00002677ac_save_CC=$CC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002678cat >conftest.$ac_ext <<_ACEOF
2679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00002683/* end confdefs.h. */
2684#include <stdarg.h>
2685#include <stdio.h>
2686#include <sys/types.h>
2687#include <sys/stat.h>
2688/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2689struct buf { int x; };
2690FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691static char *e (p, i)
2692 char **p;
2693 int i;
2694{
2695 return p[i];
2696}
2697static char *f (char * (*g) (char **, int), char **p, ...)
2698{
2699 char *s;
2700 va_list v;
2701 va_start (v,p);
2702 s = g (p, va_arg (v,int));
2703 va_end (v);
2704 return s;
2705}
2706
2707/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2708 function prototypes and stuff, but not '\xHH' hex character constants.
2709 These don't provoke an error unfortunately, instead are silently treated
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002710 as 'x'. The following induces an error, until -std is added to get
Reid Spencer0241e382004-11-25 04:51:04 +00002711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2712 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002713 that's true only with -std. */
Reid Spencer0241e382004-11-25 04:51:04 +00002714int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2715
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002716/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2717 inside strings and character constants. */
2718#define FOO(x) 'x'
2719int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2720
Reid Spencer0241e382004-11-25 04:51:04 +00002721int test (int i, double x);
2722struct s1 {int (*f) (int a);};
2723struct s2 {int (*f) (double a);};
2724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725int argc;
2726char **argv;
2727int
2728main ()
2729{
2730return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731 ;
2732 return 0;
2733}
2734_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002735for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer0241e382004-11-25 04:51:04 +00002737do
2738 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002739 rm -f conftest.$ac_objext
2740if { (ac_try="$ac_compile"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_try") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002773 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002774else
2775 echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778
Reid Spencer0241e382004-11-25 04:51:04 +00002779fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002780
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002781rm -f core conftest.err conftest.$ac_objext
2782 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer0241e382004-11-25 04:51:04 +00002783done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002784rm -f conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002785CC=$ac_save_CC
2786
2787fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002788# AC_CACHE_VAL
2789case "x$ac_cv_prog_cc_c89" in
2790 x)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002791 { echo "$as_me:$LINENO: result: none needed" >&5
2792echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002793 xno)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002794 { echo "$as_me:$LINENO: result: unsupported" >&5
2795echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002796 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002797 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002798 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2799echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002800esac
2801
John Criswell3eaf0b42003-09-10 15:17:25 +00002802
Reid Spencer0241e382004-11-25 04:51:04 +00002803ac_ext=c
2804ac_cpp='$CPP $CPPFLAGS'
2805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
Eric Christopher58839712011-09-16 20:36:25 +00002809ac_ext=cpp
2810ac_cpp='$CXXCPP $CPPFLAGS'
2811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2814if test -z "$CXX"; then
2815 if test -n "$CCC"; then
2816 CXX=$CCC
2817 else
2818 if test -n "$ac_tool_prefix"; then
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002819 for ac_prog in clang++ g++
Eric Christopher58839712011-09-16 20:36:25 +00002820 do
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825if test "${ac_cv_prog_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828 if test -n "$CXX"; then
2829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843done
2844IFS=$as_save_IFS
2845
2846fi
2847fi
2848CXX=$ac_cv_prog_CXX
2849if test -n "$CXX"; then
2850 { echo "$as_me:$LINENO: result: $CXX" >&5
2851echo "${ECHO_T}$CXX" >&6; }
2852else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6; }
2855fi
2856
2857
2858 test -n "$CXX" && break
2859 done
2860fi
2861if test -z "$CXX"; then
2862 ac_ct_CXX=$CXX
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002863 for ac_prog in clang++ g++
Eric Christopher58839712011-09-16 20:36:25 +00002864do
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866set dummy $ac_prog; ac_word=$2
2867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872 if test -n "$ac_ct_CXX"; then
2873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_ac_ct_CXX="$ac_prog"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
2887done
2888IFS=$as_save_IFS
2889
2890fi
2891fi
2892ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2893if test -n "$ac_ct_CXX"; then
2894 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2895echo "${ECHO_T}$ac_ct_CXX" >&6; }
2896else
2897 { echo "$as_me:$LINENO: result: no" >&5
2898echo "${ECHO_T}no" >&6; }
2899fi
2900
2901
2902 test -n "$ac_ct_CXX" && break
2903done
2904
2905 if test "x$ac_ct_CXX" = x; then
2906 CXX="g++"
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909yes:)
2910{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2911whose name does not start with the host triplet. If you think this
2912configuration is useful to you, please write to autoconf@gnu.org." >&5
2913echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2914whose name does not start with the host triplet. If you think this
2915configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2916ac_tool_warned=yes ;;
2917esac
2918 CXX=$ac_ct_CXX
2919 fi
2920fi
2921
2922 fi
2923fi
2924# Provide some information about the compiler.
2925echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2926ac_compiler=`set X $ac_compile; echo $2`
2927{ (ac_try="$ac_compiler --version >&5"
2928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler --version >&5") 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937{ (ac_try="$ac_compiler -v >&5"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -v >&5") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947{ (ac_try="$ac_compiler -V >&5"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -V >&5") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957
2958{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2959echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2960if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
2963 cat >conftest.$ac_ext <<_ACEOF
2964/* confdefs.h. */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h. */
2969
2970int
2971main ()
2972{
2973#ifndef __GNUC__
2974 choke me
2975#endif
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981rm -f conftest.$ac_objext
2982if { (ac_try="$ac_compile"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009esac
3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 ac_compiler_gnu=yes
3016else
3017 echo "$as_me: failed program was:" >&5
3018sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 ac_compiler_gnu=no
3021fi
3022
3023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3025
3026fi
3027{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3028echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3029GXX=`test $ac_compiler_gnu = yes && echo yes`
3030ac_test_CXXFLAGS=${CXXFLAGS+set}
3031ac_save_CXXFLAGS=$CXXFLAGS
3032{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3033echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3034if test "${ac_cv_prog_cxx_g+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3038 ac_cxx_werror_flag=yes
3039 ac_cv_prog_cxx_g=no
3040 CXXFLAGS="-g"
3041 cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h. */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h. */
3047
3048int
3049main ()
3050{
3051
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext
3057if { (ac_try="$ac_compile"
3058case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_prog_cxx_g=yes
3091else
3092 echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 CXXFLAGS=""
3096 cat >conftest.$ac_ext <<_ACEOF
3097/* confdefs.h. */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h. */
3102
3103int
3104main ()
3105{
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111rm -f conftest.$ac_objext
3112if { (ac_try="$ac_compile"
3113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 :
3146else
3147 echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3151 CXXFLAGS="-g"
3152 cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h. */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext
3168if { (ac_try="$ac_compile"
3169case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_cxx_g=yes
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206
3207fi
3208
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210fi
3211
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214
3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3217fi
3218{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3219echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3220if test "$ac_test_CXXFLAGS" = set; then
3221 CXXFLAGS=$ac_save_CXXFLAGS
3222elif test $ac_cv_prog_cxx_g = yes; then
3223 if test "$GXX" = yes; then
3224 CXXFLAGS="-g -O2"
3225 else
3226 CXXFLAGS="-g"
3227 fi
3228else
3229 if test "$GXX" = yes; then
3230 CXXFLAGS="-O2"
3231 else
3232 CXXFLAGS=
3233 fi
3234fi
3235ac_ext=c
3236ac_cpp='$CPP $CPPFLAGS'
3237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer0241e382004-11-25 04:51:04 +00003240
Reid Spencer0241e382004-11-25 04:51:04 +00003241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003246{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3247echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003248# On Suns, sometimes $CPP names a directory.
3249if test -n "$CPP" && test -d "$CPP"; then
3250 CPP=
3251fi
3252if test -z "$CPP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003253 if test "${ac_cv_prog_CPP+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00003255else
3256 # Double quotes because CPP needs to be expanded
3257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258 do
3259 ac_preproc_ok=false
3260for ac_c_preproc_warn_flag in '' yes
3261do
3262 # Use a header file that comes with gcc, so configuring glibc
3263 # with a fresh cross-compiler works.
3264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3265 # <limits.h> exists even on freestanding compilers.
3266 # On the NeXT, cc -E runs the code through the compiler's parser,
3267 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003268 cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h. */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003273/* end confdefs.h. */
3274#ifdef __STDC__
3275# include <limits.h>
3276#else
3277# include <assert.h>
3278#endif
3279 Syntax error
3280_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003281if { (ac_try="$ac_cpp conftest.$ac_ext"
3282case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285esac
3286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297 else
3298 ac_cpp_err=
3299 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003300else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003301 ac_cpp_err=yes
3302fi
3303if test -z "$ac_cpp_err"; then
3304 :
3305else
3306 echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
Reid Spencer0241e382004-11-25 04:51:04 +00003309 # Broken: fails on valid input.
3310continue
3311fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003312
Reid Spencer0241e382004-11-25 04:51:04 +00003313rm -f conftest.err conftest.$ac_ext
3314
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003315 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003316 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003322/* end confdefs.h. */
3323#include <ac_nonexistent.h>
3324_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003325if { (ac_try="$ac_cpp conftest.$ac_ext"
3326case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
3330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_c_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3341 else
3342 ac_cpp_err=
3343 fi
3344else
3345 ac_cpp_err=yes
3346fi
3347if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003348 # Broken: success on invalid input.
3349continue
3350else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003351 echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
Reid Spencer0241e382004-11-25 04:51:04 +00003354 # Passes both tests.
3355ac_preproc_ok=:
3356break
3357fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003358
Reid Spencer0241e382004-11-25 04:51:04 +00003359rm -f conftest.err conftest.$ac_ext
3360
3361done
3362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003364if $ac_preproc_ok; then
Reid Spencer0241e382004-11-25 04:51:04 +00003365 break
3366fi
3367
3368 done
3369 ac_cv_prog_CPP=$CPP
3370
3371fi
3372 CPP=$ac_cv_prog_CPP
3373else
3374 ac_cv_prog_CPP=$CPP
3375fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003376{ echo "$as_me:$LINENO: result: $CPP" >&5
3377echo "${ECHO_T}$CPP" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003378ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003387 cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h. */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003392/* end confdefs.h. */
3393#ifdef __STDC__
3394# include <limits.h>
3395#else
3396# include <assert.h>
3397#endif
3398 Syntax error
3399_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003400if { (ac_try="$ac_cpp conftest.$ac_ext"
3401case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416 else
3417 ac_cpp_err=
3418 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003419else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003420 ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
3423 :
3424else
3425 echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
Reid Spencer0241e382004-11-25 04:51:04 +00003428 # Broken: fails on valid input.
3429continue
3430fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003431
Reid Spencer0241e382004-11-25 04:51:04 +00003432rm -f conftest.err conftest.$ac_ext
3433
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003434 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003435 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003441/* end confdefs.h. */
3442#include <ac_nonexistent.h>
3443_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463else
3464 ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003467 # Broken: success on invalid input.
3468continue
3469else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003470 echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
Reid Spencer0241e382004-11-25 04:51:04 +00003473 # Passes both tests.
3474ac_preproc_ok=:
3475break
3476fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003477
Reid Spencer0241e382004-11-25 04:51:04 +00003478rm -f conftest.err conftest.$ac_ext
3479
3480done
3481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003483if $ac_preproc_ok; then
3484 :
Reid Spencer0241e382004-11-25 04:51:04 +00003485else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487See \`config.log' for more details." >&5
3488echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00003491fi
3492
John Criswell3ef61af2003-06-30 21:59:07 +00003493ac_ext=c
3494ac_cpp='$CPP $CPPFLAGS'
3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
John Criswell3ef61af2003-06-30 21:59:07 +00003499
Dmitri Gribenko06358bd2013-01-09 15:25:30 +00003500if test "$CXX" = "clang++" ; then
3501 { echo "$as_me:$LINENO: checking whether clang works" >&5
3502echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3503 ac_ext=cpp
3504ac_cpp='$CXXCPP $CPPFLAGS'
3505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508
3509
3510cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h. */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h. */
3516#include <limits>
3517#if __has_include (<cxxabi.h>)
3518#include <cxxabi.h>
3519#endif
3520#if __has_include (<unwind.h>)
3521#include <unwind.h>
3522#endif
3523
3524int
3525main ()
3526{
3527
3528 ;
3529 return 0;
3530}
3531_ACEOF
3532rm -f conftest.$ac_objext
3533if { (ac_try="$ac_compile"
3534case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537esac
3538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550esac
3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566
3567 { echo "$as_me:$LINENO: result: yes" >&5
3568echo "${ECHO_T}yes" >&6; }
3569
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574
3575 { echo "$as_me:$LINENO: result: no" >&5
3576echo "${ECHO_T}no" >&6; }
3577 { { 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
3578echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3579 { (exit 1); exit 1; }; }
3580
3581fi
3582
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_ext=c
3585ac_cpp='$CPP $CPPFLAGS'
3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
3590fi
3591
Chandler Carruth75a65452014-01-14 05:02:38 +00003592{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3593echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3594ac_ext=cpp
3595ac_cpp='$CXXCPP $CPPFLAGS'
3596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3599
3600llvm_cv_cxx_compiler=unknown
3601cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
3607#if ! __clang__
Chandler Carruthf8c6ccf2014-01-15 10:31:15 +00003608 #error
3609 #endif
Chandler Carruth75a65452014-01-14 05:02:38 +00003610
Chandler Carruth75a65452014-01-14 05:02:38 +00003611_ACEOF
3612rm -f conftest.$ac_objext
3613if { (ac_try="$ac_compile"
3614case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617esac
3618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630esac
3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_try") 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 llvm_cv_cxx_compiler=clang
3647else
3648 echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
3657#if ! __GNUC__
Chandler Carruthf8c6ccf2014-01-15 10:31:15 +00003658 #error
3659 #endif
Chandler Carruth75a65452014-01-14 05:02:38 +00003660
Chandler Carruth75a65452014-01-14 05:02:38 +00003661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (ac_try="$ac_compile"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_compile") 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3677 { (case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680esac
3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_try") 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try='test -s conftest.$ac_objext'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690esac
3691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 llvm_cv_cxx_compiler=gcc
3697else
3698 echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701
3702fi
3703
3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705fi
3706
3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708ac_ext=c
3709ac_cpp='$CPP $CPPFLAGS'
3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3715echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3716
Eric Christopher58839712011-09-16 20:36:25 +00003717
3718
Eric Christopher58839712011-09-16 20:36:25 +00003719if test -d ${srcdir}/projects/test-suite ; then
3720 subdirs="$subdirs projects/test-suite"
3721
3722fi
3723
3724if test -d ${srcdir}/projects/llvm-test ; then
3725 subdirs="$subdirs projects/llvm-test"
3726
3727fi
3728
3729if test -d ${srcdir}/projects/poolalloc ; then
3730 subdirs="$subdirs projects/poolalloc"
3731
3732fi
3733
3734if test -d ${srcdir}/projects/llvm-poolalloc ; then
3735 subdirs="$subdirs projects/llvm-poolalloc"
3736
3737fi
3738
3739for i in `ls ${srcdir}/projects`
3740do
3741 if test -d ${srcdir}/projects/${i} ; then
3742 case ${i} in
Eric Christopher58839712011-09-16 20:36:25 +00003743 safecode) subdirs="$subdirs projects/safecode"
3744 ;;
Daniel Dunbar7ce849d2011-12-07 22:07:03 +00003745 compiler-rt) ;;
Eric Christopher58839712011-09-16 20:36:25 +00003746 test-suite) ;;
3747 llvm-test) ;;
3748 poolalloc) ;;
3749 llvm-poolalloc) ;;
3750 *)
3751 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3752echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3753 ;;
3754 esac
3755 fi
3756done
3757
3758# Check whether --enable-polly was given.
3759if test "${enable_polly+set}" = set; then
3760 enableval=$enable_polly;
3761else
3762 enableval=default
3763fi
3764
3765case "$enableval" in
3766 yes) ENABLE_POLLY=1
3767 ;;
3768 no) ENABLE_POLLY=0
3769 ;;
3770 default) ENABLE_POLLY=1
3771 ;;
3772 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3773echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3774 { (exit 1); exit 1; }; } ;;
3775esac
3776
3777
3778if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3779 LLVM_HAS_POLLY=1
3780
3781 subdirs="$subdirs tools/polly"
3782
3783fi
3784
3785
3786# Make sure we can run config.sub.
3787$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3789echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3790 { (exit 1); exit 1; }; }
3791
3792{ echo "$as_me:$LINENO: checking build system type" >&5
3793echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3794if test "${ac_cv_build+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 ac_build_alias=$build_alias
3798test "x$ac_build_alias" = x &&
3799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3800test "x$ac_build_alias" = x &&
3801 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803 { (exit 1); exit 1; }; }
3804ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3806echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3807 { (exit 1); exit 1; }; }
3808
3809fi
3810{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811echo "${ECHO_T}$ac_cv_build" >&6; }
3812case $ac_cv_build in
3813*-*-*) ;;
3814*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3815echo "$as_me: error: invalid value of canonical build" >&2;}
3816 { (exit 1); exit 1; }; };;
3817esac
3818build=$ac_cv_build
3819ac_save_IFS=$IFS; IFS='-'
3820set x $ac_cv_build
3821shift
3822build_cpu=$1
3823build_vendor=$2
3824shift; shift
3825# Remember, the first character of IFS is used to create $*,
3826# except with old shells:
3827build_os=$*
3828IFS=$ac_save_IFS
3829case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830
3831
3832{ echo "$as_me:$LINENO: checking host system type" >&5
3833echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3834if test "${ac_cv_host+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837 if test "x$host_alias" = x; then
3838 ac_cv_host=$ac_cv_build
3839else
3840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3841 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3842echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3843 { (exit 1); exit 1; }; }
3844fi
3845
3846fi
3847{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3848echo "${ECHO_T}$ac_cv_host" >&6; }
3849case $ac_cv_host in
3850*-*-*) ;;
3851*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3852echo "$as_me: error: invalid value of canonical host" >&2;}
3853 { (exit 1); exit 1; }; };;
3854esac
3855host=$ac_cv_host
3856ac_save_IFS=$IFS; IFS='-'
3857set x $ac_cv_host
3858shift
3859host_cpu=$1
3860host_vendor=$2
3861shift; shift
3862# Remember, the first character of IFS is used to create $*,
3863# except with old shells:
3864host_os=$*
3865IFS=$ac_save_IFS
3866case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867
3868
3869{ echo "$as_me:$LINENO: checking target system type" >&5
3870echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3871if test "${ac_cv_target+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874 if test "x$target_alias" = x; then
3875 ac_cv_target=$ac_cv_host
3876else
3877 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3878 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3879echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3880 { (exit 1); exit 1; }; }
3881fi
3882
3883fi
3884{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3885echo "${ECHO_T}$ac_cv_target" >&6; }
3886case $ac_cv_target in
3887*-*-*) ;;
3888*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3889echo "$as_me: error: invalid value of canonical target" >&2;}
3890 { (exit 1); exit 1; }; };;
3891esac
3892target=$ac_cv_target
3893ac_save_IFS=$IFS; IFS='-'
3894set x $ac_cv_target
3895shift
3896target_cpu=$1
3897target_vendor=$2
3898shift; shift
3899# Remember, the first character of IFS is used to create $*,
3900# except with old shells:
3901target_os=$*
3902IFS=$ac_save_IFS
3903case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904
3905
3906# The aliases save the names the user supplied, while $host etc.
3907# will get canonicalized.
3908test -n "$target_alias" &&
3909 test "$program_prefix$program_suffix$program_transform_name" = \
3910 NONENONEs,x,x, &&
3911 program_prefix=${target_alias}-
3912
3913{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3914echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3915if test "${llvm_cv_os_type+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918 case $host in
3919 *-*-aix*)
3920 llvm_cv_link_all_option="-Wl,--whole-archive"
3921 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922 llvm_cv_os_type="AIX"
3923 llvm_cv_platform_type="Unix" ;;
3924 *-*-irix*)
3925 llvm_cv_link_all_option="-Wl,--whole-archive"
3926 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927 llvm_cv_os_type="IRIX"
3928 llvm_cv_platform_type="Unix" ;;
3929 *-*-cygwin*)
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="Cygwin"
3933 llvm_cv_platform_type="Unix" ;;
3934 *-*-darwin*)
3935 llvm_cv_link_all_option="-Wl,-all_load"
3936 llvm_cv_no_link_all_option="-Wl,-noall_load"
3937 llvm_cv_os_type="Darwin"
3938 llvm_cv_platform_type="Unix" ;;
3939 *-*-minix*)
3940 llvm_cv_link_all_option="-Wl,-all_load"
3941 llvm_cv_no_link_all_option="-Wl,-noall_load"
3942 llvm_cv_os_type="Minix"
3943 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00003944 *-*-freebsd*)
Eric Christopher58839712011-09-16 20:36:25 +00003945 llvm_cv_link_all_option="-Wl,--whole-archive"
3946 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947 llvm_cv_os_type="FreeBSD"
3948 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00003949 *-*-kfreebsd-gnu)
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="GNU/kFreeBSD"
3953 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003954 *-*-openbsd*)
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="OpenBSD"
3958 llvm_cv_platform_type="Unix" ;;
3959 *-*-netbsd*)
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="NetBSD"
3963 llvm_cv_platform_type="Unix" ;;
3964 *-*-dragonfly*)
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="DragonFly"
3968 llvm_cv_platform_type="Unix" ;;
Eric Christopher83f88242015-02-26 19:46:32 +00003969 *-*-bitrig*)
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="Bitrig"
3973 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003974 *-*-hpux*)
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="HP-UX"
3978 llvm_cv_platform_type="Unix" ;;
3979 *-*-interix*)
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="Interix"
3983 llvm_cv_platform_type="Unix" ;;
3984 *-*-linux*)
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="Linux"
3988 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003989 *-*-gnu*)
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="GNU"
3993 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003994 *-*-solaris*)
3995 llvm_cv_link_all_option="-Wl,-z,allextract"
3996 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3997 llvm_cv_os_type="SunOS"
3998 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003999 *-*-win32*)
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="Win32"
4003 llvm_cv_platform_type="Win32" ;;
4004 *-*-mingw*)
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="MingW"
4008 llvm_cv_platform_type="Win32" ;;
4009 *-*-haiku*)
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Haiku"
4013 llvm_cv_platform_type="Unix" ;;
4014 *-unknown-eabi*)
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="Freestanding"
4018 llvm_cv_platform_type="Unix" ;;
4019 *-unknown-elf*)
4020 llvm_cv_link_all_option="-Wl,--whole-archive"
4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022 llvm_cv_os_type="Freestanding"
4023 llvm_cv_platform_type="Unix" ;;
4024 *)
4025 llvm_cv_link_all_option=""
4026 llvm_cv_no_link_all_option=""
4027 llvm_cv_os_type="Unknown"
4028 llvm_cv_platform_type="Unknown" ;;
4029esac
4030fi
4031{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4032echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4033
4034{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4035echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4036if test "${llvm_cv_target_os_type+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 case $target in
4040 *-*-aix*)
4041 llvm_cv_target_os_type="AIX" ;;
4042 *-*-irix*)
4043 llvm_cv_target_os_type="IRIX" ;;
4044 *-*-cygwin*)
4045 llvm_cv_target_os_type="Cygwin" ;;
4046 *-*-darwin*)
4047 llvm_cv_target_os_type="Darwin" ;;
4048 *-*-minix*)
4049 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00004050 *-*-freebsd*)
Eric Christopher58839712011-09-16 20:36:25 +00004051 llvm_cv_target_os_type="FreeBSD" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00004052 *-*-kfreebsd-gnu)
4053 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004054 *-*-openbsd*)
4055 llvm_cv_target_os_type="OpenBSD" ;;
4056 *-*-netbsd*)
4057 llvm_cv_target_os_type="NetBSD" ;;
4058 *-*-dragonfly*)
4059 llvm_cv_target_os_type="DragonFly" ;;
Eric Christopher83f88242015-02-26 19:46:32 +00004060 *-*-bitrig*)
4061 llvm_cv_target_os_type="Bitrig" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004062 *-*-hpux*)
4063 llvm_cv_target_os_type="HP-UX" ;;
4064 *-*-interix*)
4065 llvm_cv_target_os_type="Interix" ;;
4066 *-*-linux*)
4067 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledrue8235fe2012-04-05 19:34:15 +00004068 *-*-gnu*)
4069 llvm_cv_target_os_type="GNU" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004070 *-*-solaris*)
4071 llvm_cv_target_os_type="SunOS" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004072 *-*-win32*)
4073 llvm_cv_target_os_type="Win32" ;;
4074 *-*-mingw*)
4075 llvm_cv_target_os_type="MingW" ;;
4076 *-*-haiku*)
4077 llvm_cv_target_os_type="Haiku" ;;
4078 *-*-rtems*)
4079 llvm_cv_target_os_type="RTEMS" ;;
4080 *-*-nacl*)
4081 llvm_cv_target_os_type="NativeClient" ;;
4082 *-unknown-eabi*)
4083 llvm_cv_target_os_type="Freestanding" ;;
NAKAMURA Takumi3f47d812015-01-30 13:01:00 +00004084 *-*-ps4)
4085 llvm_cv_target_os_type="PS4" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004086 *)
4087 llvm_cv_target_os_type="Unknown" ;;
4088esac
4089fi
4090{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4091echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4092
4093if test "$llvm_cv_os_type" = "Unknown" ; then
4094 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4095echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4096 { (exit 1); exit 1; }; }
4097fi
4098
4099OS=$llvm_cv_os_type
4100
4101HOST_OS=$llvm_cv_os_type
4102
4103TARGET_OS=$llvm_cv_target_os_type
4104
4105
4106LINKALL=$llvm_cv_link_all_option
4107
4108NOLINKALL=$llvm_cv_no_link_all_option
4109
4110
4111case $llvm_cv_platform_type in
4112 Unix)
4113
4114cat >>confdefs.h <<\_ACEOF
4115#define LLVM_ON_UNIX 1
4116_ACEOF
4117
4118 LLVM_ON_UNIX=1
4119
4120 LLVM_ON_WIN32=0
4121
4122 ;;
4123 Win32)
4124
4125cat >>confdefs.h <<\_ACEOF
4126#define LLVM_ON_WIN32 1
4127_ACEOF
4128
4129 LLVM_ON_UNIX=0
4130
4131 LLVM_ON_WIN32=1
4132
4133 ;;
4134esac
4135
4136{ echo "$as_me:$LINENO: checking target architecture" >&5
4137echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4138if test "${llvm_cv_target_arch+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141 case $target in
4142 i?86-*) llvm_cv_target_arch="x86" ;;
4143 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4144 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4145 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00004146 arm64*-*) llvm_cv_target_arch="AArch64" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004147 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00004148 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004149 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4150 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004151 xcore-*) llvm_cv_target_arch="XCore" ;;
4152 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004153 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00004154 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004155 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004156 *) llvm_cv_target_arch="Unknown" ;;
4157esac
4158fi
4159{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4160echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4161
4162if test "$llvm_cv_target_arch" = "Unknown" ; then
4163 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4164echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4165fi
4166
Eric Christopher58839712011-09-16 20:36:25 +00004167case "$llvm_cv_target_arch" in
4168 x86) LLVM_NATIVE_ARCH="X86" ;;
4169 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4170 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4171esac
4172
4173ARCH=$llvm_cv_target_arch
4174
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00004175LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4176
Eric Christopher58839712011-09-16 20:36:25 +00004177
Danil Malyshev7c5db452012-05-17 21:07:47 +00004178case $host in
4179 i?86-*) host_arch="x86" ;;
4180 amd64-* | x86_64-*) host_arch="x86_64" ;;
4181 sparc*-*) host_arch="Sparc" ;;
4182 powerpc*-*) host_arch="PowerPC" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00004183 arm64*-*) host_arch="AArch64" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004184 arm*-*) host_arch="ARM" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00004185 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004186 mips-* | mips64-*) host_arch="Mips" ;;
4187 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004188 xcore-*) host_arch="XCore" ;;
4189 msp430-*) host_arch="MSP430" ;;
4190 hexagon-*) host_arch="Hexagon" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004191 s390x-*) host_arch="SystemZ" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004192 *) host_arch="Unknown" ;;
4193esac
4194
4195if test "$host_arch" = "Unknown" ; then
4196 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4197echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4198fi
4199
4200HOST_ARCH=$host_arch
4201
4202
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004203if test "$cross_compiling" = yes; then
4204 LLVM_CROSS_COMPILING=1
4205
4206
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004207{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4208echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4209if test "${ac_cv_build_exeext+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004211else
4212 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4213 ac_cv_build_exeext=.exe
4214else
4215 ac_build_prefix=${build_alias}-
4216
4217 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4218set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004223else
4224 if test -n "$BUILD_CC"; then
4225 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 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 +00004234 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004236 break 2
4237 fi
4238done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004239done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004240IFS=$as_save_IFS
4241
4242fi
4243fi
4244BUILD_CC=$ac_cv_prog_BUILD_CC
4245if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004246 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4247echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004248else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004249 { echo "$as_me:$LINENO: result: no" >&5
4250echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004251fi
4252
4253
4254 if test -z "$BUILD_CC"; then
4255 # Extract the first word of "gcc", so it can be a program name with args.
4256set dummy gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004261else
4262 if test -n "$BUILD_CC"; then
4263 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4264else
4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 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 +00004272 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004274 break 2
4275 fi
4276done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004277done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004278IFS=$as_save_IFS
4279
4280fi
4281fi
4282BUILD_CC=$ac_cv_prog_BUILD_CC
4283if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004284 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4285echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004286else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004287 { echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004289fi
4290
4291
4292 if test -z "$BUILD_CC"; then
4293 # Extract the first word of "cc", so it can be a program name with args.
4294set dummy cc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004299else
4300 if test -n "$BUILD_CC"; then
4301 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4302else
4303 ac_prog_rejected=no
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 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 +00004311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4312 ac_prog_rejected=yes
4313 continue
4314 fi
4315 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004317 break 2
4318 fi
4319done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004320done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004321IFS=$as_save_IFS
4322
4323if test $ac_prog_rejected = yes; then
4324 # We found a bogon in the path, so make sure we never use it.
4325 set dummy $ac_cv_prog_BUILD_CC
4326 shift
4327 if test $# != 0; then
4328 # We chose a different compiler from the bogus one.
4329 # However, it has the same basename, so the bogon will be chosen
4330 # first if we set BUILD_CC to just the basename; use the full file name.
4331 shift
4332 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4333 fi
4334fi
4335fi
4336fi
4337BUILD_CC=$ac_cv_prog_BUILD_CC
4338if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004339 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4340echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004341else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004342 { echo "$as_me:$LINENO: result: no" >&5
4343echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004344fi
4345
4346
4347 fi
4348 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004349 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4350echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4351 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004352 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4353 rm -f conftest*
4354 echo 'int main () { return 0; }' > conftest.$ac_ext
4355 ac_cv_build_exeext=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004356 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004357 (eval $ac_build_link) 2>&5
4358 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004361 for file in conftest.*; do
4362 case $file in
Jim Grosbachbfc70b02008-09-26 17:27:58 +00004363 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004364 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4365 esac
4366 done
4367 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004368 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4369echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4370 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004371 fi
4372 rm -f conftest*
4373 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4374fi
4375fi
4376
4377BUILD_EXEEXT=""
4378test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004379{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4380echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004381ac_build_exeext=$BUILD_EXEEXT
4382
Jim Grosbach009db892008-10-02 22:56:44 +00004383 ac_build_prefix=${build_alias}-
4384 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4385set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004390else
4391 if test -n "$BUILD_CXX"; then
4392 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 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 +00004401 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004403 break 2
4404 fi
4405done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004406done
Jim Grosbach009db892008-10-02 22:56:44 +00004407IFS=$as_save_IFS
4408
4409fi
4410fi
4411BUILD_CXX=$ac_cv_prog_BUILD_CXX
4412if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004413 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4414echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004415else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004416 { echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004418fi
4419
4420
4421 if test -z "$BUILD_CXX"; then
4422 # Extract the first word of "g++", so it can be a program name with args.
4423set dummy g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004428else
4429 if test -n "$BUILD_CXX"; then
4430 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 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 +00004439 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004441 break 2
4442 fi
4443done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004444done
Jim Grosbach009db892008-10-02 22:56:44 +00004445IFS=$as_save_IFS
4446
4447fi
4448fi
4449BUILD_CXX=$ac_cv_prog_BUILD_CXX
4450if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004451 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4452echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004453else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004454 { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004456fi
4457
4458
4459 if test -z "$BUILD_CXX"; then
4460 # Extract the first word of "c++", so it can be a program name with args.
4461set dummy c++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004466else
4467 if test -n "$BUILD_CXX"; then
4468 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4469else
4470 ac_prog_rejected=no
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 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 +00004478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4479 ac_prog_rejected=yes
4480 continue
4481 fi
4482 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004484 break 2
4485 fi
4486done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004487done
Jim Grosbach009db892008-10-02 22:56:44 +00004488IFS=$as_save_IFS
4489
4490if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CXX
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CXX to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4500 fi
4501fi
4502fi
4503fi
4504BUILD_CXX=$ac_cv_prog_BUILD_CXX
4505if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004506 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4507echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004508else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004509 { echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004511fi
4512
4513
4514 fi
4515 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004516else
4517 LLVM_CROSS_COMPILING=0
4518
4519fi
4520
Dan Gohmande75469c2010-08-04 16:25:01 +00004521if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004522 cvsbuild="yes"
4523 optimize="no"
4524 CVSBUILD=CVSBUILD=1
4525
4526else
4527 cvsbuild="no"
4528 optimize="yes"
4529fi
4530
4531
Eric Christopher1094ded2011-11-11 22:51:42 +00004532# Check whether --enable-libcpp was given.
4533if test "${enable_libcpp+set}" = set; then
4534 enableval=$enable_libcpp;
4535else
4536 enableval=default
4537fi
4538
4539case "$enableval" in
4540 yes) ENABLE_LIBCPP=1
4541 ;;
4542 no) ENABLE_LIBCPP=0
4543 ;;
4544 default) ENABLE_LIBCPP=0
4545;;
4546 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4547echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4548 { (exit 1); exit 1; }; } ;;
4549esac
4550
Chandler Carruth7206eae2014-01-15 19:19:13 +00004551# Check whether --enable-compiler-version-checks was given.
4552if test "${enable_compiler_version_checks+set}" = set; then
4553 enableval=$enable_compiler_version_checks;
4554else
4555 enableval=default
4556fi
4557
4558case "$enableval" in
4559 no)
4560 ;;
4561 yes|default)
4562 ac_ext=cpp
4563ac_cpp='$CXXCPP $CPPFLAGS'
4564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4567
4568 case "$llvm_cv_cxx_compiler" in
4569 clang)
4570 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4571echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4572 cat >conftest.$ac_ext <<_ACEOF
4573/* confdefs.h. */
4574_ACEOF
4575cat confdefs.h >>conftest.$ac_ext
4576cat >>conftest.$ac_ext <<_ACEOF
4577/* end confdefs.h. */
4578
4579#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4580#error This version of Clang is too old to build LLVM
4581#endif
4582
4583_ACEOF
4584rm -f conftest.$ac_objext
4585if { (ac_try="$ac_compile"
4586case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589esac
4590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_compile") 2>conftest.er1
4592 ac_status=$?
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4599 { (case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602esac
4603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_try") 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612esac
4613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 { echo "$as_me:$LINENO: result: yes" >&5
4619echo "${ECHO_T}yes" >&6; }
4620else
4621 echo "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 { echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6; }
4626 { { echo "$as_me:$LINENO: error:
4627The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4628Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4629bypass these sanity checks." >&5
4630echo "$as_me: error:
4631The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4632Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4633bypass these sanity checks." >&2;}
4634 { (exit 1); exit 1; }; }
4635fi
4636
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004639 if test "$ENABLE_LIBCPP" -eq 0 ; then
4640 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
Chandler Carruth7206eae2014-01-15 19:19:13 +00004641echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004642 llvm_cv_old_cxxflags="$CXXFLAGS"
4643 CXXFLAGS="$CXXFLAGS -std=c++0x"
4644 cat >conftest.$ac_ext <<_ACEOF
Chandler Carruth7206eae2014-01-15 19:19:13 +00004645/* confdefs.h. */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h. */
4650
4651#include <atomic>
4652std::atomic<float> x(0.0f);
4653int main() { return (float)x; }
4654
4655_ACEOF
4656rm -f conftest.$ac_objext conftest$ac_exeext
4657if { (ac_try="$ac_link"
4658case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661esac
4662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_link") 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4671 { (case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674esac
4675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_try") 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4690 { echo "$as_me:$LINENO: result: yes" >&5
4691echo "${ECHO_T}yes" >&6; }
4692else
4693 echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 { echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004698 { { echo "$as_me:$LINENO: error:
Chandler Carruth7206eae2014-01-15 19:19:13 +00004699We detected a missing feature in the standard C++ library that was known to be
4700missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4701C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4702than 4.7. You will need to update your system and ensure Clang uses the newer
4703standard library.
4704
4705If this error is incorrect or you need to force things to work, you may pass
4706'--disable-compiler-version-checks' to configure to bypass this test." >&5
4707echo "$as_me: error:
4708We detected a missing feature in the standard C++ library that was known to be
4709missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4710C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4711than 4.7. You will need to update your system and ensure Clang uses the newer
4712standard library.
4713
4714If this error is incorrect or you need to force things to work, you may pass
4715'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4716 { (exit 1); exit 1; }; }
4717fi
4718
4719rm -f core conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004721 CXXFLAGS="$llvm_cv_old_cxxflags"
4722 fi
Chandler Carruth7206eae2014-01-15 19:19:13 +00004723 ;;
4724 gcc)
4725 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4726echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4728/* confdefs.h. */
4729_ACEOF
4730cat confdefs.h >>conftest.$ac_ext
4731cat >>conftest.$ac_ext <<_ACEOF
4732/* end confdefs.h. */
4733
4734#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4735#error This version of GCC is too old to build LLVM
4736#endif
4737
4738_ACEOF
4739rm -f conftest.$ac_objext
4740if { (ac_try="$ac_compile"
4741case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744esac
4745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4754 { (case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
4758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_try") 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767esac
4768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_try") 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 { echo "$as_me:$LINENO: result: yes" >&5
4774echo "${ECHO_T}yes" >&6; }
4775else
4776 echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 { echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6; }
4781 { { echo "$as_me:$LINENO: error:
4782The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4783to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4784bypass these sanity checks." >&5
4785echo "$as_me: error:
4786The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4787to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4788bypass these sanity checks." >&2;}
4789 { (exit 1); exit 1; }; }
4790fi
4791
4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ;;
4794 unknown)
4795 ;;
4796 esac
4797 ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803 ;;
4804 *)
4805 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4806echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4807 { (exit 1); exit 1; }; }
4808 ;;
4809esac
4810
Chandler Carruthbbae5122014-03-01 03:33:08 +00004811# Check whether --enable-cxx1y was given.
4812if test "${enable_cxx1y+set}" = set; then
4813 enableval=$enable_cxx1y;
Eric Christopher04e35972012-08-03 19:47:14 +00004814else
4815 enableval=default
4816fi
4817
4818case "$enableval" in
Chandler Carruthbbae5122014-03-01 03:33:08 +00004819 yes) ENABLE_CXX1Y=1
Eric Christopher04e35972012-08-03 19:47:14 +00004820 ;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004821 no) ENABLE_CXX1Y=0
Eric Christopher04e35972012-08-03 19:47:14 +00004822 ;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004823 default) ENABLE_CXX1Y=0
Eric Christopher04e35972012-08-03 19:47:14 +00004824;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004825 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4826echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
Eric Christopher04e35972012-08-03 19:47:14 +00004827 { (exit 1); exit 1; }; } ;;
4828esac
4829
Eric Christopherf1bd7702013-06-25 01:12:25 +00004830# Check whether --enable-split-dwarf was given.
4831if test "${enable_split_dwarf+set}" = set; then
4832 enableval=$enable_split_dwarf;
4833else
4834 enableval=default
4835fi
4836
4837case "$enableval" in
4838 yes) ENABLE_SPLIT_DWARF=1
4839 ;;
4840 no) ENABLE_SPLIT_DWARF=0
4841 ;;
4842 default) ENABLE_SPLIT_DWARF=0
4843;;
4844 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4845echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4846 { (exit 1); exit 1; }; } ;;
4847esac
4848
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004849clang_arcmt="yes"
4850# Check whether --enable-clang-arcmt was given.
4851if test "${enable_clang_arcmt+set}" = set; then
4852 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4853else
4854 enableval="yes"
4855fi
4856
4857case "$enableval" in
4858 yes) ENABLE_CLANG_ARCMT=1
4859 ;;
4860 no) ENABLE_CLANG_ARCMT=0
4861 ;;
4862 default) ENABLE_CLANG_ARCMT=1
4863;;
4864 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4865echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4866 { (exit 1); exit 1; }; } ;;
4867esac
4868
Rafael Espindolae33f06c2014-03-10 16:58:35 +00004869clang_plugin_support="yes"
4870# Check whether --enable-clang-plugin-support was given.
4871if test "${enable_clang_plugin_support+set}" = set; then
4872 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4873else
4874 enableval="yes"
4875fi
4876
4877case "$enableval" in
4878 yes) CLANG_PLUGIN_SUPPORT=1
4879 ;;
4880 no) CLANG_PLUGIN_SUPPORT=0
4881 ;;
4882 default) CLANG_PLUGIN_SUPPORT=1
4883;;
4884 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4885echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4887esac
4888
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004889clang_static_analyzer="yes"
4890# Check whether --enable-clang-static-analyzer was given.
4891if test "${enable_clang_static_analyzer+set}" = set; then
4892 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4893else
4894 enableval="yes"
4895fi
4896
4897case "$enableval" in
4898 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4899 ;;
Jordan Rose23fc6f32013-08-22 15:49:53 +00004900 no)
4901 if test ${clang_arcmt} != "no" ; then
4902 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4903echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4904 { (exit 1); exit 1; }; }
4905 fi
4906 ENABLE_CLANG_STATIC_ANALYZER=0
NAKAMURA Takumi4cfe5542013-08-22 16:31:34 +00004907
Jordan Rose23fc6f32013-08-22 15:49:53 +00004908 ;;
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004909 default) ENABLE_CLANG_STATIC_ANALYZER=1
4910;;
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4912echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4914esac
4915
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004916# Check whether --enable-optimized was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004917if test "${enable_optimized+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004918 enableval=$enable_optimized;
4919else
4920 enableval=$optimize
4921fi
4922
4923if test ${enableval} = "no" ; then
4924 ENABLE_OPTIMIZED=
4925
4926else
4927 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4928
4929fi
4930
David Greenec0a34a072009-04-17 14:50:39 +00004931# Check whether --enable-profiling was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004932if test "${enable_profiling+set}" = set; then
David Greenec0a34a072009-04-17 14:50:39 +00004933 enableval=$enable_profiling;
4934else
4935 enableval="no"
4936fi
4937
4938if test ${enableval} = "no" ; then
4939 ENABLE_PROFILING=
4940
4941else
4942 ENABLE_PROFILING=ENABLE_PROFILING=1
4943
4944fi
4945
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004946# Check whether --enable-assertions was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004947if test "${enable_assertions+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004948 enableval=$enable_assertions;
4949else
4950 enableval="yes"
4951fi
4952
4953if test ${enableval} = "yes" ; then
4954 DISABLE_ASSERTIONS=
4955
4956else
4957 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4958
4959fi
4960
Eric Christopher84864012012-08-03 19:58:20 +00004961# Check whether --enable-werror was given.
4962if test "${enable_werror+set}" = set; then
4963 enableval=$enable_werror;
4964else
4965 enableval="no"
4966fi
4967
4968case "$enableval" in
4969 yes) ENABLE_WERROR=1
4970 ;;
4971 no) ENABLE_WERROR=0
4972 ;;
4973 default) ENABLE_WERROR=0
4974;;
4975 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4976echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4978esac
4979
David Greenecbc8ddf2007-06-28 19:36:08 +00004980# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004981if test "${enable_expensive_checks+set}" = set; then
David Greenecbc8ddf2007-06-28 19:36:08 +00004982 enableval=$enable_expensive_checks;
4983else
4984 enableval="no"
4985fi
4986
4987if test ${enableval} = "yes" ; then
4988 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4989
4990 EXPENSIVE_CHECKS=yes
4991
4992else
4993 ENABLE_EXPENSIVE_CHECKS=
4994
4995 EXPENSIVE_CHECKS=no
4996
4997fi
4998
Reid Spencer4b8067f2006-11-17 03:32:33 +00004999# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005000if test "${enable_debug_runtime+set}" = set; then
Reid Spencer4b8067f2006-11-17 03:32:33 +00005001 enableval=$enable_debug_runtime;
5002else
5003 enableval=no
5004fi
5005
5006if test ${enableval} = "no" ; then
5007 DEBUG_RUNTIME=
5008
5009else
5010 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5011
5012fi
5013
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005014# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005015if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005016 enableval=$enable_debug_symbols;
5017else
5018 enableval=no
5019fi
5020
5021if test ${enableval} = "no" ; then
5022 DEBUG_SYMBOLS=
5023
5024else
5025 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5026
5027fi
5028
Daniel Dunbar39c04622012-08-14 18:14:22 +00005029# Check whether --enable-keep-symbols was given.
5030if test "${enable_keep_symbols+set}" = set; then
5031 enableval=$enable_keep_symbols;
5032else
5033 enableval=no
5034fi
5035
5036if test ${enableval} = "no" ; then
5037 KEEP_SYMBOLS=
5038
5039else
5040 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5041
5042fi
5043
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005044# Check whether --enable-jit was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005045if test "${enable_jit+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005046 enableval=$enable_jit;
5047else
5048 enableval=default
5049fi
5050
5051if test ${enableval} = "no"
5052then
5053 JIT=
5054
5055else
5056 case "$llvm_cv_target_arch" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005057 x86) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005058 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005059 Sparc) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005060 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005061 PowerPC) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005062 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005063 x86_64) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005064 ;;
Eric Christopherd8530f32009-09-14 16:38:49 +00005065 ARM) TARGET_HAS_JIT=1
Reid Spencerd7c8b3c2007-01-21 06:32:59 +00005066 ;;
Bruno Cardoso Lopesd1d9c782011-07-21 16:28:51 +00005067 Mips) TARGET_HAS_JIT=1
Tanya Lattnerbca16c82007-08-29 16:38:16 +00005068 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005069 XCore) TARGET_HAS_JIT=0
Richard Osborneca08e062008-11-07 10:59:00 +00005070 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005071 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov9173b492009-05-03 13:42:23 +00005072 ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005073 Hexagon) TARGET_HAS_JIT=0
5074 ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005075 NVPTX) TARGET_HAS_JIT=0
5076 ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005077 SystemZ) TARGET_HAS_JIT=1
5078 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005079 *) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005080 ;;
5081 esac
5082fi
5083
Tim Northover3b0846e2014-05-24 12:50:23 +00005084TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005085TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5086
5087
Rafael Espindola7ac506d2010-11-12 19:24:06 +00005088# Check whether --enable-docs was given.
5089if test "${enable_docs+set}" = set; then
5090 enableval=$enable_docs;
5091else
5092 enableval=default
5093fi
5094
5095case "$enableval" in
5096 yes) ENABLE_DOCS=1
5097 ;;
5098 no) ENABLE_DOCS=0
5099 ;;
5100 default) ENABLE_DOCS=1
5101 ;;
5102 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5103echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5105esac
5106
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005107# Check whether --enable-doxygen was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005108if test "${enable_doxygen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005109 enableval=$enable_doxygen;
5110else
5111 enableval=default
5112fi
5113
5114case "$enableval" in
5115 yes) ENABLE_DOXYGEN=1
5116 ;;
5117 no) ENABLE_DOXYGEN=0
5118 ;;
5119 default) ENABLE_DOXYGEN=0
5120 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005121 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5122echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5123 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005124esac
5125
5126# Check whether --enable-threads was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005127if test "${enable_threads+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005128 enableval=$enable_threads;
5129else
Reid Spencerd549edc2006-11-05 17:08:18 +00005130 enableval=default
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005131fi
5132
5133case "$enableval" in
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005134 yes) LLVM_ENABLE_THREADS=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005135 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005136 no) LLVM_ENABLE_THREADS=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005137 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005138 default) LLVM_ENABLE_THREADS=1
Reid Spencerd549edc2006-11-05 17:08:18 +00005139 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005140 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5141echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5142 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005143esac
5144
Owen Andersonaf5db832009-05-19 22:18:56 +00005145cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005146#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersonaf5db832009-05-19 22:18:56 +00005147_ACEOF
5148
5149
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00005150# Check whether --enable-pthreads was given.
5151if test "${enable_pthreads+set}" = set; then
5152 enableval=$enable_pthreads;
5153else
5154 enableval=default
5155fi
5156
5157case "$enableval" in
5158 yes) ENABLE_PTHREADS=1
5159 ;;
5160 no) ENABLE_PTHREADS=0
5161 ;;
5162 default) ENABLE_PTHREADS=1
5163 ;;
5164 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5165echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5166 { (exit 1); exit 1; }; } ;;
5167esac
5168
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00005169# Check whether --enable-zlib was given.
5170if test "${enable_zlib+set}" = set; then
5171 enableval=$enable_zlib;
5172else
5173 enableval=default
5174fi
5175
5176case "$enableval" in
5177 yes) LLVM_ENABLE_ZLIB=1
5178 ;;
5179 no) LLVM_ENABLE_ZLIB=0
5180 ;;
5181 default) LLVM_ENABLE_ZLIB=1
5182 ;;
5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5184echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
5186esac
5187
5188cat >>confdefs.h <<_ACEOF
5189#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5190_ACEOF
5191
5192
Reid Spencer05a1fe52006-12-16 22:07:52 +00005193# Check whether --enable-pic was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005194if test "${enable_pic+set}" = set; then
Reid Spencer05a1fe52006-12-16 22:07:52 +00005195 enableval=$enable_pic;
5196else
5197 enableval=default
5198fi
5199
5200case "$enableval" in
5201 yes) ENABLE_PIC=1
5202 ;;
5203 no) ENABLE_PIC=0
5204 ;;
Nick Lewycky38525192009-02-19 06:18:56 +00005205 default) ENABLE_PIC=1
Reid Spencer05a1fe52006-12-16 22:07:52 +00005206 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5208echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
Reid Spencer05a1fe52006-12-16 22:07:52 +00005210esac
5211
5212cat >>confdefs.h <<_ACEOF
5213#define ENABLE_PIC $ENABLE_PIC
5214_ACEOF
5215
5216
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00005217# Check whether --enable-shared was given.
5218if test "${enable_shared+set}" = set; then
5219 enableval=$enable_shared;
5220else
5221 enableval=default
5222fi
5223
5224case "$enableval" in
5225 yes) ENABLE_SHARED=1
5226 ;;
5227 no) ENABLE_SHARED=0
5228 ;;
5229 default) ENABLE_SHARED=0
5230 ;;
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5232echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5234esac
5235
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005236# Check whether --enable-embed-stdcxx was given.
5237if test "${enable_embed_stdcxx+set}" = set; then
5238 enableval=$enable_embed_stdcxx;
5239else
5240 enableval=default
5241fi
5242
5243case "$enableval" in
5244 yes) ENABLE_EMBED_STDCXX=1
5245 ;;
5246 no) ENABLE_EMBED_STDCXX=0
5247 ;;
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00005248 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005249 ;;
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5251echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5253esac
5254
Daniel Dunbardac18242010-05-10 20:11:56 +00005255# Check whether --enable-timestamps was given.
5256if test "${enable_timestamps+set}" = set; then
5257 enableval=$enable_timestamps;
5258else
5259 enableval=default
5260fi
5261
5262case "$enableval" in
5263 yes) ENABLE_TIMESTAMPS=1
5264 ;;
5265 no) ENABLE_TIMESTAMPS=0
5266 ;;
5267 default) ENABLE_TIMESTAMPS=1
5268 ;;
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5270echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5272esac
5273
5274cat >>confdefs.h <<_ACEOF
5275#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5276_ACEOF
5277
5278
Eric Christopher9fafe072012-09-21 23:03:29 +00005279# Check whether --enable-backtraces was given.
5280if test "${enable_backtraces+set}" = set; then
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005281 enableval=$enable_backtraces; case "$enableval" in
5282 yes) llvm_cv_enable_backtraces="yes" ;;
5283 no) llvm_cv_enable_backtraces="no" ;;
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
Eric Christopher9fafe072012-09-21 23:03:29 +00005285echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005287 esac
5288else
5289 llvm_cv_enable_backtraces="yes"
5290fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005291
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005292if test "$llvm_cv_enable_backtraces" = "yes" ; then
5293
5294cat >>confdefs.h <<\_ACEOF
5295#define ENABLE_BACKTRACES 1
Eric Christopher9fafe072012-09-21 23:03:29 +00005296_ACEOF
5297
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005298fi
5299
5300# Check whether --enable-crash-overrides was given.
5301if test "${enable_crash_overrides+set}" = set; then
5302 enableval=$enable_crash_overrides; case "$enableval" in
5303 yes) llvm_cv_enable_crash_overrides="yes" ;;
5304 no) llvm_cv_enable_crash_overrides="no" ;;
5305 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5306echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5307 { (exit 1); exit 1; }; } ;;
5308 esac
5309else
5310 llvm_cv_enable_crash_overrides="yes"
5311fi
5312
5313if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5314
5315cat >>confdefs.h <<\_ACEOF
5316#define ENABLE_CRASH_OVERRIDES 1
5317_ACEOF
5318
5319fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005320
Tim Northover3b0846e2014-05-24 12:50:23 +00005321ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005322ALL_TARGETS=$ALL_TARGETS
5323
5324
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005325TARGETS_TO_BUILD=""
5326# Check whether --enable-targets was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005327if test "${enable_targets+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005328 enableval=$enable_targets;
5329else
5330 enableval=all
5331fi
5332
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005333if test "$enableval" = host-only ; then
5334 enableval=host
5335fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005336case "$enableval" in
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005337 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005338 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5339 case "$a_target" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005340 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5341 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5342 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5343 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00005344 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5345 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00005346 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005347 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindolae46f0962011-12-28 17:08:00 +00005348 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00005349 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5350 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005351 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5352 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005353 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005354 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005355 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005356 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Rafael Espindolaf6474d22013-05-22 00:35:47 +00005357 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005358 host) case "$llvm_cv_target_arch" in
5359 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5361 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5362 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00005363 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005364 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5365 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005366 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005368 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005369 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005370 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005371 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5372echo "$as_me: error: Can not set target to build" >&2;}
5373 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005374 esac ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005375 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5376echo "$as_me: error: Unrecognized target $a_target" >&2;}
5377 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005378 esac
5379 done
5380 ;;
5381esac
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00005382
5383# Check whether --enable-experimental-targets was given.
5384if test "${enable_experimental_targets+set}" = set; then
5385 enableval=$enable_experimental_targets;
5386else
5387 enableval=disable
5388fi
5389
5390
5391if test ${enableval} != "disable"
5392then
5393 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5394fi
5395
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005396TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5397
5398
Douglas Gregor43613a22009-06-17 00:43:20 +00005399for a_target in $TARGETS_TO_BUILD; do
5400 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5401
5402cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005403#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5404_ACEOF
5405
5406 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5407 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng8c886a42011-07-22 21:58:54 +00005408 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christophere7a9db12010-08-30 18:34:48 +00005409 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005410 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5411 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5412 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005413 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5414 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5415 fi
Eric Christophere7a9db12010-08-30 18:34:48 +00005416
5417cat >>confdefs.h <<_ACEOF
5418#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbaredf7b8b2010-08-03 14:26:17 +00005419_ACEOF
5420
5421
5422cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005423#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5424_ACEOF
5425
5426
5427cat >>confdefs.h <<_ACEOF
Evan Cheng8c886a42011-07-22 21:58:54 +00005428#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng2129f592011-07-19 06:37:02 +00005429_ACEOF
5430
5431
5432cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005433#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor43613a22009-06-17 00:43:20 +00005434_ACEOF
5435
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005436 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödin27e07c32011-03-09 17:25:46 +00005437
5438cat >>confdefs.h <<_ACEOF
5439#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5440_ACEOF
5441
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005442 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005443 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5444
5445cat >>confdefs.h <<_ACEOF
5446#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5447_ACEOF
5448
5449 fi
Douglas Gregor43613a22009-06-17 00:43:20 +00005450 fi
5451done
5452
Douglas Gregor1b731d52009-06-16 20:12:29 +00005453LLVM_ENUM_TARGETS=""
5454LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005455LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar32027202009-11-25 04:37:28 +00005456LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1b731d52009-06-16 20:12:29 +00005457for target_to_build in $TARGETS_TO_BUILD; do
5458 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattner28776602010-11-14 19:10:47 +00005459 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach0e854f32010-10-01 22:39:28 +00005460 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5461 fi
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005462 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5463 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5464 fi
Daniel Dunbar32027202009-11-25 04:37:28 +00005465 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5466 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5467 fi
Douglas Gregor1b731d52009-06-16 20:12:29 +00005468done
5469
5470
5471
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005472
Daniel Dunbar32027202009-11-25 04:37:28 +00005473
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005474
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005475# Check whether --with-optimize-option was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005476if test "${with_optimize_option+set}" = set; then
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005477 withval=$with_optimize_option;
5478else
5479 withval=default
5480fi
5481
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005482{ echo "$as_me:$LINENO: checking optimization flags" >&5
5483echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005484case "$withval" in
5485 default)
5486 case "$llvm_cv_os_type" in
Daniel Dunbard411fcb2010-04-30 17:12:26 +00005487 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +00005488 MingW) optimize_option=-O2 ;;
5489 *) optimize_option=-O3 ;;
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005490 esac ;;
5491 *) optimize_option="$withval" ;;
5492esac
5493OPTIMIZE_OPTION=$optimize_option
5494
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005495{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5496echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005497
5498
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005499# Check whether --with-extra-options was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005500if test "${with_extra_options+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005501 withval=$with_extra_options;
5502else
5503 withval=default
5504fi
5505
5506case "$withval" in
5507 default) EXTRA_OPTIONS= ;;
5508 *) EXTRA_OPTIONS=$withval ;;
5509esac
5510EXTRA_OPTIONS=$EXTRA_OPTIONS
5511
5512
Daniel Dunbar3b95df82011-06-16 22:30:41 +00005513
5514# Check whether --with-extra-ld-options was given.
5515if test "${with_extra_ld_options+set}" = set; then
5516 withval=$with_extra_ld_options;
5517else
5518 withval=default
5519fi
5520
5521case "$withval" in
5522 default) EXTRA_LD_OPTIONS= ;;
5523 *) EXTRA_LD_OPTIONS=$withval ;;
5524esac
5525EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5526
5527
Gordon Henriksene61dd672007-10-02 09:50:32 +00005528# Check whether --enable-bindings was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005529if test "${enable_bindings+set}" = set; then
Gordon Henriksene61dd672007-10-02 09:50:32 +00005530 enableval=$enable_bindings;
5531else
5532 enableval=default
5533fi
5534
5535BINDINGS_TO_BUILD=""
5536case "$enableval" in
Gordon Henriksenacc2a832007-10-02 10:14:42 +00005537 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005538 all ) BINDINGS_TO_BUILD="ocaml" ;;
5539 none | no) BINDINGS_TO_BUILD="" ;;
5540 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5541 case "$a_binding" in
5542 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005543 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5544echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5545 { (exit 1); exit 1; }; } ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005546 esac
5547 done
5548 ;;
5549esac
5550
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005551
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005552# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005553if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005554 withval=$with_ocaml_libdir;
5555else
5556 withval=auto
5557fi
5558
5559case "$withval" in
5560 auto) with_ocaml_libdir="$withval" ;;
5561 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005562 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5563echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5564 { (exit 1); exit 1; }; } ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005565esac
5566
5567
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005568# Check whether --with-clang-srcdir was given.
5569if test "${with_clang_srcdir+set}" = set; then
5570 withval=$with_clang_srcdir;
5571else
5572 withval="-"
5573fi
5574
5575case "$withval" in
Eric Christopher7f977de2012-02-02 00:19:05 +00005576 -) clang_src_root="" ;;
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005577 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5578 *) clang_src_root="$ac_pwd/$withval" ;;
5579esac
5580CLANG_SRC_ROOT=$clang_src_root
5581
5582
5583
Chandler Carruthffae4a62010-10-19 08:21:25 +00005584# Check whether --with-clang-resource-dir was given.
5585if test "${with_clang_resource_dir+set}" = set; then
5586 withval=$with_clang_resource_dir;
5587else
5588 withval=""
5589fi
5590
5591
5592cat >>confdefs.h <<_ACEOF
5593#define CLANG_RESOURCE_DIR "$withval"
5594_ACEOF
5595
5596
5597
Rafael Espindola662908c2009-12-07 00:27:35 +00005598# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005599if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola662908c2009-12-07 00:27:35 +00005600 withval=$with_c_include_dirs;
Rafael Espindolad95960b2009-11-12 05:46:09 +00005601else
5602 withval=""
5603fi
5604
5605
5606cat >>confdefs.h <<_ACEOF
5607#define C_INCLUDE_DIRS "$withval"
5608_ACEOF
5609
5610
Rafael Espindolaec217f62012-02-03 00:59:30 +00005611# Clang normally uses the system c++ headers and libraries. With this option,
5612# clang will use the ones provided by a gcc installation instead. This option should
5613# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindolad95960b2009-11-12 05:46:09 +00005614
Rafael Espindolaec217f62012-02-03 00:59:30 +00005615# Check whether --with-gcc-toolchain was given.
5616if test "${with_gcc_toolchain+set}" = set; then
5617 withval=$with_gcc_toolchain;
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005618else
5619 withval=""
5620fi
5621
5622
5623cat >>confdefs.h <<_ACEOF
Rafael Espindolaec217f62012-02-03 00:59:30 +00005624#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005625_ACEOF
5626
5627
5628
Sebastian Pope29a6c72012-04-30 20:06:58 +00005629# Check whether --with-default-sysroot was given.
5630if test "${with_default_sysroot+set}" = set; then
5631 withval=$with_default_sysroot;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00005632else
5633 withval=""
5634fi
5635
5636
5637cat >>confdefs.h <<_ACEOF
5638#define DEFAULT_SYSROOT "$withval"
5639_ACEOF
5640
5641
5642
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005643# Check whether --with-binutils-include was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005644if test "${with_binutils_include+set}" = set; then
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005645 withval=$with_binutils_include;
5646else
5647 withval=default
5648fi
5649
5650case "$withval" in
5651 default) WITH_BINUTILS_INCDIR=default ;;
5652 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005653 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5654echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5655 { (exit 1); exit 1; }; } ;;
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005656esac
5657if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5658 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5659
5660 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5661 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005662 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5663echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5664 { (exit 1); exit 1; }; };
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005665 fi
5666fi
5667
Eric Christopher65080cc2011-07-20 17:04:49 +00005668
5669# Check whether --with-bug-report-url was given.
5670if test "${with_bug_report_url+set}" = set; then
5671 withval=$with_bug_report_url;
5672else
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00005673 withval="http://llvm.org/bugs/"
Eric Christopher65080cc2011-07-20 17:04:49 +00005674fi
5675
5676
5677cat >>confdefs.h <<_ACEOF
5678#define BUG_REPORT_URL "$withval"
5679_ACEOF
5680
5681
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005682# Check whether --enable-terminfo was given.
5683if test "${enable_terminfo+set}" = set; then
5684 enableval=$enable_terminfo; case "$enableval" in
5685 yes) llvm_cv_enable_terminfo="yes" ;;
5686 no) llvm_cv_enable_terminfo="no" ;;
5687 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5688echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005689 { (exit 1); exit 1; }; } ;;
5690 esac
5691else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005692 llvm_cv_enable_terminfo="yes"
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005693fi
5694
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005695case "$llvm_cv_enable_terminfo" in
5696 yes) ENABLE_TERMINFO=1
5697 ;;
5698 no) ENABLE_TERMINFO=0
5699 ;;
5700esac
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005701
Peter Collingbournec7d437c2014-01-31 23:46:14 +00005702# Check whether --enable-libedit was given.
5703if test "${enable_libedit+set}" = set; then
5704 enableval=$enable_libedit; case "$enableval" in
5705 yes) llvm_cv_enable_libedit="yes" ;;
5706 no) llvm_cv_enable_libedit="no" ;;
5707 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5708echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5709 { (exit 1); exit 1; }; } ;;
5710 esac
5711else
5712 llvm_cv_enable_libedit="yes"
5713fi
5714
5715
Nick Lewycky86679902009-06-06 06:25:09 +00005716# Check whether --enable-libffi was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005717if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005718 enableval=$enable_libffi; case "$enableval" in
5719 yes) llvm_cv_enable_libffi="yes" ;;
5720 no) llvm_cv_enable_libffi="no" ;;
5721 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005722echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5723 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005724 esac
5725else
5726 llvm_cv_enable_libffi=no
5727fi
5728
Nick Lewycky86679902009-06-06 06:25:09 +00005729
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005730
Bob Wilson3f354702011-11-28 07:59:52 +00005731# Check whether --with-internal-prefix was given.
5732if test "${with_internal_prefix+set}" = set; then
5733 withval=$with_internal_prefix;
5734else
5735 withval=""
5736fi
5737
5738INTERNAL_PREFIX=$withval
5739
5740
5741
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005742{ echo "$as_me:$LINENO: checking for GNU make" >&5
5743echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5744if test "${llvm_cv_gnu_make_command+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005746else
5747 llvm_cv_gnu_make_command=''
5748 for a in "$MAKE" make gmake gnumake ; do
5749 if test -z "$a" ; then continue ; fi ;
5750 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5751 then
5752 llvm_cv_gnu_make_command=$a ;
5753 break;
5754 fi
5755 done
5756fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005757{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5758echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005759 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5760 ifGNUmake='' ;
5761 else
5762 ifGNUmake='#' ;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005763 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5764echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005765 fi
5766
5767
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005768{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5769echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005770LN_S=$as_ln_s
5771if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005772 { echo "$as_me:$LINENO: result: yes" >&5
5773echo "${ECHO_T}yes" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005774else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005775 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5776echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005777fi
5778
Rafael Espindolafd1355a2014-02-28 18:17:54 +00005779# Extract the first word of "nm", so it can be a program name with args.
5780set dummy nm; ac_word=$2
5781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783if test "${ac_cv_path_NM+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786 case $NM in
5787 [\\/]* | ?:[\\/]*)
5788 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5789 ;;
5790 *)
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802done
5803done
5804IFS=$as_save_IFS
5805
5806 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5807 ;;
5808esac
5809fi
5810NM=$ac_cv_path_NM
5811if test -n "$NM"; then
5812 { echo "$as_me:$LINENO: result: $NM" >&5
5813echo "${ECHO_T}$NM" >&6; }
5814else
5815 { echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6; }
5817fi
5818
5819
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005820# Extract the first word of "cmp", so it can be a program name with args.
5821set dummy cmp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824if test "${ac_cv_path_CMP+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005826else
5827 case $CMP in
5828 [\\/]* | ?:[\\/]*)
5829 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5830 ;;
5831 *)
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 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 +00005839 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005841 break 2
5842 fi
5843done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005844done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005845IFS=$as_save_IFS
5846
5847 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5848 ;;
5849esac
5850fi
5851CMP=$ac_cv_path_CMP
5852if test -n "$CMP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005853 { echo "$as_me:$LINENO: result: $CMP" >&5
5854echo "${ECHO_T}$CMP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005855else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005856 { echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005858fi
5859
5860
5861# Extract the first word of "cp", so it can be a program name with args.
5862set dummy cp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865if test "${ac_cv_path_CP+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005867else
5868 case $CP in
5869 [\\/]* | ?:[\\/]*)
5870 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5871 ;;
5872 *)
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 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 +00005880 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005882 break 2
5883 fi
5884done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005885done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005886IFS=$as_save_IFS
5887
5888 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5889 ;;
5890esac
5891fi
5892CP=$ac_cv_path_CP
5893if test -n "$CP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005894 { echo "$as_me:$LINENO: result: $CP" >&5
5895echo "${ECHO_T}$CP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005896else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005897 { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005899fi
5900
5901
5902# Extract the first word of "date", so it can be a program name with args.
5903set dummy date; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906if test "${ac_cv_path_DATE+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005908else
5909 case $DATE in
5910 [\\/]* | ?:[\\/]*)
5911 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5912 ;;
5913 *)
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 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 +00005921 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005923 break 2
5924 fi
5925done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005926done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005927IFS=$as_save_IFS
5928
5929 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5930 ;;
5931esac
5932fi
5933DATE=$ac_cv_path_DATE
5934if test -n "$DATE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005935 { echo "$as_me:$LINENO: result: $DATE" >&5
5936echo "${ECHO_T}$DATE" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005937else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005938 { echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005940fi
5941
5942
5943# Extract the first word of "find", so it can be a program name with args.
5944set dummy find; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947if test "${ac_cv_path_FIND+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005949else
5950 case $FIND in
5951 [\\/]* | ?:[\\/]*)
5952 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5953 ;;
5954 *)
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 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 +00005962 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005964 break 2
5965 fi
5966done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005967done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005968IFS=$as_save_IFS
5969
5970 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5971 ;;
5972esac
5973fi
5974FIND=$ac_cv_path_FIND
5975if test -n "$FIND"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005976 { echo "$as_me:$LINENO: result: $FIND" >&5
5977echo "${ECHO_T}$FIND" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005978else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005979 { echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005981fi
5982
5983
5984# Extract the first word of "grep", so it can be a program name with args.
5985set dummy grep; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988if test "${ac_cv_path_GREP+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005990else
5991 case $GREP in
5992 [\\/]* | ?:[\\/]*)
5993 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5994 ;;
5995 *)
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 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 +00006003 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006005 break 2
6006 fi
6007done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006008done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006009IFS=$as_save_IFS
6010
6011 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6012 ;;
6013esac
6014fi
6015GREP=$ac_cv_path_GREP
6016if test -n "$GREP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006017 { echo "$as_me:$LINENO: result: $GREP" >&5
6018echo "${ECHO_T}$GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006019else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006020 { echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006022fi
6023
6024
6025# Extract the first word of "mkdir", so it can be a program name with args.
6026set dummy mkdir; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029if test "${ac_cv_path_MKDIR+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006031else
6032 case $MKDIR in
6033 [\\/]* | ?:[\\/]*)
6034 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6035 ;;
6036 *)
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 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 +00006044 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006046 break 2
6047 fi
6048done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006049done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006050IFS=$as_save_IFS
6051
6052 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6053 ;;
6054esac
6055fi
6056MKDIR=$ac_cv_path_MKDIR
6057if test -n "$MKDIR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006058 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6059echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006060else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006061 { echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006063fi
6064
6065
6066# Extract the first word of "mv", so it can be a program name with args.
6067set dummy mv; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070if test "${ac_cv_path_MV+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006072else
6073 case $MV in
6074 [\\/]* | ?:[\\/]*)
6075 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6076 ;;
6077 *)
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 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 +00006085 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006087 break 2
6088 fi
6089done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006090done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006091IFS=$as_save_IFS
6092
6093 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6094 ;;
6095esac
6096fi
6097MV=$ac_cv_path_MV
6098if test -n "$MV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006099 { echo "$as_me:$LINENO: result: $MV" >&5
6100echo "${ECHO_T}$MV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006101else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006102 { echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006104fi
6105
6106
6107if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112if test "${ac_cv_prog_RANLIB+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006114else
6115 if test -n "$RANLIB"; then
6116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 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 +00006125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006127 break 2
6128 fi
6129done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006130done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006131IFS=$as_save_IFS
6132
6133fi
6134fi
6135RANLIB=$ac_cv_prog_RANLIB
6136if test -n "$RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006137 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6138echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006139else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006140 { echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006142fi
6143
6144
6145fi
6146if test -z "$ac_cv_prog_RANLIB"; then
6147 ac_ct_RANLIB=$RANLIB
6148 # Extract the first word of "ranlib", so it can be a program name with args.
6149set dummy ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006154else
6155 if test -n "$ac_ct_RANLIB"; then
6156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 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 +00006165 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006167 break 2
6168 fi
6169done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006170done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006171IFS=$as_save_IFS
6172
6173fi
6174fi
6175ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006177 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6178echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006179else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006180 { echo "$as_me:$LINENO: result: no" >&5
6181echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006182fi
6183
6184 if test "x$ac_ct_RANLIB" = x; then
6185 RANLIB=":"
6186 else
6187 case $cross_compiling:$ac_tool_warned in
6188yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006189{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6190whose name does not start with the host triplet. If you think this
6191configuration is useful to you, please write to autoconf@gnu.org." >&5
6192echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6193whose name does not start with the host triplet. If you think this
6194configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006195ac_tool_warned=yes ;;
6196esac
6197 RANLIB=$ac_ct_RANLIB
6198 fi
6199else
6200 RANLIB="$ac_cv_prog_RANLIB"
6201fi
6202
Torok Edwinaec06332010-01-26 08:50:50 +00006203if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6205set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208if test "${ac_cv_prog_AR+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006210else
6211 if test -n "$AR"; then
6212 ac_cv_prog_AR="$AR" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 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 +00006221 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006223 break 2
6224 fi
6225done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006226done
Torok Edwinaec06332010-01-26 08:50:50 +00006227IFS=$as_save_IFS
6228
6229fi
6230fi
6231AR=$ac_cv_prog_AR
6232if test -n "$AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006233 { echo "$as_me:$LINENO: result: $AR" >&5
6234echo "${ECHO_T}$AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006235else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006236 { echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006238fi
6239
6240
6241fi
6242if test -z "$ac_cv_prog_AR"; then
6243 ac_ct_AR=$AR
6244 # Extract the first word of "ar", so it can be a program name with args.
6245set dummy ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006250else
6251 if test -n "$ac_ct_AR"; then
6252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 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 +00006261 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006263 break 2
6264 fi
6265done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006266done
Torok Edwinaec06332010-01-26 08:50:50 +00006267IFS=$as_save_IFS
6268
6269fi
6270fi
6271ac_ct_AR=$ac_cv_prog_ac_ct_AR
6272if test -n "$ac_ct_AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006273 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6274echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006275else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006276 { echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006278fi
6279
6280 if test "x$ac_ct_AR" = x; then
6281 AR="false"
6282 else
6283 case $cross_compiling:$ac_tool_warned in
6284yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006285{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6286whose name does not start with the host triplet. If you think this
6287configuration is useful to you, please write to autoconf@gnu.org." >&5
6288echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6289whose name does not start with the host triplet. If you think this
6290configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwinaec06332010-01-26 08:50:50 +00006291ac_tool_warned=yes ;;
6292esac
6293 AR=$ac_ct_AR
6294 fi
6295else
6296 AR="$ac_cv_prog_AR"
6297fi
6298
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006299# Extract the first word of "rm", so it can be a program name with args.
6300set dummy rm; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303if test "${ac_cv_path_RM+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006305else
6306 case $RM in
6307 [\\/]* | ?:[\\/]*)
6308 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6309 ;;
6310 *)
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 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 +00006318 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006320 break 2
6321 fi
6322done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006323done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006324IFS=$as_save_IFS
6325
6326 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6327 ;;
6328esac
6329fi
6330RM=$ac_cv_path_RM
6331if test -n "$RM"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006332 { echo "$as_me:$LINENO: result: $RM" >&5
6333echo "${ECHO_T}$RM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006334else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006335 { echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006337fi
6338
6339
6340# Extract the first word of "sed", so it can be a program name with args.
6341set dummy sed; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344if test "${ac_cv_path_SED+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006346else
6347 case $SED in
6348 [\\/]* | ?:[\\/]*)
6349 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6350 ;;
6351 *)
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 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 +00006359 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006361 break 2
6362 fi
6363done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006364done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006365IFS=$as_save_IFS
6366
6367 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6368 ;;
6369esac
6370fi
6371SED=$ac_cv_path_SED
6372if test -n "$SED"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006373 { echo "$as_me:$LINENO: result: $SED" >&5
6374echo "${ECHO_T}$SED" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006375else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006376 { echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006378fi
6379
6380
6381# Extract the first word of "tar", so it can be a program name with args.
6382set dummy tar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385if test "${ac_cv_path_TAR+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006387else
6388 case $TAR in
6389 [\\/]* | ?:[\\/]*)
6390 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6391 ;;
6392 *)
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 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 +00006400 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006402 break 2
6403 fi
6404done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006405done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006406IFS=$as_save_IFS
6407
6408 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6409 ;;
6410esac
6411fi
6412TAR=$ac_cv_path_TAR
6413if test -n "$TAR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006414 { echo "$as_me:$LINENO: result: $TAR" >&5
6415echo "${ECHO_T}$TAR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006416else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006417 { echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006419fi
6420
6421
6422# Extract the first word of "pwd", so it can be a program name with args.
6423set dummy pwd; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426if test "${ac_cv_path_BINPWD+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006428else
6429 case $BINPWD in
6430 [\\/]* | ?:[\\/]*)
6431 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6432 ;;
6433 *)
6434 as_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_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
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
6449 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6450 ;;
6451esac
6452fi
6453BINPWD=$ac_cv_path_BINPWD
6454if test -n "$BINPWD"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006455 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6456echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006457else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006458 { echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006460fi
6461
6462
6463
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006464# Extract the first word of "dot", so it can be a program name with args.
6465set dummy dot; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6468if test "${ac_cv_path_DOT+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006470else
6471 case $DOT in
6472 [\\/]* | ?:[\\/]*)
6473 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6474 ;;
6475 *)
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 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 +00006483 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006485 break 2
6486 fi
6487done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006488done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006489IFS=$as_save_IFS
6490
6491 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6492 ;;
6493esac
6494fi
6495DOT=$ac_cv_path_DOT
6496if test -n "$DOT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006497 { echo "$as_me:$LINENO: result: $DOT" >&5
6498echo "${ECHO_T}$DOT" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006499else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006500 { echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006502fi
6503
6504
6505if test "$DOT" != "echo dot" ; then
6506
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006507cat >>confdefs.h <<\_ACEOF
6508#define HAVE_DOT 1
6509_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006510
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006511 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006512 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6513 fi
6514
6515cat >>confdefs.h <<_ACEOF
6516#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6517_ACEOF
6518
6519fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006520
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006521# Find a good install program. We prefer a C program (faster),
6522# so one script is as good as another. But avoid the broken or
6523# incompatible versions:
6524# SysV /etc/install, /usr/sbin/install
6525# SunOS /usr/etc/install
6526# IRIX /sbin/install
6527# AIX /bin/install
6528# AmigaOS /C/install, which installs bootblocks on floppy discs
6529# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6530# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6531# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6532# OS/2's system install, which has a completely different semantic
6533# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006534{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6535echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006536if test -z "$INSTALL"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006537if test "${ac_cv_path_install+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006539else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006545 # Account for people who put trailing slashes in PATH elements.
6546case $as_dir/ in
6547 ./ | .// | /cC/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006548 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006549 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006550 /usr/ucb/* ) ;;
6551 *)
6552 # OSF1 and SCO ODT 3.0 have their own names for install.
6553 # Don't use installbsd from OSF since it installs stuff as root
6554 # by default.
6555 for ac_prog in ginstall scoinst install; do
6556 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006557 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 +00006558 if test $ac_prog = install &&
6559 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6560 # AIX install. It has an incompatible calling convention.
6561 :
6562 elif test $ac_prog = install &&
6563 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6564 # program-specific install script used by HP pwplus--don't use.
6565 :
6566 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6568 break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006569 fi
6570 fi
6571 done
6572 done
6573 ;;
6574esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006575done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006576IFS=$as_save_IFS
6577
6578
6579fi
6580 if test "${ac_cv_path_install+set}" = set; then
6581 INSTALL=$ac_cv_path_install
6582 else
6583 # As a last resort, use the slow shell script. Don't cache a
6584 # value for INSTALL within a source directory, because that will
6585 # break other packages using the cache if that directory is
6586 # removed, or if the value is a relative name.
6587 INSTALL=$ac_install_sh
6588 fi
6589fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006590{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6591echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006592
6593# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6594# It thinks the first close brace ends the variable substitution.
6595test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6596
6597test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6598
6599test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6600
Eric Christophere3befc72010-07-22 21:13:48 +00006601case "$INSTALL" in
6602 [\\/$]* | ?:[\\/]* ) ;;
6603 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6604esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006605
6606# Extract the first word of "bzip2", so it can be a program name with args.
6607set dummy bzip2; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6610if test "${ac_cv_path_BZIP2+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006612else
6613 case $BZIP2 in
6614 [\\/]* | ?:[\\/]*)
6615 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6616 ;;
6617 *)
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 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 +00006625 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006627 break 2
6628 fi
6629done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006630done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006631IFS=$as_save_IFS
6632
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006633 ;;
6634esac
6635fi
6636BZIP2=$ac_cv_path_BZIP2
6637if test -n "$BZIP2"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006638 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6639echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006640else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006641 { echo "$as_me:$LINENO: result: no" >&5
6642echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006643fi
6644
6645
mike-me08af302010-05-06 23:45:43 +00006646# Extract the first word of "cat", so it can be a program name with args.
6647set dummy cat; ac_word=$2
6648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650if test "${ac_cv_path_CAT+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652else
6653 case $CAT in
6654 [\\/]* | ?:[\\/]*)
6655 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6656 ;;
6657 *)
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669done
6670done
6671IFS=$as_save_IFS
6672
6673 ;;
6674esac
6675fi
6676CAT=$ac_cv_path_CAT
6677if test -n "$CAT"; then
6678 { echo "$as_me:$LINENO: result: $CAT" >&5
6679echo "${ECHO_T}$CAT" >&6; }
6680else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
6683fi
6684
6685
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006686# Extract the first word of "doxygen", so it can be a program name with args.
6687set dummy doxygen; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690if test "${ac_cv_path_DOXYGEN+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006692else
6693 case $DOXYGEN in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 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 +00006705 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006707 break 2
6708 fi
6709done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006710done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006711IFS=$as_save_IFS
6712
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006713 ;;
6714esac
6715fi
6716DOXYGEN=$ac_cv_path_DOXYGEN
6717if test -n "$DOXYGEN"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006718 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6719echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006720else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006723fi
6724
6725
Daniel Dunbard1888822012-05-08 18:26:07 +00006726# Extract the first word of "groff", so it can be a program name with args.
6727set dummy groff; ac_word=$2
6728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730if test "${ac_cv_path_GROFF+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733 case $GROFF in
6734 [\\/]* | ?:[\\/]*)
6735 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6736 ;;
6737 *)
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750done
6751IFS=$as_save_IFS
6752
6753 ;;
6754esac
6755fi
6756GROFF=$ac_cv_path_GROFF
6757if test -n "$GROFF"; then
6758 { echo "$as_me:$LINENO: result: $GROFF" >&5
6759echo "${ECHO_T}$GROFF" >&6; }
6760else
6761 { echo "$as_me:$LINENO: result: no" >&5
6762echo "${ECHO_T}no" >&6; }
6763fi
6764
6765
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006766# Extract the first word of "gzip", so it can be a program name with args.
6767set dummy gzip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher77560892010-12-10 01:31:51 +00006770if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006772else
Eric Christopher77560892010-12-10 01:31:51 +00006773 case $GZIPBIN in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006774 [\\/]* | ?:[\\/]*)
Eric Christopher77560892010-12-10 01:31:51 +00006775 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006776 ;;
6777 *)
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 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 +00006785 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006787 break 2
6788 fi
6789done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006790done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006791IFS=$as_save_IFS
6792
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006793 ;;
6794esac
6795fi
Eric Christopher77560892010-12-10 01:31:51 +00006796GZIPBIN=$ac_cv_path_GZIPBIN
6797if test -n "$GZIPBIN"; then
6798 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6799echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006800else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006803fi
6804
6805
Daniel Dunbard1888822012-05-08 18:26:07 +00006806# Extract the first word of "pdfroff", so it can be a program name with args.
6807set dummy pdfroff; ac_word=$2
6808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810if test "${ac_cv_path_PDFROFF+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 case $PDFROFF in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829done
6830done
6831IFS=$as_save_IFS
6832
6833 ;;
6834esac
6835fi
6836PDFROFF=$ac_cv_path_PDFROFF
6837if test -n "$PDFROFF"; then
6838 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6839echo "${ECHO_T}$PDFROFF" >&6; }
6840else
6841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
6843fi
6844
6845
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006846# Extract the first word of "zip", so it can be a program name with args.
6847set dummy zip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850if test "${ac_cv_path_ZIP+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006852else
6853 case $ZIP in
6854 [\\/]* | ?:[\\/]*)
6855 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6856 ;;
6857 *)
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 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 +00006865 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006867 break 2
6868 fi
6869done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006870done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006871IFS=$as_save_IFS
6872
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006873 ;;
6874esac
6875fi
6876ZIP=$ac_cv_path_ZIP
6877if test -n "$ZIP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006878 { echo "$as_me:$LINENO: result: $ZIP" >&5
6879echo "${ECHO_T}$ZIP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006880else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006881 { echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006883fi
6884
6885
Peter Collingbourne82e3e372014-10-16 22:48:02 +00006886# Extract the first word of "go", so it can be a program name with args.
6887set dummy go; ac_word=$2
6888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890if test "${ac_cv_path_GO+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893 case $GO in
6894 [\\/]* | ?:[\\/]*)
6895 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6896 ;;
6897 *)
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910done
6911IFS=$as_save_IFS
6912
6913 ;;
6914esac
6915fi
6916GO=$ac_cv_path_GO
6917if test -n "$GO"; then
6918 { echo "$as_me:$LINENO: result: $GO" >&5
6919echo "${ECHO_T}$GO" >&6; }
6920else
6921 { echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6; }
6923fi
6924
6925
Peter Zotov668f9672014-10-30 08:29:45 +00006926for ac_prog in ocamlfind
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00006927do
6928 # Extract the first word of "$ac_prog", so it can be a program name with args.
6929set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Peter Zotov668f9672014-10-30 08:29:45 +00006932if test "${ac_cv_path_OCAMLFIND+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006933 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00006934else
Peter Zotov668f9672014-10-30 08:29:45 +00006935 case $OCAMLFIND in
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00006936 [\\/]* | ?:[\\/]*)
Peter Zotov668f9672014-10-30 08:29:45 +00006937 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00006938 ;;
6939 *)
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Peter Zotov668f9672014-10-30 08:29:45 +00006947 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00006949 break 2
6950 fi
6951done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006952done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00006953IFS=$as_save_IFS
6954
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00006955 ;;
6956esac
6957fi
Peter Zotov668f9672014-10-30 08:29:45 +00006958OCAMLFIND=$ac_cv_path_OCAMLFIND
6959if test -n "$OCAMLFIND"; then
6960 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6961echo "${ECHO_T}$OCAMLFIND" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00006962else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006963 { echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00006965fi
6966
6967
Peter Zotov668f9672014-10-30 08:29:45 +00006968 test -n "$OCAMLFIND" && break
Gordon Henriksenc1269c82008-03-10 15:49:38 +00006969done
6970
Daniel Dunbard1888822012-05-08 18:26:07 +00006971for ac_prog in gas as
6972do
6973 # Extract the first word of "$ac_prog", so it can be a program name with args.
6974set dummy $ac_prog; ac_word=$2
6975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977if test "${ac_cv_path_GAS+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980 case $GAS in
6981 [\\/]* | ?:[\\/]*)
6982 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6983 ;;
6984 *)
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997done
6998IFS=$as_save_IFS
6999
7000 ;;
7001esac
7002fi
7003GAS=$ac_cv_path_GAS
7004if test -n "$GAS"; then
7005 { echo "$as_me:$LINENO: result: $GAS" >&5
7006echo "${ECHO_T}$GAS" >&6; }
7007else
7008 { echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6; }
7010fi
7011
7012
7013 test -n "$GAS" && break
7014done
7015
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007016
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007017{ echo "$as_me:$LINENO: checking for linker version" >&5
7018echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7019if test "${llvm_cv_link_version+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022
Joerg Sonnenbergere6aafbb2014-05-28 15:12:55 +00007023 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007024
7025 # Check for ld64.
7026 if (echo "$version_string" | grep -q "ld64"); then
Charles Davise56294d2012-02-28 02:55:41 +00007027 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007028 else
7029 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7030 fi
7031
7032fi
7033{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7034echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7035
7036cat >>confdefs.h <<_ACEOF
7037#define HOST_LINK_VERSION "$llvm_cv_link_version"
7038_ACEOF
7039
7040
7041
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007042
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007043{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7044echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7045if test "${llvm_cv_link_use_r+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007047else
7048 ac_ext=c
7049ac_cpp='$CPP $CPPFLAGS'
7050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052ac_compiler_gnu=$ac_cv_c_compiler_gnu
7053
7054 oldcflags="$CFLAGS"
7055 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007056 cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h. */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007061/* end confdefs.h. */
7062
7063int
7064main ()
7065{
Dan Gohmana1c94042010-04-25 00:12:20 +00007066
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007067 ;
7068 return 0;
7069}
7070_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007071rm -f conftest.$ac_objext conftest$ac_exeext
7072if { (ac_try="$ac_link"
7073case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076esac
7077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_link") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7086 { (case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089esac
7090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_try") 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest$ac_exeext'
7096 { (case "(($ac_try" in
7097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098 *) ac_try_echo=$ac_try;;
7099esac
7100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101 (eval "$ac_try") 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007105 llvm_cv_link_use_r=yes
7106else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007107 echo "$as_me: failed program was:" >&5
7108sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 llvm_cv_link_use_r=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007111fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007112
Bill Wendling02b47d92009-04-18 11:20:33 +00007113rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007114 conftest$ac_exeext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007115 CFLAGS="$oldcflags"
7116 ac_ext=c
7117ac_cpp='$CPP $CPPFLAGS'
7118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120ac_compiler_gnu=$ac_cv_c_compiler_gnu
7121
7122
7123fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007124{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7125echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007126if test "$llvm_cv_link_use_r" = yes ; then
7127
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007128cat >>confdefs.h <<\_ACEOF
7129#define HAVE_LINK_R 1
7130_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007131
7132 fi
7133
7134
Bob Wilson8d7e6902013-08-02 22:51:11 +00007135{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7136echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007137if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007139else
7140 ac_ext=c
7141ac_cpp='$CPP $CPPFLAGS'
7142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
7146 oldcflags="$CFLAGS"
Bob Wilson8d7e6902013-08-02 22:51:11 +00007147 CFLAGS="$CFLAGS -rdynamic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007148 cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007153/* end confdefs.h. */
7154
7155int
7156main ()
7157{
Dan Gohmana1c94042010-04-25 00:12:20 +00007158
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007159 ;
7160 return 0;
7161}
7162_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007163rm -f conftest.$ac_objext conftest$ac_exeext
7164if { (ac_try="$ac_link"
7165case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168esac
7169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_link") 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7178 { (case "(($ac_try" in
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7181esac
7182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_try") 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191esac
7192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_try") 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007197 llvm_cv_link_use_export_dynamic=yes
7198else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007199 echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 llvm_cv_link_use_export_dynamic=no
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007203fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007204
Bill Wendling02b47d92009-04-18 11:20:33 +00007205rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007206 conftest$ac_exeext conftest.$ac_ext
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007207 CFLAGS="$oldcflags"
7208 ac_ext=c
7209ac_cpp='$CPP $CPPFLAGS'
7210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212ac_compiler_gnu=$ac_cv_c_compiler_gnu
7213
7214
7215fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007216{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7217echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007218if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7219
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007220cat >>confdefs.h <<\_ACEOF
7221#define HAVE_LINK_EXPORT_DYNAMIC 1
7222_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007223
7224 fi
7225
7226
Dan Gohmanb7edb422010-06-01 14:56:56 +00007227{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7228echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7229if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanfe051a52010-04-16 22:59:06 +00007230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 ac_ext=c
7233ac_cpp='$CPP $CPPFLAGS'
7234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237
7238 oldcflags="$CFLAGS"
7239
7240 # The following code is from the autoconf manual,
7241 # "11.13: Limitations of Usual Tools".
7242 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7243 # Use mktemp if possible; otherwise fall back on mkdir,
7244 # with $RANDOM to make collisions less likely.
7245 : ${TMPDIR=/tmp}
7246 {
7247 tmp=`
7248 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7249 ` &&
7250 test -n "$tmp" && test -d "$tmp"
7251 } || {
7252 tmp=$TMPDIR/foo$$-$RANDOM
7253 (umask 077 && mkdir "$tmp")
7254 } || exit $?
7255
Dan Gohmanb7edb422010-06-01 14:56:56 +00007256 echo "{" > "$tmp/export.map"
7257 echo " global: main;" >> "$tmp/export.map"
7258 echo " local: *;" >> "$tmp/export.map"
7259 echo "};" >> "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007260
Dan Gohmanb7edb422010-06-01 14:56:56 +00007261 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007262 cat >conftest.$ac_ext <<_ACEOF
7263/* confdefs.h. */
7264_ACEOF
7265cat confdefs.h >>conftest.$ac_ext
7266cat >>conftest.$ac_ext <<_ACEOF
7267/* end confdefs.h. */
7268
7269int
7270main ()
7271{
Dan Gohmana1c94042010-04-25 00:12:20 +00007272
Dan Gohmanfe051a52010-04-16 22:59:06 +00007273 ;
7274 return 0;
7275}
7276_ACEOF
7277rm -f conftest.$ac_objext conftest$ac_exeext
7278if { (ac_try="$ac_link"
7279case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282esac
7283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
7291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7292 { (case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7295esac
7296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_try") 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; } &&
7301 { ac_try='test -s conftest$ac_exeext'
7302 { (case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7305esac
7306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_try") 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
Dan Gohmanb7edb422010-06-01 14:56:56 +00007311 llvm_cv_link_use_version_script=yes
Dan Gohmanfe051a52010-04-16 22:59:06 +00007312else
7313 echo "$as_me: failed program was:" >&5
7314sed 's/^/| /' conftest.$ac_ext >&5
7315
Dan Gohmanc6998312010-06-01 16:22:27 +00007316 llvm_cv_link_use_version_script=no
Dan Gohmanfe051a52010-04-16 22:59:06 +00007317fi
7318
7319rm -f core conftest.err conftest.$ac_objext \
7320 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanb7edb422010-06-01 14:56:56 +00007321 rm "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007322 rmdir "$tmp"
7323 CFLAGS="$oldcflags"
7324 ac_ext=c
7325ac_cpp='$CPP $CPPFLAGS'
7326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329
7330
7331fi
Dan Gohmanb7edb422010-06-01 14:56:56 +00007332{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7333echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7334if test "$llvm_cv_link_use_version_script" = yes ; then
7335 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanfe051a52010-04-16 22:59:06 +00007336
7337 fi
7338
7339
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007340
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007341{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7342echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7343if test "${ac_cv_path_GREP+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346 # Extract the first word of "grep ggrep" to use in msg output
7347if test -z "$GREP"; then
7348set dummy grep ggrep; ac_prog_name=$2
7349if test "${ac_cv_path_GREP+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352 ac_path_GREP_found=false
7353# Loop through the user's path and test for each of PROGNAME-LIST
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_prog in grep ggrep; do
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7362 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7363 # Check for GNU ac_path_GREP and select it if it is found.
7364 # Check for GNU $ac_path_GREP
7365case `"$ac_path_GREP" --version 2>&1` in
7366*GNU*)
7367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7368*)
7369 ac_count=0
7370 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7371 while :
7372 do
7373 cat "conftest.in" "conftest.in" >"conftest.tmp"
7374 mv "conftest.tmp" "conftest.in"
7375 cp "conftest.in" "conftest.nl"
7376 echo 'GREP' >> "conftest.nl"
7377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7379 ac_count=`expr $ac_count + 1`
7380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7381 # Best one so far, save it but keep looking for a better one
7382 ac_cv_path_GREP="$ac_path_GREP"
7383 ac_path_GREP_max=$ac_count
7384 fi
7385 # 10*(2^10) chars as input seems more than enough
7386 test $ac_count -gt 10 && break
7387 done
7388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7389esac
7390
7391
7392 $ac_path_GREP_found && break 3
7393 done
7394done
7395
7396done
7397IFS=$as_save_IFS
7398
7399
7400fi
7401
7402GREP="$ac_cv_path_GREP"
7403if test -z "$GREP"; then
7404 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7405echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7406 { (exit 1); exit 1; }; }
7407fi
7408
7409else
7410 ac_cv_path_GREP=$GREP
7411fi
7412
7413
7414fi
7415{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7416echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7417 GREP="$ac_cv_path_GREP"
7418
7419
7420{ echo "$as_me:$LINENO: checking for egrep" >&5
7421echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7422if test "${ac_cv_path_EGREP+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424else
7425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7426 then ac_cv_path_EGREP="$GREP -E"
7427 else
7428 # Extract the first word of "egrep" to use in msg output
7429if test -z "$EGREP"; then
7430set dummy egrep; ac_prog_name=$2
7431if test "${ac_cv_path_EGREP+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433else
7434 ac_path_EGREP_found=false
7435# Loop through the user's path and test for each of PROGNAME-LIST
7436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_prog in egrep; do
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7444 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7445 # Check for GNU ac_path_EGREP and select it if it is found.
7446 # Check for GNU $ac_path_EGREP
7447case `"$ac_path_EGREP" --version 2>&1` in
7448*GNU*)
7449 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7450*)
7451 ac_count=0
7452 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7453 while :
7454 do
7455 cat "conftest.in" "conftest.in" >"conftest.tmp"
7456 mv "conftest.tmp" "conftest.in"
7457 cp "conftest.in" "conftest.nl"
7458 echo 'EGREP' >> "conftest.nl"
7459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7461 ac_count=`expr $ac_count + 1`
7462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7463 # Best one so far, save it but keep looking for a better one
7464 ac_cv_path_EGREP="$ac_path_EGREP"
7465 ac_path_EGREP_max=$ac_count
7466 fi
7467 # 10*(2^10) chars as input seems more than enough
7468 test $ac_count -gt 10 && break
7469 done
7470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7471esac
7472
7473
7474 $ac_path_EGREP_found && break 3
7475 done
7476done
7477
7478done
7479IFS=$as_save_IFS
7480
7481
7482fi
7483
7484EGREP="$ac_cv_path_EGREP"
7485if test -z "$EGREP"; then
7486 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7487echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7488 { (exit 1); exit 1; }; }
7489fi
7490
7491else
7492 ac_cv_path_EGREP=$EGREP
7493fi
7494
7495
7496 fi
7497fi
7498{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7499echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7500 EGREP="$ac_cv_path_EGREP"
7501
7502
7503{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7504echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7505if test "${ac_cv_header_stdc+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508 cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
7514#include <stdlib.h>
7515#include <stdarg.h>
7516#include <string.h>
7517#include <float.h>
7518
7519int
7520main ()
7521{
7522
7523 ;
7524 return 0;
7525}
7526_ACEOF
7527rm -f conftest.$ac_objext
7528if { (ac_try="$ac_compile"
7529case "(($ac_try" in
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7532esac
7533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7534 (eval "$ac_compile") 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7542 { (case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545esac
7546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_try") 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; } &&
7551 { ac_try='test -s conftest.$ac_objext'
7552 { (case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555esac
7556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_try") 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 ac_cv_header_stdc=yes
7562else
7563 echo "$as_me: failed program was:" >&5
7564sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_cv_header_stdc=no
7567fi
7568
7569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570
7571if test $ac_cv_header_stdc = yes; then
7572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7573 cat >conftest.$ac_ext <<_ACEOF
7574/* confdefs.h. */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h. */
7579#include <string.h>
7580
7581_ACEOF
7582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7583 $EGREP "memchr" >/dev/null 2>&1; then
7584 :
7585else
7586 ac_cv_header_stdc=no
7587fi
7588rm -f conftest*
7589
7590fi
7591
7592if test $ac_cv_header_stdc = yes; then
7593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7594 cat >conftest.$ac_ext <<_ACEOF
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
7600#include <stdlib.h>
7601
7602_ACEOF
7603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7604 $EGREP "free" >/dev/null 2>&1; then
7605 :
7606else
7607 ac_cv_header_stdc=no
7608fi
7609rm -f conftest*
7610
7611fi
7612
7613if test $ac_cv_header_stdc = yes; then
7614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7615 if test "$cross_compiling" = yes; then
7616 :
7617else
7618 cat >conftest.$ac_ext <<_ACEOF
7619/* confdefs.h. */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h. */
7624#include <ctype.h>
7625#include <stdlib.h>
7626#if ((' ' & 0x0FF) == 0x020)
7627# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7628# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7629#else
7630# define ISLOWER(c) \
7631 (('a' <= (c) && (c) <= 'i') \
7632 || ('j' <= (c) && (c) <= 'r') \
7633 || ('s' <= (c) && (c) <= 'z'))
7634# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7635#endif
7636
7637#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7638int
7639main ()
7640{
7641 int i;
7642 for (i = 0; i < 256; i++)
7643 if (XOR (islower (i), ISLOWER (i))
7644 || toupper (i) != TOUPPER (i))
7645 return 2;
7646 return 0;
7647}
7648_ACEOF
7649rm -f conftest$ac_exeext
7650if { (ac_try="$ac_link"
7651case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654esac
7655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_link") 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7660 { (case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663esac
7664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_try") 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 :
7670else
7671 echo "$as_me: program exited with status $ac_status" >&5
7672echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675( exit $ac_status )
7676ac_cv_header_stdc=no
7677fi
7678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7679fi
7680
7681
7682fi
7683fi
7684{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7685echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7686if test $ac_cv_header_stdc = yes; then
7687
7688cat >>confdefs.h <<\_ACEOF
7689#define STDC_HEADERS 1
7690_ACEOF
7691
7692fi
7693
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007694# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7705 inttypes.h stdint.h unistd.h
7706do
7707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713 cat >conftest.$ac_ext <<_ACEOF
7714/* confdefs.h. */
7715_ACEOF
7716cat confdefs.h >>conftest.$ac_ext
7717cat >>conftest.$ac_ext <<_ACEOF
7718/* end confdefs.h. */
7719$ac_includes_default
7720
7721#include <$ac_header>
7722_ACEOF
7723rm -f conftest.$ac_objext
7724if { (ac_try="$ac_compile"
7725case "(($ac_try" in
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7728esac
7729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7730 (eval "$ac_compile") 2>conftest.er1
7731 ac_status=$?
7732 grep -v '^ *+' conftest.er1 >conftest.err
7733 rm -f conftest.er1
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741esac
7742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; } &&
7747 { ac_try='test -s conftest.$ac_objext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
7752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 eval "$as_ac_Header=yes"
7758else
7759 echo "$as_me: failed program was:" >&5
7760sed 's/^/| /' conftest.$ac_ext >&5
7761
7762 eval "$as_ac_Header=no"
7763fi
7764
7765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766fi
7767ac_res=`eval echo '${'$as_ac_Header'}'`
7768 { echo "$as_me:$LINENO: result: $ac_res" >&5
7769echo "${ECHO_T}$ac_res" >&6; }
7770if test `eval echo '${'$as_ac_Header'}'` = yes; then
7771 cat >>confdefs.h <<_ACEOF
7772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7773_ACEOF
7774
7775fi
7776
7777done
7778
7779
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007780
Rafael Espindolafd1355a2014-02-28 18:17:54 +00007781for ac_header in errno.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007782do
7783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789fi
7790ac_res=`eval echo '${'$as_ac_Header'}'`
7791 { echo "$as_me:$LINENO: result: $ac_res" >&5
7792echo "${ECHO_T}$ac_res" >&6; }
7793else
7794 # Is the header compilable?
7795{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7797cat >conftest.$ac_ext <<_ACEOF
7798/* confdefs.h. */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h. */
7803$ac_includes_default
7804#include <$ac_header>
7805_ACEOF
7806rm -f conftest.$ac_objext
7807if { (ac_try="$ac_compile"
7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821 { (case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824esac
7825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_try") 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest.$ac_objext'
7831 { (case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_try") 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_header_compiler=yes
7841else
7842 echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 ac_header_compiler=no
7846fi
7847
7848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7850echo "${ECHO_T}$ac_header_compiler" >&6; }
7851
7852# Is the header present?
7853{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7855cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
7861#include <$ac_header>
7862_ACEOF
7863if { (ac_try="$ac_cpp conftest.$ac_ext"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7879 else
7880 ac_cpp_err=
7881 fi
7882else
7883 ac_cpp_err=yes
7884fi
7885if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7887else
7888 echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_header_preproc=no
7892fi
7893
7894rm -f conftest.err conftest.$ac_ext
7895{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7896echo "${ECHO_T}$ac_header_preproc" >&6; }
7897
7898# So? What about this header?
7899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900 yes:no: )
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7905 ac_header_preproc=yes
7906 ;;
7907 no:yes:* )
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7915echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7920 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +00007921## ------------------------------------ ##
7922## Report this to http://llvm.org/bugs/ ##
7923## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007924_ASBOX
7925 ) | sed "s/^/$as_me: WARNING: /" >&2
7926 ;;
7927esac
7928{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932else
7933 eval "$as_ac_Header=\$ac_header_preproc"
7934fi
7935ac_res=`eval echo '${'$as_ac_Header'}'`
7936 { echo "$as_me:$LINENO: result: $ac_res" >&5
7937echo "${ECHO_T}$ac_res" >&6; }
7938
7939fi
7940if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00007941 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +00007943_ACEOF
7944
7945fi
7946
7947done
7948
7949
Rafael Espindolafd1355a2014-02-28 18:17:54 +00007950case "$llvm_cv_os_type" in
7951 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7952 Darwin) llvm_shlib_ext=.dylib ;;
7953 *) llvm_shlib_ext=.so ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007954esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007955
Reid Spencera40c6872004-11-29 12:29:58 +00007956
7957cat >>confdefs.h <<_ACEOF
Rafael Espindolafd1355a2014-02-28 18:17:54 +00007958#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
Reid Spencera40c6872004-11-29 12:29:58 +00007959_ACEOF
7960
7961
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007962{ echo "$as_me:$LINENO: checking tool compatibility" >&5
7963echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00007964
Reid Spencerca06c8e2004-12-08 23:07:27 +00007965ICC=no
7966IXX=no
7967case $CC in
7968 icc*|icpc*)
7969 ICC=yes
7970 IXX=yes
7971 ;;
7972 *)
7973 ;;
7974esac
7975
Duraid Madina8604de82006-02-15 07:57:42 +00007976if test "$GCC" != "yes" && test "$ICC" != "yes"
7977then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007978 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7979echo "$as_me: error: gcc|icc required but not found" >&2;}
7980 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +00007981fi
7982
7983if test "$GXX" != "yes" && test "$IXX" != "yes"
7984then
Eric Christopher8d842da2010-12-08 02:02:14 +00007985 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7986echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007987 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +00007988fi
7989
Reid Spencerca06c8e2004-12-08 23:07:27 +00007990if test "$GCC" = "yes"
7991then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007992 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +00007993
7994 /* confdefs.h. */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h. */
7999
8000 #if !defined(__GNUC__) || __GNUC__ < 3
8001 #error Unsupported GCC version
8002 #endif
8003
Chris Lattnere115fb52008-02-05 19:43:53 +00008004
8005_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008006rm -f conftest.$ac_objext
8007if { (ac_try="$ac_compile"
8008case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011esac
8012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_compile") 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8021 { (case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024esac
8025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_try") 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest.$ac_objext'
8031 { (case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034esac
8035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_try") 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 :
Chris Lattnere115fb52008-02-05 19:43:53 +00008041else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008042 echo "$as_me: failed program was:" >&5
8043sed 's/^/| /' conftest.$ac_ext >&5
8044
8045 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8046echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8047 { (exit 1); exit 1; }; }
Chris Lattnere115fb52008-02-05 19:43:53 +00008048fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008049
Chris Lattnere115fb52008-02-05 19:43:53 +00008050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00008051fi
8052
8053if test -z "$llvm_cv_gnu_make_command"
8054then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008055 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8056echo "$as_me: error: GNU Make required but not found" >&2;}
8057 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00008058fi
8059
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008060{ echo "$as_me:$LINENO: result: ok" >&5
8061echo "${ECHO_T}ok" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00008062
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008063{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
8064echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithf89ffcd2013-02-08 22:55:10 +00008065NO_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 +00008066
Richard Smithf89ffcd2013-02-08 22:55:10 +00008067NO_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 +00008068
Rafael Espindola42e94d12012-02-28 23:32:06 +00008069COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8070
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008071
8072NO_UNINITIALIZED=
8073NO_MAYBE_UNINITIALIZED=
David Greene9ff8d472013-01-09 22:11:13 +00008074if test "$GXX" = "yes"
8075then
Richard Smithf89ffcd2013-02-08 22:55:10 +00008076 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 +00008077
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008078 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greene9ff8d472013-01-09 22:11:13 +00008079 then
Richard Smithf89ffcd2013-02-08 22:55:10 +00008080 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +00008081
David Greene9ff8d472013-01-09 22:11:13 +00008082 fi
David Greene9ff8d472013-01-09 22:11:13 +00008083fi
Eric Christopher65ec83b2014-11-05 00:35:15 +00008084
8085no_comment=
8086llvm_cv_old_cxxflags="$CXXFLAGS"
8087CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8088cat >conftest.$ac_ext <<_ACEOF
8089
8090 /* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h. */
8095// Comment \o\
8096// Another comment
8097int main() { return 0; }
8098
8099
8100_ACEOF
8101rm -f conftest.$ac_objext
8102if { (ac_try="$ac_compile"
8103case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106esac
8107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_compile") 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8116 { (case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119esac
8120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_try") 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129esac
8130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_try") 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135
8136 no_comment=-Wno-comment
8137
8138else
8139 echo "$as_me: failed program was:" >&5
8140sed 's/^/| /' conftest.$ac_ext >&5
8141
8142
8143fi
8144
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146NO_COMMENT=$no_comment
8147
8148CXXFLAGS="$llvm_cv_old_cxxflags"
8149
8150{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8151echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
David Greene9ff8d472013-01-09 22:11:13 +00008152
Julien Lerougeb614dd32009-10-26 20:00:35 +00008153
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008154# Check whether --with-python was given.
8155if test "${with_python+set}" = set; then
8156 withval=$with_python; PYTHON="$withval"
8157fi
8158
8159
8160if test -n "$PYTHON" && test -x "$PYTHON" ; then
8161 { echo "$as_me:$LINENO: checking for python" >&5
8162echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8163 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8164echo "${ECHO_T}user defined: $with_python" >&6; }
8165else
8166 if test -n "$PYTHON" ; then
8167 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8168echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8169 fi
8170
Rafael Espindola21a400852014-12-12 15:29:31 +00008171 # Extract the first word of "python python2 python27", so it can be a program name with args.
8172set dummy python python2 python27; ac_word=$2
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8175if test "${ac_cv_path_PYTHON+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177else
8178 case $PYTHON in
8179 [\\/]* | ?:[\\/]*)
8180 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8181 ;;
8182 *)
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194done
8195done
8196IFS=$as_save_IFS
8197
8198 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8199echo "${ECHO_T}not found" >&6; }
Rafael Espindola21a400852014-12-12 15:29:31 +00008200 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8201echo "$as_me: error: could not find python 2.7 or higher" >&2;}
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008202 { (exit 1); exit 1; }; }"
8203 ;;
8204esac
8205fi
8206PYTHON=$ac_cv_path_PYTHON
8207if test -n "$PYTHON"; then
8208 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8209echo "${ECHO_T}$PYTHON" >&6; }
8210else
8211 { echo "$as_me:$LINENO: result: no" >&5
8212echo "${ECHO_T}no" >&6; }
8213fi
8214
8215
8216fi
8217
Rafael Espindola21a400852014-12-12 15:29:31 +00008218{ echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8219echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
Bill Wendling58463e4e82013-10-12 08:42:59 +00008220ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008221ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8222ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8223ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
Bill Wendling58463e4e82013-10-12 08:42:59 +00008224if test "$ac_python_version_major" -gt "2" || \
8225 (test "$ac_python_version_major" -eq "2" && \
Rafael Espindola21a400852014-12-12 15:29:31 +00008226 test "$ac_python_version_minor" -ge "7") ; then
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008227 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8228echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8229else
8230 { echo "$as_me:$LINENO: result: not found" >&5
8231echo "${ECHO_T}not found" >&6; }
Rafael Espindola21a400852014-12-12 15:29:31 +00008232 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008233See \`config.log' for more details." >&5
Rafael Espindola21a400852014-12-12 15:29:31 +00008234echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008235See \`config.log' for more details." >&2;}
8236 { (exit 1); exit 1; }; }
8237fi
8238
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00008239
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008240
8241{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
8242echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8243if test "${ac_cv_lib_m_sin+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerec4a7f522006-01-19 08:31:08 +00008245else
8246 ac_check_lib_save_LIBS=$LIBS
8247LIBS="-lm $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008248cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerec4a7f522006-01-19 08:31:08 +00008253/* end confdefs.h. */
8254
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008255/* Override any GCC internal prototype to avoid an error.
8256 Use char because int might match the return type of a GCC
8257 builtin and then its argument prototype would still apply. */
Reid Spencerec4a7f522006-01-19 08:31:08 +00008258#ifdef __cplusplus
8259extern "C"
8260#endif
Reid Spencerec4a7f522006-01-19 08:31:08 +00008261char sin ();
8262int
8263main ()
8264{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008265return sin ();
Reid Spencerec4a7f522006-01-19 08:31:08 +00008266 ;
8267 return 0;
8268}
8269_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008270rm -f conftest.$ac_objext conftest$ac_exeext
8271if { (ac_try="$ac_link"
8272case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275esac
8276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_link") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8285 { (case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288esac
8289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_try") 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
Reid Spencerec4a7f522006-01-19 08:31:08 +00008304 ac_cv_lib_m_sin=yes
8305else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008306 echo "$as_me: failed program was:" >&5
8307sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 ac_cv_lib_m_sin=no
Reid Spencerec4a7f522006-01-19 08:31:08 +00008310fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008311
Bill Wendling02b47d92009-04-18 11:20:33 +00008312rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008313 conftest$ac_exeext conftest.$ac_ext
Reid Spencerec4a7f522006-01-19 08:31:08 +00008314LIBS=$ac_check_lib_save_LIBS
8315fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008316{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8317echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8318if test $ac_cv_lib_m_sin = yes; then
Reid Spencerec4a7f522006-01-19 08:31:08 +00008319 cat >>confdefs.h <<_ACEOF
8320#define HAVE_LIBM 1
8321_ACEOF
8322
8323 LIBS="-lm $LIBS"
8324
8325fi
8326
Jeff Cohenc5e5b272007-01-12 18:22:38 +00008327if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008328
8329{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8330echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8331if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +00008333else
8334 ac_check_lib_save_LIBS=$LIBS
8335LIBS="-limagehlp $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008336cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h. */
8338_ACEOF
8339cat confdefs.h >>conftest.$ac_ext
8340cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +00008341/* end confdefs.h. */
8342
Reid Spencer187b4ad2006-06-01 19:03:21 +00008343
Reid Spencera16b9862006-06-01 16:55:59 +00008344int
8345main ()
8346{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008347return main ();
Reid Spencera16b9862006-06-01 16:55:59 +00008348 ;
8349 return 0;
8350}
8351_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008352rm -f conftest.$ac_objext conftest$ac_exeext
8353if { (ac_try="$ac_link"
8354case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357esac
8358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_link") 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380esac
8381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_try") 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +00008386 ac_cv_lib_imagehlp_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +00008387else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008388 echo "$as_me: failed program was:" >&5
8389sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 ac_cv_lib_imagehlp_main=no
Reid Spencera16b9862006-06-01 16:55:59 +00008392fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008393
Bill Wendling02b47d92009-04-18 11:20:33 +00008394rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008395 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +00008396LIBS=$ac_check_lib_save_LIBS
8397fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008398{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8399echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8400if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +00008401 cat >>confdefs.h <<_ACEOF
8402#define HAVE_LIBIMAGEHLP 1
8403_ACEOF
8404
8405 LIBS="-limagehlp $LIBS"
8406
8407fi
8408
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008409
8410{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8411echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8412if test "${ac_cv_lib_psapi_main+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +00008414else
8415 ac_check_lib_save_LIBS=$LIBS
8416LIBS="-lpsapi $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008417cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +00008422/* end confdefs.h. */
8423
Reid Spencer187b4ad2006-06-01 19:03:21 +00008424
Reid Spencera16b9862006-06-01 16:55:59 +00008425int
8426main ()
8427{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008428return main ();
Reid Spencera16b9862006-06-01 16:55:59 +00008429 ;
8430 return 0;
8431}
8432_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008433rm -f conftest.$ac_objext conftest$ac_exeext
8434if { (ac_try="$ac_link"
8435case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438esac
8439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_link") 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451esac
8452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461esac
8462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +00008467 ac_cv_lib_psapi_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +00008468else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008469 echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_cv_lib_psapi_main=no
Reid Spencera16b9862006-06-01 16:55:59 +00008473fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008474
Bill Wendling02b47d92009-04-18 11:20:33 +00008475rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008476 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +00008477LIBS=$ac_check_lib_save_LIBS
8478fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008479{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8480echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8481if test $ac_cv_lib_psapi_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +00008482 cat >>confdefs.h <<_ACEOF
8483#define HAVE_LIBPSAPI 1
8484_ACEOF
8485
8486 LIBS="-lpsapi $LIBS"
8487
8488fi
8489
David Majnemer61eae2e2013-10-07 01:00:07 +00008490
8491{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8492echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8493if test "${ac_cv_lib_shell32_main+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496 ac_check_lib_save_LIBS=$LIBS
8497LIBS="-lshell32 $LIBS"
8498cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h. */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h. */
8504
8505
8506int
8507main ()
8508{
8509return main ();
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514rm -f conftest.$ac_objext conftest$ac_exeext
8515if { (ac_try="$ac_link"
8516case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519esac
8520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_link") 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532esac
8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_try") 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542esac
8543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_cv_lib_shell32_main=yes
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_cv_lib_shell32_main=no
8554fi
8555
8556rm -f core conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558LIBS=$ac_check_lib_save_LIBS
8559fi
8560{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8561echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8562if test $ac_cv_lib_shell32_main = yes; then
8563 cat >>confdefs.h <<_ACEOF
8564#define HAVE_LIBSHELL32 1
8565_ACEOF
8566
8567 LIBS="-lshell32 $LIBS"
8568
8569fi
8570
Reid Spencera16b9862006-06-01 16:55:59 +00008571fi
Reid Spencer1aa7d052005-07-12 15:24:20 +00008572
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008573{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8574echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8575if test "${ac_cv_search_dlopen+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00008577else
8578 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008579cat >conftest.$ac_ext <<_ACEOF
8580/* confdefs.h. */
8581_ACEOF
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00008584/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00008585
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008586/* Override any GCC internal prototype to avoid an error.
8587 Use char because int might match the return type of a GCC
8588 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +00008589#ifdef __cplusplus
8590extern "C"
8591#endif
John Criswell3ef61af2003-06-30 21:59:07 +00008592char dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +00008593int
8594main ()
8595{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008596return dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +00008597 ;
8598 return 0;
8599}
8600_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008601for ac_lib in '' dl; do
8602 if test -z "$ac_lib"; then
8603 ac_res="none required"
8604 else
8605 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +00008606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008607 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008608 rm -f conftest.$ac_objext conftest$ac_exeext
8609if { (ac_try="$ac_link"
8610case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8613esac
8614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_link") 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8623 { (case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626esac
8627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_try") 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest$ac_exeext'
8633 { (case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_try") 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008642 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008643else
8644 echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647
John Criswell3ef61af2003-06-30 21:59:07 +00008648fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008649
Bill Wendling02b47d92009-04-18 11:20:33 +00008650rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008651 conftest$ac_exeext
8652 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008653 break
John Criswell3ef61af2003-06-30 21:59:07 +00008654fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008655done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008656if test "${ac_cv_search_dlopen+set}" = set; then
8657 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008658else
8659 ac_cv_search_dlopen=no
8660fi
8661rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00008662LIBS=$ac_func_search_save_LIBS
8663fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008664{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8665echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008666ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008667if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +00008669
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00008670
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008671cat >>confdefs.h <<\_ACEOF
8672#define HAVE_DLOPEN 1
8673_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00008674
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00008675HAVE_DLOPEN='1'
8676
8677
John Criswell3ef61af2003-06-30 21:59:07 +00008678else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008679 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8680echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00008681fi
8682
8683
Chandler Carruthef7f9682013-01-04 23:19:55 +00008684{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8685echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8686if test "${ac_cv_search_clock_gettime+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 ac_func_search_save_LIBS=$LIBS
8690cat >conftest.$ac_ext <<_ACEOF
8691/* confdefs.h. */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h. */
8696
8697/* Override any GCC internal prototype to avoid an error.
8698 Use char because int might match the return type of a GCC
8699 builtin and then its argument prototype would still apply. */
8700#ifdef __cplusplus
8701extern "C"
8702#endif
8703char clock_gettime ();
8704int
8705main ()
8706{
8707return clock_gettime ();
8708 ;
8709 return 0;
8710}
8711_ACEOF
8712for ac_lib in '' rt; do
8713 if test -z "$ac_lib"; then
8714 ac_res="none required"
8715 else
8716 ac_res=-l$ac_lib
8717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8718 fi
8719 rm -f conftest.$ac_objext conftest$ac_exeext
8720if { (ac_try="$ac_link"
8721case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724esac
8725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_link") 2>conftest.er1
8727 ac_status=$?
8728 grep -v '^ *+' conftest.er1 >conftest.err
8729 rm -f conftest.er1
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8734 { (case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8737esac
8738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_try") 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (case "(($ac_try" in
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8747esac
8748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_try") 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_search_clock_gettime=$ac_res
8754else
8755 echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
8758
8759fi
8760
8761rm -f core conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext
8763 if test "${ac_cv_search_clock_gettime+set}" = set; then
8764 break
8765fi
8766done
8767if test "${ac_cv_search_clock_gettime+set}" = set; then
8768 :
8769else
8770 ac_cv_search_clock_gettime=no
8771fi
8772rm conftest.$ac_ext
8773LIBS=$ac_func_search_save_LIBS
8774fi
8775{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8776echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8777ac_res=$ac_cv_search_clock_gettime
8778if test "$ac_res" != no; then
8779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8780
Chandler Carruthef7f9682013-01-04 23:19:55 +00008781fi
8782
8783
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008784if test "$llvm_cv_enable_terminfo" = "yes" ; then
8785 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8786echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8787if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789else
8790 ac_func_search_save_LIBS=$LIBS
8791cat >conftest.$ac_ext <<_ACEOF
8792/* confdefs.h. */
8793_ACEOF
8794cat confdefs.h >>conftest.$ac_ext
8795cat >>conftest.$ac_ext <<_ACEOF
8796/* end confdefs.h. */
8797
8798/* Override any GCC internal prototype to avoid an error.
8799 Use char because int might match the return type of a GCC
8800 builtin and then its argument prototype would still apply. */
8801#ifdef __cplusplus
8802extern "C"
8803#endif
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008804char setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008805int
8806main ()
8807{
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008808return setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008809 ;
8810 return 0;
8811}
8812_ACEOF
Joerg Sonnenberger4e5a3992013-08-17 11:06:00 +00008813for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008814 if test -z "$ac_lib"; then
8815 ac_res="none required"
8816 else
8817 ac_res=-l$ac_lib
8818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8819 fi
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821if { (ac_try="$ac_link"
8822case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825esac
8826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_link") 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
8834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8835 { (case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8838esac
8839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_try") 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8848esac
8849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_try") 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008854 ac_cv_search_setupterm=$ac_res
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008855else
8856 echo "$as_me: failed program was:" >&5
8857sed 's/^/| /' conftest.$ac_ext >&5
8858
8859
8860fi
8861
8862rm -f core conftest.err conftest.$ac_objext \
8863 conftest$ac_exeext
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008864 if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008865 break
8866fi
8867done
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008868if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008869 :
8870else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008871 ac_cv_search_setupterm=no
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008872fi
8873rm conftest.$ac_ext
8874LIBS=$ac_func_search_save_LIBS
8875fi
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008876{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8877echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8878ac_res=$ac_cv_search_setupterm
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008879if test "$ac_res" != no; then
8880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8881
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00008882
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008883cat >>confdefs.h <<\_ACEOF
Chandler Carruthf11f1e42013-08-12 09:49:17 +00008884#define HAVE_TERMINFO 1
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008885_ACEOF
8886
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00008887HAVE_TERMINFO='1'
8888
8889
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00008890fi
8891
8892fi
8893
Peter Collingbournec7d437c2014-01-31 23:46:14 +00008894if test "$llvm_cv_enable_libedit" = "yes" ; then
8895 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8896echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8897if test "${ac_cv_search_el_init+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899else
8900 ac_func_search_save_LIBS=$LIBS
8901cat >conftest.$ac_ext <<_ACEOF
8902/* confdefs.h. */
8903_ACEOF
8904cat confdefs.h >>conftest.$ac_ext
8905cat >>conftest.$ac_ext <<_ACEOF
8906/* end confdefs.h. */
8907
8908/* Override any GCC internal prototype to avoid an error.
8909 Use char because int might match the return type of a GCC
8910 builtin and then its argument prototype would still apply. */
8911#ifdef __cplusplus
8912extern "C"
8913#endif
8914char el_init ();
8915int
8916main ()
8917{
8918return el_init ();
8919 ;
8920 return 0;
8921}
8922_ACEOF
8923for ac_lib in '' edit; do
8924 if test -z "$ac_lib"; then
8925 ac_res="none required"
8926 else
8927 ac_res=-l$ac_lib
8928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8929 fi
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931if { (ac_try="$ac_link"
8932case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935esac
8936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_link") 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8945 { (case "(($ac_try" in
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8948esac
8949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8950 (eval "$ac_try") 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest$ac_exeext'
8955 { (case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958esac
8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_try") 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_search_el_init=$ac_res
8965else
8966 echo "$as_me: failed program was:" >&5
8967sed 's/^/| /' conftest.$ac_ext >&5
8968
8969
8970fi
8971
8972rm -f core conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext
8974 if test "${ac_cv_search_el_init+set}" = set; then
8975 break
8976fi
8977done
8978if test "${ac_cv_search_el_init+set}" = set; then
8979 :
8980else
8981 ac_cv_search_el_init=no
8982fi
8983rm conftest.$ac_ext
8984LIBS=$ac_func_search_save_LIBS
8985fi
8986{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8987echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8988ac_res=$ac_cv_search_el_init
8989if test "$ac_res" != no; then
8990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8991
8992cat >>confdefs.h <<\_ACEOF
8993#define HAVE_LIBEDIT 1
8994_ACEOF
8995
8996fi
8997
8998fi
8999
Nick Lewycky86679902009-06-06 06:25:09 +00009000if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009001 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9002echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9003if test "${ac_cv_search_ffi_call+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky11e92142009-02-04 06:27:44 +00009005else
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009006 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009007cat >conftest.$ac_ext <<_ACEOF
9008/* confdefs.h. */
9009_ACEOF
9010cat confdefs.h >>conftest.$ac_ext
9011cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +00009012/* end confdefs.h. */
9013
9014/* Override any GCC internal prototype to avoid an error.
9015 Use char because int might match the return type of a GCC
9016 builtin and then its argument prototype would still apply. */
9017#ifdef __cplusplus
9018extern "C"
9019#endif
9020char ffi_call ();
9021int
9022main ()
9023{
9024return ffi_call ();
9025 ;
9026 return 0;
9027}
9028_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009029for ac_lib in '' ffi; do
9030 if test -z "$ac_lib"; then
9031 ac_res="none required"
9032 else
9033 ac_res=-l$ac_lib
9034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9035 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009036 rm -f conftest.$ac_objext conftest$ac_exeext
9037if { (ac_try="$ac_link"
9038case "(($ac_try" in
9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040 *) ac_try_echo=$ac_try;;
9041esac
9042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043 (eval "$ac_link") 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9051 { (case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054esac
9055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056 (eval "$ac_try") 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064esac
9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009070 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009071else
9072 echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
9075
Nick Lewycky11e92142009-02-04 06:27:44 +00009076fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009077
Bill Wendling02b47d92009-04-18 11:20:33 +00009078rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009079 conftest$ac_exeext
9080 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009081 break
Nick Lewycky11e92142009-02-04 06:27:44 +00009082fi
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009083done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009084if test "${ac_cv_search_ffi_call+set}" = set; then
9085 :
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009086else
9087 ac_cv_search_ffi_call=no
9088fi
9089rm conftest.$ac_ext
9090LIBS=$ac_func_search_save_LIBS
9091fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009092{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9093echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009094ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009095if test "$ac_res" != no; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9097
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009098cat >>confdefs.h <<\_ACEOF
9099#define HAVE_FFI_CALL 1
9100_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009101
Nick Lewycky11e92142009-02-04 06:27:44 +00009102else
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00009103 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9104echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9105 { (exit 1); exit 1; }; }
Nick Lewycky11e92142009-02-04 06:27:44 +00009106fi
9107
Nick Lewycky86679902009-06-06 06:25:09 +00009108fi
Nick Lewycky11e92142009-02-04 06:27:44 +00009109
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009110{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9111echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9112if test "${ac_cv_search_mallinfo+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00009114else
9115 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009116cat >conftest.$ac_ext <<_ACEOF
9117/* confdefs.h. */
9118_ACEOF
9119cat confdefs.h >>conftest.$ac_ext
9120cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00009121/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00009122
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009123/* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +00009126#ifdef __cplusplus
9127extern "C"
9128#endif
John Criswell3ef61af2003-06-30 21:59:07 +00009129char mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +00009130int
9131main ()
9132{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009133return mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +00009134 ;
9135 return 0;
9136}
9137_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009138for ac_lib in '' malloc; do
9139 if test -z "$ac_lib"; then
9140 ac_res="none required"
9141 else
9142 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +00009143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009144 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009145 rm -f conftest.$ac_objext conftest$ac_exeext
9146if { (ac_try="$ac_link"
9147case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150esac
9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9160 { (case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163esac
9164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_try") 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9173esac
9174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_try") 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009179 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009180else
9181 echo "$as_me: failed program was:" >&5
9182sed 's/^/| /' conftest.$ac_ext >&5
9183
9184
John Criswell3ef61af2003-06-30 21:59:07 +00009185fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009186
Bill Wendling02b47d92009-04-18 11:20:33 +00009187rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009188 conftest$ac_exeext
9189 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009190 break
John Criswell3ef61af2003-06-30 21:59:07 +00009191fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009192done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009193if test "${ac_cv_search_mallinfo+set}" = set; then
9194 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009195else
9196 ac_cv_search_mallinfo=no
9197fi
9198rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00009199LIBS=$ac_func_search_save_LIBS
9200fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009201{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9202echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009203ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009204if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +00009206
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009207cat >>confdefs.h <<\_ACEOF
9208#define HAVE_MALLINFO 1
9209_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00009210
9211fi
9212
9213
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00009214if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009215
9216{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9217echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9218if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer1aa7d052005-07-12 15:24:20 +00009220else
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009221 ac_check_lib_save_LIBS=$LIBS
9222LIBS="-lpthread $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009223cat >conftest.$ac_ext <<_ACEOF
9224/* confdefs.h. */
9225_ACEOF
9226cat confdefs.h >>conftest.$ac_ext
9227cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +00009228/* end confdefs.h. */
9229
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009230/* Override any GCC internal prototype to avoid an error.
9231 Use char because int might match the return type of a GCC
9232 builtin and then its argument prototype would still apply. */
Reid Spencer1aa7d052005-07-12 15:24:20 +00009233#ifdef __cplusplus
9234extern "C"
9235#endif
Reid Spencer1aa7d052005-07-12 15:24:20 +00009236char pthread_mutex_init ();
9237int
9238main ()
9239{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009240return pthread_mutex_init ();
Reid Spencer1aa7d052005-07-12 15:24:20 +00009241 ;
9242 return 0;
9243}
9244_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009245rm -f conftest.$ac_objext conftest$ac_exeext
9246if { (ac_try="$ac_link"
9247case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250esac
9251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_link") 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9260 { (case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263esac
9264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_try") 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; } &&
9269 { ac_try='test -s conftest$ac_exeext'
9270 { (case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273esac
9274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_try") 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009279 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer1aa7d052005-07-12 15:24:20 +00009280else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009281 echo "$as_me: failed program was:" >&5
9282sed 's/^/| /' conftest.$ac_ext >&5
9283
9284 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer1aa7d052005-07-12 15:24:20 +00009285fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009286
Bill Wendling02b47d92009-04-18 11:20:33 +00009287rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009288 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009289LIBS=$ac_check_lib_save_LIBS
Reid Spencer1aa7d052005-07-12 15:24:20 +00009290fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009291{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9292echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9293if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009294 cat >>confdefs.h <<_ACEOF
9295#define HAVE_LIBPTHREAD 1
Edward O'Callaghana5314b82009-10-13 01:01:38 +00009296_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +00009297
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009298 LIBS="-lpthread $LIBS"
9299
Reid Spencer1aa7d052005-07-12 15:24:20 +00009300fi
9301
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009302 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9303echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9304if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009306else
9307 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009308cat >conftest.$ac_ext <<_ACEOF
9309/* confdefs.h. */
9310_ACEOF
9311cat confdefs.h >>conftest.$ac_ext
9312cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009313/* end confdefs.h. */
9314
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009315/* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009318#ifdef __cplusplus
9319extern "C"
9320#endif
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009321char pthread_mutex_lock ();
9322int
9323main ()
9324{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009325return pthread_mutex_lock ();
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009326 ;
9327 return 0;
9328}
9329_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009330for ac_lib in '' pthread; do
9331 if test -z "$ac_lib"; then
9332 ac_res="none required"
9333 else
9334 ac_res=-l$ac_lib
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009336 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009337 rm -f conftest.$ac_objext conftest$ac_exeext
9338if { (ac_try="$ac_link"
9339case "(($ac_try" in
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9342esac
9343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344 (eval "$ac_link") 2>conftest.er1
9345 ac_status=$?
9346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9352 { (case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9355esac
9356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_try") 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365esac
9366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_try") 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009371 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009372else
9373 echo "$as_me: failed program was:" >&5
9374sed 's/^/| /' conftest.$ac_ext >&5
9375
9376
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009377fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009378
Bill Wendling02b47d92009-04-18 11:20:33 +00009379rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009380 conftest$ac_exeext
9381 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009382 break
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009383fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009384done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009385if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9386 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009387else
9388 ac_cv_search_pthread_mutex_lock=no
9389fi
9390rm conftest.$ac_ext
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009391LIBS=$ac_func_search_save_LIBS
9392fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009393{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9394echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009395ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009396if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009398
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009399cat >>confdefs.h <<\_ACEOF
9400#define HAVE_PTHREAD_MUTEX_LOCK 1
9401_ACEOF
John Criswell71c8d5e2004-09-24 21:19:06 +00009402
9403fi
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009404
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009405 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9406echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9407if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersona149e222009-06-16 18:20:20 +00009409else
9410 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009411cat >conftest.$ac_ext <<_ACEOF
9412/* confdefs.h. */
9413_ACEOF
9414cat confdefs.h >>conftest.$ac_ext
9415cat >>conftest.$ac_ext <<_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +00009416/* end confdefs.h. */
9417
9418/* Override any GCC internal prototype to avoid an error.
9419 Use char because int might match the return type of a GCC
9420 builtin and then its argument prototype would still apply. */
9421#ifdef __cplusplus
9422extern "C"
9423#endif
9424char pthread_rwlock_init ();
9425int
9426main ()
9427{
9428return pthread_rwlock_init ();
9429 ;
9430 return 0;
9431}
9432_ACEOF
9433for ac_lib in '' pthread; do
9434 if test -z "$ac_lib"; then
9435 ac_res="none required"
9436 else
9437 ac_res=-l$ac_lib
9438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9439 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009440 rm -f conftest.$ac_objext conftest$ac_exeext
9441if { (ac_try="$ac_link"
9442case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445esac
9446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_link") 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9455 { (case "(($ac_try" in
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9458esac
9459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_try") 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; } &&
9464 { ac_try='test -s conftest$ac_exeext'
9465 { (case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9468esac
9469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_try") 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
Owen Andersona149e222009-06-16 18:20:20 +00009474 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009475else
9476 echo "$as_me: failed program was:" >&5
9477sed 's/^/| /' conftest.$ac_ext >&5
9478
9479
Owen Andersona149e222009-06-16 18:20:20 +00009480fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009481
Owen Andersona149e222009-06-16 18:20:20 +00009482rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009483 conftest$ac_exeext
9484 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersona149e222009-06-16 18:20:20 +00009485 break
9486fi
9487done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009488if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9489 :
Owen Andersona149e222009-06-16 18:20:20 +00009490else
9491 ac_cv_search_pthread_rwlock_init=no
9492fi
9493rm conftest.$ac_ext
9494LIBS=$ac_func_search_save_LIBS
9495fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009496{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9497echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersona149e222009-06-16 18:20:20 +00009498ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009499if test "$ac_res" != no; then
Owen Andersona149e222009-06-16 18:20:20 +00009500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9501
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009502cat >>confdefs.h <<\_ACEOF
9503#define HAVE_PTHREAD_RWLOCK_INIT 1
9504_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +00009505
9506fi
9507
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009508 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9509echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9510if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson11549832009-06-25 23:10:26 +00009512else
9513 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009514cat >conftest.$ac_ext <<_ACEOF
9515/* confdefs.h. */
9516_ACEOF
9517cat confdefs.h >>conftest.$ac_ext
9518cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +00009519/* end confdefs.h. */
9520
9521/* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524#ifdef __cplusplus
9525extern "C"
9526#endif
9527char pthread_getspecific ();
9528int
9529main ()
9530{
9531return pthread_getspecific ();
9532 ;
9533 return 0;
9534}
9535_ACEOF
9536for ac_lib in '' pthread; do
9537 if test -z "$ac_lib"; then
9538 ac_res="none required"
9539 else
9540 ac_res=-l$ac_lib
9541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9542 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009543 rm -f conftest.$ac_objext conftest$ac_exeext
9544if { (ac_try="$ac_link"
9545case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548esac
9549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9561esac
9562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_try") 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; } &&
9567 { ac_try='test -s conftest$ac_exeext'
9568 { (case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_try") 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
Owen Anderson11549832009-06-25 23:10:26 +00009577 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009578else
9579 echo "$as_me: failed program was:" >&5
9580sed 's/^/| /' conftest.$ac_ext >&5
9581
9582
Owen Anderson11549832009-06-25 23:10:26 +00009583fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009584
Owen Anderson11549832009-06-25 23:10:26 +00009585rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009586 conftest$ac_exeext
9587 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson11549832009-06-25 23:10:26 +00009588 break
9589fi
9590done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009591if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9592 :
Owen Anderson11549832009-06-25 23:10:26 +00009593else
9594 ac_cv_search_pthread_getspecific=no
9595fi
9596rm conftest.$ac_ext
9597LIBS=$ac_func_search_save_LIBS
9598fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009599{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9600echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson11549832009-06-25 23:10:26 +00009601ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009602if test "$ac_res" != no; then
Owen Anderson11549832009-06-25 23:10:26 +00009603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9604
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009605cat >>confdefs.h <<\_ACEOF
9606#define HAVE_PTHREAD_GETSPECIFIC 1
9607_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +00009608
9609fi
9610
Reid Spencerf85fabeb2005-08-24 10:07:20 +00009611fi
Brian Gaeked3de6c02004-02-23 21:30:37 +00009612
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00009613if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9614
9615{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9616echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9617if test "${ac_cv_lib_z_compress2+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620 ac_check_lib_save_LIBS=$LIBS
9621LIBS="-lz $LIBS"
9622cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
9628
9629/* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9632#ifdef __cplusplus
9633extern "C"
9634#endif
9635char compress2 ();
9636int
9637main ()
9638{
9639return compress2 ();
9640 ;
9641 return 0;
9642}
9643_ACEOF
9644rm -f conftest.$ac_objext conftest$ac_exeext
9645if { (ac_try="$ac_link"
9646case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649esac
9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
9673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_try") 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_lib_z_compress2=yes
9679else
9680 echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
9683 ac_cv_lib_z_compress2=no
9684fi
9685
9686rm -f core conftest.err conftest.$ac_objext \
9687 conftest$ac_exeext conftest.$ac_ext
9688LIBS=$ac_check_lib_save_LIBS
9689fi
9690{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9691echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9692if test $ac_cv_lib_z_compress2 = yes; then
9693 cat >>confdefs.h <<_ACEOF
9694#define HAVE_LIBZ 1
9695_ACEOF
9696
9697 LIBS="-lz $LIBS"
9698
9699fi
9700
9701fi
9702
Reid Spencer0241e382004-11-25 04:51:04 +00009703
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009704# Check whether --with-oprofile was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009705if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009706 withval=$with_oprofile;
9707 USE_OPROFILE=1
9708
9709 case "$withval" in
9710 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009711 no) llvm_cv_oppath=
9712 USE_OPROFILE=0
9713 ;;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009714 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher46342fe2012-08-03 17:45:31 +00009715 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009716 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +00009717 case $llvm_cv_os_type in
9718 Linux)
9719 if test -n "$llvm_cv_oppath" ; then
9720 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9721 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009722echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9723if test "${ac_cv_search_bfd_init+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009725else
9726 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009727cat >conftest.$ac_ext <<_ACEOF
9728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009732/* end confdefs.h. */
9733
9734/* Override any GCC internal prototype to avoid an error.
9735 Use char because int might match the return type of a GCC
9736 builtin and then its argument prototype would still apply. */
9737#ifdef __cplusplus
9738extern "C"
9739#endif
9740char bfd_init ();
9741int
9742main ()
9743{
9744return bfd_init ();
9745 ;
9746 return 0;
9747}
9748_ACEOF
9749for ac_lib in '' bfd; do
9750 if test -z "$ac_lib"; then
9751 ac_res="none required"
9752 else
9753 ac_res=-l$ac_lib
9754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9755 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009756 rm -f conftest.$ac_objext conftest$ac_exeext
9757if { (ac_try="$ac_link"
9758case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9761esac
9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_link") 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_try") 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009790 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009791else
9792 echo "$as_me: failed program was:" >&5
9793sed 's/^/| /' conftest.$ac_ext >&5
9794
9795
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009796fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009797
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009798rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009799 conftest$ac_exeext
9800 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009801 break
9802fi
9803done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009804if test "${ac_cv_search_bfd_init+set}" = set; then
9805 :
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009806else
9807 ac_cv_search_bfd_init=no
9808fi
9809rm conftest.$ac_ext
9810LIBS=$ac_func_search_save_LIBS
9811fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009812{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9813echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009814ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009815if test "$ac_res" != no; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9817
9818fi
9819
Eli Bendersky5262ad22012-03-13 08:33:15 +00009820 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009821echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9822if test "${ac_cv_search_op_open_agent+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009824else
9825 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009826cat >conftest.$ac_ext <<_ACEOF
9827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009831/* end confdefs.h. */
9832
9833/* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9836#ifdef __cplusplus
9837extern "C"
9838#endif
9839char op_open_agent ();
9840int
9841main ()
9842{
9843return op_open_agent ();
9844 ;
9845 return 0;
9846}
9847_ACEOF
9848for ac_lib in '' opagent; do
9849 if test -z "$ac_lib"; then
9850 ac_res="none required"
9851 else
9852 ac_res=-l$ac_lib
9853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9854 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009855 rm -f conftest.$ac_objext conftest$ac_exeext
9856if { (ac_try="$ac_link"
9857case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860esac
9861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_link") 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9870 { (case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_try") 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009889 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009890else
9891 echo "$as_me: failed program was:" >&5
9892sed 's/^/| /' conftest.$ac_ext >&5
9893
9894
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009895fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009896
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009897rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009898 conftest$ac_exeext
9899 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009900 break
9901fi
9902done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009903if test "${ac_cv_search_op_open_agent+set}" = set; then
9904 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009905else
9906 ac_cv_search_op_open_agent=no
9907fi
9908rm conftest.$ac_ext
9909LIBS=$ac_func_search_save_LIBS
9910fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009911{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9912echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009913ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009914if test "$ac_res" != no; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9916
9917else
9918
Eli Bendersky5262ad22012-03-13 08:33:15 +00009919 echo "Error! You need to have libopagent around."
Sylvestre Ledru1b3961c2015-02-01 14:55:43 +00009920 exit 1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009921
9922fi
9923
Eli Bendersky5262ad22012-03-13 08:33:15 +00009924 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009925 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9926echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9927if test "${ac_cv_header_opagent_h+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929fi
9930{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9931echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9932else
9933 # Is the header compilable?
9934{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
9935echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h. */
9942$ac_includes_default
9943#include <opagent.h>
9944_ACEOF
9945rm -f conftest.$ac_objext
9946if { (ac_try="$ac_compile"
9947case "(($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_compile") 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963esac
9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest.$ac_objext'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_header_compiler=yes
9980else
9981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009983
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009984 ac_header_compiler=no
9985fi
9986
9987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989echo "${ECHO_T}$ac_header_compiler" >&6; }
9990
9991# Is the header present?
9992{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
9993echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9994cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h. */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h. */
10000#include <opagent.h>
10001_ACEOF
10002if { (ac_try="$ac_cpp conftest.$ac_ext"
10003case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10006esac
10007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } >/dev/null; then
10015 if test -s conftest.err; then
10016 ac_cpp_err=$ac_c_preproc_warn_flag
10017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10018 else
10019 ac_cpp_err=
10020 fi
10021else
10022 ac_cpp_err=yes
10023fi
10024if test -z "$ac_cpp_err"; then
10025 ac_header_preproc=yes
10026else
10027 echo "$as_me: failed program was:" >&5
10028sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 ac_header_preproc=no
10031fi
10032
10033rm -f conftest.err conftest.$ac_ext
10034{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10035echo "${ECHO_T}$ac_header_preproc" >&6; }
10036
10037# So? What about this header?
10038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10039 yes:no: )
10040 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10041echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10043echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10044 ac_header_preproc=yes
10045 ;;
10046 no:yes:* )
10047 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10048echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10050echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10052echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10054echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10056echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10057 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10058echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10059 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000010060## ------------------------------------ ##
10061## Report this to http://llvm.org/bugs/ ##
10062## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010063_ASBOX
10064 ) | sed "s/^/$as_me: WARNING: /" >&2
10065 ;;
10066esac
10067{ echo "$as_me:$LINENO: checking for opagent.h" >&5
10068echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10069if test "${ac_cv_header_opagent_h+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072 ac_cv_header_opagent_h=$ac_header_preproc
10073fi
10074{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10075echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10076
10077fi
10078if test $ac_cv_header_opagent_h = yes; then
10079 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010080else
10081
Eli Bendersky5262ad22012-03-13 08:33:15 +000010082 echo "Error! You need to have opagent.h around."
Sylvestre Ledru1b3961c2015-02-01 14:55:43 +000010083 exit 1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010084
10085fi
10086
10087
Eli Bendersky5262ad22012-03-13 08:33:15 +000010088 fi ;;
10089 *)
10090 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10091echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10092 { (exit 1); exit 1; }; } ;;
10093 esac
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010094
10095else
10096
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010097 USE_OPROFILE=0
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010098
10099
10100fi
10101
10102
10103cat >>confdefs.h <<_ACEOF
Eli Bendersky5262ad22012-03-13 08:33:15 +000010104#define LLVM_USE_OPROFILE $USE_OPROFILE
10105_ACEOF
10106
10107
10108
10109# Check whether --with-intel-jitevents was given.
10110if test "${with_intel_jitevents+set}" = set; then
10111 withval=$with_intel_jitevents;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010112 case "$withval" in
10113 yes) USE_INTEL_JITEVENTS=1
10114;;
10115 no) USE_INTEL_JITEVENTS=0
10116;;
10117 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10118echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10119 { (exit 1); exit 1; }; };;
10120 esac
10121
Eli Bendersky5262ad22012-03-13 08:33:15 +000010122 case $llvm_cv_os_type in
10123 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010124 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10125echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10126 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000010127 esac
10128
Eli Bendersky5262ad22012-03-13 08:33:15 +000010129 case "$llvm_cv_target_arch" in
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010130 x86|x86_64) ;;
10131 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10132echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10133 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000010134 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000010135
10136else
10137
10138 USE_INTEL_JITEVENTS=0
10139
10140
10141fi
10142
10143
10144cat >>confdefs.h <<_ACEOF
10145#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010146_ACEOF
10147
10148
Eric Christopherc807c532012-08-03 19:47:19 +000010149for ac_prog in xml2-config
10150do
10151 # Extract the first word of "$ac_prog", so it can be a program name with args.
10152set dummy $ac_prog; ac_word=$2
10153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10155if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157else
10158 if test -n "$XML2CONFIG"; then
10159 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10160else
10161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162for as_dir in $PATH
10163do
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_prog_XML2CONFIG="$ac_prog"
10169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10171 fi
10172done
10173done
10174IFS=$as_save_IFS
10175
10176fi
10177fi
10178XML2CONFIG=$ac_cv_prog_XML2CONFIG
10179if test -n "$XML2CONFIG"; then
10180 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10181echo "${ECHO_T}$XML2CONFIG" >&6; }
10182else
10183 { echo "$as_me:$LINENO: result: no" >&5
10184echo "${ECHO_T}no" >&6; }
10185fi
10186
10187
10188 test -n "$XML2CONFIG" && break
10189done
10190
10191
10192{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10193echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10194if test "x$XML2CONFIG" = "x"; then
10195 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10196echo "${ECHO_T}xml2-config not found" >&6; }
10197else
10198 LIBXML2_INC=`$XML2CONFIG --cflags`
10199 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10200echo "${ECHO_T}$LIBXML2_INC" >&6; }
10201 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10202echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10203if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205else
10206 ac_check_lib_save_LIBS=$LIBS
10207LIBS="-lxml2 $LIBS"
10208cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h. */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h. */
10214
10215/* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10218#ifdef __cplusplus
10219extern "C"
10220#endif
10221char xmlReadFile ();
10222int
10223main ()
10224{
10225return xmlReadFile ();
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext conftest$ac_exeext
10231if { (ac_try="$ac_link"
10232case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_lib_xml2_xmlReadFile=yes
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 ac_cv_lib_xml2_xmlReadFile=no
10270fi
10271
10272rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274LIBS=$ac_check_lib_save_LIBS
10275fi
10276{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10277echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10278if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10279
10280cat >>confdefs.h <<\_ACEOF
10281#define CLANG_HAVE_LIBXML 1
10282_ACEOF
10283
10284 LIBXML2_LIBS="-lxml2"
10285fi
10286
10287fi
10288
10289
10290
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010291
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010292
10293
10294
10295
10296
Reid Spencer8bc110c2004-12-25 07:31:29 +000010297ac_header_dirent=no
10298for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010299 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10300{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10301echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010304else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010305 cat >conftest.$ac_ext <<_ACEOF
10306/* confdefs.h. */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010310/* end confdefs.h. */
10311#include <sys/types.h>
10312#include <$ac_hdr>
10313
10314int
10315main ()
10316{
10317if ((DIR *) 0)
10318return 0;
10319 ;
10320 return 0;
10321}
10322_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010323rm -f conftest.$ac_objext
10324if { (ac_try="$ac_compile"
10325case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10338 { (case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341esac
10342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_try") 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351esac
10352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353 (eval "$ac_try") 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000010357 eval "$as_ac_Header=yes"
10358else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010359 echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 eval "$as_ac_Header=no"
Reid Spencer8bc110c2004-12-25 07:31:29 +000010363fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010364
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000010366fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010367ac_res=`eval echo '${'$as_ac_Header'}'`
10368 { echo "$as_me:$LINENO: result: $ac_res" >&5
10369echo "${ECHO_T}$ac_res" >&6; }
10370if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000010371 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010372#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000010373_ACEOF
10374
10375ac_header_dirent=$ac_hdr; break
10376fi
10377
10378done
10379# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10380if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010381 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10382echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10383if test "${ac_cv_search_opendir+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010385else
10386 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010387cat >conftest.$ac_ext <<_ACEOF
10388/* confdefs.h. */
10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010392/* end confdefs.h. */
10393
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010394/* Override any GCC internal prototype to avoid an error.
10395 Use char because int might match the return type of a GCC
10396 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000010397#ifdef __cplusplus
10398extern "C"
10399#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010400char opendir ();
10401int
10402main ()
10403{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010404return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000010405 ;
10406 return 0;
10407}
10408_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010409for ac_lib in '' dir; do
10410 if test -z "$ac_lib"; then
10411 ac_res="none required"
10412 else
10413 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000010414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010415 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010416 rm -f conftest.$ac_objext conftest$ac_exeext
10417if { (ac_try="$ac_link"
10418case "(($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_link") 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10431 { (case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434esac
10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_try") 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest$ac_exeext'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444esac
10445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010450 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010451else
10452 echo "$as_me: failed program was:" >&5
10453sed 's/^/| /' conftest.$ac_ext >&5
10454
10455
Reid Spencer8bc110c2004-12-25 07:31:29 +000010456fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010457
Bill Wendling02b47d92009-04-18 11:20:33 +000010458rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010459 conftest$ac_exeext
10460 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010461 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000010462fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010463done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010464if test "${ac_cv_search_opendir+set}" = set; then
10465 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010466else
10467 ac_cv_search_opendir=no
10468fi
10469rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000010470LIBS=$ac_func_search_save_LIBS
10471fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010472{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10473echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010474ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010475if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000010477
10478fi
10479
10480else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010481 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10482echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10483if test "${ac_cv_search_opendir+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010485else
10486 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010487cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h. */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010492/* end confdefs.h. */
10493
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010494/* Override any GCC internal prototype to avoid an error.
10495 Use char because int might match the return type of a GCC
10496 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000010497#ifdef __cplusplus
10498extern "C"
10499#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010500char opendir ();
10501int
10502main ()
10503{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010504return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000010505 ;
10506 return 0;
10507}
10508_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010509for ac_lib in '' x; do
10510 if test -z "$ac_lib"; then
10511 ac_res="none required"
10512 else
10513 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000010514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010515 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010516 rm -f conftest.$ac_objext conftest$ac_exeext
10517if { (ac_try="$ac_link"
10518case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521esac
10522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_link") 2>conftest.er1
10524 ac_status=$?
10525 grep -v '^ *+' conftest.er1 >conftest.err
10526 rm -f conftest.er1
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10531 { (case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534esac
10535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_try") 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try='test -s conftest$ac_exeext'
10541 { (case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544esac
10545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_try") 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010550 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010551else
10552 echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
10555
Reid Spencer8bc110c2004-12-25 07:31:29 +000010556fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010557
Bill Wendling02b47d92009-04-18 11:20:33 +000010558rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010559 conftest$ac_exeext
10560 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010561 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000010562fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010563done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010564if test "${ac_cv_search_opendir+set}" = set; then
10565 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010566else
10567 ac_cv_search_opendir=no
10568fi
10569rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000010570LIBS=$ac_func_search_save_LIBS
10571fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010572{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10573echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010574ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010575if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000010577
10578fi
10579
10580fi
10581
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010582{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10583echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10584if test "${ac_cv_header_mmap_anon+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010586else
10587 ac_ext=c
10588ac_cpp='$CPP $CPPFLAGS'
10589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10591ac_compiler_gnu=$ac_cv_c_compiler_gnu
10592
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010593 cat >conftest.$ac_ext <<_ACEOF
10594/* confdefs.h. */
10595_ACEOF
10596cat confdefs.h >>conftest.$ac_ext
10597cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010598/* end confdefs.h. */
10599#include <sys/mman.h>
10600#include <unistd.h>
10601#include <fcntl.h>
10602int
10603main ()
10604{
10605mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10606 ;
10607 return 0;
10608}
10609_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010610rm -f conftest.$ac_objext
10611if { (ac_try="$ac_compile"
10612case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_compile") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638esac
10639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000010644 ac_cv_header_mmap_anon=yes
10645else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010646 echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 ac_cv_header_mmap_anon=no
Reid Spencer8bc110c2004-12-25 07:31:29 +000010650fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010651
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000010653 ac_ext=c
10654ac_cpp='$CPP $CPPFLAGS'
10655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657ac_compiler_gnu=$ac_cv_c_compiler_gnu
10658
10659
10660fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010661{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10662echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000010663if test "$ac_cv_header_mmap_anon" = yes; then
10664
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010665cat >>confdefs.h <<\_ACEOF
10666#define HAVE_MMAP_ANONYMOUS 1
10667_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010668
10669fi
10670
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010671{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10672echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10673if test "${ac_cv_header_stat_broken+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010675else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010676 cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h. */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010681/* end confdefs.h. */
10682#include <sys/types.h>
10683#include <sys/stat.h>
10684
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010685#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010686# if S_ISBLK (S_IFDIR)
10687You lose.
10688# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010689#endif
10690
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010691#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010692# if S_ISBLK (S_IFCHR)
10693You lose.
10694# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010695#endif
10696
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010697#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010698# if S_ISLNK (S_IFREG)
10699You lose.
10700# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010701#endif
10702
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010703#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010704# if S_ISSOCK (S_IFREG)
10705You lose.
10706# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010707#endif
10708
10709_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10711 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwinaec06332010-01-26 08:50:50 +000010712 ac_cv_header_stat_broken=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010713else
10714 ac_cv_header_stat_broken=no
Mikhail Glushenkov4308aa52009-04-18 09:59:26 +000010715fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010716rm -f conftest*
10717
Reid Spencer8bc110c2004-12-25 07:31:29 +000010718fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010719{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10720echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000010721if test $ac_cv_header_stat_broken = yes; then
10722
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010723cat >>confdefs.h <<\_ACEOF
10724#define STAT_MACROS_BROKEN 1
10725_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010726
10727fi
10728
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010729{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10730echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10731if test "${ac_cv_header_sys_wait_h+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000010733else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010734 cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000010739/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000010740#include <sys/types.h>
10741#include <sys/wait.h>
10742#ifndef WEXITSTATUS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010743# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell3ef61af2003-06-30 21:59:07 +000010744#endif
10745#ifndef WIFEXITED
10746# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10747#endif
10748
John Criswell3ef61af2003-06-30 21:59:07 +000010749int
10750main ()
10751{
10752 int s;
10753 wait (&s);
10754 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10755 ;
10756 return 0;
10757}
10758_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010759rm -f conftest.$ac_objext
10760if { (ac_try="$ac_compile"
10761case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_compile") 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774 { (case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10777esac
10778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_try") 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest.$ac_objext'
10784 { (case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787esac
10788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_try") 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000010793 ac_cv_header_sys_wait_h=yes
10794else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010795 echo "$as_me: failed program was:" >&5
10796sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 ac_cv_header_sys_wait_h=no
John Criswell3ef61af2003-06-30 21:59:07 +000010799fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010800
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000010802fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010803{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10804echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000010805if test $ac_cv_header_sys_wait_h = yes; then
10806
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010807cat >>confdefs.h <<\_ACEOF
10808#define HAVE_SYS_WAIT_H 1
10809_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000010810
10811fi
10812
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010813{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10814echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10815if test "${ac_cv_header_time+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000010817else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010818 cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000010823/* end confdefs.h. */
Brian Gaeke4eea32f2004-02-23 22:07:00 +000010824#include <sys/types.h>
Reid Spencer0241e382004-11-25 04:51:04 +000010825#include <sys/time.h>
10826#include <time.h>
10827
10828int
10829main ()
10830{
10831if ((struct tm *) 0)
10832return 0;
10833 ;
10834 return 0;
10835}
Brian Gaeke4eea32f2004-02-23 22:07:00 +000010836_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010837rm -f conftest.$ac_objext
10838if { (ac_try="$ac_compile"
10839case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842esac
10843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_compile") 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852 { (case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_try") 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try='test -s conftest.$ac_objext'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000010871 ac_cv_header_time=yes
Brian Gaeke4eea32f2004-02-23 22:07:00 +000010872else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_cv_header_time=no
Brian Gaeke4eea32f2004-02-23 22:07:00 +000010877fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010878
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000010880fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010881{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10882echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000010883if test $ac_cv_header_time = yes; then
Brian Gaeke4eea32f2004-02-23 22:07:00 +000010884
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010885cat >>confdefs.h <<\_ACEOF
10886#define TIME_WITH_SYS_TIME 1
10887_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000010888
10889fi
10890
Reid Spencer0241e382004-11-25 04:51:04 +000010891
Benjamin Kramer00622f72013-05-03 15:55:06 +000010892ac_ext=cpp
10893ac_cpp='$CXXCPP $CPPFLAGS'
10894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10897
Rui Ueyama7ef57962014-10-27 08:03:21 +000010898
10899for ac_header in cxxabi.h
10900do
10901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Rui Ueyama292fb6d2014-10-27 08:16:18 +000010902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
Rui Ueyama7ef57962014-10-27 08:03:21 +000010903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
Rui Ueyama7ef57962014-10-27 08:03:21 +000010906else
Rui Ueyama292fb6d2014-10-27 08:16:18 +000010907 cat >conftest.$ac_ext <<_ACEOF
Rui Ueyama7ef57962014-10-27 08:03:21 +000010908/* confdefs.h. */
10909_ACEOF
10910cat confdefs.h >>conftest.$ac_ext
10911cat >>conftest.$ac_ext <<_ACEOF
10912/* end confdefs.h. */
Rui Ueyama292fb6d2014-10-27 08:16:18 +000010913#include <stddef.h>
10914
10915
Benjamin Kramer00622f72013-05-03 15:55:06 +000010916#include <$ac_header>
10917_ACEOF
10918rm -f conftest.$ac_objext
10919if { (ac_try="$ac_compile"
10920case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923esac
10924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946esac
10947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
Rui Ueyama292fb6d2014-10-27 08:16:18 +000010952 eval "$as_ac_Header=yes"
Benjamin Kramer00622f72013-05-03 15:55:06 +000010953else
10954 echo "$as_me: failed program was:" >&5
10955sed 's/^/| /' conftest.$ac_ext >&5
10956
Rui Ueyama292fb6d2014-10-27 08:16:18 +000010957 eval "$as_ac_Header=no"
Benjamin Kramer00622f72013-05-03 15:55:06 +000010958fi
10959
10960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benjamin Kramer00622f72013-05-03 15:55:06 +000010961fi
10962ac_res=`eval echo '${'$as_ac_Header'}'`
10963 { echo "$as_me:$LINENO: result: $ac_res" >&5
10964echo "${ECHO_T}$ac_res" >&6; }
Benjamin Kramer00622f72013-05-03 15:55:06 +000010965if test `eval echo '${'$as_ac_Header'}'` = yes; then
10966 cat >>confdefs.h <<_ACEOF
10967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10968_ACEOF
10969
10970fi
10971
10972done
10973
10974ac_ext=c
10975ac_cpp='$CPP $CPPFLAGS'
10976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10978ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010979
10980
10981
10982
10983
10984
Rui Ueyama292fb6d2014-10-27 08:16:18 +000010985
Eric Christopher30536382013-07-26 17:13:47 +000010986for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010987do
10988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994fi
10995ac_res=`eval echo '${'$as_ac_Header'}'`
10996 { echo "$as_me:$LINENO: result: $ac_res" >&5
10997echo "${ECHO_T}$ac_res" >&6; }
10998else
10999 # Is the header compilable?
11000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11002cat >conftest.$ac_ext <<_ACEOF
11003/* confdefs.h. */
11004_ACEOF
11005cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h. */
11008$ac_includes_default
11009#include <$ac_header>
11010_ACEOF
11011rm -f conftest.$ac_objext
11012if { (ac_try="$ac_compile"
11013case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11016esac
11017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018 (eval "$ac_compile") 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029esac
11030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; } &&
11035 { ac_try='test -s conftest.$ac_objext'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039esac
11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 ac_header_compiler=yes
11046else
11047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
11050 ac_header_compiler=no
11051fi
11052
11053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11055echo "${ECHO_T}$ac_header_compiler" >&6; }
11056
11057# Is the header present?
11058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11060cat >conftest.$ac_ext <<_ACEOF
11061/* confdefs.h. */
11062_ACEOF
11063cat confdefs.h >>conftest.$ac_ext
11064cat >>conftest.$ac_ext <<_ACEOF
11065/* end confdefs.h. */
11066#include <$ac_header>
11067_ACEOF
11068if { (ac_try="$ac_cpp conftest.$ac_ext"
11069case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072esac
11073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } >/dev/null; then
11081 if test -s conftest.err; then
11082 ac_cpp_err=$ac_c_preproc_warn_flag
11083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11084 else
11085 ac_cpp_err=
11086 fi
11087else
11088 ac_cpp_err=yes
11089fi
11090if test -z "$ac_cpp_err"; then
11091 ac_header_preproc=yes
11092else
11093 echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_header_preproc=no
11097fi
11098
11099rm -f conftest.err conftest.$ac_ext
11100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101echo "${ECHO_T}$ac_header_preproc" >&6; }
11102
11103# So? What about this header?
11104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11105 yes:no: )
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11110 ac_header_preproc=yes
11111 ;;
11112 no:yes:* )
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11125 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011126## ------------------------------------ ##
11127## Report this to http://llvm.org/bugs/ ##
11128## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011129_ASBOX
11130 ) | sed "s/^/$as_me: WARNING: /" >&2
11131 ;;
11132esac
11133{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137else
11138 eval "$as_ac_Header=\$ac_header_preproc"
11139fi
11140ac_res=`eval echo '${'$as_ac_Header'}'`
11141 { echo "$as_me:$LINENO: result: $ac_res" >&5
11142echo "${ECHO_T}$ac_res" >&6; }
11143
11144fi
11145if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000011146 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0241e382004-11-25 04:51:04 +000011148_ACEOF
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011149
11150fi
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011151
Reid Spencer8bc110c2004-12-25 07:31:29 +000011152done
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011153
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011154
11155
11156
11157
11158
11159
Douglas Gregorb81294d2009-05-18 17:21:34 +000011160for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011161do
11162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11168fi
11169ac_res=`eval echo '${'$as_ac_Header'}'`
11170 { echo "$as_me:$LINENO: result: $ac_res" >&5
11171echo "${ECHO_T}$ac_res" >&6; }
11172else
11173 # Is the header compilable?
11174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11176cat >conftest.$ac_ext <<_ACEOF
11177/* confdefs.h. */
11178_ACEOF
11179cat confdefs.h >>conftest.$ac_ext
11180cat >>conftest.$ac_ext <<_ACEOF
11181/* end confdefs.h. */
11182$ac_includes_default
11183#include <$ac_header>
11184_ACEOF
11185rm -f conftest.$ac_objext
11186if { (ac_try="$ac_compile"
11187case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190esac
11191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_compile") 2>conftest.er1
11193 ac_status=$?
11194 grep -v '^ *+' conftest.er1 >conftest.err
11195 rm -f conftest.er1
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
11199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11200 { (case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11203esac
11204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_try") 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213esac
11214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 ac_header_compiler=yes
11220else
11221 echo "$as_me: failed program was:" >&5
11222sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 ac_header_compiler=no
11225fi
11226
11227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229echo "${ECHO_T}$ac_header_compiler" >&6; }
11230
11231# Is the header present?
11232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11234cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240#include <$ac_header>
11241_ACEOF
11242if { (ac_try="$ac_cpp conftest.$ac_ext"
11243case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246esac
11247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } >/dev/null; then
11255 if test -s conftest.err; then
11256 ac_cpp_err=$ac_c_preproc_warn_flag
11257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11258 else
11259 ac_cpp_err=
11260 fi
11261else
11262 ac_cpp_err=yes
11263fi
11264if test -z "$ac_cpp_err"; then
11265 ac_header_preproc=yes
11266else
11267 echo "$as_me: failed program was:" >&5
11268sed 's/^/| /' conftest.$ac_ext >&5
11269
11270 ac_header_preproc=no
11271fi
11272
11273rm -f conftest.err conftest.$ac_ext
11274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11275echo "${ECHO_T}$ac_header_preproc" >&6; }
11276
11277# So? What about this header?
11278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11279 yes:no: )
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11284 ac_header_preproc=yes
11285 ;;
11286 no:yes:* )
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11299 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011300## ------------------------------------ ##
11301## Report this to http://llvm.org/bugs/ ##
11302## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011303_ASBOX
11304 ) | sed "s/^/$as_me: WARNING: /" >&2
11305 ;;
11306esac
11307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311else
11312 eval "$as_ac_Header=\$ac_header_preproc"
11313fi
11314ac_res=`eval echo '${'$as_ac_Header'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316echo "${ECHO_T}$ac_res" >&6; }
11317
11318fi
11319if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000011320 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000011322_ACEOF
11323
11324fi
11325
11326done
11327
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011328
Eric Christopher30536382013-07-26 17:13:47 +000011329for ac_header in utime.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011330do
11331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337fi
11338ac_res=`eval echo '${'$as_ac_Header'}'`
11339 { echo "$as_me:$LINENO: result: $ac_res" >&5
11340echo "${ECHO_T}$ac_res" >&6; }
11341else
11342 # Is the header compilable?
11343{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11345cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351$ac_includes_default
11352#include <$ac_header>
11353_ACEOF
11354rm -f conftest.$ac_objext
11355if { (ac_try="$ac_compile"
11356case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359esac
11360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_compile") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369 { (case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372esac
11373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_try") 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11382esac
11383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_try") 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_header_compiler=yes
11389else
11390 echo "$as_me: failed program was:" >&5
11391sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 ac_header_compiler=no
11394fi
11395
11396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398echo "${ECHO_T}$ac_header_compiler" >&6; }
11399
11400# Is the header present?
11401{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11403cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409#include <$ac_header>
11410_ACEOF
11411if { (ac_try="$ac_cpp conftest.$ac_ext"
11412case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415esac
11416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null; then
11424 if test -s conftest.err; then
11425 ac_cpp_err=$ac_c_preproc_warn_flag
11426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11427 else
11428 ac_cpp_err=
11429 fi
11430else
11431 ac_cpp_err=yes
11432fi
11433if test -z "$ac_cpp_err"; then
11434 ac_header_preproc=yes
11435else
11436 echo "$as_me: failed program was:" >&5
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 ac_header_preproc=no
11440fi
11441
11442rm -f conftest.err conftest.$ac_ext
11443{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11444echo "${ECHO_T}$ac_header_preproc" >&6; }
11445
11446# So? What about this header?
11447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448 yes:no: )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11453 ac_header_preproc=yes
11454 ;;
11455 no:yes:* )
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11468 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011469## ------------------------------------ ##
11470## Report this to http://llvm.org/bugs/ ##
11471## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011472_ASBOX
11473 ) | sed "s/^/$as_me: WARNING: /" >&2
11474 ;;
11475esac
11476{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 eval "$as_ac_Header=\$ac_header_preproc"
11482fi
11483ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485echo "${ECHO_T}$ac_res" >&6; }
11486
11487fi
11488if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000011489 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000011491_ACEOF
11492
11493fi
11494
11495done
Reid Spencer8bc110c2004-12-25 07:31:29 +000011496
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011497
11498
11499
11500
Daniel Dunbar7840c542011-02-03 02:40:02 +000011501
11502for 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 +000011503do
11504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510fi
11511ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result: $ac_res" >&5
11513echo "${ECHO_T}$ac_res" >&6; }
11514else
11515 # Is the header compilable?
11516{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11518cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524$ac_includes_default
11525#include <$ac_header>
11526_ACEOF
11527rm -f conftest.$ac_objext
11528if { (ac_try="$ac_compile"
11529case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_compile") 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545esac
11546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_try") 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555esac
11556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_try") 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_header_compiler=yes
11562else
11563 echo "$as_me: failed program was:" >&5
11564sed 's/^/| /' conftest.$ac_ext >&5
11565
11566 ac_header_compiler=no
11567fi
11568
11569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571echo "${ECHO_T}$ac_header_compiler" >&6; }
11572
11573# Is the header present?
11574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11576cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h. */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h. */
11582#include <$ac_header>
11583_ACEOF
11584if { (ac_try="$ac_cpp conftest.$ac_ext"
11585case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } >/dev/null; then
11597 if test -s conftest.err; then
11598 ac_cpp_err=$ac_c_preproc_warn_flag
11599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11600 else
11601 ac_cpp_err=
11602 fi
11603else
11604 ac_cpp_err=yes
11605fi
11606if test -z "$ac_cpp_err"; then
11607 ac_header_preproc=yes
11608else
11609 echo "$as_me: failed program was:" >&5
11610sed 's/^/| /' conftest.$ac_ext >&5
11611
11612 ac_header_preproc=no
11613fi
11614
11615rm -f conftest.err conftest.$ac_ext
11616{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11617echo "${ECHO_T}$ac_header_preproc" >&6; }
11618
11619# So? What about this header?
11620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11621 yes:no: )
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11626 ac_header_preproc=yes
11627 ;;
11628 no:yes:* )
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11641 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011642## ------------------------------------ ##
11643## Report this to http://llvm.org/bugs/ ##
11644## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011645_ASBOX
11646 ) | sed "s/^/$as_me: WARNING: /" >&2
11647 ;;
11648esac
11649{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
11654 eval "$as_ac_Header=\$ac_header_preproc"
11655fi
11656ac_res=`eval echo '${'$as_ac_Header'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658echo "${ECHO_T}$ac_res" >&6; }
11659
11660fi
11661if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000011662 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswellb92c7c22004-07-19 16:12:29 +000011664_ACEOF
John Criswellb92c7c22004-07-19 16:12:29 +000011665
11666fi
John Criswellb92c7c22004-07-19 16:12:29 +000011667
Reid Spencer0241e382004-11-25 04:51:04 +000011668done
11669
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011670
11671
11672
Eric Christopher30536382013-07-26 17:13:47 +000011673for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011674do
11675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681fi
11682ac_res=`eval echo '${'$as_ac_Header'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684echo "${ECHO_T}$ac_res" >&6; }
11685else
11686 # Is the header compilable?
11687{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11689cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695$ac_includes_default
11696#include <$ac_header>
11697_ACEOF
11698rm -f conftest.$ac_objext
11699if { (ac_try="$ac_compile"
11700case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703esac
11704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713 { (case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726esac
11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 ac_header_compiler=yes
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 ac_header_compiler=no
11738fi
11739
11740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11742echo "${ECHO_T}$ac_header_compiler" >&6; }
11743
11744# Is the header present?
11745{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11747cat >conftest.$ac_ext <<_ACEOF
11748/* confdefs.h. */
11749_ACEOF
11750cat confdefs.h >>conftest.$ac_ext
11751cat >>conftest.$ac_ext <<_ACEOF
11752/* end confdefs.h. */
11753#include <$ac_header>
11754_ACEOF
11755if { (ac_try="$ac_cpp conftest.$ac_ext"
11756case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759esac
11760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } >/dev/null; then
11768 if test -s conftest.err; then
11769 ac_cpp_err=$ac_c_preproc_warn_flag
11770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11771 else
11772 ac_cpp_err=
11773 fi
11774else
11775 ac_cpp_err=yes
11776fi
11777if test -z "$ac_cpp_err"; then
11778 ac_header_preproc=yes
11779else
11780 echo "$as_me: failed program was:" >&5
11781sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 ac_header_preproc=no
11784fi
11785
11786rm -f conftest.err conftest.$ac_ext
11787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11788echo "${ECHO_T}$ac_header_preproc" >&6; }
11789
11790# So? What about this header?
11791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11792 yes:no: )
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11797 ac_header_preproc=yes
11798 ;;
11799 no:yes:* )
11800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11812 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011813## ------------------------------------ ##
11814## Report this to http://llvm.org/bugs/ ##
11815## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011816_ASBOX
11817 ) | sed "s/^/$as_me: WARNING: /" >&2
11818 ;;
11819esac
11820{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824else
11825 eval "$as_ac_Header=\$ac_header_preproc"
11826fi
11827ac_res=`eval echo '${'$as_ac_Header'}'`
11828 { echo "$as_me:$LINENO: result: $ac_res" >&5
11829echo "${ECHO_T}$ac_res" >&6; }
11830
11831fi
11832if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner973917a2005-11-14 06:57:34 +000011833 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner973917a2005-11-14 06:57:34 +000011835_ACEOF
11836
11837fi
11838
11839done
11840
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000011841
11842for ac_header in valgrind/valgrind.h
11843do
11844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850fi
11851ac_res=`eval echo '${'$as_ac_Header'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853echo "${ECHO_T}$ac_res" >&6; }
11854else
11855 # Is the header compilable?
11856{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11858cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
11864$ac_includes_default
11865#include <$ac_header>
11866_ACEOF
11867rm -f conftest.$ac_objext
11868if { (ac_try="$ac_compile"
11869case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872esac
11873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_compile") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_header_compiler=yes
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 ac_header_compiler=no
11907fi
11908
11909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11911echo "${ECHO_T}$ac_header_compiler" >&6; }
11912
11913# Is the header present?
11914{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11916cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922#include <$ac_header>
11923_ACEOF
11924if { (ac_try="$ac_cpp conftest.$ac_ext"
11925case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928esac
11929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } >/dev/null; then
11937 if test -s conftest.err; then
11938 ac_cpp_err=$ac_c_preproc_warn_flag
11939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11940 else
11941 ac_cpp_err=
11942 fi
11943else
11944 ac_cpp_err=yes
11945fi
11946if test -z "$ac_cpp_err"; then
11947 ac_header_preproc=yes
11948else
11949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952 ac_header_preproc=no
11953fi
11954
11955rm -f conftest.err conftest.$ac_ext
11956{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11957echo "${ECHO_T}$ac_header_preproc" >&6; }
11958
11959# So? What about this header?
11960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11961 yes:no: )
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11966 ac_header_preproc=yes
11967 ;;
11968 no:yes:* )
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11972echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11976echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11981 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011982## ------------------------------------ ##
11983## Report this to http://llvm.org/bugs/ ##
11984## ------------------------------------ ##
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000011985_ASBOX
11986 ) | sed "s/^/$as_me: WARNING: /" >&2
11987 ;;
11988esac
11989{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993else
11994 eval "$as_ac_Header=\$ac_header_preproc"
11995fi
11996ac_res=`eval echo '${'$as_ac_Header'}'`
11997 { echo "$as_me:$LINENO: result: $ac_res" >&5
11998echo "${ECHO_T}$ac_res" >&6; }
11999
12000fi
12001if test `eval echo '${'$as_ac_Header'}'` = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12004_ACEOF
12005
12006fi
12007
12008done
12009
Dan Gohmandf257772010-09-17 20:08:35 +000012010
12011for ac_header in fenv.h
12012do
12013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019fi
12020ac_res=`eval echo '${'$as_ac_Header'}'`
12021 { echo "$as_me:$LINENO: result: $ac_res" >&5
12022echo "${ECHO_T}$ac_res" >&6; }
12023else
12024 # Is the header compilable?
12025{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12027cat >conftest.$ac_ext <<_ACEOF
12028/* confdefs.h. */
12029_ACEOF
12030cat confdefs.h >>conftest.$ac_ext
12031cat >>conftest.$ac_ext <<_ACEOF
12032/* end confdefs.h. */
12033$ac_includes_default
12034#include <$ac_header>
12035_ACEOF
12036rm -f conftest.$ac_objext
12037if { (ac_try="$ac_compile"
12038case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_compile") 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12051 { (case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_try") 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; } &&
12060 { ac_try='test -s conftest.$ac_objext'
12061 { (case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_try") 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_header_compiler=yes
12071else
12072 echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 ac_header_compiler=no
12076fi
12077
12078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12080echo "${ECHO_T}$ac_header_compiler" >&6; }
12081
12082# Is the header present?
12083{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12085cat >conftest.$ac_ext <<_ACEOF
12086/* confdefs.h. */
12087_ACEOF
12088cat confdefs.h >>conftest.$ac_ext
12089cat >>conftest.$ac_ext <<_ACEOF
12090/* end confdefs.h. */
12091#include <$ac_header>
12092_ACEOF
12093if { (ac_try="$ac_cpp conftest.$ac_ext"
12094case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097esac
12098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } >/dev/null; then
12106 if test -s conftest.err; then
12107 ac_cpp_err=$ac_c_preproc_warn_flag
12108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12109 else
12110 ac_cpp_err=
12111 fi
12112else
12113 ac_cpp_err=yes
12114fi
12115if test -z "$ac_cpp_err"; then
12116 ac_header_preproc=yes
12117else
12118 echo "$as_me: failed program was:" >&5
12119sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 ac_header_preproc=no
12122fi
12123
12124rm -f conftest.err conftest.$ac_ext
12125{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12126echo "${ECHO_T}$ac_header_preproc" >&6; }
12127
12128# So? What about this header?
12129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12130 yes:no: )
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12135 ac_header_preproc=yes
12136 ;;
12137 no:yes:* )
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12141echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12145echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12150 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012151## ------------------------------------ ##
12152## Report this to http://llvm.org/bugs/ ##
12153## ------------------------------------ ##
Dan Gohmandf257772010-09-17 20:08:35 +000012154_ASBOX
12155 ) | sed "s/^/$as_me: WARNING: /" >&2
12156 ;;
12157esac
12158{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162else
12163 eval "$as_ac_Header=\$ac_header_preproc"
12164fi
12165ac_res=`eval echo '${'$as_ac_Header'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167echo "${ECHO_T}$ac_res" >&6; }
12168
12169fi
12170if test `eval echo '${'$as_ac_Header'}'` = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12173_ACEOF
12174
12175fi
12176
12177done
12178
Joerg Sonnenberger8a1177f2013-03-25 13:13:33 +000012179{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12180echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12181if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 cat >conftest.$ac_ext <<_ACEOF
12185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
12190#include <fenv.h>
12191
12192int
12193main ()
12194{
12195#ifndef FE_ALL_EXCEPT
12196 char *p = (char *) FE_ALL_EXCEPT;
12197 return !p;
12198#endif
12199
12200 ;
12201 return 0;
12202}
12203_ACEOF
12204rm -f conftest.$ac_objext
12205if { (ac_try="$ac_compile"
12206case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209esac
12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_compile") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12239else
12240 echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_cv_have_decl_FE_ALL_EXCEPT=no
12244fi
12245
12246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247fi
12248{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12249echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12250if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12251
12252cat >>confdefs.h <<_ACEOF
12253#define HAVE_DECL_FE_ALL_EXCEPT 1
12254_ACEOF
12255
12256
12257else
12258 cat >>confdefs.h <<_ACEOF
12259#define HAVE_DECL_FE_ALL_EXCEPT 0
12260_ACEOF
12261
12262
12263fi
12264{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12265echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12266if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275#include <fenv.h>
12276
12277int
12278main ()
12279{
12280#ifndef FE_INEXACT
12281 char *p = (char *) FE_INEXACT;
12282 return !p;
12283#endif
12284
12285 ;
12286 return 0;
12287}
12288_ACEOF
12289rm -f conftest.$ac_objext
12290if { (ac_try="$ac_compile"
12291case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307esac
12308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12317esac
12318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_cv_have_decl_FE_INEXACT=yes
12324else
12325 echo "$as_me: failed program was:" >&5
12326sed 's/^/| /' conftest.$ac_ext >&5
12327
12328 ac_cv_have_decl_FE_INEXACT=no
12329fi
12330
12331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332fi
12333{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12334echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12335if test $ac_cv_have_decl_FE_INEXACT = yes; then
12336
12337cat >>confdefs.h <<_ACEOF
12338#define HAVE_DECL_FE_INEXACT 1
12339_ACEOF
12340
12341
12342else
12343 cat >>confdefs.h <<_ACEOF
12344#define HAVE_DECL_FE_INEXACT 0
12345_ACEOF
12346
12347
12348fi
12349
12350
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000012351if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012352
12353for ac_header in pthread.h
12354do
12355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361fi
12362ac_res=`eval echo '${'$as_ac_Header'}'`
12363 { echo "$as_me:$LINENO: result: $ac_res" >&5
12364echo "${ECHO_T}$ac_res" >&6; }
12365else
12366 # Is the header compilable?
12367{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12369cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375$ac_includes_default
12376#include <$ac_header>
12377_ACEOF
12378rm -f conftest.$ac_objext
12379if { (ac_try="$ac_compile"
12380case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_compile") 2>conftest.er1
12386 ac_status=$?
12387 grep -v '^ *+' conftest.er1 >conftest.err
12388 rm -f conftest.er1
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396esac
12397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; } &&
12402 { ac_try='test -s conftest.$ac_objext'
12403 { (case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406esac
12407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_try") 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_header_compiler=yes
12413else
12414 echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 ac_header_compiler=no
12418fi
12419
12420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12422echo "${ECHO_T}$ac_header_compiler" >&6; }
12423
12424# Is the header present?
12425{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12427cat >conftest.$ac_ext <<_ACEOF
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
12433#include <$ac_header>
12434_ACEOF
12435if { (ac_try="$ac_cpp conftest.$ac_ext"
12436case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } >/dev/null; then
12448 if test -s conftest.err; then
12449 ac_cpp_err=$ac_c_preproc_warn_flag
12450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12451 else
12452 ac_cpp_err=
12453 fi
12454else
12455 ac_cpp_err=yes
12456fi
12457if test -z "$ac_cpp_err"; then
12458 ac_header_preproc=yes
12459else
12460 echo "$as_me: failed program was:" >&5
12461sed 's/^/| /' conftest.$ac_ext >&5
12462
12463 ac_header_preproc=no
12464fi
12465
12466rm -f conftest.err conftest.$ac_ext
12467{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12468echo "${ECHO_T}$ac_header_preproc" >&6; }
12469
12470# So? What about this header?
12471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12472 yes:no: )
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12477 ac_header_preproc=yes
12478 ;;
12479 no:yes:* )
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12487echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12492 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012493## ------------------------------------ ##
12494## Report this to http://llvm.org/bugs/ ##
12495## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012496_ASBOX
12497 ) | sed "s/^/$as_me: WARNING: /" >&2
12498 ;;
12499esac
12500{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504else
12505 eval "$as_ac_Header=\$ac_header_preproc"
12506fi
12507ac_res=`eval echo '${'$as_ac_Header'}'`
12508 { echo "$as_me:$LINENO: result: $ac_res" >&5
12509echo "${ECHO_T}$ac_res" >&6; }
12510
12511fi
12512if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000012513 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000012515_ACEOF
12516 HAVE_PTHREAD=1
Reid Spencerd4399922006-12-01 00:37:14 +000012517
12518else
12519 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000012520
12521fi
12522
Reid Spencerb8135562007-08-17 05:45:26 +000012523done
Reid Spencerd4399922006-12-01 00:37:14 +000012524
12525else
12526 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000012527
12528fi
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000012529if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12530
12531for ac_header in zlib.h
12532do
12533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539fi
12540ac_res=`eval echo '${'$as_ac_Header'}'`
12541 { echo "$as_me:$LINENO: result: $ac_res" >&5
12542echo "${ECHO_T}$ac_res" >&6; }
12543else
12544 # Is the header compilable?
12545{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12547cat >conftest.$ac_ext <<_ACEOF
12548/* confdefs.h. */
12549_ACEOF
12550cat confdefs.h >>conftest.$ac_ext
12551cat >>conftest.$ac_ext <<_ACEOF
12552/* end confdefs.h. */
12553$ac_includes_default
12554#include <$ac_header>
12555_ACEOF
12556rm -f conftest.$ac_objext
12557if { (ac_try="$ac_compile"
12558case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561esac
12562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest.$ac_objext'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_header_compiler=yes
12591else
12592 echo "$as_me: failed program was:" >&5
12593sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 ac_header_compiler=no
12596fi
12597
12598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12600echo "${ECHO_T}$ac_header_compiler" >&6; }
12601
12602# Is the header present?
12603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12605cat >conftest.$ac_ext <<_ACEOF
12606/* confdefs.h. */
12607_ACEOF
12608cat confdefs.h >>conftest.$ac_ext
12609cat >>conftest.$ac_ext <<_ACEOF
12610/* end confdefs.h. */
12611#include <$ac_header>
12612_ACEOF
12613if { (ac_try="$ac_cpp conftest.$ac_ext"
12614case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } >/dev/null; then
12626 if test -s conftest.err; then
12627 ac_cpp_err=$ac_c_preproc_warn_flag
12628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12629 else
12630 ac_cpp_err=
12631 fi
12632else
12633 ac_cpp_err=yes
12634fi
12635if test -z "$ac_cpp_err"; then
12636 ac_header_preproc=yes
12637else
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 ac_header_preproc=no
12642fi
12643
12644rm -f conftest.err conftest.$ac_ext
12645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12646echo "${ECHO_T}$ac_header_preproc" >&6; }
12647
12648# So? What about this header?
12649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12650 yes:no: )
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12655 ac_header_preproc=yes
12656 ;;
12657 no:yes:* )
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12670 ( cat <<\_ASBOX
12671## ------------------------------------ ##
12672## Report this to http://llvm.org/bugs/ ##
12673## ------------------------------------ ##
12674_ASBOX
12675 ) | sed "s/^/$as_me: WARNING: /" >&2
12676 ;;
12677esac
12678{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682else
12683 eval "$as_ac_Header=\$ac_header_preproc"
12684fi
12685ac_res=`eval echo '${'$as_ac_Header'}'`
12686 { echo "$as_me:$LINENO: result: $ac_res" >&5
12687echo "${ECHO_T}$ac_res" >&6; }
12688
12689fi
12690if test `eval echo '${'$as_ac_Header'}'` = yes; then
12691 cat >>confdefs.h <<_ACEOF
12692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12693_ACEOF
12694 HAVE_LIBZ=1
12695
12696else
12697 HAVE_LIBZ=0
12698
12699fi
12700
12701done
12702
12703else
12704 HAVE_LIBZ=0
12705
12706fi
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000012707
Nick Lewycky86679902009-06-06 06:25:09 +000012708if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012709
12710
12711for ac_header in ffi.h ffi/ffi.h
12712do
12713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719fi
12720ac_res=`eval echo '${'$as_ac_Header'}'`
12721 { echo "$as_me:$LINENO: result: $ac_res" >&5
12722echo "${ECHO_T}$ac_res" >&6; }
12723else
12724 # Is the header compilable?
12725{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12727cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
12733$ac_includes_default
12734#include <$ac_header>
12735_ACEOF
12736rm -f conftest.$ac_objext
12737if { (ac_try="$ac_compile"
12738case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12741esac
12742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_compile") 2>conftest.er1
12744 ac_status=$?
12745 grep -v '^ *+' conftest.er1 >conftest.err
12746 rm -f conftest.er1
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751 { (case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12754esac
12755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_try") 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_header_compiler=yes
12771else
12772 echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775 ac_header_compiler=no
12776fi
12777
12778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12780echo "${ECHO_T}$ac_header_compiler" >&6; }
12781
12782# Is the header present?
12783{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12785cat >conftest.$ac_ext <<_ACEOF
12786/* confdefs.h. */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h. */
12791#include <$ac_header>
12792_ACEOF
12793if { (ac_try="$ac_cpp conftest.$ac_ext"
12794case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } >/dev/null; then
12806 if test -s conftest.err; then
12807 ac_cpp_err=$ac_c_preproc_warn_flag
12808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12809 else
12810 ac_cpp_err=
12811 fi
12812else
12813 ac_cpp_err=yes
12814fi
12815if test -z "$ac_cpp_err"; then
12816 ac_header_preproc=yes
12817else
12818 echo "$as_me: failed program was:" >&5
12819sed 's/^/| /' conftest.$ac_ext >&5
12820
12821 ac_header_preproc=no
12822fi
12823
12824rm -f conftest.err conftest.$ac_ext
12825{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12826echo "${ECHO_T}$ac_header_preproc" >&6; }
12827
12828# So? What about this header?
12829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12830 yes:no: )
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12832echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12834echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12835 ac_header_preproc=yes
12836 ;;
12837 no:yes:* )
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12841echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12843echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12845echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12847echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12849echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12850 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012851## ------------------------------------ ##
12852## Report this to http://llvm.org/bugs/ ##
12853## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012854_ASBOX
12855 ) | sed "s/^/$as_me: WARNING: /" >&2
12856 ;;
12857esac
12858{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862else
12863 eval "$as_ac_Header=\$ac_header_preproc"
12864fi
12865ac_res=`eval echo '${'$as_ac_Header'}'`
12866 { echo "$as_me:$LINENO: result: $ac_res" >&5
12867echo "${ECHO_T}$ac_res" >&6; }
12868
12869fi
12870if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky11e92142009-02-04 06:27:44 +000012871 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky11e92142009-02-04 06:27:44 +000012873_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000012874
12875fi
12876
12877done
12878
Nick Lewycky86679902009-06-06 06:25:09 +000012879fi
Nick Lewycky11e92142009-02-04 06:27:44 +000012880
Nick Lewyckyc94134d2009-01-20 00:52:24 +000012881
Eric Christophere9c1bb62010-06-22 21:01:04 +000012882for ac_header in CrashReporterClient.h
12883do
12884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890fi
12891ac_res=`eval echo '${'$as_ac_Header'}'`
12892 { echo "$as_me:$LINENO: result: $ac_res" >&5
12893echo "${ECHO_T}$ac_res" >&6; }
12894else
12895 # Is the header compilable?
12896{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12898cat >conftest.$ac_ext <<_ACEOF
12899/* confdefs.h. */
12900_ACEOF
12901cat confdefs.h >>conftest.$ac_ext
12902cat >>conftest.$ac_ext <<_ACEOF
12903/* end confdefs.h. */
12904$ac_includes_default
12905#include <$ac_header>
12906_ACEOF
12907rm -f conftest.$ac_objext
12908if { (ac_try="$ac_compile"
12909case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912esac
12913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_compile") 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12922 { (case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925esac
12926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_try") 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest.$ac_objext'
12932 { (case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935esac
12936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_try") 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_header_compiler=yes
12942else
12943 echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946 ac_header_compiler=no
12947fi
12948
12949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12951echo "${ECHO_T}$ac_header_compiler" >&6; }
12952
12953# Is the header present?
12954{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12956cat >conftest.$ac_ext <<_ACEOF
12957/* confdefs.h. */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
12961/* end confdefs.h. */
12962#include <$ac_header>
12963_ACEOF
12964if { (ac_try="$ac_cpp conftest.$ac_ext"
12965case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12968esac
12969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } >/dev/null; then
12977 if test -s conftest.err; then
12978 ac_cpp_err=$ac_c_preproc_warn_flag
12979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12980 else
12981 ac_cpp_err=
12982 fi
12983else
12984 ac_cpp_err=yes
12985fi
12986if test -z "$ac_cpp_err"; then
12987 ac_header_preproc=yes
12988else
12989 echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
12992 ac_header_preproc=no
12993fi
12994
12995rm -f conftest.err conftest.$ac_ext
12996{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12997echo "${ECHO_T}$ac_header_preproc" >&6; }
12998
12999# So? What about this header?
13000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13001 yes:no: )
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13006 ac_header_preproc=yes
13007 ;;
13008 no:yes:* )
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13021 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013022## ------------------------------------ ##
13023## Report this to http://llvm.org/bugs/ ##
13024## ------------------------------------ ##
Eric Christophere9c1bb62010-06-22 21:01:04 +000013025_ASBOX
13026 ) | sed "s/^/$as_me: WARNING: /" >&2
13027 ;;
13028esac
13029{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13033else
13034 eval "$as_ac_Header=\$ac_header_preproc"
13035fi
13036ac_res=`eval echo '${'$as_ac_Header'}'`
13037 { echo "$as_me:$LINENO: result: $ac_res" >&5
13038echo "${ECHO_T}$ac_res" >&6; }
13039
13040fi
13041if test `eval echo '${'$as_ac_Header'}'` = yes; then
13042 cat >>confdefs.h <<_ACEOF
13043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13044_ACEOF
13045
13046fi
13047
13048done
13049
13050
Eric Christopherba4f7722010-12-07 02:05:42 +000013051{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13052echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000013053cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013054
13055 /* confdefs.h. */
Eric Christopherca466732010-12-03 07:45:22 +000013056_ACEOF
13057cat confdefs.h >>conftest.$ac_ext
13058cat >>conftest.$ac_ext <<_ACEOF
13059/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013060
13061 extern const char *__crashreporter_info__;
13062 int main() {
13063 __crashreporter_info__ = "test";
13064 return 0;
13065 }
13066
Eric Christopherca466732010-12-03 07:45:22 +000013067
Eric Christopherca466732010-12-03 07:45:22 +000013068_ACEOF
13069rm -f conftest.$ac_objext conftest$ac_exeext
13070if { (ac_try="$ac_link"
13071case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074esac
13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_link") 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087esac
13088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
13098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_try") 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013103
Eric Christopherba4f7722010-12-07 02:05:42 +000013104 { echo "$as_me:$LINENO: result: yes" >&5
13105echo "${ECHO_T}yes" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000013106
13107cat >>confdefs.h <<\_ACEOF
13108#define HAVE_CRASHREPORTER_INFO 1
13109_ACEOF
13110
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013111
Eric Christopherba4f7722010-12-07 02:05:42 +000013112else
13113 echo "$as_me: failed program was:" >&5
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013116
13117 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopherba4f7722010-12-07 02:05:42 +000013118echo "${ECHO_T}no" >&6; }
13119
13120cat >>confdefs.h <<\_ACEOF
13121#define HAVE_CRASHREPORTER_INFO 0
13122_ACEOF
13123
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013124
Eric Christopherca466732010-12-03 07:45:22 +000013125fi
Eric Christophere9c1bb62010-06-22 21:01:04 +000013126
Eric Christopherba4f7722010-12-07 02:05:42 +000013127rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13129
13130
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000013131
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013132 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13133echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13134if test "${ac_cv_huge_val_sanity+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer128ae102006-11-03 18:04:08 +000013136else
13137
Reid Spencer7b7ab9c2006-11-03 19:49:16 +000013138 ac_ext=cpp
13139ac_cpp='$CXXCPP $CPPFLAGS'
13140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencer128ae102006-11-03 18:04:08 +000013143
Eric Christopherf0ee6a12010-03-02 05:06:54 +000013144 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher8e52bdc2012-04-02 06:54:01 +000013145 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013146 if test "$cross_compiling" = yes; then
Reid Spencer128ae102006-11-03 18:04:08 +000013147 ac_cv_huge_val_sanity=yes
13148else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013149 cat >conftest.$ac_ext <<_ACEOF
13150/* confdefs.h. */
13151_ACEOF
13152cat confdefs.h >>conftest.$ac_ext
13153cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer128ae102006-11-03 18:04:08 +000013154/* end confdefs.h. */
13155#include <math.h>
13156int
13157main ()
13158{
13159double x = HUGE_VAL; return x != x;
13160 ;
13161 return 0;
13162}
13163_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013164rm -f conftest$ac_exeext
13165if { (ac_try="$ac_link"
13166case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169esac
13170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_link") 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178esac
13179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
Reid Spencer128ae102006-11-03 18:04:08 +000013184 ac_cv_huge_val_sanity=yes
13185else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013186 echo "$as_me: program exited with status $ac_status" >&5
13187echo "$as_me: failed program was:" >&5
13188sed 's/^/| /' conftest.$ac_ext >&5
13189
13190( exit $ac_status )
13191ac_cv_huge_val_sanity=no
Reid Spencer128ae102006-11-03 18:04:08 +000013192fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013193rm -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 +000013194fi
13195
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013196
Eric Christopherf0ee6a12010-03-02 05:06:54 +000013197 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencer128ae102006-11-03 18:04:08 +000013198 ac_ext=c
13199ac_cpp='$CPP $CPPFLAGS'
13200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202ac_compiler_gnu=$ac_cv_c_compiler_gnu
13203
13204
13205fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013206{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13207echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencer128ae102006-11-03 18:04:08 +000013208 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13209
13210
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013211{ echo "$as_me:$LINENO: checking for pid_t" >&5
13212echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13213if test "${ac_cv_type_pid_t+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215else
13216 cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
13221/* end confdefs.h. */
13222$ac_includes_default
13223typedef pid_t ac__type_new_;
13224int
13225main ()
13226{
13227if ((ac__type_new_ *) 0)
13228 return 0;
13229if (sizeof (ac__type_new_))
13230 return 0;
13231 ;
13232 return 0;
13233}
13234_ACEOF
13235rm -f conftest.$ac_objext
13236if { (ac_try="$ac_compile"
13237case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13240esac
13241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_compile") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253esac
13254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263esac
13264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_try") 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_cv_type_pid_t=yes
13270else
13271 echo "$as_me: failed program was:" >&5
13272sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000013273
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013274 ac_cv_type_pid_t=no
13275fi
13276
13277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278fi
13279{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13280echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13281if test $ac_cv_type_pid_t = yes; then
13282 :
John Criswell3ef61af2003-06-30 21:59:07 +000013283else
13284
13285cat >>confdefs.h <<_ACEOF
13286#define pid_t int
13287_ACEOF
13288
13289fi
13290
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013291{ echo "$as_me:$LINENO: checking for size_t" >&5
13292echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13293if test "${ac_cv_type_size_t+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295else
13296 cat >conftest.$ac_ext <<_ACEOF
13297/* confdefs.h. */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h. */
13302$ac_includes_default
13303typedef size_t ac__type_new_;
13304int
13305main ()
13306{
13307if ((ac__type_new_ *) 0)
13308 return 0;
13309if (sizeof (ac__type_new_))
13310 return 0;
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315rm -f conftest.$ac_objext
13316if { (ac_try="$ac_compile"
13317case "(($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_compile") 2>conftest.er1
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333esac
13334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest.$ac_objext'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343esac
13344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; }; then
13349 ac_cv_type_size_t=yes
13350else
13351 echo "$as_me: failed program was:" >&5
13352sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000013353
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013354 ac_cv_type_size_t=no
13355fi
13356
13357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358fi
13359{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13360echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13361if test $ac_cv_type_size_t = yes; then
13362 :
John Criswell3ef61af2003-06-30 21:59:07 +000013363else
13364
13365cat >>confdefs.h <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013366#define size_t unsigned int
John Criswell3ef61af2003-06-30 21:59:07 +000013367_ACEOF
13368
13369fi
13370
Reid Spencer0241e382004-11-25 04:51:04 +000013371
13372cat >>confdefs.h <<_ACEOF
Torok Edwinaec06332010-01-26 08:50:50 +000013373#define RETSIGTYPE void
Reid Spencer0241e382004-11-25 04:51:04 +000013374_ACEOF
13375
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013376{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13377echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13378if test "${ac_cv_struct_tm+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000013380else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013381 cat >conftest.$ac_ext <<_ACEOF
13382/* confdefs.h. */
13383_ACEOF
13384cat confdefs.h >>conftest.$ac_ext
13385cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000013386/* end confdefs.h. */
13387#include <sys/types.h>
13388#include <time.h>
13389
13390int
13391main ()
13392{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013393struct tm *tp; tp->tm_sec;
Reid Spencer0241e382004-11-25 04:51:04 +000013394 ;
13395 return 0;
13396}
13397_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013398rm -f conftest.$ac_objext
13399if { (ac_try="$ac_compile"
13400case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000013432 ac_cv_struct_tm=time.h
13433else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 ac_cv_struct_tm=sys/time.h
Reid Spencer0241e382004-11-25 04:51:04 +000013438fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013439
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000013441fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013442{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13443echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000013444if test $ac_cv_struct_tm = sys/time.h; then
13445
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013446cat >>confdefs.h <<\_ACEOF
13447#define TM_IN_SYS_TIME 1
13448_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000013449
13450fi
13451
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013452{ echo "$as_me:$LINENO: checking for int64_t" >&5
13453echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13454if test "${ac_cv_type_int64_t+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457 cat >conftest.$ac_ext <<_ACEOF
13458/* confdefs.h. */
13459_ACEOF
13460cat confdefs.h >>conftest.$ac_ext
13461cat >>conftest.$ac_ext <<_ACEOF
13462/* end confdefs.h. */
13463$ac_includes_default
13464typedef int64_t ac__type_new_;
13465int
13466main ()
13467{
13468if ((ac__type_new_ *) 0)
13469 return 0;
13470if (sizeof (ac__type_new_))
13471 return 0;
13472 ;
13473 return 0;
13474}
13475_ACEOF
13476rm -f conftest.$ac_objext
13477if { (ac_try="$ac_compile"
13478case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481esac
13482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_compile") 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494esac
13495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13497 ac_status=$?
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } &&
13500 { ac_try='test -s conftest.$ac_objext'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_type_int64_t=yes
13511else
13512 echo "$as_me: failed program was:" >&5
13513sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ac_cv_type_int64_t=no
13516fi
13517
13518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13519fi
13520{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13521echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13522if test $ac_cv_type_int64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000013523
13524cat >>confdefs.h <<_ACEOF
13525#define HAVE_INT64_T 1
13526_ACEOF
13527
13528
13529else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013530 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13531echo "$as_me: error: Type int64_t required but not found" >&2;}
13532 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000013533fi
13534
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013535{ echo "$as_me:$LINENO: checking for uint64_t" >&5
13536echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13537if test "${ac_cv_type_uint64_t+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539else
13540 cat >conftest.$ac_ext <<_ACEOF
13541/* confdefs.h. */
13542_ACEOF
13543cat confdefs.h >>conftest.$ac_ext
13544cat >>conftest.$ac_ext <<_ACEOF
13545/* end confdefs.h. */
13546$ac_includes_default
13547typedef uint64_t ac__type_new_;
13548int
13549main ()
13550{
13551if ((ac__type_new_ *) 0)
13552 return 0;
13553if (sizeof (ac__type_new_))
13554 return 0;
13555 ;
13556 return 0;
13557}
13558_ACEOF
13559rm -f conftest.$ac_objext
13560if { (ac_try="$ac_compile"
13561case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13564esac
13565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13574 { (case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577esac
13578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_try") 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587esac
13588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 ac_cv_type_uint64_t=yes
13594else
13595 echo "$as_me: failed program was:" >&5
13596sed 's/^/| /' conftest.$ac_ext >&5
13597
13598 ac_cv_type_uint64_t=no
13599fi
13600
13601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602fi
13603{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13604echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13605if test $ac_cv_type_uint64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000013606
13607cat >>confdefs.h <<_ACEOF
13608#define HAVE_UINT64_T 1
13609_ACEOF
13610
13611
13612else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013613 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13614echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13615if test "${ac_cv_type_u_int64_t+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617else
13618 cat >conftest.$ac_ext <<_ACEOF
13619/* confdefs.h. */
13620_ACEOF
13621cat confdefs.h >>conftest.$ac_ext
13622cat >>conftest.$ac_ext <<_ACEOF
13623/* end confdefs.h. */
13624$ac_includes_default
13625typedef u_int64_t ac__type_new_;
13626int
13627main ()
13628{
13629if ((ac__type_new_ *) 0)
13630 return 0;
13631if (sizeof (ac__type_new_))
13632 return 0;
13633 ;
13634 return 0;
13635}
13636_ACEOF
13637rm -f conftest.$ac_objext
13638if { (ac_try="$ac_compile"
13639case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13655esac
13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 ac_cv_type_u_int64_t=yes
13672else
13673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 ac_cv_type_u_int64_t=no
13677fi
13678
13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680fi
13681{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13682echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13683if test $ac_cv_type_u_int64_t = yes; then
John Criswelld672a3d2004-09-02 18:44:44 +000013684
13685cat >>confdefs.h <<_ACEOF
13686#define HAVE_U_INT64_T 1
13687_ACEOF
13688
13689
Misha Brukmancb46e662004-09-02 23:02:30 +000013690else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013691 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13692echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13693 { (exit 1); exit 1; }; }
Misha Brukmancb46e662004-09-02 23:02:30 +000013694fi
13695
John Criswelld672a3d2004-09-02 18:44:44 +000013696fi
13697
Reid Spencer0241e382004-11-25 04:51:04 +000013698
13699
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013700
13701
Benjamin Kramer37dce442015-03-09 18:35:18 +000013702for ac_func in backtrace getcwd
Owen Anderson132ae8b2013-02-07 00:21:34 +000013703do
13704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13705{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13707if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709else
13710 cat >conftest.$ac_ext <<_ACEOF
13711/* confdefs.h. */
13712_ACEOF
13713cat confdefs.h >>conftest.$ac_ext
13714cat >>conftest.$ac_ext <<_ACEOF
13715/* end confdefs.h. */
13716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13718#define $ac_func innocuous_$ac_func
13719
13720/* System header to define __stub macros and hopefully few prototypes,
13721 which can conflict with char $ac_func (); below.
13722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13723 <limits.h> exists even on freestanding compilers. */
13724
13725#ifdef __STDC__
13726# include <limits.h>
13727#else
13728# include <assert.h>
13729#endif
13730
13731#undef $ac_func
13732
13733/* Override any GCC internal prototype to avoid an error.
13734 Use char because int might match the return type of a GCC
13735 builtin and then its argument prototype would still apply. */
13736#ifdef __cplusplus
13737extern "C"
13738#endif
13739char $ac_func ();
13740/* The GNU C library defines this for functions which it implements
13741 to always fail with ENOSYS. Some functions are actually named
13742 something starting with __ and the normal name is an alias. */
13743#if defined __stub_$ac_func || defined __stub___$ac_func
13744choke me
13745#endif
13746
13747int
13748main ()
13749{
13750return $ac_func ();
13751 ;
13752 return 0;
13753}
13754_ACEOF
13755rm -f conftest.$ac_objext conftest$ac_exeext
13756if { (ac_try="$ac_link"
13757case "(($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_link") 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13770 { (case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773esac
13774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_try") 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 eval "$as_ac_var=yes"
13790else
13791 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
13794 eval "$as_ac_var=no"
13795fi
13796
13797rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799fi
13800ac_res=`eval echo '${'$as_ac_var'}'`
13801 { echo "$as_me:$LINENO: result: $ac_res" >&5
13802echo "${ECHO_T}$ac_res" >&6; }
13803if test `eval echo '${'$as_ac_var'}'` = yes; then
13804 cat >>confdefs.h <<_ACEOF
13805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13806_ACEOF
13807
13808fi
13809done
13810
13811
13812
13813
13814
13815
Reid Spenceredd2ccc2007-02-16 19:17:20 +000013816for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013817do
13818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13819{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13821if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823else
13824 cat >conftest.$ac_ext <<_ACEOF
13825/* confdefs.h. */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
13830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832#define $ac_func innocuous_$ac_func
13833
13834/* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char $ac_func (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13838
13839#ifdef __STDC__
13840# include <limits.h>
13841#else
13842# include <assert.h>
13843#endif
13844
13845#undef $ac_func
13846
13847/* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13850#ifdef __cplusplus
13851extern "C"
13852#endif
13853char $ac_func ();
13854/* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857#if defined __stub_$ac_func || defined __stub___$ac_func
13858choke me
13859#endif
13860
13861int
13862main ()
13863{
13864return $ac_func ();
13865 ;
13866 return 0;
13867}
13868_ACEOF
13869rm -f conftest.$ac_objext conftest$ac_exeext
13870if { (ac_try="$ac_link"
13871case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874esac
13875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
13883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13884 { (case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13887esac
13888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_try") 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897esac
13898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_try") 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 eval "$as_ac_var=yes"
13904else
13905 echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
13908 eval "$as_ac_var=no"
13909fi
13910
13911rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
13913fi
13914ac_res=`eval echo '${'$as_ac_var'}'`
13915 { echo "$as_me:$LINENO: result: $ac_res" >&5
13916echo "${ECHO_T}$ac_res" >&6; }
13917if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spenceredd2ccc2007-02-16 19:17:20 +000013918 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spenceredd2ccc2007-02-16 19:17:20 +000013920_ACEOF
13921
13922fi
13923done
13924
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013925
13926
13927
Reid Spenceredd2ccc2007-02-16 19:17:20 +000013928for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013929do
13930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13931{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13933if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935else
13936 cat >conftest.$ac_ext <<_ACEOF
13937/* confdefs.h. */
13938_ACEOF
13939cat confdefs.h >>conftest.$ac_ext
13940cat >>conftest.$ac_ext <<_ACEOF
13941/* end confdefs.h. */
13942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13944#define $ac_func innocuous_$ac_func
13945
13946/* System header to define __stub macros and hopefully few prototypes,
13947 which can conflict with char $ac_func (); below.
13948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13949 <limits.h> exists even on freestanding compilers. */
13950
13951#ifdef __STDC__
13952# include <limits.h>
13953#else
13954# include <assert.h>
13955#endif
13956
13957#undef $ac_func
13958
13959/* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13962#ifdef __cplusplus
13963extern "C"
13964#endif
13965char $ac_func ();
13966/* The GNU C library defines this for functions which it implements
13967 to always fail with ENOSYS. Some functions are actually named
13968 something starting with __ and the normal name is an alias. */
13969#if defined __stub_$ac_func || defined __stub___$ac_func
13970choke me
13971#endif
13972
13973int
13974main ()
13975{
13976return $ac_func ();
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext conftest$ac_exeext
13982if { (ac_try="$ac_link"
13983case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986esac
13987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999esac
14000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest$ac_exeext'
14006 { (case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009esac
14010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 eval "$as_ac_var=yes"
14016else
14017 echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 eval "$as_ac_var=no"
14021fi
14022
14023rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025fi
14026ac_res=`eval echo '${'$as_ac_var'}'`
14027 { echo "$as_me:$LINENO: result: $ac_res" >&5
14028echo "${ECHO_T}$ac_res" >&6; }
14029if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera609b652006-01-23 08:15:53 +000014030 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera609b652006-01-23 08:15:53 +000014032_ACEOF
14033
14034fi
14035done
14036
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014037
14038
14039
14040
14041
Eric Christopherdea3bda2010-04-16 05:14:21 +000014042
Eric Christopher30536382013-07-26 17:13:47 +000014043for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014044do
14045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14046{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14048if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050else
14051 cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
14057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14059#define $ac_func innocuous_$ac_func
14060
14061/* System header to define __stub macros and hopefully few prototypes,
14062 which can conflict with char $ac_func (); below.
14063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14064 <limits.h> exists even on freestanding compilers. */
14065
14066#ifdef __STDC__
14067# include <limits.h>
14068#else
14069# include <assert.h>
14070#endif
14071
14072#undef $ac_func
14073
14074/* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
14077#ifdef __cplusplus
14078extern "C"
14079#endif
14080char $ac_func ();
14081/* The GNU C library defines this for functions which it implements
14082 to always fail with ENOSYS. Some functions are actually named
14083 something starting with __ and the normal name is an alias. */
14084#if defined __stub_$ac_func || defined __stub___$ac_func
14085choke me
14086#endif
14087
14088int
14089main ()
14090{
14091return $ac_func ();
14092 ;
14093 return 0;
14094}
14095_ACEOF
14096rm -f conftest.$ac_objext conftest$ac_exeext
14097if { (ac_try="$ac_link"
14098case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_link") 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114esac
14115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_try") 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; } &&
14120 { ac_try='test -s conftest$ac_exeext'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124esac
14125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 eval "$as_ac_var=yes"
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135 eval "$as_ac_var=no"
14136fi
14137
14138rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14140fi
14141ac_res=`eval echo '${'$as_ac_var'}'`
14142 { echo "$as_me:$LINENO: result: $ac_res" >&5
14143echo "${ECHO_T}$ac_res" >&6; }
14144if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000014145 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000014147_ACEOF
14148
14149fi
14150done
Reid Spencera609b652006-01-23 08:15:53 +000014151
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014152
14153
14154
Todd Fiala4ccfe392014-02-05 05:04:36 +000014155for ac_func in strerror strerror_r setenv
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014156do
14157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14158{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14160if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162else
14163 cat >conftest.$ac_ext <<_ACEOF
14164/* confdefs.h. */
14165_ACEOF
14166cat confdefs.h >>conftest.$ac_ext
14167cat >>conftest.$ac_ext <<_ACEOF
14168/* end confdefs.h. */
14169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14171#define $ac_func innocuous_$ac_func
14172
14173/* System header to define __stub macros and hopefully few prototypes,
14174 which can conflict with char $ac_func (); below.
14175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14176 <limits.h> exists even on freestanding compilers. */
14177
14178#ifdef __STDC__
14179# include <limits.h>
14180#else
14181# include <assert.h>
14182#endif
14183
14184#undef $ac_func
14185
14186/* Override any GCC internal prototype to avoid an error.
14187 Use char because int might match the return type of a GCC
14188 builtin and then its argument prototype would still apply. */
14189#ifdef __cplusplus
14190extern "C"
14191#endif
14192char $ac_func ();
14193/* The GNU C library defines this for functions which it implements
14194 to always fail with ENOSYS. Some functions are actually named
14195 something starting with __ and the normal name is an alias. */
14196#if defined __stub_$ac_func || defined __stub___$ac_func
14197choke me
14198#endif
14199
14200int
14201main ()
14202{
14203return $ac_func ();
14204 ;
14205 return 0;
14206}
14207_ACEOF
14208rm -f conftest.$ac_objext conftest$ac_exeext
14209if { (ac_try="$ac_link"
14210case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213esac
14214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_link") 2>conftest.er1
14216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14223 { (case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14226esac
14227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_try") 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest$ac_exeext'
14233 { (case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14236esac
14237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_try") 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 eval "$as_ac_var=yes"
14243else
14244 echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247 eval "$as_ac_var=no"
14248fi
14249
14250rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
14252fi
14253ac_res=`eval echo '${'$as_ac_var'}'`
14254 { echo "$as_me:$LINENO: result: $ac_res" >&5
14255echo "${ECHO_T}$ac_res" >&6; }
14256if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb6681582004-12-27 06:15:02 +000014257 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb6681582004-12-27 06:15:02 +000014259_ACEOF
14260
14261fi
14262done
14263
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014264
14265
14266
14267
Chris Lattner81479022005-11-14 07:25:50 +000014268for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014269do
14270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14271{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14273if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275else
14276 cat >conftest.$ac_ext <<_ACEOF
14277/* confdefs.h. */
14278_ACEOF
14279cat confdefs.h >>conftest.$ac_ext
14280cat >>conftest.$ac_ext <<_ACEOF
14281/* end confdefs.h. */
14282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14284#define $ac_func innocuous_$ac_func
14285
14286/* System header to define __stub macros and hopefully few prototypes,
14287 which can conflict with char $ac_func (); below.
14288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14289 <limits.h> exists even on freestanding compilers. */
14290
14291#ifdef __STDC__
14292# include <limits.h>
14293#else
14294# include <assert.h>
14295#endif
14296
14297#undef $ac_func
14298
14299/* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14302#ifdef __cplusplus
14303extern "C"
14304#endif
14305char $ac_func ();
14306/* The GNU C library defines this for functions which it implements
14307 to always fail with ENOSYS. Some functions are actually named
14308 something starting with __ and the normal name is an alias. */
14309#if defined __stub_$ac_func || defined __stub___$ac_func
14310choke me
14311#endif
14312
14313int
14314main ()
14315{
14316return $ac_func ();
14317 ;
14318 return 0;
14319}
14320_ACEOF
14321rm -f conftest.$ac_objext conftest$ac_exeext
14322if { (ac_try="$ac_link"
14323case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326esac
14327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14336 { (case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14339esac
14340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_try") 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; } &&
14345 { ac_try='test -s conftest$ac_exeext'
14346 { (case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14349esac
14350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351 (eval "$ac_try") 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 eval "$as_ac_var=yes"
14356else
14357 echo "$as_me: failed program was:" >&5
14358sed 's/^/| /' conftest.$ac_ext >&5
14359
14360 eval "$as_ac_var=no"
14361fi
14362
14363rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365fi
14366ac_res=`eval echo '${'$as_ac_var'}'`
14367 { echo "$as_me:$LINENO: result: $ac_res" >&5
14368echo "${ECHO_T}$ac_res" >&6; }
14369if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000014370 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000014372_ACEOF
14373
14374fi
Reid Spencer0241e382004-11-25 04:51:04 +000014375done
John Criswell3ef61af2003-06-30 21:59:07 +000014376
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014377
14378
14379
14380
Daniel Dunbar7840c542011-02-03 02:40:02 +000014381
14382for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014383do
14384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14389else
14390 cat >conftest.$ac_ext <<_ACEOF
14391/* confdefs.h. */
14392_ACEOF
14393cat confdefs.h >>conftest.$ac_ext
14394cat >>conftest.$ac_ext <<_ACEOF
14395/* end confdefs.h. */
14396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14398#define $ac_func innocuous_$ac_func
14399
14400/* System header to define __stub macros and hopefully few prototypes,
14401 which can conflict with char $ac_func (); below.
14402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14403 <limits.h> exists even on freestanding compilers. */
14404
14405#ifdef __STDC__
14406# include <limits.h>
14407#else
14408# include <assert.h>
14409#endif
14410
14411#undef $ac_func
14412
14413/* Override any GCC internal prototype to avoid an error.
14414 Use char because int might match the return type of a GCC
14415 builtin and then its argument prototype would still apply. */
14416#ifdef __cplusplus
14417extern "C"
14418#endif
14419char $ac_func ();
14420/* The GNU C library defines this for functions which it implements
14421 to always fail with ENOSYS. Some functions are actually named
14422 something starting with __ and the normal name is an alias. */
14423#if defined __stub_$ac_func || defined __stub___$ac_func
14424choke me
14425#endif
14426
14427int
14428main ()
14429{
14430return $ac_func ();
14431 ;
14432 return 0;
14433}
14434_ACEOF
14435rm -f conftest.$ac_objext conftest$ac_exeext
14436if { (ac_try="$ac_link"
14437case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14440esac
14441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_link") 2>conftest.er1
14443 ac_status=$?
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14450 { (case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14453esac
14454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_try") 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } &&
14459 { ac_try='test -s conftest$ac_exeext'
14460 { (case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14463esac
14464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_try") 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 eval "$as_ac_var=yes"
14470else
14471 echo "$as_me: failed program was:" >&5
14472sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 eval "$as_ac_var=no"
14475fi
14476
14477rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14479fi
14480ac_res=`eval echo '${'$as_ac_var'}'`
14481 { echo "$as_me:$LINENO: result: $ac_res" >&5
14482echo "${ECHO_T}$ac_res" >&6; }
14483if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera31ac4e2006-06-05 16:11:07 +000014484 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera31ac4e2006-06-05 16:11:07 +000014486_ACEOF
14487
14488fi
14489done
14490
Eric Christophera24dc7f2013-07-04 01:10:38 +000014491
14492
14493for ac_func in futimes futimens
14494do
14495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14496{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500else
14501 cat >conftest.$ac_ext <<_ACEOF
14502/* confdefs.h. */
14503_ACEOF
14504cat confdefs.h >>conftest.$ac_ext
14505cat >>conftest.$ac_ext <<_ACEOF
14506/* end confdefs.h. */
14507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14509#define $ac_func innocuous_$ac_func
14510
14511/* System header to define __stub macros and hopefully few prototypes,
14512 which can conflict with char $ac_func (); below.
14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514 <limits.h> exists even on freestanding compilers. */
14515
14516#ifdef __STDC__
14517# include <limits.h>
14518#else
14519# include <assert.h>
14520#endif
14521
14522#undef $ac_func
14523
14524/* Override any GCC internal prototype to avoid an error.
14525 Use char because int might match the return type of a GCC
14526 builtin and then its argument prototype would still apply. */
14527#ifdef __cplusplus
14528extern "C"
14529#endif
14530char $ac_func ();
14531/* The GNU C library defines this for functions which it implements
14532 to always fail with ENOSYS. Some functions are actually named
14533 something starting with __ and the normal name is an alias. */
14534#if defined __stub_$ac_func || defined __stub___$ac_func
14535choke me
14536#endif
14537
14538int
14539main ()
14540{
14541return $ac_func ();
14542 ;
14543 return 0;
14544}
14545_ACEOF
14546rm -f conftest.$ac_objext conftest$ac_exeext
14547if { (ac_try="$ac_link"
14548case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551esac
14552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_link") 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564esac
14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest$ac_exeext'
14571 { (case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574esac
14575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_try") 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 eval "$as_ac_var=yes"
14581else
14582 echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 eval "$as_ac_var=no"
14586fi
14587
14588rm -f core conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14590fi
14591ac_res=`eval echo '${'$as_ac_var'}'`
14592 { echo "$as_me:$LINENO: result: $ac_res" >&5
14593echo "${ECHO_T}$ac_res" >&6; }
14594if test `eval echo '${'$as_ac_var'}'` = yes; then
14595 cat >>confdefs.h <<_ACEOF
14596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14597_ACEOF
14598
14599fi
14600done
14601
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014602{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14603echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14604if test "${llvm_cv_c_printf_a+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014606else
Reid Spencerf184a862004-09-19 23:53:36 +000014607 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000014608ac_cpp='$CPP $CPPFLAGS'
14609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14611ac_compiler_gnu=$ac_cv_c_compiler_gnu
14612
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014613 if test "$cross_compiling" = yes; then
Reid Spencer8de46052004-11-27 22:01:43 +000014614 llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000014615else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014616 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerf184a862004-09-19 23:53:36 +000014617
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014618 /* confdefs.h. */
14619_ACEOF
14620cat confdefs.h >>conftest.$ac_ext
14621cat >>conftest.$ac_ext <<_ACEOF
14622/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000014623
John Criswell42859552003-10-13 16:22:01 +000014624#include <stdio.h>
Reid Spencerf184a862004-09-19 23:53:36 +000014625#include <stdlib.h>
14626
John Criswell42859552003-10-13 16:22:01 +000014627int
14628main ()
14629{
14630
Reid Spencerf184a862004-09-19 23:53:36 +000014631volatile double A, B;
14632char Buffer[100];
14633A = 1;
14634A /= 10.0;
14635sprintf(Buffer, "%a", A);
14636B = atof(Buffer);
14637if (A != B)
14638 return (1);
14639if (A != 0x1.999999999999ap-4)
14640 return (1);
14641return (0);
John Criswell42859552003-10-13 16:22:01 +000014642 ;
14643 return 0;
14644}
14645_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014646rm -f conftest$ac_exeext
14647if { (ac_try="$ac_link"
14648case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651esac
14652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_link") 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14657 { (case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660esac
14661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_try") 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
Reid Spencer8de46052004-11-27 22:01:43 +000014666 llvm_cv_c_printf_a=yes
John Criswell42859552003-10-13 16:22:01 +000014667else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014668 echo "$as_me: program exited with status $ac_status" >&5
14669echo "$as_me: failed program was:" >&5
14670sed 's/^/| /' conftest.$ac_ext >&5
14671
14672( exit $ac_status )
14673llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000014674fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014675rm -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 +000014676fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014677
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014678
Reid Spencerf184a862004-09-19 23:53:36 +000014679 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000014680ac_cpp='$CPP $CPPFLAGS'
14681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683ac_compiler_gnu=$ac_cv_c_compiler_gnu
14684
Reid Spencer0241e382004-11-25 04:51:04 +000014685fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014686{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14687echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer8de46052004-11-27 22:01:43 +000014688 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswell42859552003-10-13 16:22:01 +000014689
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014690cat >>confdefs.h <<\_ACEOF
14691#define HAVE_PRINTF_A 1
14692_ACEOF
John Criswell42859552003-10-13 16:22:01 +000014693
Reid Spencerf184a862004-09-19 23:53:36 +000014694 fi
John Criswell42859552003-10-13 16:22:01 +000014695
Reid Spencer0241e382004-11-25 04:51:04 +000014696
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014697
14698 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014699echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14700if test "${ac_cv_func_rand48+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014702else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014703
14704 ac_ext=cpp
Reid Spencer0241e382004-11-25 04:51:04 +000014705ac_cpp='$CXXCPP $CPPFLAGS'
14706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14709
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014710 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014715/* end confdefs.h. */
14716#include <stdlib.h>
14717int
14718main ()
14719{
14720srand48(0);lrand48();drand48();
14721 ;
14722 return 0;
14723}
14724_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014725rm -f conftest.$ac_objext
14726if { (ac_try="$ac_compile"
14727case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730esac
14731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_compile") 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14740 { (case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743esac
14744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_try") 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000014759 ac_cv_func_rand48=yes
14760else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014761 echo "$as_me: failed program was:" >&5
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 ac_cv_func_rand48=no
Reid Spencer0241e382004-11-25 04:51:04 +000014765fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014766
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014768 ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +000014769ac_cpp='$CPP $CPPFLAGS'
14770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14772ac_compiler_gnu=$ac_cv_c_compiler_gnu
14773
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014774
Reid Spencer0241e382004-11-25 04:51:04 +000014775fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014776{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14777echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000014778
14779if test "$ac_cv_func_rand48" = "yes" ; then
14780
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014781cat >>confdefs.h <<\_ACEOF
14782#define HAVE_RAND48 1
14783_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014784
14785fi
John Criswell3b4195f32004-02-13 21:57:29 +000014786
14787
Todd Fiala4ccfe392014-02-05 05:04:36 +000014788{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
14789echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
14790if test "${ac_cv_have_decl_arc4random+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14792else
14793 cat >conftest.$ac_ext <<_ACEOF
14794/* confdefs.h. */
14795_ACEOF
14796cat confdefs.h >>conftest.$ac_ext
14797cat >>conftest.$ac_ext <<_ACEOF
14798/* end confdefs.h. */
14799$ac_includes_default
14800int
14801main ()
14802{
14803#ifndef arc4random
14804 char *p = (char *) arc4random;
14805 return !p;
14806#endif
14807
14808 ;
14809 return 0;
14810}
14811_ACEOF
14812rm -f conftest.$ac_objext
14813if { (ac_try="$ac_compile"
14814case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817esac
14818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_compile") 2>conftest.er1
14820 ac_status=$?
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14827 { (case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830esac
14831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_try") 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; } &&
14836 { ac_try='test -s conftest.$ac_objext'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840esac
14841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_cv_have_decl_arc4random=yes
14847else
14848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_cv_have_decl_arc4random=no
14852fi
14853
14854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855fi
14856{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
14857echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
14858if test $ac_cv_have_decl_arc4random = yes; then
14859
14860cat >>confdefs.h <<_ACEOF
14861#define HAVE_DECL_ARC4RANDOM 1
14862_ACEOF
14863
14864
14865else
14866 cat >>confdefs.h <<_ACEOF
14867#define HAVE_DECL_ARC4RANDOM 0
14868_ACEOF
14869
14870
14871fi
14872
14873
14874
NAKAMURA Takumi189111802011-02-09 04:18:48 +000014875{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
14876echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
14877if test "${ac_cv_have_decl_strerror_s+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879else
14880 cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h. */
14886$ac_includes_default
14887int
14888main ()
14889{
14890#ifndef strerror_s
14891 char *p = (char *) strerror_s;
14892 return !p;
14893#endif
14894
14895 ;
14896 return 0;
14897}
14898_ACEOF
14899rm -f conftest.$ac_objext
14900if { (ac_try="$ac_compile"
14901case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14904esac
14905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_compile") 2>conftest.er1
14907 ac_status=$?
14908 grep -v '^ *+' conftest.er1 >conftest.err
14909 rm -f conftest.er1
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917esac
14918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927esac
14928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_cv_have_decl_strerror_s=yes
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938 ac_cv_have_decl_strerror_s=no
14939fi
14940
14941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14942fi
14943{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
14944echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
14945if test $ac_cv_have_decl_strerror_s = yes; then
14946
14947cat >>confdefs.h <<_ACEOF
14948#define HAVE_DECL_STRERROR_S 1
14949_ACEOF
14950
14951
14952else
14953 cat >>confdefs.h <<_ACEOF
14954#define HAVE_DECL_STRERROR_S 0
14955_ACEOF
14956
14957
14958fi
14959
14960
14961
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000014962if test "$llvm_cv_os_type" = "MingW" ; then
14963 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
14964echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
14965if test "${ac_cv_lib_gcc__alloca+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967else
14968 ac_check_lib_save_LIBS=$LIBS
14969LIBS="-lgcc $LIBS"
14970cat >conftest.$ac_ext <<_ACEOF
14971/* confdefs.h. */
14972_ACEOF
14973cat confdefs.h >>conftest.$ac_ext
14974cat >>conftest.$ac_ext <<_ACEOF
14975/* end confdefs.h. */
14976
14977/* Override any GCC internal prototype to avoid an error.
14978 Use char because int might match the return type of a GCC
14979 builtin and then its argument prototype would still apply. */
14980#ifdef __cplusplus
14981extern "C"
14982#endif
14983char _alloca ();
14984int
14985main ()
14986{
14987return _alloca ();
14988 ;
14989 return 0;
14990}
14991_ACEOF
14992rm -f conftest.$ac_objext conftest$ac_exeext
14993if { (ac_try="$ac_link"
14994case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14997esac
14998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_link") 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15007 { (case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010esac
15011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest$ac_exeext'
15017 { (case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020esac
15021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_try") 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_lib_gcc__alloca=yes
15027else
15028 echo "$as_me: failed program was:" >&5
15029sed 's/^/| /' conftest.$ac_ext >&5
15030
15031 ac_cv_lib_gcc__alloca=no
15032fi
15033
15034rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036LIBS=$ac_check_lib_save_LIBS
15037fi
15038{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15039echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15040if test $ac_cv_lib_gcc__alloca = yes; then
15041
15042cat >>confdefs.h <<\_ACEOF
15043#define HAVE__ALLOCA 1
15044_ACEOF
15045
15046fi
15047
15048 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15049echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15050if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052else
15053 ac_check_lib_save_LIBS=$LIBS
15054LIBS="-lgcc $LIBS"
15055cat >conftest.$ac_ext <<_ACEOF
15056/* confdefs.h. */
15057_ACEOF
15058cat confdefs.h >>conftest.$ac_ext
15059cat >>conftest.$ac_ext <<_ACEOF
15060/* end confdefs.h. */
15061
15062/* Override any GCC internal prototype to avoid an error.
15063 Use char because int might match the return type of a GCC
15064 builtin and then its argument prototype would still apply. */
15065#ifdef __cplusplus
15066extern "C"
15067#endif
15068char __alloca ();
15069int
15070main ()
15071{
15072return __alloca ();
15073 ;
15074 return 0;
15075}
15076_ACEOF
15077rm -f conftest.$ac_objext conftest$ac_exeext
15078if { (ac_try="$ac_link"
15079case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082esac
15083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_link") 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest$ac_exeext'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105esac
15106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 ac_cv_lib_gcc___alloca=yes
15112else
15113 echo "$as_me: failed program was:" >&5
15114sed 's/^/| /' conftest.$ac_ext >&5
15115
15116 ac_cv_lib_gcc___alloca=no
15117fi
15118
15119rm -f core conftest.err conftest.$ac_objext \
15120 conftest$ac_exeext conftest.$ac_ext
15121LIBS=$ac_check_lib_save_LIBS
15122fi
15123{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15124echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15125if test $ac_cv_lib_gcc___alloca = yes; then
15126
15127cat >>confdefs.h <<\_ACEOF
15128#define HAVE___ALLOCA 1
15129_ACEOF
15130
15131fi
15132
15133 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15134echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15135if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137else
15138 ac_check_lib_save_LIBS=$LIBS
15139LIBS="-lgcc $LIBS"
15140cat >conftest.$ac_ext <<_ACEOF
15141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
15146
15147/* Override any GCC internal prototype to avoid an error.
15148 Use char because int might match the return type of a GCC
15149 builtin and then its argument prototype would still apply. */
15150#ifdef __cplusplus
15151extern "C"
15152#endif
15153char __chkstk ();
15154int
15155main ()
15156{
15157return __chkstk ();
15158 ;
15159 return 0;
15160}
15161_ACEOF
15162rm -f conftest.$ac_objext conftest$ac_exeext
15163if { (ac_try="$ac_link"
15164case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15167esac
15168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169 (eval "$ac_link") 2>conftest.er1
15170 ac_status=$?
15171 grep -v '^ *+' conftest.er1 >conftest.err
15172 rm -f conftest.er1
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15177 { (case "(($ac_try" in
15178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15180esac
15181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_try") 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest$ac_exeext'
15187 { (case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15190esac
15191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_try") 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 ac_cv_lib_gcc___chkstk=yes
15197else
15198 echo "$as_me: failed program was:" >&5
15199sed 's/^/| /' conftest.$ac_ext >&5
15200
15201 ac_cv_lib_gcc___chkstk=no
15202fi
15203
15204rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206LIBS=$ac_check_lib_save_LIBS
15207fi
15208{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15209echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15210if test $ac_cv_lib_gcc___chkstk = yes; then
15211
15212cat >>confdefs.h <<\_ACEOF
15213#define HAVE___CHKSTK 1
15214_ACEOF
15215
15216fi
15217
NAKAMURA Takumi78855072015-01-30 13:01:19 +000015218 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15219echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15220if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222else
15223 ac_check_lib_save_LIBS=$LIBS
15224LIBS="-lgcc $LIBS"
15225cat >conftest.$ac_ext <<_ACEOF
15226/* confdefs.h. */
15227_ACEOF
15228cat confdefs.h >>conftest.$ac_ext
15229cat >>conftest.$ac_ext <<_ACEOF
15230/* end confdefs.h. */
15231
15232/* Override any GCC internal prototype to avoid an error.
15233 Use char because int might match the return type of a GCC
15234 builtin and then its argument prototype would still apply. */
15235#ifdef __cplusplus
15236extern "C"
15237#endif
15238char __chkstk_ms ();
15239int
15240main ()
15241{
15242return __chkstk_ms ();
15243 ;
15244 return 0;
15245}
15246_ACEOF
15247rm -f conftest.$ac_objext conftest$ac_exeext
15248if { (ac_try="$ac_link"
15249case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252esac
15253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_link") 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest$ac_exeext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275esac
15276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_cv_lib_gcc___chkstk_ms=yes
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286 ac_cv_lib_gcc___chkstk_ms=no
15287fi
15288
15289rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
15291LIBS=$ac_check_lib_save_LIBS
15292fi
15293{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15294echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15295if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15296
15297cat >>confdefs.h <<\_ACEOF
15298#define HAVE___CHKSTK_MS 1
15299_ACEOF
15300
15301fi
15302
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000015303 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15304echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15305if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307else
15308 ac_check_lib_save_LIBS=$LIBS
15309LIBS="-lgcc $LIBS"
15310cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
15316
15317/* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15320#ifdef __cplusplus
15321extern "C"
15322#endif
15323char ___chkstk ();
15324int
15325main ()
15326{
15327return ___chkstk ();
15328 ;
15329 return 0;
15330}
15331_ACEOF
15332rm -f conftest.$ac_objext conftest$ac_exeext
15333if { (ac_try="$ac_link"
15334case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337esac
15338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
15340 ac_status=$?
15341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350esac
15351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest$ac_exeext'
15357 { (case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15360esac
15361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_try") 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_cv_lib_gcc____chkstk=yes
15367else
15368 echo "$as_me: failed program was:" >&5
15369sed 's/^/| /' conftest.$ac_ext >&5
15370
15371 ac_cv_lib_gcc____chkstk=no
15372fi
15373
15374rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376LIBS=$ac_check_lib_save_LIBS
15377fi
15378{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15379echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15380if test $ac_cv_lib_gcc____chkstk = yes; then
15381
15382cat >>confdefs.h <<\_ACEOF
15383#define HAVE____CHKSTK 1
15384_ACEOF
15385
15386fi
15387
NAKAMURA Takumi78855072015-01-30 13:01:19 +000015388 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15389echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15390if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15392else
15393 ac_check_lib_save_LIBS=$LIBS
15394LIBS="-lgcc $LIBS"
15395cat >conftest.$ac_ext <<_ACEOF
15396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
15401
15402/* Override any GCC internal prototype to avoid an error.
15403 Use char because int might match the return type of a GCC
15404 builtin and then its argument prototype would still apply. */
15405#ifdef __cplusplus
15406extern "C"
15407#endif
15408char ___chkstk_ms ();
15409int
15410main ()
15411{
15412return ___chkstk_ms ();
15413 ;
15414 return 0;
15415}
15416_ACEOF
15417rm -f conftest.$ac_objext conftest$ac_exeext
15418if { (ac_try="$ac_link"
15419case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422esac
15423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_link") 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15432 { (case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15435esac
15436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_try") 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 ac_cv_lib_gcc____chkstk_ms=yes
15452else
15453 echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_cv_lib_gcc____chkstk_ms=no
15457fi
15458
15459rm -f core conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461LIBS=$ac_check_lib_save_LIBS
15462fi
15463{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15464echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15465if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15466
15467cat >>confdefs.h <<\_ACEOF
15468#define HAVE____CHKSTK_MS 1
15469_ACEOF
15470
15471fi
15472
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000015473
15474 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15475echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15476if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15478else
15479 ac_check_lib_save_LIBS=$LIBS
15480LIBS="-lgcc $LIBS"
15481cat >conftest.$ac_ext <<_ACEOF
15482/* confdefs.h. */
15483_ACEOF
15484cat confdefs.h >>conftest.$ac_ext
15485cat >>conftest.$ac_ext <<_ACEOF
15486/* end confdefs.h. */
15487
15488/* Override any GCC internal prototype to avoid an error.
15489 Use char because int might match the return type of a GCC
15490 builtin and then its argument prototype would still apply. */
15491#ifdef __cplusplus
15492extern "C"
15493#endif
15494char __ashldi3 ();
15495int
15496main ()
15497{
15498return __ashldi3 ();
15499 ;
15500 return 0;
15501}
15502_ACEOF
15503rm -f conftest.$ac_objext conftest$ac_exeext
15504if { (ac_try="$ac_link"
15505case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508esac
15509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_link") 2>conftest.er1
15511 ac_status=$?
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } &&
15517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15518 { (case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521esac
15522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_try") 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest$ac_exeext'
15528 { (case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15531esac
15532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_try") 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_lib_gcc___ashldi3=yes
15538else
15539 echo "$as_me: failed program was:" >&5
15540sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 ac_cv_lib_gcc___ashldi3=no
15543fi
15544
15545rm -f core conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547LIBS=$ac_check_lib_save_LIBS
15548fi
15549{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15550echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15551if test $ac_cv_lib_gcc___ashldi3 = yes; then
15552
15553cat >>confdefs.h <<\_ACEOF
15554#define HAVE___ASHLDI3 1
15555_ACEOF
15556
15557fi
15558
15559 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15560echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15561if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15563else
15564 ac_check_lib_save_LIBS=$LIBS
15565LIBS="-lgcc $LIBS"
15566cat >conftest.$ac_ext <<_ACEOF
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572
15573/* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15576#ifdef __cplusplus
15577extern "C"
15578#endif
15579char __ashrdi3 ();
15580int
15581main ()
15582{
15583return __ashrdi3 ();
15584 ;
15585 return 0;
15586}
15587_ACEOF
15588rm -f conftest.$ac_objext conftest$ac_exeext
15589if { (ac_try="$ac_link"
15590case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15593esac
15594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_link") 2>conftest.er1
15596 ac_status=$?
15597 grep -v '^ *+' conftest.er1 >conftest.err
15598 rm -f conftest.er1
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest$ac_exeext'
15613 { (case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_try") 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_lib_gcc___ashrdi3=yes
15623else
15624 echo "$as_me: failed program was:" >&5
15625sed 's/^/| /' conftest.$ac_ext >&5
15626
15627 ac_cv_lib_gcc___ashrdi3=no
15628fi
15629
15630rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632LIBS=$ac_check_lib_save_LIBS
15633fi
15634{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15635echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15636if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15637
15638cat >>confdefs.h <<\_ACEOF
15639#define HAVE___ASHRDI3 1
15640_ACEOF
15641
15642fi
15643
15644 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15645echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15646if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648else
15649 ac_check_lib_save_LIBS=$LIBS
15650LIBS="-lgcc $LIBS"
15651cat >conftest.$ac_ext <<_ACEOF
15652/* confdefs.h. */
15653_ACEOF
15654cat confdefs.h >>conftest.$ac_ext
15655cat >>conftest.$ac_ext <<_ACEOF
15656/* end confdefs.h. */
15657
15658/* Override any GCC internal prototype to avoid an error.
15659 Use char because int might match the return type of a GCC
15660 builtin and then its argument prototype would still apply. */
15661#ifdef __cplusplus
15662extern "C"
15663#endif
15664char __divdi3 ();
15665int
15666main ()
15667{
15668return __divdi3 ();
15669 ;
15670 return 0;
15671}
15672_ACEOF
15673rm -f conftest.$ac_objext conftest$ac_exeext
15674if { (ac_try="$ac_link"
15675case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15678esac
15679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_link") 2>conftest.er1
15681 ac_status=$?
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15691esac
15692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest$ac_exeext'
15698 { (case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15701esac
15702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_try") 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_lib_gcc___divdi3=yes
15708else
15709 echo "$as_me: failed program was:" >&5
15710sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 ac_cv_lib_gcc___divdi3=no
15713fi
15714
15715rm -f core conftest.err conftest.$ac_objext \
15716 conftest$ac_exeext conftest.$ac_ext
15717LIBS=$ac_check_lib_save_LIBS
15718fi
15719{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15720echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15721if test $ac_cv_lib_gcc___divdi3 = yes; then
15722
15723cat >>confdefs.h <<\_ACEOF
15724#define HAVE___DIVDI3 1
15725_ACEOF
15726
15727fi
15728
15729 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15730echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15731if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15733else
15734 ac_check_lib_save_LIBS=$LIBS
15735LIBS="-lgcc $LIBS"
15736cat >conftest.$ac_ext <<_ACEOF
15737/* confdefs.h. */
15738_ACEOF
15739cat confdefs.h >>conftest.$ac_ext
15740cat >>conftest.$ac_ext <<_ACEOF
15741/* end confdefs.h. */
15742
15743/* Override any GCC internal prototype to avoid an error.
15744 Use char because int might match the return type of a GCC
15745 builtin and then its argument prototype would still apply. */
15746#ifdef __cplusplus
15747extern "C"
15748#endif
15749char __fixdfdi ();
15750int
15751main ()
15752{
15753return __fixdfdi ();
15754 ;
15755 return 0;
15756}
15757_ACEOF
15758rm -f conftest.$ac_objext conftest$ac_exeext
15759if { (ac_try="$ac_link"
15760case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763esac
15764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_link") 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15773 { (case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776esac
15777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_try") 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; } &&
15782 { ac_try='test -s conftest$ac_exeext'
15783 { (case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_try") 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_cv_lib_gcc___fixdfdi=yes
15793else
15794 echo "$as_me: failed program was:" >&5
15795sed 's/^/| /' conftest.$ac_ext >&5
15796
15797 ac_cv_lib_gcc___fixdfdi=no
15798fi
15799
15800rm -f core conftest.err conftest.$ac_objext \
15801 conftest$ac_exeext conftest.$ac_ext
15802LIBS=$ac_check_lib_save_LIBS
15803fi
15804{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15805echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15806if test $ac_cv_lib_gcc___fixdfdi = yes; then
15807
15808cat >>confdefs.h <<\_ACEOF
15809#define HAVE___FIXDFDI 1
15810_ACEOF
15811
15812fi
15813
15814 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15815echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15816if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15818else
15819 ac_check_lib_save_LIBS=$LIBS
15820LIBS="-lgcc $LIBS"
15821cat >conftest.$ac_ext <<_ACEOF
15822/* confdefs.h. */
15823_ACEOF
15824cat confdefs.h >>conftest.$ac_ext
15825cat >>conftest.$ac_ext <<_ACEOF
15826/* end confdefs.h. */
15827
15828/* Override any GCC internal prototype to avoid an error.
15829 Use char because int might match the return type of a GCC
15830 builtin and then its argument prototype would still apply. */
15831#ifdef __cplusplus
15832extern "C"
15833#endif
15834char __fixsfdi ();
15835int
15836main ()
15837{
15838return __fixsfdi ();
15839 ;
15840 return 0;
15841}
15842_ACEOF
15843rm -f conftest.$ac_objext conftest$ac_exeext
15844if { (ac_try="$ac_link"
15845case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15848esac
15849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_link") 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15858 { (case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15861esac
15862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_try") 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try='test -s conftest$ac_exeext'
15868 { (case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871esac
15872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_try") 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_cv_lib_gcc___fixsfdi=yes
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882 ac_cv_lib_gcc___fixsfdi=no
15883fi
15884
15885rm -f core conftest.err conftest.$ac_objext \
15886 conftest$ac_exeext conftest.$ac_ext
15887LIBS=$ac_check_lib_save_LIBS
15888fi
15889{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15890echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15891if test $ac_cv_lib_gcc___fixsfdi = yes; then
15892
15893cat >>confdefs.h <<\_ACEOF
15894#define HAVE___FIXSFDI 1
15895_ACEOF
15896
15897fi
15898
15899 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15900echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15901if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15903else
15904 ac_check_lib_save_LIBS=$LIBS
15905LIBS="-lgcc $LIBS"
15906cat >conftest.$ac_ext <<_ACEOF
15907/* confdefs.h. */
15908_ACEOF
15909cat confdefs.h >>conftest.$ac_ext
15910cat >>conftest.$ac_ext <<_ACEOF
15911/* end confdefs.h. */
15912
15913/* Override any GCC internal prototype to avoid an error.
15914 Use char because int might match the return type of a GCC
15915 builtin and then its argument prototype would still apply. */
15916#ifdef __cplusplus
15917extern "C"
15918#endif
15919char __floatdidf ();
15920int
15921main ()
15922{
15923return __floatdidf ();
15924 ;
15925 return 0;
15926}
15927_ACEOF
15928rm -f conftest.$ac_objext conftest$ac_exeext
15929if { (ac_try="$ac_link"
15930case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933esac
15934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_link") 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946esac
15947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_try") 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest$ac_exeext'
15953 { (case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956esac
15957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_try") 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_lib_gcc___floatdidf=yes
15963else
15964 echo "$as_me: failed program was:" >&5
15965sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 ac_cv_lib_gcc___floatdidf=no
15968fi
15969
15970rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15972LIBS=$ac_check_lib_save_LIBS
15973fi
15974{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15975echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15976if test $ac_cv_lib_gcc___floatdidf = yes; then
15977
15978cat >>confdefs.h <<\_ACEOF
15979#define HAVE___FLOATDIDF 1
15980_ACEOF
15981
15982fi
15983
15984 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15985echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15986if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988else
15989 ac_check_lib_save_LIBS=$LIBS
15990LIBS="-lgcc $LIBS"
15991cat >conftest.$ac_ext <<_ACEOF
15992/* confdefs.h. */
15993_ACEOF
15994cat confdefs.h >>conftest.$ac_ext
15995cat >>conftest.$ac_ext <<_ACEOF
15996/* end confdefs.h. */
15997
15998/* Override any GCC internal prototype to avoid an error.
15999 Use char because int might match the return type of a GCC
16000 builtin and then its argument prototype would still apply. */
16001#ifdef __cplusplus
16002extern "C"
16003#endif
16004char __lshrdi3 ();
16005int
16006main ()
16007{
16008return __lshrdi3 ();
16009 ;
16010 return 0;
16011}
16012_ACEOF
16013rm -f conftest.$ac_objext conftest$ac_exeext
16014if { (ac_try="$ac_link"
16015case "(($ac_try" in
16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16018esac
16019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_link") 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16028 { (case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16031esac
16032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_try") 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try='test -s conftest$ac_exeext'
16038 { (case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041esac
16042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_try") 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_cv_lib_gcc___lshrdi3=yes
16048else
16049 echo "$as_me: failed program was:" >&5
16050sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 ac_cv_lib_gcc___lshrdi3=no
16053fi
16054
16055rm -f core conftest.err conftest.$ac_objext \
16056 conftest$ac_exeext conftest.$ac_ext
16057LIBS=$ac_check_lib_save_LIBS
16058fi
16059{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16060echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16061if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16062
16063cat >>confdefs.h <<\_ACEOF
16064#define HAVE___LSHRDI3 1
16065_ACEOF
16066
16067fi
16068
16069 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16070echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16071if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073else
16074 ac_check_lib_save_LIBS=$LIBS
16075LIBS="-lgcc $LIBS"
16076cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082
16083/* Override any GCC internal prototype to avoid an error.
16084 Use char because int might match the return type of a GCC
16085 builtin and then its argument prototype would still apply. */
16086#ifdef __cplusplus
16087extern "C"
16088#endif
16089char __moddi3 ();
16090int
16091main ()
16092{
16093return __moddi3 ();
16094 ;
16095 return 0;
16096}
16097_ACEOF
16098rm -f conftest.$ac_objext conftest$ac_exeext
16099if { (ac_try="$ac_link"
16100case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16103esac
16104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_link") 2>conftest.er1
16106 ac_status=$?
16107 grep -v '^ *+' conftest.er1 >conftest.err
16108 rm -f conftest.er1
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
16112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16113 { (case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16116esac
16117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_try") 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest$ac_exeext'
16123 { (case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16126esac
16127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128 (eval "$ac_try") 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_cv_lib_gcc___moddi3=yes
16133else
16134 echo "$as_me: failed program was:" >&5
16135sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ac_cv_lib_gcc___moddi3=no
16138fi
16139
16140rm -f core conftest.err conftest.$ac_objext \
16141 conftest$ac_exeext conftest.$ac_ext
16142LIBS=$ac_check_lib_save_LIBS
16143fi
16144{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16145echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16146if test $ac_cv_lib_gcc___moddi3 = yes; then
16147
16148cat >>confdefs.h <<\_ACEOF
16149#define HAVE___MODDI3 1
16150_ACEOF
16151
16152fi
16153
16154 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16155echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16156if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158else
16159 ac_check_lib_save_LIBS=$LIBS
16160LIBS="-lgcc $LIBS"
16161cat >conftest.$ac_ext <<_ACEOF
16162/* confdefs.h. */
16163_ACEOF
16164cat confdefs.h >>conftest.$ac_ext
16165cat >>conftest.$ac_ext <<_ACEOF
16166/* end confdefs.h. */
16167
16168/* Override any GCC internal prototype to avoid an error.
16169 Use char because int might match the return type of a GCC
16170 builtin and then its argument prototype would still apply. */
16171#ifdef __cplusplus
16172extern "C"
16173#endif
16174char __udivdi3 ();
16175int
16176main ()
16177{
16178return __udivdi3 ();
16179 ;
16180 return 0;
16181}
16182_ACEOF
16183rm -f conftest.$ac_objext conftest$ac_exeext
16184if { (ac_try="$ac_link"
16185case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16188esac
16189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190 (eval "$ac_link") 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16198 { (case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16201esac
16202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_try") 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16217 ac_cv_lib_gcc___udivdi3=yes
16218else
16219 echo "$as_me: failed program was:" >&5
16220sed 's/^/| /' conftest.$ac_ext >&5
16221
16222 ac_cv_lib_gcc___udivdi3=no
16223fi
16224
16225rm -f core conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16227LIBS=$ac_check_lib_save_LIBS
16228fi
16229{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16230echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16231if test $ac_cv_lib_gcc___udivdi3 = yes; then
16232
16233cat >>confdefs.h <<\_ACEOF
16234#define HAVE___UDIVDI3 1
16235_ACEOF
16236
16237fi
16238
16239 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16240echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16241if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16243else
16244 ac_check_lib_save_LIBS=$LIBS
16245LIBS="-lgcc $LIBS"
16246cat >conftest.$ac_ext <<_ACEOF
16247/* confdefs.h. */
16248_ACEOF
16249cat confdefs.h >>conftest.$ac_ext
16250cat >>conftest.$ac_ext <<_ACEOF
16251/* end confdefs.h. */
16252
16253/* Override any GCC internal prototype to avoid an error.
16254 Use char because int might match the return type of a GCC
16255 builtin and then its argument prototype would still apply. */
16256#ifdef __cplusplus
16257extern "C"
16258#endif
16259char __umoddi3 ();
16260int
16261main ()
16262{
16263return __umoddi3 ();
16264 ;
16265 return 0;
16266}
16267_ACEOF
16268rm -f conftest.$ac_objext conftest$ac_exeext
16269if { (ac_try="$ac_link"
16270case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16273esac
16274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_link") 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16286esac
16287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest$ac_exeext'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296esac
16297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_cv_lib_gcc___umoddi3=yes
16303else
16304 echo "$as_me: failed program was:" >&5
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
16307 ac_cv_lib_gcc___umoddi3=no
16308fi
16309
16310rm -f core conftest.err conftest.$ac_objext \
16311 conftest$ac_exeext conftest.$ac_ext
16312LIBS=$ac_check_lib_save_LIBS
16313fi
16314{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16315echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16316if test $ac_cv_lib_gcc___umoddi3 = yes; then
16317
16318cat >>confdefs.h <<\_ACEOF
16319#define HAVE___UMODDI3 1
16320_ACEOF
16321
16322fi
16323
16324
16325 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16326echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16327if test "${ac_cv_lib_gcc___main+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16329else
16330 ac_check_lib_save_LIBS=$LIBS
16331LIBS="-lgcc $LIBS"
16332cat >conftest.$ac_ext <<_ACEOF
16333/* confdefs.h. */
16334_ACEOF
16335cat confdefs.h >>conftest.$ac_ext
16336cat >>conftest.$ac_ext <<_ACEOF
16337/* end confdefs.h. */
16338
16339/* Override any GCC internal prototype to avoid an error.
16340 Use char because int might match the return type of a GCC
16341 builtin and then its argument prototype would still apply. */
16342#ifdef __cplusplus
16343extern "C"
16344#endif
16345char __main ();
16346int
16347main ()
16348{
16349return __main ();
16350 ;
16351 return 0;
16352}
16353_ACEOF
16354rm -f conftest.$ac_objext conftest$ac_exeext
16355if { (ac_try="$ac_link"
16356case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16359esac
16360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_link") 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372esac
16373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; } &&
16378 { ac_try='test -s conftest$ac_exeext'
16379 { (case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382esac
16383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_try") 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16388 ac_cv_lib_gcc___main=yes
16389else
16390 echo "$as_me: failed program was:" >&5
16391sed 's/^/| /' conftest.$ac_ext >&5
16392
16393 ac_cv_lib_gcc___main=no
16394fi
16395
16396rm -f core conftest.err conftest.$ac_objext \
16397 conftest$ac_exeext conftest.$ac_ext
16398LIBS=$ac_check_lib_save_LIBS
16399fi
16400{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16401echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16402if test $ac_cv_lib_gcc___main = yes; then
16403
16404cat >>confdefs.h <<\_ACEOF
16405#define HAVE___MAIN 1
16406_ACEOF
16407
16408fi
16409
16410 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16411echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16412if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16414else
16415 ac_check_lib_save_LIBS=$LIBS
16416LIBS="-lgcc $LIBS"
16417cat >conftest.$ac_ext <<_ACEOF
16418/* confdefs.h. */
16419_ACEOF
16420cat confdefs.h >>conftest.$ac_ext
16421cat >>conftest.$ac_ext <<_ACEOF
16422/* end confdefs.h. */
16423
16424/* Override any GCC internal prototype to avoid an error.
16425 Use char because int might match the return type of a GCC
16426 builtin and then its argument prototype would still apply. */
16427#ifdef __cplusplus
16428extern "C"
16429#endif
16430char __cmpdi2 ();
16431int
16432main ()
16433{
16434return __cmpdi2 ();
16435 ;
16436 return 0;
16437}
16438_ACEOF
16439rm -f conftest.$ac_objext conftest$ac_exeext
16440if { (ac_try="$ac_link"
16441case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444esac
16445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_link") 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16457esac
16458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest$ac_exeext'
16464 { (case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16467esac
16468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_try") 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_cv_lib_gcc___cmpdi2=yes
16474else
16475 echo "$as_me: failed program was:" >&5
16476sed 's/^/| /' conftest.$ac_ext >&5
16477
16478 ac_cv_lib_gcc___cmpdi2=no
16479fi
16480
16481rm -f core conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483LIBS=$ac_check_lib_save_LIBS
16484fi
16485{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16486echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16487if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16488
16489cat >>confdefs.h <<\_ACEOF
16490#define HAVE___CMPDI2 1
16491_ACEOF
16492
16493fi
16494
16495fi
16496
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000016497if test "$llvm_cv_os_type" = "MingW" ; then
16498 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16499echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16500 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016501
16502 /* confdefs.h. */
16503_ACEOF
16504cat confdefs.h >>conftest.$ac_ext
16505cat >>conftest.$ac_ext <<_ACEOF
16506/* end confdefs.h. */
16507
16508 #include <windows.h>
16509 #include <imagehlp.h>
16510 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16511 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16512
16513
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000016514_ACEOF
16515rm -f conftest.$ac_objext
16516if { (ac_try="$ac_compile"
16517case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_compile") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533esac
16534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest.$ac_objext'
16540 { (case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16543esac
16544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_try") 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549
16550 { echo "$as_me:$LINENO: result: yes" >&5
16551echo "${ECHO_T}yes" >&6; }
16552 llvm_cv_win32_elmcb_pcstr="PCSTR"
16553
16554else
16555 echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558
16559 { echo "$as_me:$LINENO: result: no" >&5
16560echo "${ECHO_T}no" >&6; }
16561 llvm_cv_win32_elmcb_pcstr="PSTR"
16562
16563fi
16564
16565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566
16567cat >>confdefs.h <<_ACEOF
16568#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16569_ACEOF
16570
16571fi
16572
Reid Spencerdfda0612007-01-20 07:48:49 +000016573if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell3ef61af2003-06-30 21:59:07 +000016574
16575
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016576for ac_header in stdlib.h unistd.h
16577do
16578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584fi
16585ac_res=`eval echo '${'$as_ac_Header'}'`
16586 { echo "$as_me:$LINENO: result: $ac_res" >&5
16587echo "${ECHO_T}$ac_res" >&6; }
16588else
16589 # Is the header compilable?
16590{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16592cat >conftest.$ac_ext <<_ACEOF
16593/* confdefs.h. */
16594_ACEOF
16595cat confdefs.h >>conftest.$ac_ext
16596cat >>conftest.$ac_ext <<_ACEOF
16597/* end confdefs.h. */
16598$ac_includes_default
16599#include <$ac_header>
16600_ACEOF
16601rm -f conftest.$ac_objext
16602if { (ac_try="$ac_compile"
16603case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606esac
16607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_compile") 2>conftest.er1
16609 ac_status=$?
16610 grep -v '^ *+' conftest.er1 >conftest.err
16611 rm -f conftest.er1
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } &&
16615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619esac
16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try='test -s conftest.$ac_objext'
16626 { (case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629esac
16630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_try") 2>&5
16632 ac_status=$?
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16635 ac_header_compiler=yes
16636else
16637 echo "$as_me: failed program was:" >&5
16638sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000016639
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016640 ac_header_compiler=no
16641fi
16642
16643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16645echo "${ECHO_T}$ac_header_compiler" >&6; }
16646
16647# Is the header present?
16648{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16650cat >conftest.$ac_ext <<_ACEOF
16651/* confdefs.h. */
16652_ACEOF
16653cat confdefs.h >>conftest.$ac_ext
16654cat >>conftest.$ac_ext <<_ACEOF
16655/* end confdefs.h. */
16656#include <$ac_header>
16657_ACEOF
16658if { (ac_try="$ac_cpp conftest.$ac_ext"
16659case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662esac
16663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } >/dev/null; then
16671 if test -s conftest.err; then
16672 ac_cpp_err=$ac_c_preproc_warn_flag
16673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16674 else
16675 ac_cpp_err=
16676 fi
16677else
16678 ac_cpp_err=yes
16679fi
16680if test -z "$ac_cpp_err"; then
16681 ac_header_preproc=yes
16682else
16683 echo "$as_me: failed program was:" >&5
16684sed 's/^/| /' conftest.$ac_ext >&5
16685
16686 ac_header_preproc=no
16687fi
16688
16689rm -f conftest.err conftest.$ac_ext
16690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16691echo "${ECHO_T}$ac_header_preproc" >&6; }
16692
16693# So? What about this header?
16694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16695 yes:no: )
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16700 ac_header_preproc=yes
16701 ;;
16702 no:yes:* )
16703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16715 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016716## ------------------------------------ ##
16717## Report this to http://llvm.org/bugs/ ##
16718## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016719_ASBOX
16720 ) | sed "s/^/$as_me: WARNING: /" >&2
16721 ;;
16722esac
16723{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16727else
16728 eval "$as_ac_Header=\$ac_header_preproc"
16729fi
16730ac_res=`eval echo '${'$as_ac_Header'}'`
16731 { echo "$as_me:$LINENO: result: $ac_res" >&5
16732echo "${ECHO_T}$ac_res" >&6; }
16733
16734fi
16735if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000016736 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000016738_ACEOF
16739
16740fi
16741
16742done
16743
16744
16745for ac_func in getpagesize
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016746do
16747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16752else
16753 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16761#define $ac_func innocuous_$ac_func
16762
16763/* System header to define __stub macros and hopefully few prototypes,
16764 which can conflict with char $ac_func (); below.
16765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766 <limits.h> exists even on freestanding compilers. */
16767
16768#ifdef __STDC__
16769# include <limits.h>
16770#else
16771# include <assert.h>
16772#endif
16773
16774#undef $ac_func
16775
16776/* Override any GCC internal prototype to avoid an error.
16777 Use char because int might match the return type of a GCC
16778 builtin and then its argument prototype would still apply. */
16779#ifdef __cplusplus
16780extern "C"
16781#endif
16782char $ac_func ();
16783/* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786#if defined __stub_$ac_func || defined __stub___$ac_func
16787choke me
16788#endif
16789
16790int
16791main ()
16792{
16793return $ac_func ();
16794 ;
16795 return 0;
16796}
16797_ACEOF
16798rm -f conftest.$ac_objext conftest$ac_exeext
16799if { (ac_try="$ac_link"
16800case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803esac
16804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_link") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
16817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest$ac_exeext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826esac
16827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 eval "$as_ac_var=yes"
16833else
16834 echo "$as_me: failed program was:" >&5
16835sed 's/^/| /' conftest.$ac_ext >&5
16836
16837 eval "$as_ac_var=no"
16838fi
16839
16840rm -f core conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16842fi
16843ac_res=`eval echo '${'$as_ac_var'}'`
16844 { echo "$as_me:$LINENO: result: $ac_res" >&5
16845echo "${ECHO_T}$ac_res" >&6; }
16846if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000016847 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000016849_ACEOF
16850
16851fi
16852done
16853
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016854{ echo "$as_me:$LINENO: checking for working mmap" >&5
16855echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16856if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000016858else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016859 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000016860 ac_cv_func_mmap_fixed_mapped=no
16861else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016862 cat >conftest.$ac_ext <<_ACEOF
16863/* confdefs.h. */
16864_ACEOF
16865cat confdefs.h >>conftest.$ac_ext
16866cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000016867/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000016868$ac_includes_default
16869/* malloc might have been renamed as rpl_malloc. */
16870#undef malloc
16871
16872/* Thanks to Mike Haertel and Jim Avera for this test.
16873 Here is a matrix of mmap possibilities:
16874 mmap private not fixed
16875 mmap private fixed at somewhere currently unmapped
16876 mmap private fixed at somewhere already mapped
16877 mmap shared not fixed
16878 mmap shared fixed at somewhere currently unmapped
16879 mmap shared fixed at somewhere already mapped
16880 For private mappings, we should verify that changes cannot be read()
16881 back from the file, nor mmap's back from the file at a different
16882 address. (There have been systems where private was not correctly
16883 implemented like the infamous i386 svr4.0, and systems where the
16884 VM page cache was not coherent with the file system buffer cache
16885 like early versions of FreeBSD and possibly contemporary NetBSD.)
16886 For shared mappings, we should conversely verify that changes get
16887 propagated back to all the places they're supposed to be.
16888
16889 Grep wants private fixed already mapped.
16890 The main things grep needs to know about mmap are:
16891 * does it exist and is it safe to write into the mmap'd area
16892 * how to use it (BSD variants) */
16893
16894#include <fcntl.h>
16895#include <sys/mman.h>
16896
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016897#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +000016898char *malloc ();
16899#endif
16900
16901/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016902#if !HAVE_GETPAGESIZE
16903/* Assume that all systems that can run configure have sys/param.h. */
16904# if !HAVE_SYS_PARAM_H
16905# define HAVE_SYS_PARAM_H 1
16906# endif
16907
John Criswell3ef61af2003-06-30 21:59:07 +000016908# ifdef _SC_PAGESIZE
16909# define getpagesize() sysconf(_SC_PAGESIZE)
16910# else /* no _SC_PAGESIZE */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016911# if HAVE_SYS_PARAM_H
John Criswell3ef61af2003-06-30 21:59:07 +000016912# include <sys/param.h>
16913# ifdef EXEC_PAGESIZE
16914# define getpagesize() EXEC_PAGESIZE
16915# else /* no EXEC_PAGESIZE */
16916# ifdef NBPG
16917# define getpagesize() NBPG * CLSIZE
16918# ifndef CLSIZE
16919# define CLSIZE 1
16920# endif /* no CLSIZE */
16921# else /* no NBPG */
16922# ifdef NBPC
16923# define getpagesize() NBPC
16924# else /* no NBPC */
16925# ifdef PAGESIZE
16926# define getpagesize() PAGESIZE
16927# endif /* PAGESIZE */
16928# endif /* no NBPC */
16929# endif /* no NBPG */
16930# endif /* no EXEC_PAGESIZE */
16931# else /* no HAVE_SYS_PARAM_H */
16932# define getpagesize() 8192 /* punt totally */
16933# endif /* no HAVE_SYS_PARAM_H */
16934# endif /* no _SC_PAGESIZE */
16935
16936#endif /* no HAVE_GETPAGESIZE */
16937
16938int
16939main ()
16940{
16941 char *data, *data2, *data3;
16942 int i, pagesize;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016943 int fd;
John Criswell3ef61af2003-06-30 21:59:07 +000016944
16945 pagesize = getpagesize ();
16946
16947 /* First, make a file with some known garbage in it. */
16948 data = (char *) malloc (pagesize);
16949 if (!data)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000016950 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000016951 for (i = 0; i < pagesize; ++i)
16952 *(data + i) = rand ();
16953 umask (0);
16954 fd = creat ("conftest.mmap", 0600);
16955 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016956 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000016957 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016958 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000016959 close (fd);
16960
16961 /* Next, try to mmap the file at a fixed address which already has
16962 something else allocated at it. If we can, also make sure that
16963 we see the same garbage. */
16964 fd = open ("conftest.mmap", O_RDWR);
16965 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016966 return 1;
16967 data2 = (char *) malloc (2 * pagesize);
16968 if (!data2)
16969 return 1;
16970 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell3ef61af2003-06-30 21:59:07 +000016971 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencerf184a862004-09-19 23:53:36 +000016972 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016973 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000016974 for (i = 0; i < pagesize; ++i)
16975 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016976 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000016977
16978 /* Finally, make sure that changes to the mapped area do not
16979 percolate back to the file as seen by read(). (This is a bug on
16980 some variants of i386 svr4.0.) */
16981 for (i = 0; i < pagesize; ++i)
16982 *(data2 + i) = *(data2 + i) + 1;
16983 data3 = (char *) malloc (pagesize);
16984 if (!data3)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016985 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000016986 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016987 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000016988 for (i = 0; i < pagesize; ++i)
16989 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016990 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000016991 close (fd);
Reid Spencer0b52e2f2006-08-04 18:18:08 +000016992 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +000016993}
16994_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016995rm -f conftest$ac_exeext
16996if { (ac_try="$ac_link"
16997case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17000esac
17001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002 (eval "$ac_link") 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000017015 ac_cv_func_mmap_fixed_mapped=yes
17016else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017017 echo "$as_me: program exited with status $ac_status" >&5
17018echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021( exit $ac_status )
17022ac_cv_func_mmap_fixed_mapped=no
John Criswell3ef61af2003-06-30 21:59:07 +000017023fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017024rm -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 +000017025fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017026
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017027
John Criswell3ef61af2003-06-30 21:59:07 +000017028fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017029{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17030echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000017031if test $ac_cv_func_mmap_fixed_mapped = yes; then
17032
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017033cat >>confdefs.h <<\_ACEOF
17034#define HAVE_MMAP 1
17035_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000017036
17037fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017038rm -f conftest.mmap
John Criswell3ef61af2003-06-30 21:59:07 +000017039
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017040 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17041echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17042if test "${ac_cv_func_mmap_file+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000017044else
Reid Spencerf184a862004-09-19 23:53:36 +000017045 ac_ext=c
John Criswell3ef61af2003-06-30 21:59:07 +000017046ac_cpp='$CPP $CPPFLAGS'
17047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17049ac_compiler_gnu=$ac_cv_c_compiler_gnu
17050
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017051 if test "$cross_compiling" = yes; then
Reid Spencer5a6815d2004-09-21 17:14:44 +000017052 ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000017053else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017054 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerac16ea92004-09-20 04:09:56 +000017055
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017056 /* confdefs.h. */
17057_ACEOF
17058cat confdefs.h >>conftest.$ac_ext
17059cat >>conftest.$ac_ext <<_ACEOF
17060/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000017061
John Criswell3ef61af2003-06-30 21:59:07 +000017062#include <sys/types.h>
John Criswelle3a9bd82003-10-09 15:44:28 +000017063#include <sys/mman.h>
John Criswell3ef61af2003-06-30 21:59:07 +000017064#include <fcntl.h>
Reid Spencerac16ea92004-09-20 04:09:56 +000017065
17066int
17067main ()
17068{
John Criswell3ef61af2003-06-30 21:59:07 +000017069
17070 int fd;
Reid Spencerac16ea92004-09-20 04:09:56 +000017071 fd = creat ("foo",0777);
17072 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17073 unlink ("foo");
Reid Spencer5a6815d2004-09-21 17:14:44 +000017074 return (fd != (int) MAP_FAILED);
Reid Spencerac16ea92004-09-20 04:09:56 +000017075 ;
17076 return 0;
17077}
John Criswell3ef61af2003-06-30 21:59:07 +000017078_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017079rm -f conftest$ac_exeext
17080if { (ac_try="$ac_link"
17081case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093esac
17094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000017099 ac_cv_func_mmap_file=yes
17100else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017101 echo "$as_me: program exited with status $ac_status" >&5
17102echo "$as_me: failed program was:" >&5
17103sed 's/^/| /' conftest.$ac_ext >&5
17104
17105( exit $ac_status )
17106ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000017107fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017108rm -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 +000017109fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017110
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017111
John Criswell3ef61af2003-06-30 21:59:07 +000017112 ac_ext=c
17113ac_cpp='$CPP $CPPFLAGS'
17114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17116ac_compiler_gnu=$ac_cv_c_compiler_gnu
17117
17118
17119fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017120{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17121echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000017122if test "$ac_cv_func_mmap_file" = yes; then
John Criswelle3a9bd82003-10-09 15:44:28 +000017123
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017124cat >>confdefs.h <<\_ACEOF
17125#define HAVE_MMAP_FILE
17126_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000017127
17128 MMAP_FILE=yes
17129
17130fi
17131
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017132 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17133echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17134if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6681582004-12-27 06:15:02 +000017136else
Reid Spencer3d745d42004-12-29 07:07:57 +000017137 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencerb6681582004-12-27 06:15:02 +000017138 ac_cv_need_dev_zero_for_mmap=yes
17139 else
17140 ac_cv_need_dev_zero_for_mmap=no
17141 fi
17142
17143fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017144{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17145echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencerb6681582004-12-27 06:15:02 +000017146if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17147
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017148cat >>confdefs.h <<\_ACEOF
17149#define NEED_DEV_ZERO_FOR_MMAP 1
17150_ACEOF
Reid Spencerb6681582004-12-27 06:15:02 +000017151
17152fi
Reid Spencerf184a862004-09-19 23:53:36 +000017153
Reid Spencerdfda0612007-01-20 07:48:49 +000017154 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17155 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017156 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17157echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000017158 fi
17159 if test "$ac_cv_func_mmap_file" = "no"
17160 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017161 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17162echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000017163 fi
John Criswellb65ddad2003-07-22 21:00:24 +000017164fi
John Criswell3ef61af2003-06-30 21:59:07 +000017165
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017166{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17167echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7eb8112010-07-28 20:26:43 +000017168ac_ext=cpp
17169ac_cpp='$CXXCPP $CPPFLAGS'
17170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17173
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017174cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017175
17176 /* confdefs.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017177_ACEOF
17178cat confdefs.h >>conftest.$ac_ext
17179cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonb9509c52009-05-18 23:58:51 +000017180/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017181
17182 int main() {
17183 volatile unsigned long val = 1;
17184 __sync_synchronize();
17185 __sync_val_compare_and_swap(&val, 1, 0);
17186 __sync_add_and_fetch(&val, 1);
17187 __sync_sub_and_fetch(&val, 1);
17188 return 0;
17189 }
17190
Owen Andersonb9509c52009-05-18 23:58:51 +000017191
17192_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017193rm -f conftest.$ac_objext conftest$ac_exeext
17194if { (ac_try="$ac_link"
17195case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198esac
17199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17201 ac_status=$?
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017208 { (case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17211esac
17212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_try") 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest$ac_exeext'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
Eric Christopherf7eb8112010-07-28 20:26:43 +000017227
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017228 { echo "$as_me:$LINENO: result: yes" >&5
17229echo "${ECHO_T}yes" >&6; }
Owen Andersonaf5db832009-05-19 22:18:56 +000017230
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017231cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000017232#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017233_ACEOF
Owen Andersonaf5db832009-05-19 22:18:56 +000017234
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017235
Owen Andersonb9509c52009-05-18 23:58:51 +000017236else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017237 echo "$as_me: failed program was:" >&5
17238sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonb9509c52009-05-18 23:58:51 +000017239
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017240
17241 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017242echo "${ECHO_T}no" >&6; }
Owen Andersonb9509c52009-05-18 23:58:51 +000017243
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017244cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000017245#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017246_ACEOF
17247
17248 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17249echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017250
Owen Andersonb9509c52009-05-18 23:58:51 +000017251fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017252
Owen Andersonb9509c52009-05-18 23:58:51 +000017253rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017254 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017255ac_ext=c
17256ac_cpp='$CPP $CPPFLAGS'
17257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259ac_compiler_gnu=$ac_cv_c_compiler_gnu
17260
Owen Andersonb9509c52009-05-18 23:58:51 +000017261
John Criswell3ef61af2003-06-30 21:59:07 +000017262
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017263if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017264 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17265echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17266if test "${llvm_cv_linux_mixed+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017268else
17269 ac_ext=c
17270ac_cpp='$CPP $CPPFLAGS'
17271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17273ac_compiler_gnu=$ac_cv_c_compiler_gnu
17274
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017275 cat >conftest.$ac_ext <<_ACEOF
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017280/* end confdefs.h. */
17281#ifndef __x86_64__
17282 error: Not x86-64 even if uname says so!
17283 #endif
17284
17285int
17286main ()
17287{
17288
17289 ;
17290 return 0;
17291}
17292_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017293rm -f conftest.$ac_objext
17294if { (ac_try="$ac_compile"
17295case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17311esac
17312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest.$ac_objext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017327 llvm_cv_linux_mixed=no
17328else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017329 echo "$as_me: failed program was:" >&5
17330sed 's/^/| /' conftest.$ac_ext >&5
17331
17332 llvm_cv_linux_mixed=yes
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017333fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017334
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17336 ac_ext=c
17337ac_cpp='$CPP $CPPFLAGS'
17338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17340ac_compiler_gnu=$ac_cv_c_compiler_gnu
17341
17342
17343fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017344{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17345echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017346
17347 if test "$llvm_cv_linux_mixed" = "yes"; then
17348 llvm_cv_target_arch="x86"
17349 ARCH="x86"
17350 fi
17351fi
17352
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017353
Reid Spencer32046f72007-07-30 20:13:24 +000017354for ac_func in __dso_handle
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017355do
17356as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17357{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17358echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17359if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361else
17362 cat >conftest.$ac_ext <<_ACEOF
17363/* confdefs.h. */
17364_ACEOF
17365cat confdefs.h >>conftest.$ac_ext
17366cat >>conftest.$ac_ext <<_ACEOF
17367/* end confdefs.h. */
17368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17370#define $ac_func innocuous_$ac_func
17371
17372/* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char $ac_func (); below.
17374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17375 <limits.h> exists even on freestanding compilers. */
17376
17377#ifdef __STDC__
17378# include <limits.h>
17379#else
17380# include <assert.h>
17381#endif
17382
17383#undef $ac_func
17384
17385/* Override any GCC internal prototype to avoid an error.
17386 Use char because int might match the return type of a GCC
17387 builtin and then its argument prototype would still apply. */
17388#ifdef __cplusplus
17389extern "C"
17390#endif
17391char $ac_func ();
17392/* The GNU C library defines this for functions which it implements
17393 to always fail with ENOSYS. Some functions are actually named
17394 something starting with __ and the normal name is an alias. */
17395#if defined __stub_$ac_func || defined __stub___$ac_func
17396choke me
17397#endif
17398
17399int
17400main ()
17401{
17402return $ac_func ();
17403 ;
17404 return 0;
17405}
17406_ACEOF
17407rm -f conftest.$ac_objext conftest$ac_exeext
17408if { (ac_try="$ac_link"
17409case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412esac
17413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_link") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17422 { (case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425esac
17426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_try") 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest$ac_exeext'
17432 { (case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17435esac
17436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_try") 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 eval "$as_ac_var=yes"
17442else
17443 echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 eval "$as_ac_var=no"
17447fi
17448
17449rm -f core conftest.err conftest.$ac_objext \
17450 conftest$ac_exeext conftest.$ac_ext
17451fi
17452ac_res=`eval echo '${'$as_ac_var'}'`
17453 { echo "$as_me:$LINENO: result: $ac_res" >&5
17454echo "${ECHO_T}$ac_res" >&6; }
17455if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer32046f72007-07-30 20:13:24 +000017456 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer32046f72007-07-30 20:13:24 +000017458_ACEOF
17459
17460fi
17461done
17462
17463
Rafael Espindolafd1355a2014-02-28 18:17:54 +000017464SHLIBEXT=$llvm_shlib_ext
Brian Gaekea2404522004-01-21 19:39:29 +000017465
17466
Jeff Cohenc5e5b272007-01-12 18:22:38 +000017467if test "${prefix}" = "NONE" ; then
Reid Spencer40f1b132006-05-16 08:53:32 +000017468 prefix="/usr/local"
17469fi
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017470eval LLVM_PREFIX="${prefix}";
17471eval LLVM_BINDIR="${prefix}/bin";
Reid Spencer0194c9a2004-11-29 04:56:35 +000017472eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb3762a02010-03-02 05:17:21 +000017473eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer0194c9a2004-11-29 04:56:35 +000017474eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017475eval LLVM_INCLUDEDIR="${prefix}/include";
17476eval LLVM_INFODIR="${prefix}/info";
17477eval LLVM_MANDIR="${prefix}/man";
17478LLVM_CONFIGTIME=`date`
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
Daniel Dunbar9370ecf2012-03-02 16:24:21 +000017489if test "${ENABLE_TIMESTAMPS}" = "0"; then
17490 LLVM_CONFIGTIME="(timestamp not enabled)"
17491fi
17492
Reid Spencer0241e382004-11-25 04:51:04 +000017493
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017494cat >>confdefs.h <<_ACEOF
17495#define LLVM_PREFIX "$LLVM_PREFIX"
17496_ACEOF
17497
17498
17499cat >>confdefs.h <<_ACEOF
17500#define LLVM_BINDIR "$LLVM_BINDIR"
17501_ACEOF
17502
17503
17504cat >>confdefs.h <<_ACEOF
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017505#define LLVM_DATADIR "$LLVM_DATADIR"
17506_ACEOF
17507
17508
17509cat >>confdefs.h <<_ACEOF
Gordon Henriksen80f35e02007-10-03 12:07:14 +000017510#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017511_ACEOF
17512
17513
17514cat >>confdefs.h <<_ACEOF
Reid Spencer288adf12004-08-20 09:10:31 +000017515#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017516_ACEOF
17517
17518
17519cat >>confdefs.h <<_ACEOF
17520#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17521_ACEOF
17522
17523
17524cat >>confdefs.h <<_ACEOF
17525#define LLVM_INFODIR "$LLVM_INFODIR"
17526_ACEOF
17527
17528
17529cat >>confdefs.h <<_ACEOF
17530#define LLVM_MANDIR "$LLVM_MANDIR"
17531_ACEOF
17532
17533
17534cat >>confdefs.h <<_ACEOF
17535#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17536_ACEOF
17537
17538
Eric Christophere62b4412007-12-01 00:34:39 +000017539cat >>confdefs.h <<_ACEOF
Tim Northoverfee13d12013-05-04 07:36:23 +000017540#define LLVM_HOST_TRIPLE "$host"
NAKAMURA Takumi43652ae2012-07-22 03:04:52 +000017541_ACEOF
17542
17543
17544cat >>confdefs.h <<_ACEOF
Sebastian Popec2fb222011-11-01 21:31:44 +000017545#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christophere62b4412007-12-01 00:34:39 +000017546_ACEOF
17547
17548
Gordon Henriksene61dd672007-10-02 09:50:32 +000017549if test "$BINDINGS_TO_BUILD" = auto ; then
17550 BINDINGS_TO_BUILD=""
Peter Zotov668f9672014-10-30 08:29:45 +000017551 if test "x$OCAMLFIND" != x ; then
Gordon Henriksene61dd672007-10-02 09:50:32 +000017552 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17553 fi
Peter Collingbourne82e3e372014-10-16 22:48:02 +000017554 if test "x$GO" != x ; then
17555 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17556 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17557 fi
17558 fi
Gordon Henriksene61dd672007-10-02 09:50:32 +000017559fi
17560BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17561
17562
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017563binding_prereqs_failed=0
17564for a_binding in $BINDINGS_TO_BUILD ; do
17565 case "$a_binding" in
17566 ocaml)
Peter Zotov668f9672014-10-30 08:29:45 +000017567 if test "x$OCAMLFIND" = x ; then
17568 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17569echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017570 binding_prereqs_failed=1
17571 fi
Peter Zotov668f9672014-10-30 08:29:45 +000017572
17573 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17574 HAVE_OCAMLOPT=1
17575 else
17576 HAVE_OCAMLOPT=0
17577 fi
17578
17579
17580 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17581 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17582echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017583 binding_prereqs_failed=1
17584 fi
Peter Zotov668f9672014-10-30 08:29:45 +000017585
17586 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17587 HAVE_OCAML_OUNIT=1
17588 else
17589 HAVE_OCAML_OUNIT=0
17590 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17591echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017592 fi
Peter Zotov668f9672014-10-30 08:29:45 +000017593
17594
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017595 if test "x$with_ocaml_libdir" != xauto ; then
17596 OCAML_LIBDIR=$with_ocaml_libdir
17597
17598 else
Peter Zotov668f9672014-10-30 08:29:45 +000017599 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017600 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17601 then
17602 # ocaml stdlib is beneath our prefix; use stdlib
17603 OCAML_LIBDIR=$ocaml_stdlib
17604
17605 else
17606 # ocaml stdlib is outside our prefix; use libdir/ocaml
Rafael Espindolab58973f2013-06-11 18:52:11 +000017607 OCAML_LIBDIR=${prefix}/lib/ocaml
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017608
17609 fi
17610 fi
17611 ;;
Peter Collingbourne82e3e372014-10-16 22:48:02 +000017612 go)
17613 if test "x$GO" = x ; then
17614 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17615echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17616 binding_prereqs_failed=1
17617 else
17618 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17619 :
17620 else
17621 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17622echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17623 binding_prereqs_failed=1
17624 fi
17625 fi
17626 ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017627 esac
17628done
17629if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017630 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17631echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17632 { (exit 1); exit 1; }; }
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017633fi
17634
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017635{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17636echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17637if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017639else
17640 ac_ext=cpp
17641ac_cpp='$CXXCPP $CPPFLAGS'
17642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17645
17646 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi652e0132012-02-19 12:05:12 +000017647 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017648 cat >conftest.$ac_ext <<_ACEOF
17649/* confdefs.h. */
17650_ACEOF
17651cat confdefs.h >>conftest.$ac_ext
17652cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017653/* end confdefs.h. */
Benjamin Kramer54671a72011-12-22 22:50:44 +000017654template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017655int
17656main ()
17657{
Benjamin Kramer942b2872011-12-22 22:25:26 +000017658X<int>().f();
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017659 ;
17660 return 0;
17661}
17662_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017663rm -f conftest.$ac_objext
17664if { (ac_try="$ac_compile"
17665case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668esac
17669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_compile") 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17678 { (case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17681esac
17682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_try") 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; } &&
17687 { ac_try='test -s conftest.$ac_objext'
17688 { (case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17691esac
17692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_try") 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017697 llvm_cv_cxx_visibility_inlines_hidden=yes
17698else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017699 echo "$as_me: failed program was:" >&5
17700sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017703fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017704
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 CXXFLAGS="$oldcxxflags"
17707 ac_ext=c
17708ac_cpp='$CPP $CPPFLAGS'
17709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17711ac_compiler_gnu=$ac_cv_c_compiler_gnu
17712
17713
17714fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017715{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17716echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017717if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17718 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17719
17720else
17721 ENABLE_VISIBILITY_INLINES_HIDDEN=0
17722
17723fi
17724
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017725
Nick Lewyckyc540cc62009-03-05 08:20:44 +000017726if test "$llvm_cv_link_use_r" = "yes" ; then
17727 RPATH="-Wl,-R"
17728else
17729 RPATH="-Wl,-rpath"
17730fi
17731
17732
17733if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
Bob Wilson8d7e6902013-08-02 22:51:11 +000017734 RDYNAMIC="-rdynamic"
Nick Lewyckyc540cc62009-03-05 08:20:44 +000017735else
17736 RDYNAMIC=""
17737fi
Nick Lewyckyed8472e2009-03-03 04:55:29 +000017738
17739
Reid Spencer0241e382004-11-25 04:51:04 +000017740
Eric Christopher97014d82010-08-08 02:44:25 +000017741ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer0241e382004-11-25 04:51:04 +000017742
Eric Christopher41983c62010-08-08 09:20:39 +000017743
17744
17745
17746
17747
Douglas Gregor1b731d52009-06-16 20:12:29 +000017748ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17749
17750ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17751
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000017752ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17753
Daniel Dunbar32027202009-11-25 04:37:28 +000017754ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17755
Michael J. Spencer447762d2010-11-29 18:16:10 +000017756ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer0241e382004-11-25 04:51:04 +000017757
Reid Spencer0241e382004-11-25 04:51:04 +000017758
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017759ac_config_files="$ac_config_files Makefile.config"
Reid Spencer0241e382004-11-25 04:51:04 +000017760
Eric Christopher49709ad2011-10-26 00:42:12 +000017761
Reid Spencer1277ba22006-08-16 00:45:38 +000017762ac_config_files="$ac_config_files llvm.spec"
17763
17764
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000017765ac_config_files="$ac_config_files docs/doxygen.cfg"
17766
Eric Christopherf1329892012-02-02 00:16:55 +000017767
Dylan Noblesmithe21a3b22012-02-04 02:41:36 +000017768if test "${clang_src_root}" = ""; then
Eric Christopherdc51a5d2012-02-02 01:11:30 +000017769 clang_src_root="$srcdir/tools/clang"
Eric Christopher7f977de2012-02-02 00:19:05 +000017770fi
Eric Christopherf1329892012-02-02 00:16:55 +000017771if test -f ${clang_src_root}/README.txt; then
Chandler Carruth9db2b522014-12-29 11:58:17 +000017772
17773cat >>confdefs.h <<_ACEOF
17774#define CLANG_LIBDIR_SUFFIX ""
17775_ACEOF
17776
17777
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000017778 configh="include/clang/Config/config.h"
17779 doxy="docs/doxygen.cfg"
17780 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopherf1329892012-02-02 00:16:55 +000017781
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000017782 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000017783
17784fi
17785
Torok Edwin229f8d72011-10-14 20:38:02 +000017786ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencer6f682b72006-03-22 15:59:55 +000017787
Eric Christopher49709ad2011-10-26 00:42:12 +000017788
Jordan Rose3c837ab2012-10-01 18:40:32 +000017789test "x$program_prefix" = "xNONE" && program_prefix=""
17790
17791
17792
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017793ac_config_commands="$ac_config_commands setup"
Reid Spencereeedeaf2005-02-24 19:05:19 +000017794
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017795ac_config_commands="$ac_config_commands Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000017796
17797
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017798ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer0241e382004-11-25 04:51:04 +000017799
17800
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017801ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000017802
17803
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017804ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000017805
17806
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017807ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000017808
17809
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017810ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer0241e382004-11-25 04:51:04 +000017811
17812
Bill Wendling7c53a182009-01-04 23:12:30 +000017813ac_config_commands="$ac_config_commands unittests/Makefile"
17814
17815
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017816ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000017817
17818
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017819ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000017820
17821
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017822ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000017823
17824
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000017825ac_config_commands="$ac_config_commands bindings/Makefile"
17826
17827
17828ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
17829
17830
Reid Spencer0241e382004-11-25 04:51:04 +000017831
John Criswell3ef61af2003-06-30 21:59:07 +000017832cat >confcache <<\_ACEOF
17833# This file is a shell script that caches the results of configure
17834# tests run on this system so they can be shared between configure
17835# scripts and configure runs, see configure's option --config-cache.
17836# It is not useful on other systems. If it contains results you don't
17837# want to keep, you may remove or edit it.
17838#
17839# config.status only pays attention to the cache file if you give it
17840# the --recheck option to rerun configure.
17841#
John Criswell3eaf0b42003-09-10 15:17:25 +000017842# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell3ef61af2003-06-30 21:59:07 +000017843# loading this file, other *unset* `ac_cv_foo' will be assigned the
17844# following values.
17845
17846_ACEOF
17847
17848# The following way of writing the cache mishandles newlines in values,
17849# but we know of no workaround that is simple, portable, and efficient.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017850# So, we kill variables containing newlines.
John Criswell3ef61af2003-06-30 21:59:07 +000017851# Ultrix sh set writes to stderr and can't be redirected directly,
17852# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017853(
17854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17855 eval ac_val=\$$ac_var
17856 case $ac_val in #(
17857 *${as_nl}*)
17858 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017859 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17860echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017861 esac
17862 case $ac_var in #(
17863 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017864 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017865 esac ;;
17866 esac
17867 done
17868
John Criswell3ef61af2003-06-30 21:59:07 +000017869 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017870 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17871 *${as_nl}ac_space=\ *)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017872 # `set' does not quote correctly, so add quotes (double-quote
17873 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell3ef61af2003-06-30 21:59:07 +000017874 sed -n \
Reid Spencerf184a862004-09-19 23:53:36 +000017875 "s/'/'\\\\''/g;
17876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017877 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +000017878 *)
17879 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +000017881 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017882 esac |
17883 sort
17884) |
John Criswell3ef61af2003-06-30 21:59:07 +000017885 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017886 /^ac_cv_env_/b end
John Criswell3ef61af2003-06-30 21:59:07 +000017887 t clear
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017888 :clear
John Criswell3ef61af2003-06-30 21:59:07 +000017889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17890 t end
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17892 :end' >>confcache
17893if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17894 if test -w "$cache_file"; then
17895 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017896 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17897echo "$as_me: updating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000017898 cat confcache >$cache_file
17899 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017900 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17901echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000017902 fi
17903fi
17904rm -f confcache
17905
17906test "x$prefix" = xNONE && prefix=$ac_default_prefix
17907# Let make expand exec_prefix.
17908test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17909
John Criswell3ef61af2003-06-30 21:59:07 +000017910DEFS=-DHAVE_CONFIG_H
17911
John Criswell3eaf0b42003-09-10 15:17:25 +000017912ac_libobjs=
17913ac_ltlibobjs=
17914for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17915 # 1. Remove the extension, and $U if already installed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017916 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017917 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017918 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17919 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017920 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17921 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell3eaf0b42003-09-10 15:17:25 +000017922done
17923LIBOBJS=$ac_libobjs
17924
17925LTLIBOBJS=$ac_ltlibobjs
17926
17927
John Criswell3ef61af2003-06-30 21:59:07 +000017928
17929: ${CONFIG_STATUS=./config.status}
17930ac_clean_files_save=$ac_clean_files
17931ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017932{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17933echo "$as_me: creating $CONFIG_STATUS" >&6;}
17934cat >$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000017935#! $SHELL
17936# Generated by $as_me.
17937# Run this file to recreate the current configuration.
17938# Compiler output produced by configure, useful for debugging
17939# configure, is in config.log if it exists.
17940
17941debug=false
John Criswell3eaf0b42003-09-10 15:17:25 +000017942ac_cs_recheck=false
17943ac_cs_silent=false
John Criswell3ef61af2003-06-30 21:59:07 +000017944SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017945_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000017946
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017947cat >>$CONFIG_STATUS <<\_ACEOF
17948## --------------------- ##
17949## M4sh Initialization. ##
17950## --------------------- ##
17951
17952# Be Bourne compatible
17953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3ef61af2003-06-30 21:59:07 +000017954 emulate sh
17955 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000017957 # is contrary to our usage. Disable this feature.
17958 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017959 setopt NO_GLOB_SUBST
17960else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017961 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3ef61af2003-06-30 21:59:07 +000017962fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017963BIN_SH=xpg4; export BIN_SH # for Tru64
17964DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3ef61af2003-06-30 21:59:07 +000017965
John Criswell3ef61af2003-06-30 21:59:07 +000017966
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017967# PATH needs CR
17968# Avoid depending upon Character Ranges.
17969as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17970as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17971as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17972as_cr_digits='0123456789'
17973as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3ef61af2003-06-30 21:59:07 +000017974
17975# The user is always right.
17976if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017977 echo "#! /bin/sh" >conf$$.sh
17978 echo "exit 0" >>conf$$.sh
17979 chmod +x conf$$.sh
17980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17981 PATH_SEPARATOR=';'
17982 else
17983 PATH_SEPARATOR=:
17984 fi
17985 rm -f conf$$.sh
17986fi
17987
17988# Support unset when possible.
17989if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17990 as_unset=unset
17991else
17992 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017993fi
John Criswell3ef61af2003-06-30 21:59:07 +000017994
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017995
17996# IFS
17997# We need space, tab and new line, in precisely that order. Quoting is
17998# there to prevent editors from complaining about space-tab.
17999# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18000# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018001as_nl='
18002'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018003IFS=" "" $as_nl"
18004
18005# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018006case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018007 *[\\/]* ) as_myself=$0 ;;
18008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3ef61af2003-06-30 21:59:07 +000018009for as_dir in $PATH
18010do
18011 IFS=$as_save_IFS
18012 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18014done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018015IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +000018016
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018017 ;;
18018esac
18019# We did not find ourselves, most probably we were run as `sh COMMAND'
18020# in which case we are not to be found in the path.
18021if test "x$as_myself" = x; then
18022 as_myself=$0
18023fi
18024if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018025 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18026 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018027fi
18028
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018029# Work around bugs in pre-3.0 UWIN ksh.
18030for as_var in ENV MAIL MAILPATH
18031do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018032done
18033PS1='$ '
18034PS2='> '
18035PS4='+ '
18036
18037# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018038for as_var in \
18039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18041 LC_TELEPHONE LC_TIME
18042do
18043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18044 eval $as_var=C; export $as_var
18045 else
18046 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +000018047 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018048done
Torok Edwinaec06332010-01-26 08:50:50 +000018049
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018050# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018051if expr a : '\(a\)' >/dev/null 2>&1 &&
18052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18053 as_expr=expr
18054else
18055 as_expr=false
18056fi
18057
18058if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18059 as_basename=basename
18060else
18061 as_basename=false
18062fi
18063
18064
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018065# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018066as_me=`$as_basename -- "$0" ||
18067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18068 X"$0" : 'X\(//\)$' \| \
18069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018070echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018071 sed '/^.*\/\([^/][^/]*\)\/*$/{
18072 s//\1/
18073 q
18074 }
18075 /^X\/\(\/\/\)$/{
18076 s//\1/
18077 q
18078 }
18079 /^X\/\(\/\).*/{
18080 s//\1/
18081 q
18082 }
18083 s/.*/./; q'`
18084
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018085# CDPATH.
18086$as_unset CDPATH
18087
18088
18089
18090 as_lineno_1=$LINENO
18091 as_lineno_2=$LINENO
18092 test "x$as_lineno_1" != "x$as_lineno_2" &&
18093 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18094
18095 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18096 # uniformly replaced by the line number. The first 'sed' inserts a
18097 # line-number line after each line using $LINENO; the second 'sed'
18098 # does the real work. The second script uses 'N' to pair each
18099 # line-number line with the line containing $LINENO, and appends
18100 # trailing '-' during substitution so that $LINENO is not a special
18101 # case at line end.
18102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18103 # scripts with optimization help from Paolo Bonzini. Blame Lee
18104 # E. McMahon (1931-1989) for sed's syntax. :-)
18105 sed -n '
18106 p
18107 /[$]LINENO/=
18108 ' <$as_myself |
18109 sed '
18110 s/[$]LINENO.*/&-/
18111 t lineno
18112 b
18113 :lineno
18114 N
18115 :loop
18116 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18117 t loop
18118 s/-\n.*//
18119 ' >$as_me.lineno &&
18120 chmod +x "$as_me.lineno" ||
18121 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18122 { (exit 1); exit 1; }; }
18123
18124 # Don't try to exec as it changes $[0], causing all sort of problems
18125 # (the dirname of $[0] is not the place where we might find the
18126 # original and so on. Autoconf is especially sensitive to this).
18127 . "./$as_me.lineno"
18128 # Exit status is that of the last command.
18129 exit
18130}
18131
18132
18133if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18134 as_dirname=dirname
18135else
18136 as_dirname=false
18137fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018138
18139ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018140case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018141-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018142 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018144 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018145 esac;;
18146*)
18147 ECHO_N='-n';;
John Criswell3ef61af2003-06-30 21:59:07 +000018148esac
18149
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018150if expr a : '\(a\)' >/dev/null 2>&1 &&
18151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18152 as_expr=expr
18153else
18154 as_expr=false
18155fi
18156
John Criswell3ef61af2003-06-30 21:59:07 +000018157rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018158if test -d conf$$.dir; then
18159 rm -f conf$$.dir/conf$$.file
18160else
18161 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018162 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018163fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018164echo >conf$$.file
18165if ln -s conf$$.file conf$$ 2>/dev/null; then
18166 as_ln_s='ln -s'
18167 # ... but there are two gotchas:
18168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18170 # In both cases, we have to default to `cp -p'.
18171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3ef61af2003-06-30 21:59:07 +000018172 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018173elif ln conf$$.file conf$$ 2>/dev/null; then
18174 as_ln_s=ln
John Criswell3ef61af2003-06-30 21:59:07 +000018175else
18176 as_ln_s='cp -p'
18177fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018178rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18179rmdir conf$$.dir 2>/dev/null
John Criswell3ef61af2003-06-30 21:59:07 +000018180
John Criswell3eaf0b42003-09-10 15:17:25 +000018181if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018182 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +000018183else
Reid Spencerf184a862004-09-19 23:53:36 +000018184 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +000018185 as_mkdir_p=false
18186fi
18187
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018188# Find out whether ``test -x'' works. Don't use a zero-byte file, as
18189# systems may use methods other than mode bits to determine executability.
18190cat >conf$$.file <<_ASEOF
18191#! /bin/sh
18192exit 0
18193_ASEOF
18194chmod +x conf$$.file
18195if test -x conf$$.file >/dev/null 2>&1; then
18196 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018197else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018198 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018199fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018200rm -f conf$$.file
John Criswell3ef61af2003-06-30 21:59:07 +000018201
18202# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +000018203as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000018204
18205# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +000018206as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000018207
18208
John Criswell3ef61af2003-06-30 21:59:07 +000018209exec 6>&1
18210
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018211# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell3ef61af2003-06-30 21:59:07 +000018212# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018213# values after options handling.
18214ac_log="
Hans Wennborgd94a5f02015-01-14 17:38:03 +000018215This file was extended by LLVM $as_me 3.7.0svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018216generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +000018217
18218 CONFIG_FILES = $CONFIG_FILES
18219 CONFIG_HEADERS = $CONFIG_HEADERS
18220 CONFIG_LINKS = $CONFIG_LINKS
18221 CONFIG_COMMANDS = $CONFIG_COMMANDS
18222 $ $0 $@
18223
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018224on `(hostname || uname -n) 2>/dev/null | sed 1q`
18225"
18226
John Criswell3ef61af2003-06-30 21:59:07 +000018227_ACEOF
18228
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018229cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018230# Files that config.status was made for.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018231config_files="$ac_config_files"
18232config_headers="$ac_config_headers"
18233config_commands="$ac_config_commands"
John Criswell3ef61af2003-06-30 21:59:07 +000018234
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018235_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018236
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018237cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018238ac_cs_usage="\
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018239\`$as_me' instantiates files from templates according to the
18240current configuration.
John Criswell3ef61af2003-06-30 21:59:07 +000018241
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018242Usage: $0 [OPTIONS] [FILE]...
John Criswell3ef61af2003-06-30 21:59:07 +000018243
18244 -h, --help print this help, then exit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018245 -V, --version print version number, then exit
18246 -q, --quiet do not print progress messages
John Criswell3ef61af2003-06-30 21:59:07 +000018247 -d, --debug don't remove temporary files
18248 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018249 --file=FILE[:TEMPLATE]
18250 instantiate the configuration file FILE
18251 --header=FILE[:TEMPLATE]
18252 instantiate the configuration header FILE
John Criswell3ef61af2003-06-30 21:59:07 +000018253
18254Configuration files:
18255$config_files
18256
18257Configuration headers:
18258$config_headers
18259
John Criswell3bac9bc2003-09-06 15:17:13 +000018260Configuration commands:
18261$config_commands
18262
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018263Report bugs to <bug-autoconf@gnu.org>."
John Criswell3ef61af2003-06-30 21:59:07 +000018264
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018265_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018266cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018267ac_cs_version="\\
Hans Wennborgd94a5f02015-01-14 17:38:03 +000018268LLVM config.status 3.7.0svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018269configured by $0, generated by GNU Autoconf 2.60,
18270 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell3ef61af2003-06-30 21:59:07 +000018271
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018272Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +000018273This config.status script is free software; the Free Software Foundation
18274gives unlimited permission to copy, distribute and modify it."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018275
18276ac_pwd='$ac_pwd'
18277srcdir='$srcdir'
18278INSTALL='$INSTALL'
John Criswell3ef61af2003-06-30 21:59:07 +000018279_ACEOF
18280
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018281cat >>$CONFIG_STATUS <<\_ACEOF
18282# If no file are specified by the user, then we need to provide default
18283# value. By we need to know if files were specified by the user.
John Criswell3ef61af2003-06-30 21:59:07 +000018284ac_need_defaults=:
18285while test $# != 0
18286do
18287 case $1 in
18288 --*=*)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018289 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18290 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell3eaf0b42003-09-10 15:17:25 +000018291 ac_shift=:
John Criswell3ef61af2003-06-30 21:59:07 +000018292 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018293 *)
John Criswell3eaf0b42003-09-10 15:17:25 +000018294 ac_option=$1
18295 ac_optarg=$2
18296 ac_shift=shift
18297 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018298 esac
18299
John Criswell3eaf0b42003-09-10 15:17:25 +000018300 case $ac_option in
John Criswell3ef61af2003-06-30 21:59:07 +000018301 # Handling of the options.
John Criswell3eaf0b42003-09-10 15:17:25 +000018302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18303 ac_cs_recheck=: ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018304 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018305 echo "$ac_cs_version"; exit ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018306 --debug | --debu | --deb | --de | --d | -d )
John Criswell3ef61af2003-06-30 21:59:07 +000018307 debug=: ;;
18308 --file | --fil | --fi | --f )
John Criswell3eaf0b42003-09-10 15:17:25 +000018309 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018310 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000018311 ac_need_defaults=false;;
18312 --header | --heade | --head | --hea )
John Criswell3eaf0b42003-09-10 15:17:25 +000018313 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018314 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000018315 ac_need_defaults=false;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018316 --he | --h)
18317 # Conflict between --help and --header
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018318 { echo "$as_me: error: ambiguous option: $1
18319Try \`$0 --help' for more information." >&2
18320 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018321 --help | --hel | -h )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018322 echo "$ac_cs_usage"; exit ;;
John Criswell3eaf0b42003-09-10 15:17:25 +000018323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18325 ac_cs_silent=: ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018326
18327 # This is an error.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018328 -*) { echo "$as_me: error: unrecognized option: $1
18329Try \`$0 --help' for more information." >&2
18330 { (exit 1); exit 1; }; } ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018331
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018332 *) ac_config_targets="$ac_config_targets $1"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018333 ac_need_defaults=false ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018334
18335 esac
18336 shift
18337done
18338
John Criswell3eaf0b42003-09-10 15:17:25 +000018339ac_configure_extra_args=
18340
18341if $ac_cs_silent; then
18342 exec 6>/dev/null
18343 ac_configure_extra_args="$ac_configure_extra_args --silent"
18344fi
18345
18346_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018347cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000018348if \$ac_cs_recheck; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018349 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18350 CONFIG_SHELL=$SHELL
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018351 export CONFIG_SHELL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018352 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell3eaf0b42003-09-10 15:17:25 +000018353fi
18354
John Criswell3ef61af2003-06-30 21:59:07 +000018355_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018356cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018357exec 5>>config.log
18358{
18359 echo
18360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18361## Running $as_me. ##
18362_ASBOX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018363 echo "$ac_log"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018364} >&5
John Criswell3ef61af2003-06-30 21:59:07 +000018365
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018366_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018367cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3bac9bc2003-09-06 15:17:13 +000018368#
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018369# INIT-COMMANDS
John Criswell3bac9bc2003-09-06 15:17:13 +000018370#
Reid Spencereeedeaf2005-02-24 19:05:19 +000018371llvm_src="${srcdir}"
John Criswell3bac9bc2003-09-06 15:17:13 +000018372
18373_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018374
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018375cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018376
18377# Handling of arguments.
John Criswell3ef61af2003-06-30 21:59:07 +000018378for ac_config_target in $ac_config_targets
18379do
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018380 case $ac_config_target in
18381 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christopher97014d82010-08-08 02:44:25 +000018382 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1b731d52009-06-16 20:12:29 +000018383 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18384 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000018385 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar32027202009-11-25 04:37:28 +000018386 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer447762d2010-11-29 18:16:10 +000018387 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018388 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1277ba22006-08-16 00:45:38 +000018389 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000018390 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000018391 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18392 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher49709ad2011-10-26 00:42:12 +000018393 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018394 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18395 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18396 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18397 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18398 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018399 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18400 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000018401 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018402 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18403 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18404 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000018405 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18406 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018407
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18409echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18410 { (exit 1); exit 1; }; };;
John Criswell3ef61af2003-06-30 21:59:07 +000018411 esac
18412done
18413
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018414
John Criswell3ef61af2003-06-30 21:59:07 +000018415# If the user did not use the arguments to specify the items to instantiate,
18416# then the envvar interface is used. Set only those that are not.
18417# We use the long form for the default assignment because of an extremely
18418# bizarre bug on SunOS 4.1.3.
18419if $ac_need_defaults; then
18420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswell3bac9bc2003-09-06 15:17:13 +000018422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell3ef61af2003-06-30 21:59:07 +000018423fi
18424
John Criswell3eaf0b42003-09-10 15:17:25 +000018425# Have a temporary directory for convenience. Make it in the build tree
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018426# simply because there is no reason against having it here, and in addition,
John Criswell3eaf0b42003-09-10 15:17:25 +000018427# creating and moving files from /tmp can sometimes cause problems.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018428# Hook for its removal unless debugging.
18429# Note that there is a small window in which the directory will not be cleaned:
18430# after its creation but before its name has been assigned to `$tmp'.
John Criswell3ef61af2003-06-30 21:59:07 +000018431$debug ||
18432{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018433 tmp=
18434 trap 'exit_status=$?
18435 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18436' 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018437 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell3ef61af2003-06-30 21:59:07 +000018438}
John Criswell3ef61af2003-06-30 21:59:07 +000018439# Create a (secure) tmp directory for tmp files.
John Criswell3eaf0b42003-09-10 15:17:25 +000018440
John Criswell3ef61af2003-06-30 21:59:07 +000018441{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell3ef61af2003-06-30 21:59:07 +000018443 test -n "$tmp" && test -d "$tmp"
18444} ||
18445{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018446 tmp=./conf$$-$RANDOM
18447 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018448} ||
18449{
18450 echo "$me: cannot create a temporary directory in ." >&2
18451 { (exit 1); exit 1; }
18452}
John Criswell3ef61af2003-06-30 21:59:07 +000018453
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018454#
18455# Set up the sed scripts for CONFIG_FILES section.
18456#
18457
18458# No need to generate the scripts if there are no CONFIG_FILES.
18459# This happens for instance when ./config.status config.h
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018460if test -n "$CONFIG_FILES"; then
John Criswell3ef61af2003-06-30 21:59:07 +000018461
18462_ACEOF
18463
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018464
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018465
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018466ac_delim='%!_!# '
18467for ac_last_try in false false false false false :; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018468 cat >conf$$subs.sed <<_ACEOF
18469SHELL!$SHELL$ac_delim
18470PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18471PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18472PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18473PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18474PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18475PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18476exec_prefix!$exec_prefix$ac_delim
18477prefix!$prefix$ac_delim
18478program_transform_name!$program_transform_name$ac_delim
18479bindir!$bindir$ac_delim
18480sbindir!$sbindir$ac_delim
18481libexecdir!$libexecdir$ac_delim
18482datarootdir!$datarootdir$ac_delim
18483datadir!$datadir$ac_delim
18484sysconfdir!$sysconfdir$ac_delim
18485sharedstatedir!$sharedstatedir$ac_delim
18486localstatedir!$localstatedir$ac_delim
18487includedir!$includedir$ac_delim
18488oldincludedir!$oldincludedir$ac_delim
18489docdir!$docdir$ac_delim
18490infodir!$infodir$ac_delim
18491htmldir!$htmldir$ac_delim
18492dvidir!$dvidir$ac_delim
18493pdfdir!$pdfdir$ac_delim
18494psdir!$psdir$ac_delim
18495libdir!$libdir$ac_delim
18496localedir!$localedir$ac_delim
18497mandir!$mandir$ac_delim
18498DEFS!$DEFS$ac_delim
18499ECHO_C!$ECHO_C$ac_delim
18500ECHO_N!$ECHO_N$ac_delim
18501ECHO_T!$ECHO_T$ac_delim
18502LIBS!$LIBS$ac_delim
18503build_alias!$build_alias$ac_delim
18504host_alias!$host_alias$ac_delim
18505target_alias!$target_alias$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018506LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18507LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
Tom Stellarde6ba81d2014-03-03 15:22:00 +000018508LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18509LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018510LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000018511CC!$CC$ac_delim
18512CFLAGS!$CFLAGS$ac_delim
18513LDFLAGS!$LDFLAGS$ac_delim
18514CPPFLAGS!$CPPFLAGS$ac_delim
18515ac_ct_CC!$ac_ct_CC$ac_delim
18516EXEEXT!$EXEEXT$ac_delim
18517OBJEXT!$OBJEXT$ac_delim
18518CXX!$CXX$ac_delim
18519CXXFLAGS!$CXXFLAGS$ac_delim
18520ac_ct_CXX!$ac_ct_CXX$ac_delim
18521CPP!$CPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018522subdirs!$subdirs$ac_delim
Tobias Grosserea9dca42010-10-30 00:54:26 +000018523ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18524LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018525build!$build$ac_delim
18526build_cpu!$build_cpu$ac_delim
18527build_vendor!$build_vendor$ac_delim
18528build_os!$build_os$ac_delim
18529host!$host$ac_delim
18530host_cpu!$host_cpu$ac_delim
18531host_vendor!$host_vendor$ac_delim
18532host_os!$host_os$ac_delim
18533target!$target$ac_delim
18534target_cpu!$target_cpu$ac_delim
18535target_vendor!$target_vendor$ac_delim
18536target_os!$target_os$ac_delim
18537OS!$OS$ac_delim
18538HOST_OS!$HOST_OS$ac_delim
18539TARGET_OS!$TARGET_OS$ac_delim
18540LINKALL!$LINKALL$ac_delim
18541NOLINKALL!$NOLINKALL$ac_delim
18542LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18543LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18544ARCH!$ARCH$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018545LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000018546HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018547LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18548BUILD_CC!$BUILD_CC$ac_delim
18549BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18550BUILD_CXX!$BUILD_CXX$ac_delim
18551CVSBUILD!$CVSBUILD$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000018552ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Chandler Carruthbbae5122014-03-01 03:33:08 +000018553ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
Eric Christopherf1bd7702013-06-25 01:12:25 +000018554ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000018555ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
Rafael Espindolae33f06c2014-03-10 16:58:35 +000018556CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000018557ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018558ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18559ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18560DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000018561ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018562ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18563EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18564DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Eric Christopher14b76d52014-07-28 22:00:44 +000018565DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018566_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018567
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018569 break
18570 elif $ac_last_try; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18572echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18573 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018574 else
18575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell3ef61af2003-06-30 21:59:07 +000018576 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018577done
18578
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018579ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18580if test -n "$ac_eof"; then
18581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18582 ac_eof=`expr $ac_eof + 1`
18583fi
18584
18585cat >>$CONFIG_STATUS <<_ACEOF
18586cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18587/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018588_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018589sed '
18590s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18591s/^/s,@/; s/!/@,|#_!!_#|/
18592:n
18593t n
18594s/'"$ac_delim"'$/,g/; t
18595s/$/\\/; p
18596N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18597' >>$CONFIG_STATUS <conf$$subs.sed
18598rm -f conf$$subs.sed
18599cat >>$CONFIG_STATUS <<_ACEOF
18600CEOF$ac_eof
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018601_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018602
18603
18604ac_delim='%!_!# '
18605for ac_last_try in false false false false false :; do
18606 cat >conf$$subs.sed <<_ACEOF
Tom Stellarde6ba81d2014-03-03 15:22:00 +000018607KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18608JIT!$JIT$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018609TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18610TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18611ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18612ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000018613LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000018614ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000018615LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000018616ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000018617ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000018618ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000018619ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018620ALL_TARGETS!$ALL_TARGETS$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000018621TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18622LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18623LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +000018624LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumic6fce172010-12-29 03:59:03 +000018625LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000018626OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000018627EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbar3b95df82011-06-16 22:30:41 +000018628EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumi914f1922011-10-16 02:54:26 +000018629CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000018630BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018631ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
Bob Wilson3f354702011-11-28 07:59:52 +000018632INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018633ifGNUmake!$ifGNUmake$ac_delim
18634LN_S!$LN_S$ac_delim
Rafael Espindolafd1355a2014-02-28 18:17:54 +000018635NM!$NM$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018636CMP!$CMP$ac_delim
18637CP!$CP$ac_delim
18638DATE!$DATE$ac_delim
18639FIND!$FIND$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000018640GREP!$GREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018641MKDIR!$MKDIR$ac_delim
18642MV!$MV$ac_delim
18643RANLIB!$RANLIB$ac_delim
18644AR!$AR$ac_delim
18645RM!$RM$ac_delim
18646SED!$SED$ac_delim
18647TAR!$TAR$ac_delim
18648BINPWD!$BINPWD$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018649DOT!$DOT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018650INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18651INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18652INSTALL_DATA!$INSTALL_DATA$ac_delim
18653BZIP2!$BZIP2$ac_delim
mike-me08af302010-05-06 23:45:43 +000018654CAT!$CAT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018655DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000018656GROFF!$GROFF$ac_delim
Eric Christopher77560892010-12-10 01:31:51 +000018657GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000018658PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018659ZIP!$ZIP$ac_delim
Peter Collingbourne82e3e372014-10-16 22:48:02 +000018660GO!$GO$ac_delim
Peter Zotov668f9672014-10-30 08:29:45 +000018661OCAMLFIND!$OCAMLFIND$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000018662GAS!$GAS$ac_delim
Dan Gohmanb7edb422010-06-01 14:56:56 +000018663HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000018664EGREP!$EGREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018665NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18666NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola42e94d12012-02-28 23:32:06 +000018667COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000018668NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18669NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Eric Christopher65ec83b2014-11-05 00:35:15 +000018670NO_COMMENT!$NO_COMMENT$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000018671PYTHON!$PYTHON$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018672HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18673HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018674USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky5262ad22012-03-13 08:33:15 +000018675USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopherc807c532012-08-03 19:47:19 +000018676XML2CONFIG!$XML2CONFIG$ac_delim
18677LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18678LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018679HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000018680HAVE_LIBZ!$HAVE_LIBZ$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018681HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18682MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018683SHLIBEXT!$SHLIBEXT$ac_delim
18684LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18685LLVM_BINDIR!$LLVM_BINDIR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018686LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18687LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18688LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
Rafael Espindola11ac8532014-02-28 16:16:51 +000018689LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
Rafael Espindolafd1355a2014-02-28 18:17:54 +000018690LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18691LLVM_MANDIR!$LLVM_MANDIR$ac_delim
Eric Christopher14b76d52014-07-28 22:00:44 +000018692LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18693BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
Peter Zotov668f9672014-10-30 08:29:45 +000018694HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18695HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
Eric Christopher14b76d52014-07-28 22:00:44 +000018696OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18697ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
18698RPATH!$RPATH$ac_delim
18699RDYNAMIC!$RDYNAMIC$ac_delim
18700program_prefix!$program_prefix$ac_delim
18701LIBOBJS!$LIBOBJS$ac_delim
18702LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018703_ACEOF
18704
Eric Christopher65ec83b2014-11-05 00:35:15 +000018705 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018706 break
18707 elif $ac_last_try; then
18708 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18709echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18710 { (exit 1); exit 1; }; }
18711 else
18712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18713 fi
18714done
18715
18716ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18717if test -n "$ac_eof"; then
18718 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18719 ac_eof=`expr $ac_eof + 1`
18720fi
18721
18722cat >>$CONFIG_STATUS <<_ACEOF
18723cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Eric Christopher65ec83b2014-11-05 00:35:15 +000018724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Roman Divackyf2bb66b2012-12-13 16:07:19 +000018725_ACEOF
18726sed '
18727s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18728s/^/s,@/; s/!/@,|#_!!_#|/
18729:n
18730t n
18731s/'"$ac_delim"'$/,g/; t
18732s/$/\\/; p
18733N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18734' >>$CONFIG_STATUS <conf$$subs.sed
18735rm -f conf$$subs.sed
18736cat >>$CONFIG_STATUS <<_ACEOF
18737CEOF$ac_eof
18738_ACEOF
18739
18740
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018741# VPATH may cause trouble with some makes, so we remove $(srcdir),
18742# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18743# trailing colons and then remove the whole line if VPATH becomes empty
18744# (actually we leave an empty line to preserve line numbers).
18745if test "x$srcdir" = x.; then
18746 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18747s/:*\$(srcdir):*/:/
18748s/:*\${srcdir}:*/:/
18749s/:*@srcdir@:*/:/
18750s/^\([^=]*=[ ]*\):*/\1/
18751s/:*$//
18752s/^[^=]*=[ ]*$//
18753}'
18754fi
18755
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018756cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018757fi # test -n "$CONFIG_FILES"
18758
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018759
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018760for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018761do
18762 case $ac_tag in
18763 :[FHLC]) ac_mode=$ac_tag; continue;;
18764 esac
18765 case $ac_mode$ac_tag in
18766 :[FHL]*:*);;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018767 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18768echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18769 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018770 :[FH]-) ac_tag=-:-;;
18771 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18772 esac
18773 ac_save_IFS=$IFS
18774 IFS=:
18775 set x $ac_tag
18776 IFS=$ac_save_IFS
18777 shift
18778 ac_file=$1
18779 shift
18780
18781 case $ac_mode in
18782 :L) ac_source=$1;;
18783 :[FH])
18784 ac_file_inputs=
18785 for ac_f
18786 do
18787 case $ac_f in
18788 -) ac_f="$tmp/stdin";;
18789 *) # Look for the file first in the build tree, then in the source tree
18790 # (if the path is not absolute). The absolute path cannot be DOS-style,
18791 # because $ac_f cannot contain `:'.
18792 test -f "$ac_f" ||
18793 case $ac_f in
18794 [\\/$]*) false;;
18795 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18796 esac ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018797 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18798echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18799 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018800 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018801 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018802 done
18803
18804 # Let's still pretend it is `configure' which instantiates (i.e., don't
18805 # use $as_me), people would be surprised to read:
18806 # /* config.h. Generated by config.status. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018807 configure_input="Generated from "`IFS=:
18808 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018809 if test x"$ac_file" != x-; then
18810 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018811 { echo "$as_me:$LINENO: creating $ac_file" >&5
18812echo "$as_me: creating $ac_file" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018813 fi
18814
18815 case $ac_tag in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018816 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018817 esac
18818 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018819 esac
18820
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018821 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell3ef61af2003-06-30 21:59:07 +000018822$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencerf184a862004-09-19 23:53:36 +000018823 X"$ac_file" : 'X\(//\)[^/]' \| \
18824 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018825 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018826echo X"$ac_file" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18828 s//\1/
18829 q
18830 }
18831 /^X\(\/\/\)[^/].*/{
18832 s//\1/
18833 q
18834 }
18835 /^X\(\/\/\)$/{
18836 s//\1/
18837 q
18838 }
18839 /^X\(\/\).*/{
18840 s//\1/
18841 q
18842 }
18843 s/.*/./; q'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018844 { as_dir="$ac_dir"
18845 case $as_dir in #(
18846 -*) as_dir=./$as_dir;;
18847 esac
18848 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18849 as_dirs=
18850 while :; do
18851 case $as_dir in #(
18852 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18853 *) as_qdir=$as_dir;;
18854 esac
18855 as_dirs="'$as_qdir' $as_dirs"
18856 as_dir=`$as_dirname -- "$as_dir" ||
18857$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18858 X"$as_dir" : 'X\(//\)[^/]' \| \
18859 X"$as_dir" : 'X\(//\)$' \| \
18860 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18861echo X"$as_dir" |
18862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18863 s//\1/
18864 q
18865 }
18866 /^X\(\/\/\)[^/].*/{
18867 s//\1/
18868 q
18869 }
18870 /^X\(\/\/\)$/{
18871 s//\1/
18872 q
18873 }
18874 /^X\(\/\).*/{
18875 s//\1/
18876 q
18877 }
18878 s/.*/./; q'`
18879 test -d "$as_dir" && break
18880 done
18881 test -z "$as_dirs" || eval "mkdir $as_dirs"
18882 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18883echo "$as_me: error: cannot create directory $as_dir" >&2;}
18884 { (exit 1); exit 1; }; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000018885 ac_builddir=.
18886
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018887case "$ac_dir" in
18888.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18889*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018891 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018892 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018893 case $ac_top_builddir_sub in
18894 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18895 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18896 esac ;;
18897esac
18898ac_abs_top_builddir=$ac_pwd
18899ac_abs_builddir=$ac_pwd$ac_dir_suffix
18900# for backward compatibility:
18901ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +000018902
18903case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018904 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +000018905 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018906 ac_top_srcdir=$ac_top_builddir_sub
18907 ac_abs_top_srcdir=$ac_pwd ;;
18908 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +000018909 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018910 ac_top_srcdir=$srcdir
18911 ac_abs_top_srcdir=$srcdir ;;
18912 *) # Relative name.
18913 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18914 ac_top_srcdir=$ac_top_build_prefix$srcdir
18915 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018916esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018917ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +000018918
John Criswell3ef61af2003-06-30 21:59:07 +000018919
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018920 case $ac_mode in
18921 :F)
18922 #
18923 # CONFIG_FILE
18924 #
John Criswell3ef61af2003-06-30 21:59:07 +000018925
18926 case $INSTALL in
18927 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018928 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018929 esac
John Criswell3ef61af2003-06-30 21:59:07 +000018930_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018931
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018932cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018933# If the template does not know about datarootdir, expand it.
18934# FIXME: This hack should be removed a few years after 2.60.
18935ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018936
18937case `sed -n '/datarootdir/ {
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018938 p
18939 q
18940}
18941/@datadir@/p
18942/@docdir@/p
18943/@infodir@/p
18944/@localedir@/p
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018945/@mandir@/p
18946' $ac_file_inputs` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018947*datarootdir*) ac_datarootdir_seen=yes;;
18948*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018949 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18950echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018951_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018952cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018953 ac_datarootdir_hack='
18954 s&@datadir@&$datadir&g
18955 s&@docdir@&$docdir&g
18956 s&@infodir@&$infodir&g
18957 s&@localedir@&$localedir&g
18958 s&@mandir@&$mandir&g
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018959 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018960esac
18961_ACEOF
18962
18963# Neutralize VPATH when `$srcdir' = `.'.
18964# Shell code in configure.ac might set extrasub.
18965# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018966cat >>$CONFIG_STATUS <<_ACEOF
18967 sed "$ac_vpsub
John Criswell3ef61af2003-06-30 21:59:07 +000018968$extrasub
18969_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018970cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018971:t
18972/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018973s&@configure_input@&$configure_input&;t t
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018974s&@top_builddir@&$ac_top_builddir_sub&;t t
18975s&@srcdir@&$ac_srcdir&;t t
18976s&@abs_srcdir@&$ac_abs_srcdir&;t t
18977s&@top_srcdir@&$ac_top_srcdir&;t t
18978s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18979s&@builddir@&$ac_builddir&;t t
18980s&@abs_builddir@&$ac_abs_builddir&;t t
18981s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18982s&@INSTALL@&$ac_INSTALL&;t t
18983$ac_datarootdir_hack
Eric Christopher65ec83b2014-11-05 00:35:15 +000018984" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
John Criswell3ef61af2003-06-30 21:59:07 +000018985
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018986test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18987 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18988 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018989 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018990which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018991echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018992which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000018993
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018994 rm -f "$tmp/stdin"
John Criswell3ef61af2003-06-30 21:59:07 +000018995 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018996 -) cat "$tmp/out"; rm -f "$tmp/out";;
18997 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18998 esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018999 ;;
19000 :H)
19001 #
19002 # CONFIG_HEADER
19003 #
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019004_ACEOF
19005
19006# Transform confdefs.h into a sed script `conftest.defines', that
19007# substitutes the proper values into config.h.in to produce config.h.
19008rm -f conftest.defines conftest.tail
19009# First, append a space to every undef/define line, to ease matching.
19010echo 's/$/ /' >conftest.defines
19011# Then, protect against being on the right side of a sed subst, or in
19012# an unquoted here document, in config.status. If some macros were
19013# called several times there might be several #defines for the same
19014# symbol, which is useless. But do not sort them, since the last
19015# AC_DEFINE must be honored.
19016ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19017# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19018# NAME is the cpp macro being defined, VALUE is the value it is being given.
19019# PARAMS is the parameter list in the macro definition--in most cases, it's
19020# just an empty string.
19021ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19022ac_dB='\\)[ (].*,\\1define\\2'
19023ac_dC=' '
19024ac_dD=' ,'
19025
19026uniq confdefs.h |
19027 sed -n '
19028 t rset
19029 :rset
19030 s/^[ ]*#[ ]*define[ ][ ]*//
19031 t ok
19032 d
19033 :ok
19034 s/[\\&,]/\\&/g
19035 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19036 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19037 ' >>conftest.defines
19038
19039# Remove the space that was appended to ease matching.
19040# Then replace #undef with comments. This is necessary, for
19041# example, in the case of _POSIX_SOURCE, which is predefined and required
19042# on some systems where configure will not decide to define it.
19043# (The regexp can be short, since the line contains either #define or #undef.)
19044echo 's/ $//
19045s,^[ #]*u.*,/* & */,' >>conftest.defines
19046
19047# Break up conftest.defines:
19048ac_max_sed_lines=50
19049
19050# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19051# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19052# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19053# et cetera.
19054ac_in='$ac_file_inputs'
19055ac_out='"$tmp/out1"'
19056ac_nxt='"$tmp/out2"'
19057
19058while :
19059do
19060 # Write a here document:
19061 cat >>$CONFIG_STATUS <<_ACEOF
19062 # First, check the format of the line:
19063 cat >"\$tmp/defines.sed" <<\\CEOF
19064/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19065/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19066b
19067:def
19068_ACEOF
19069 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19070 echo 'CEOF
19071 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19072 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19073 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19074 grep . conftest.tail >/dev/null || break
19075 rm -f conftest.defines
19076 mv conftest.tail conftest.defines
19077done
19078rm -f conftest.defines conftest.tail
19079
19080echo "ac_result=$ac_in" >>$CONFIG_STATUS
19081cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019082 if test x"$ac_file" != x-; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019083 echo "/* $configure_input */" >"$tmp/config.h"
19084 cat "$ac_result" >>"$tmp/config.h"
19085 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19086 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19087echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000019088 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019089 rm -f $ac_file
19090 mv "$tmp/config.h" $ac_file
John Criswell3ef61af2003-06-30 21:59:07 +000019091 fi
19092 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019093 echo "/* $configure_input */"
19094 cat "$ac_result"
John Criswell3ef61af2003-06-30 21:59:07 +000019095 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019096 rm -f "$tmp/out12"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019097 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000019098
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019099 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19100echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019101 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000019102 esac
John Criswell3ef61af2003-06-30 21:59:07 +000019103
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019104
19105 case $ac_file$ac_mode in
19106 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019107 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019108 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwind70eebe2009-08-28 16:12:48 +000019109 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019110 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019111 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019112 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019113 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019114 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019115 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019116 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwind70eebe2009-08-28 16:12:48 +000019117 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000019118 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019119 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019120 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019121 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019122 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019123 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019124 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019125 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000019126 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019127 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000019128 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwind70eebe2009-08-28 16:12:48 +000019129 ${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 +000019130
19131 esac
19132done # for ac_tag
19133
John Criswell3ef61af2003-06-30 21:59:07 +000019134
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019135{ (exit 0); exit 0; }
John Criswell3ef61af2003-06-30 21:59:07 +000019136_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019137chmod +x $CONFIG_STATUS
John Criswell3ef61af2003-06-30 21:59:07 +000019138ac_clean_files=$ac_clean_files_save
19139
19140
19141# configure is writing to config.log, and then calls config.status.
19142# config.status does its own redirection, appending to config.log.
19143# Unfortunately, on DOS this fails, as config.log is still kept open
19144# by configure, so config.status won't be able to write to it; its
19145# output is simply discarded. So we exec the FD to /dev/null,
19146# effectively closing config.log, so it can be properly (re)opened and
19147# appended to by config.status. When coming back to configure, we
19148# need to make the FD available again.
19149if test "$no_create" != yes; then
19150 ac_cs_success=:
John Criswell3eaf0b42003-09-10 15:17:25 +000019151 ac_config_status_args=
19152 test "$silent" = yes &&
19153 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell3ef61af2003-06-30 21:59:07 +000019154 exec 5>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +000019155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell3ef61af2003-06-30 21:59:07 +000019156 exec 5>>config.log
19157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19158 # would make configure fail if this is the last instruction.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019159 $ac_cs_success || { (exit 1); exit 1; }
John Criswell3ef61af2003-06-30 21:59:07 +000019160fi
19161
John Criswell2b3771e2003-09-30 15:55:44 +000019162#
19163# CONFIG_SUBDIRS section.
19164#
19165if test "$no_recursion" != yes; then
19166
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019167 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell2b3771e2003-09-30 15:55:44 +000019168 ac_sub_configure_args=
19169 ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019170 eval "set x $ac_configure_args"
19171 shift
19172 for ac_arg
19173 do
John Criswell2b3771e2003-09-30 15:55:44 +000019174 if test -n "$ac_prev"; then
19175 ac_prev=
19176 continue
19177 fi
19178 case $ac_arg in
19179 -cache-file | --cache-file | --cache-fil | --cache-fi \
19180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19181 ac_prev=cache_file ;;
19182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19184 | --c=*)
19185 ;;
19186 --config-cache | -C)
19187 ;;
19188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19189 ac_prev=srcdir ;;
19190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19191 ;;
19192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19193 ac_prev=prefix ;;
19194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19195 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019196 *)
19197 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019198 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019199 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019200 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell2b3771e2003-09-30 15:55:44 +000019201 esac
19202 done
19203
19204 # Always prepend --prefix to ensure using the same prefix
19205 # in subdir configurations.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019206 ac_arg="--prefix=$prefix"
19207 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019208 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019209 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019210 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell2b3771e2003-09-30 15:55:44 +000019211
19212 ac_popdir=`pwd`
19213 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19214
19215 # Do not complain, so a configure script can configure whichever
19216 # parts of a large source tree are present.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019217 test -d "$srcdir/$ac_dir" || continue
John Criswell2b3771e2003-09-30 15:55:44 +000019218
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019219 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019220 echo "$as_me:$LINENO: $ac_msg" >&5
19221 echo "$ac_msg" >&6
19222 { as_dir="$ac_dir"
19223 case $as_dir in #(
19224 -*) as_dir=./$as_dir;;
19225 esac
19226 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19227 as_dirs=
19228 while :; do
19229 case $as_dir in #(
19230 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19231 *) as_qdir=$as_dir;;
19232 esac
19233 as_dirs="'$as_qdir' $as_dirs"
19234 as_dir=`$as_dirname -- "$as_dir" ||
19235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19236 X"$as_dir" : 'X\(//\)[^/]' \| \
19237 X"$as_dir" : 'X\(//\)$' \| \
19238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19239echo X"$as_dir" |
19240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19241 s//\1/
19242 q
19243 }
19244 /^X\(\/\/\)[^/].*/{
19245 s//\1/
19246 q
19247 }
19248 /^X\(\/\/\)$/{
19249 s//\1/
19250 q
19251 }
19252 /^X\(\/\).*/{
19253 s//\1/
19254 q
19255 }
19256 s/.*/./; q'`
19257 test -d "$as_dir" && break
19258 done
19259 test -z "$as_dirs" || eval "mkdir $as_dirs"
19260 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19261echo "$as_me: error: cannot create directory $as_dir" >&2;}
19262 { (exit 1); exit 1; }; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000019263 ac_builddir=.
19264
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019265case "$ac_dir" in
19266.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19267*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019269 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019270 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019271 case $ac_top_builddir_sub in
19272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19274 esac ;;
19275esac
19276ac_abs_top_builddir=$ac_pwd
19277ac_abs_builddir=$ac_pwd$ac_dir_suffix
19278# for backward compatibility:
19279ac_top_builddir=$ac_top_build_prefix
John Criswell2b3771e2003-09-30 15:55:44 +000019280
19281case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019282 .) # We are building in place.
John Criswell2b3771e2003-09-30 15:55:44 +000019283 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019284 ac_top_srcdir=$ac_top_builddir_sub
19285 ac_abs_top_srcdir=$ac_pwd ;;
19286 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell2b3771e2003-09-30 15:55:44 +000019287 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019288 ac_top_srcdir=$srcdir
19289 ac_abs_top_srcdir=$srcdir ;;
19290 *) # Relative name.
19291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19292 ac_top_srcdir=$ac_top_build_prefix$srcdir
19293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell2b3771e2003-09-30 15:55:44 +000019294esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019295ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell2b3771e2003-09-30 15:55:44 +000019296
19297
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019298 cd "$ac_dir"
John Criswell2b3771e2003-09-30 15:55:44 +000019299
19300 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019301 if test -f "$ac_srcdir/configure.gnu"; then
19302 ac_sub_configure=$ac_srcdir/configure.gnu
19303 elif test -f "$ac_srcdir/configure"; then
19304 ac_sub_configure=$ac_srcdir/configure
19305 elif test -f "$ac_srcdir/configure.in"; then
19306 # This should be Cygnus configure.
19307 ac_sub_configure=$ac_aux_dir/configure
John Criswell2b3771e2003-09-30 15:55:44 +000019308 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019309 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19310echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell2b3771e2003-09-30 15:55:44 +000019311 ac_sub_configure=
19312 fi
19313
19314 # The recursion is here.
19315 if test -n "$ac_sub_configure"; then
19316 # Make the cache file name correct relative to the subdirectory.
19317 case $cache_file in
19318 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019319 *) # Relative name.
19320 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell2b3771e2003-09-30 15:55:44 +000019321 esac
19322
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019323 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19324echo "$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 +000019325 # The eval makes quoting arguments work.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019326 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19327 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019328 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19329echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19330 { (exit 1); exit 1; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000019331 fi
19332
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019333 cd "$ac_popdir"
John Criswell2b3771e2003-09-30 15:55:44 +000019334 done
19335fi
19336