blob: 5a313feb709bf9ad25f422b50e76ba3209439b43 [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
Logan Chiene1c36012015-03-12 17:25:25 +0000708enable_searchengine
709enable_external_search
710enable_server_based_search
711searchengine_url
712extra_search_mappings
713QHELPGENERATOR
714llvm_doxygen_generate_qhp
715llvm_doxygen_qch_filename
716llvm_doxygen_qhp_namespace
717llvm_doxygen_qhelpgenerator_path
718llvm_doxygen_qhp_cust_filter_name
719llvm_doxygen_qhp_cust_filter_attrs
720clang_doxygen_generate_qhp
721clang_doxygen_qch_filename
722clang_doxygen_qhp_namespace
723clang_doxygen_qhelpgenerator_path
724clang_doxygen_qhp_cust_filter_name
725clang_doxygen_qhp_cust_filter_attrs
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +0000726LLVM_ENABLE_THREADS
NAKAMURA Takumic6fce172010-12-29 03:59:03 +0000727ENABLE_PTHREADS
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000728LLVM_ENABLE_ZLIB
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000729ENABLE_PIC
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000730ENABLE_SHARED
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +0000731ENABLE_EMBED_STDCXX
Daniel Dunbardac18242010-05-10 20:11:56 +0000732ENABLE_TIMESTAMPS
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000733ALL_TARGETS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000734TARGETS_TO_BUILD
735LLVM_ENUM_TARGETS
736LLVM_ENUM_ASM_PRINTERS
737LLVM_ENUM_ASM_PARSERS
738LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000739OPTIMIZE_OPTION
740EXTRA_OPTIONS
Daniel Dunbar3b95df82011-06-16 22:30:41 +0000741EXTRA_LD_OPTIONS
NAKAMURA Takumi914f1922011-10-16 02:54:26 +0000742CLANG_SRC_ROOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000743BINUTILS_INCDIR
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000744ENABLE_TERMINFO
Bob Wilson3f354702011-11-28 07:59:52 +0000745INTERNAL_PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000746ifGNUmake
747LN_S
Rafael Espindolafd1355a2014-02-28 18:17:54 +0000748NM
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000749CMP
750CP
751DATE
752FIND
Eric Christopherd7ed36b2014-01-09 01:09:57 +0000753GREP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000754MKDIR
755MV
756RANLIB
757AR
758RM
759SED
760TAR
761BINPWD
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000762DOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000763INSTALL_PROGRAM
764INSTALL_SCRIPT
765INSTALL_DATA
766BZIP2
mike-me08af302010-05-06 23:45:43 +0000767CAT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000768DOXYGEN
Daniel Dunbard1888822012-05-08 18:26:07 +0000769GROFF
Eric Christopher77560892010-12-10 01:31:51 +0000770GZIPBIN
Daniel Dunbard1888822012-05-08 18:26:07 +0000771PDFROFF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000772ZIP
Peter Collingbourne82e3e372014-10-16 22:48:02 +0000773GO
Peter Zotov668f9672014-10-30 08:29:45 +0000774OCAMLFIND
Daniel Dunbard1888822012-05-08 18:26:07 +0000775GAS
Dan Gohmanb7edb422010-06-01 14:56:56 +0000776HAVE_LINK_VERSION_SCRIPT
Eric Christopherd7ed36b2014-01-09 01:09:57 +0000777EGREP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000778NO_VARIADIC_MACROS
779NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola42e94d12012-02-28 23:32:06 +0000780COVERED_SWITCH_DEFAULT
David Greene9ff8d472013-01-09 22:11:13 +0000781NO_MAYBE_UNINITIALIZED
782NO_UNINITIALIZED
Eric Christopher65ec83b2014-11-05 00:35:15 +0000783NO_COMMENT
Saleem Abdulrasoola1665742013-01-30 04:44:17 +0000784PYTHON
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000785HAVE_DLOPEN
786HAVE_TERMINFO
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000787USE_OPROFILE
Eli Bendersky5262ad22012-03-13 08:33:15 +0000788USE_INTEL_JITEVENTS
Eric Christopherc807c532012-08-03 19:47:19 +0000789XML2CONFIG
790LIBXML2_LIBS
791LIBXML2_INC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000792HAVE_PTHREAD
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000793HAVE_LIBZ
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000794HUGE_VAL_SANITY
795MMAP_FILE
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000796SHLIBEXT
797LLVM_PREFIX
798LLVM_BINDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000799LLVM_DATADIR
800LLVM_DOCSDIR
801LLVM_ETCDIR
802LLVM_INCLUDEDIR
803LLVM_INFODIR
804LLVM_MANDIR
805LLVM_CONFIGTIME
806BINDINGS_TO_BUILD
Peter Zotov668f9672014-10-30 08:29:45 +0000807HAVE_OCAMLOPT
808HAVE_OCAML_OUNIT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000809OCAML_LIBDIR
810ENABLE_VISIBILITY_INLINES_HIDDEN
811RPATH
812RDYNAMIC
Jordan Rose3c837ab2012-10-01 18:40:32 +0000813program_prefix
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000814LIBOBJS
815LTLIBOBJS'
John Criswell3eaf0b42003-09-10 15:17:25 +0000816ac_subst_files=''
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000817 ac_precious_vars='build_alias
818host_alias
819target_alias
820CC
821CFLAGS
822LDFLAGS
823CPPFLAGS
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000824CXX
825CXXFLAGS
Eric Christopher58839712011-09-16 20:36:25 +0000826CCC
Rui Ueyama292fb6d2014-10-27 08:16:18 +0000827CPP'
Chandler Carruthaf968ed2014-01-14 04:01:01 +0000828ac_subdirs_all='projects/test-suite
John Criswellf369e772010-03-19 21:31:39 +0000829projects/llvm-test
830projects/poolalloc
831projects/llvm-poolalloc
John Criswell4d377d82010-02-25 22:57:19 +0000832projects/safecode
Tobias Grosserea9dca42010-10-30 00:54:26 +0000833tools/polly'
John Criswell3ef61af2003-06-30 21:59:07 +0000834
835# Initialize some variables set by options.
836ac_init_help=
837ac_init_version=false
838# The variables have the same names as the options, with
839# dashes changed to underlines.
840cache_file=/dev/null
841exec_prefix=NONE
842no_create=
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
851verbose=
852x_includes=NONE
853x_libraries=NONE
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000860# (The list follows the same order as the GNU Coding Standards.)
John Criswell3ef61af2003-06-30 21:59:07 +0000861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
John Criswell3ef61af2003-06-30 21:59:07 +0000866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
John Criswell3ef61af2003-06-30 21:59:07 +0000869includedir='${prefix}/include'
870oldincludedir='/usr/include'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000871docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
John Criswell3ef61af2003-06-30 21:59:07 +0000880
881ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000882ac_dashdash=
John Criswell3ef61af2003-06-30 21:59:07 +0000883for ac_option
884do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000887 eval $ac_prev=\$ac_option
John Criswell3ef61af2003-06-30 21:59:07 +0000888 ac_prev=
889 continue
890 fi
891
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
John Criswell3ef61af2003-06-30 21:59:07 +0000896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000923 -datadir | --datadir | --datadi | --datad)
John Criswell3ef61af2003-06-30 21:59:07 +0000924 ac_prev=datadir ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell3ef61af2003-06-30 21:59:07 +0000926 datadir=$ac_optarg ;;
927
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
John Criswell3ef61af2003-06-30 21:59:07 +0000935 -disable-* | --disable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000936 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000937 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=no ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000943
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
948
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000953
954 -enable-* | --enable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000955 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000956 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000957 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959 { (exit 1); exit 1; }; }
960 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
John Criswell3ef61af2003-06-30 21:59:07 +0000994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
John Criswell3ef61af2003-06-30 21:59:07 +00001023 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001024 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell3ef61af2003-06-30 21:59:07 +00001025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell3ef61af2003-06-30 21:59:07 +00001028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
John Criswell3ef61af2003-06-30 21:59:07 +00001102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001152 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001153 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001154 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid package name: $ac_package" >&2
1156 { (exit 1); exit 1; }; }
1157 ac_package=`echo $ac_package| sed 's/-/_/g'`
1158 eval with_$ac_package=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001159
1160 -without-* | --without-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001161 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001162 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001163 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid package name: $ac_package" >&2
1165 { (exit 1); exit 1; }; }
1166 ac_package=`echo $ac_package | sed 's/-/_/g'`
1167 eval with_$ac_package=no ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001187 -*) { echo "$as_me: error: unrecognized option: $ac_option
1188Try \`$0 --help' for more information." >&2
1189 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001195 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1196 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1197 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001198 eval $ac_envvar=\$ac_optarg
John Criswell3ef61af2003-06-30 21:59:07 +00001199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001203 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001205 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001206 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207 ;;
1208
1209 esac
1210done
1211
1212if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001214 { echo "$as_me: error: missing argument to $ac_option" >&2
1215 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001216fi
1217
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001218# Be sure to have absolute directory names.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
John Criswell3ef61af2003-06-30 21:59:07 +00001223do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001224 eval ac_val=\$$ac_var
John Criswell3ef61af2003-06-30 21:59:07 +00001225 case $ac_val in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell3ef61af2003-06-30 21:59:07 +00001228 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001229 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1230 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001231done
1232
1233# There might be people who depend on the old broken behavior: `$host'
1234# used to hold the argument of --host etc.
1235# FIXME: To remove some day.
1236build=$build_alias
1237host=$host_alias
1238target=$target_alias
1239
1240# FIXME: To remove some day.
1241if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001244 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell3ef61af2003-06-30 21:59:07 +00001245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001260 { echo "$as_me: error: Working directory cannot be determined" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001263 { echo "$as_me: error: pwd does not report name of working directory" >&2
1264 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001265
1266
John Criswell3ef61af2003-06-30 21:59:07 +00001267# Find the source files, if location was not specified.
1268if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001270 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001271 ac_confdir=`$as_dirname -- "$0" ||
1272$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$0" : 'X\(//\)[^/]' \| \
1274 X"$0" : 'X\(//\)$' \| \
1275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276echo X"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
John Criswell3ef61af2003-06-30 21:59:07 +00001294 srcdir=$ac_confdir
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001295 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell3ef61af2003-06-30 21:59:07 +00001296 srcdir=..
1297 fi
1298else
1299 ac_srcdir_defaulted=no
1300fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001301if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001303 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1304 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001305fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307ac_abs_confdir=`(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001308 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1309 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001310 pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
John Criswell3ef61af2003-06-30 21:59:07 +00001327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1334 cat <<_ACEOF
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001335\`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
John Criswell3ef61af2003-06-30 21:59:07 +00001336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE. See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354
John Criswell3ef61af2003-06-30 21:59:07 +00001355Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001357 [$ac_default_prefix]
John Criswell3ef61af2003-06-30 21:59:07 +00001358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001359 [PREFIX]
John Criswell3ef61af2003-06-30 21:59:07 +00001360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherafbe7522011-12-21 00:52:44 +00001383 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
John Criswell3ef61af2003-06-30 21:59:07 +00001388_ACEOF
1389
1390 cat <<\_ACEOF
1391
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400 case $ac_init_help in
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001401 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
John Criswell3ef61af2003-06-30 21:59:07 +00001402 esac
1403 cat <<\_ACEOF
1404
1405Optional Features:
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chandler Carruth7206eae2014-01-15 19:19:13 +00001408 --enable-polly Use polly if available (default is YES)
1409 --enable-libcpp Use libc++ if available (default is NO)
Chandler Carruth75a65452014-01-14 05:02:38 +00001410 --enable-compiler-version-checks
1411 Check the version of the host compiler (default is
1412 YES)
Chandler Carruthbbae5122014-03-01 03:33:08 +00001413 --enable-cxx1y Use c++1y if available (default is NO)
Eric Christopherf1bd7702013-06-25 01:12:25 +00001414 --enable-split-dwarf Use split-dwarf if available (default is NO)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001415 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
Rafael Espindolae33f06c2014-03-10 16:58:35 +00001416 --enable-clang-plugin-support
1417 Enable plugin support in clang (default is YES)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001418 --enable-clang-static-analyzer
1419 Enable building of clang Static Analyzer (default is
1420 YES)
Nick Lewycky86679902009-06-06 06:25:09 +00001421 --enable-optimized Compile with optimizations enabled (default is NO)
1422 --enable-profiling Compile with profiling enabled (default is NO)
1423 --enable-assertions Compile with assertion checks enabled (default is
1424 YES)
Eric Christopher84864012012-08-03 19:58:20 +00001425 --enable-werror Compile with -Werror enabled (default is NO)
David Greenecbc8ddf2007-06-28 19:36:08 +00001426 --enable-expensive-checks
Nick Lewycky86679902009-06-06 06:25:09 +00001427 Compile with expensive debug checks enabled (default
1428 is NO)
1429 --enable-debug-runtime Build runtime libs with debug symbols (default is
1430 NO)
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00001431 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1432 optimization is on and YES if it's off)
Daniel Dunbar39c04622012-08-14 18:14:22 +00001433 --enable-keep-symbols Do not strip installed executables)
Reid Spencer0241e382004-11-25 04:51:04 +00001434 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola7ac506d2010-11-12 19:24:06 +00001435 --enable-docs Build documents (default is YES)
Reid Spencer0194c9a2004-11-29 04:56:35 +00001436 --enable-doxygen Build doxygen documentation (default is NO)
Logan Chiene1c36012015-03-12 17:25:25 +00001437 --enable-doxygen-search Enable doxygen search support (default is NO)
1438 --enable-doxygen-external-search
1439 Enable doxygen exteranl search (default is NO)
1440 --enable-doxygen-qt-help
1441 Build Qt help files (default is NO)
Reid Spencerf85fabeb2005-08-24 10:07:20 +00001442 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00001443 --enable-pthreads Use pthreads if available (default is YES)
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00001444 --enable-zlib Use zlib for compression/decompression if available
1445 (default is YES)
Reid Spencer05a1fe52006-12-16 22:07:52 +00001446 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky38525192009-02-19 06:18:56 +00001447 is YES)
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00001448 --enable-shared Build a shared library and link tools against it
1449 (default is NO)
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00001450 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00001451 Win32 DLL (default is NO)
Daniel Dunbardac18242010-05-10 20:11:56 +00001452 --enable-timestamps Enable embedding timestamp information in build
1453 (default is YES)
Eric Christopher9fafe072012-09-21 23:03:29 +00001454 --enable-backtraces Enable embedding backtraces on crash (default is
1455 YES)
Daniel Dunbareb6c7082013-08-30 20:39:21 +00001456 --enable-crash-overrides
1457 Enable crash handling overrides (default is YES)
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00001458 --enable-targets Build specific host targets: all or
1459 target1,target2,... Valid targets are: host, x86,
Tim Northover00ed9962014-03-29 10:18:08 +00001460 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1461 hexagon, xcore, msp430, nvptx, systemz, r600, and
1462 cpp (default=all)
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00001463 --enable-experimental-targets
1464 Build experimental host targets: disable or
1465 target1,target2,... (default=disable)
Gordon Henriksene61dd672007-10-02 09:50:32 +00001466 --enable-bindings Build specific language bindings:
1467 all,auto,none,{binding-name} (default=auto)
Chandler Carruthf11f1e42013-08-12 09:49:17 +00001468 --enable-terminfo Query the terminfo database if available (default is
1469 YES)
Peter Collingbournec7d437c2014-01-31 23:46:14 +00001470 --enable-libedit Use libedit if available (default is YES)
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00001471 --enable-libffi Check for the presence of libffi (default is NO)
John Criswell3ef61af2003-06-30 21:59:07 +00001472
1473Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Logan Chiene1c36012015-03-12 17:25:25 +00001476 --with-doxygen-search-engine-url
1477 Specify the external search engine for doxygen
1478 --with-doxygen-search-mappings
1479 Specify the extra search mapping for doxygen
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00001480 --with-optimize-option Select the compiler options to use for optimized
1481 builds
Duncan Sandsef8c8ec2009-05-13 13:13:18 +00001482 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbar3b95df82011-06-16 22:30:41 +00001483 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00001484 --with-ocaml-libdir Specify install location for ocaml bindings (default
1485 is stdlib)
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00001486 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruthffae4a62010-10-19 08:21:25 +00001487 --with-clang-resource-dir
1488 Relative directory from the Clang binary for
1489 resource files
Rafael Espindolad95960b2009-11-12 05:46:09 +00001490 --with-c-include-dirs Colon separated list of directories clang will
1491 search for headers
Rafael Espindolaec217f62012-02-03 00:59:30 +00001492 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop5c9e1842012-04-16 04:11:45 +00001493 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00001494 --with-binutils-include Specify path to binutils/include/ containing
1495 plugin-api.h file for gold plugin.
Eric Christopher65080cc2011-07-20 17:04:49 +00001496 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00001497 submitted (default=http://llvm.org/bugs/)
Bob Wilson3f354702011-11-28 07:59:52 +00001498 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00001499 --with-python path to python
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00001500 --with-oprofile=<prefix>
1501 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor5808c7d2012-09-28 17:35:20 +00001502 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1503
John Criswell3ef61af2003-06-30 21:59:07 +00001504
1505Some influential environment variables:
Reid Spencer0241e382004-11-25 04:51:04 +00001506 CC C compiler command
1507 CFLAGS C compiler flags
John Criswell3ef61af2003-06-30 21:59:07 +00001508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001511 you have headers in a nonstandard directory <include dir>
Reid Spencer0241e382004-11-25 04:51:04 +00001512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
Eric Christopher58839712011-09-16 20:36:25 +00001514 CPP C preprocessor
John Criswell3ef61af2003-06-30 21:59:07 +00001515
1516Use these variables to override the choices made by `configure' or to help
1517it to find libraries and programs with nonstandard names/locations.
1518
Eric Christopherafbe7522011-12-21 00:52:44 +00001519Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00001520_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001521ac_status=$?
John Criswell3ef61af2003-06-30 21:59:07 +00001522fi
1523
1524if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
John Criswell3ef61af2003-06-30 21:59:07 +00001526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001527 test -d "$ac_dir" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00001528 ac_builddir=.
1529
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001534 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +00001545
1546case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001547 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +00001548 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +00001552 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001559esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +00001561
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell3ef61af2003-06-30 21:59:07 +00001570 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell3ef61af2003-06-30 21:59:07 +00001574 done
1575fi
1576
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001577test -n "$ac_init_help" && exit $ac_status
John Criswell3ef61af2003-06-30 21:59:07 +00001578if $ac_init_version; then
1579 cat <<\_ACEOF
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001580LLVM configure 3.7.0svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001581generated by GNU Autoconf 2.60
John Criswell3ef61af2003-06-30 21:59:07 +00001582
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001583Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15842002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00001585This configure script is free software; the Free Software Foundation
1586gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +00001587
Eric Christophera1bafae2015-03-12 01:25:29 +00001588Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
John Criswell3ef61af2003-06-30 21:59:07 +00001589_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001590 exit
John Criswell3ef61af2003-06-30 21:59:07 +00001591fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001592cat >config.log <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00001593This file contains any messages produced by compilers while
1594running configure, to aid debugging if configure makes a mistake.
1595
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001596It was created by LLVM $as_me 3.7.0svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001597generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +00001598
1599 $ $0 $@
1600
1601_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001602exec 5>>config.log
John Criswell3ef61af2003-06-30 21:59:07 +00001603{
1604cat <<_ASUNAME
1605## --------- ##
1606## Platform. ##
1607## --------- ##
1608
1609hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614
1615/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617
1618/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001621/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell3ef61af2003-06-30 21:59:07 +00001622/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1625
1626_ASUNAME
1627
1628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629for as_dir in $PATH
1630do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001633 echo "PATH: $as_dir"
1634done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001635IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00001636
1637} >&5
1638
1639cat >&5 <<_ACEOF
1640
1641
1642## ----------- ##
1643## Core tests. ##
1644## ----------- ##
1645
1646_ACEOF
1647
1648
1649# Keep a trace of the command line.
1650# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell3eaf0b42003-09-10 15:17:25 +00001651# Strip out --silent because we don't want to record it for future runs.
John Criswell3ef61af2003-06-30 21:59:07 +00001652# Also quote any args containing shell meta-characters.
John Criswell3eaf0b42003-09-10 15:17:25 +00001653# Make two passes to allow for proper duplicate-argument suppression.
John Criswell3ef61af2003-06-30 21:59:07 +00001654ac_configure_args=
John Criswell3eaf0b42003-09-10 15:17:25 +00001655ac_configure_args0=
1656ac_configure_args1=
John Criswell3eaf0b42003-09-10 15:17:25 +00001657ac_must_keep_next=false
1658for ac_pass in 1 2
John Criswell3ef61af2003-06-30 21:59:07 +00001659do
John Criswell3eaf0b42003-09-10 15:17:25 +00001660 for ac_arg
1661 do
1662 case $ac_arg in
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1666 continue ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001667 *\'*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001668 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001669 esac
1670 case $ac_pass in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001672 2)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001674 if test $ac_must_keep_next = true; then
Reid Spencerf184a862004-09-19 23:53:36 +00001675 ac_must_keep_next=false # Got value, back to normal.
John Criswell3eaf0b42003-09-10 15:17:25 +00001676 else
Reid Spencerf184a862004-09-19 23:53:36 +00001677 case $ac_arg in
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 esac
1685 ;;
1686 -* ) ac_must_keep_next=true ;;
1687 esac
John Criswell3eaf0b42003-09-10 15:17:25 +00001688 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001689 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001690 ;;
1691 esac
1692 done
John Criswell3ef61af2003-06-30 21:59:07 +00001693done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001694$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695$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 +00001696
1697# When interrupted or exit'd, cleanup temporary files, and complete
1698# config.log. We remove comments because anyway the quotes in there
1699# would cause problems or look ugly.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001700# WARNING: Use '\'' to represent an apostrophe within the trap.
1701# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell3ef61af2003-06-30 21:59:07 +00001702trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1704 {
1705 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001706
John Criswell3ef61af2003-06-30 21:59:07 +00001707 cat <<\_ASBOX
1708## ---------------- ##
1709## Cache variables. ##
1710## ---------------- ##
1711_ASBOX
1712 echo
1713 # The following way of writing the cache mishandles newlines in values,
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001714(
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1717 case $ac_val in #(
1718 *${as_nl}*)
1719 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001722 esac
1723 case $ac_var in #(
1724 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001725 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001726 esac ;;
1727 esac
1728 done
John Criswell3ef61af2003-06-30 21:59:07 +00001729 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
John Criswell3ef61af2003-06-30 21:59:07 +00001732 sed -n \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +00001736 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +00001738 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001739 esac |
1740 sort
1741)
John Criswell3ef61af2003-06-30 21:59:07 +00001742 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001743
1744 cat <<\_ASBOX
1745## ----------------- ##
1746## Output variables. ##
1747## ----------------- ##
1748_ASBOX
1749 echo
1750 for ac_var in $ac_subst_vars
1751 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001752 eval ac_val=\$$ac_var
1753 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001755 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001756 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001757 done | sort
1758 echo
1759
1760 if test -n "$ac_subst_files"; then
1761 cat <<\_ASBOX
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001762## ------------------- ##
1763## File substitutions. ##
1764## ------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +00001765_ASBOX
1766 echo
1767 for ac_var in $ac_subst_files
1768 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001769 eval ac_val=\$$ac_var
1770 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001772 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001773 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001774 done | sort
1775 echo
1776 fi
1777
John Criswell3ef61af2003-06-30 21:59:07 +00001778 if test -s confdefs.h; then
1779 cat <<\_ASBOX
1780## ----------- ##
1781## confdefs.h. ##
1782## ----------- ##
1783_ASBOX
1784 echo
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001785 cat confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001786 echo
1787 fi
1788 test "$ac_signal" != 0 &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001789 echo "$as_me: caught signal $ac_signal"
1790 echo "$as_me: exit $exit_status"
John Criswell3ef61af2003-06-30 21:59:07 +00001791 } >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell3ef61af2003-06-30 21:59:07 +00001794 exit $exit_status
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001795' 0
John Criswell3ef61af2003-06-30 21:59:07 +00001796for ac_signal in 1 2 13 15; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell3ef61af2003-06-30 21:59:07 +00001798done
1799ac_signal=0
1800
1801# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001802rm -f -r conftest* confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001803
1804# Predefined preprocessor variables.
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_NAME "$PACKAGE_NAME"
1808_ACEOF
1809
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001810
John Criswell3ef61af2003-06-30 21:59:07 +00001811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813_ACEOF
1814
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001815
John Criswell3ef61af2003-06-30 21:59:07 +00001816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_VERSION "$PACKAGE_VERSION"
1818_ACEOF
1819
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001820
John Criswell3ef61af2003-06-30 21:59:07 +00001821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_STRING "$PACKAGE_STRING"
1823_ACEOF
1824
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001825
John Criswell3ef61af2003-06-30 21:59:07 +00001826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828_ACEOF
1829
1830
1831# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001832# Prefer explicitly selected file to automatically selected ones.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001833if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001834 set x "$CONFIG_SITE"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001835elif test "x$prefix" != xNONE; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001836 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001837else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001838 set x "$ac_default_prefix/share/config.site" \
1839 "$ac_default_prefix/etc/config.site"
John Criswell3ef61af2003-06-30 21:59:07 +00001840fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001841shift
1842for ac_site_file
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001843do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001844 if test -r "$ac_site_file"; then
1845 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001847 sed 's/^/| /' "$ac_site_file" >&5
1848 . "$ac_site_file"
1849 fi
1850done
1851
1852if test -r "$cache_file"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001853 # Some versions of bash will fail to source /dev/null (special
1854 # files actually), so we avoid doing that.
1855 if test -f "$cache_file"; then
1856 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857echo "$as_me: loading cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001858 case $cache_file in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860 *) . "./$cache_file";;
John Criswell3ef61af2003-06-30 21:59:07 +00001861 esac
1862 fi
1863else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001864 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865echo "$as_me: creating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001866 >$cache_file
1867fi
1868
1869# Check that the precious variables saved in the cache have kept the same
1870# value.
1871ac_cache_corrupted=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001872for ac_var in $ac_precious_vars; do
John Criswell3ef61af2003-06-30 21:59:07 +00001873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell3ef61af2003-06-30 21:59:07 +00001877 case $ac_old_set,$ac_new_set in
1878 set,)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001879 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001881 ac_cache_corrupted=: ;;
1882 ,set)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001883 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001885 ac_cache_corrupted=: ;;
1886 ,);;
1887 *)
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001889 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1892echo "$as_me: former value: $ac_old_val" >&2;}
1893 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1894echo "$as_me: current value: $ac_new_val" >&2;}
1895 ac_cache_corrupted=:
John Criswell3ef61af2003-06-30 21:59:07 +00001896 fi;;
1897 esac
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1900 case $ac_new_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001901 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001902 *) ac_arg=$ac_var=$ac_new_val ;;
1903 esac
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001907 esac
1908 fi
1909done
1910if $ac_cache_corrupted; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001911 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001916fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001941
John Criswell3ef61af2003-06-30 21:59:07 +00001942ac_ext=c
1943ac_cpp='$CPP $CPPFLAGS'
1944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947
1948
1949
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001950LLVM_VERSION_MAJOR=3
Hans Wennborgd94a5f02015-01-14 17:38:03 +00001951LLVM_VERSION_MINOR=7
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001952LLVM_VERSION_PATCH=0
1953LLVM_VERSION_SUFFIX=svn
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001954
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001955
1956cat >>confdefs.h <<_ACEOF
1957#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001958_ACEOF
1959
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001960
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001961cat >>confdefs.h <<_ACEOF
1962#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001963_ACEOF
1964
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001965
1966cat >>confdefs.h <<_ACEOF
1967#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1968_ACEOF
1969
1970
Peter Collingbournea8ed79a2014-11-19 03:34:17 +00001971cat >>confdefs.h <<_ACEOF
1972#define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1973_ACEOF
1974
1975
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001976
1977
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001978
1979
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001980
Eric Christophera1bafae2015-03-12 01:25:29 +00001981LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
Reid Spencer0241e382004-11-25 04:51:04 +00001982
1983
1984
1985
1986
1987
1988
John Criswell3ef61af2003-06-30 21:59:07 +00001989ac_aux_dir=
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001990for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001991 if test -f "$ac_dir/install-sh"; then
1992 ac_aux_dir=$ac_dir
1993 ac_install_sh="$ac_aux_dir/install-sh -c"
1994 break
1995 elif test -f "$ac_dir/install.sh"; then
1996 ac_aux_dir=$ac_dir
1997 ac_install_sh="$ac_aux_dir/install.sh -c"
1998 break
1999 elif test -f "$ac_dir/shtool"; then
2000 ac_aux_dir=$ac_dir
2001 ac_install_sh="$ac_aux_dir/shtool install -c"
2002 break
2003 fi
John Criswell3ef61af2003-06-30 21:59:07 +00002004done
2005if test -z "$ac_aux_dir"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002006 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2007echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2008 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002009fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002010
2011# These three variables are undocumented and unsupported,
2012# and are intended to be withdrawn in a future Autoconf release.
2013# They can cause serious problems if a builder's source tree is in a directory
2014# whose full name contains unusual characters.
2015ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2016ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2017ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2018
John Criswell3ef61af2003-06-30 21:59:07 +00002019
John Criswellc933eeb2003-07-22 19:18:09 +00002020
Reid Spencerf184a862004-09-19 23:53:36 +00002021if test ${srcdir} != "." ; then
Reid Spencer0241e382004-11-25 04:51:04 +00002022 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002023 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2024echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2025 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002026 fi
John Criswell22107a72003-09-15 17:04:06 +00002027fi
2028
Patrik Hagglund98578472013-09-24 11:38:45 +00002029: ${CFLAGS=}
2030: ${CXXFLAGS=}
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00002031
Nick Lewyckyc5975fc2009-09-29 05:48:51 +00002032ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +00002033ac_cpp='$CPP $CPPFLAGS'
2034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002037if test -n "$ac_tool_prefix"; then
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002038 for ac_prog in clang gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002039 do
2040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2044if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002046else
Reid Spencer0241e382004-11-25 04:51:04 +00002047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002049else
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 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 +00002057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002059 break 2
2060 fi
2061done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002062done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002063IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002064
2065fi
2066fi
Reid Spencer0241e382004-11-25 04:51:04 +00002067CC=$ac_cv_prog_CC
2068if test -n "$CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002069 { echo "$as_me:$LINENO: result: $CC" >&5
2070echo "${ECHO_T}$CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002071else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002072 { echo "$as_me:$LINENO: result: no" >&5
2073echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002074fi
2075
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002076
Reid Spencer0241e382004-11-25 04:51:04 +00002077 test -n "$CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002078 done
2079fi
Reid Spencer0241e382004-11-25 04:51:04 +00002080if test -z "$CC"; then
2081 ac_ct_CC=$CC
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002082 for ac_prog in clang gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002083do
2084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2085set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002090else
Reid Spencer0241e382004-11-25 04:51:04 +00002091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 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 +00002101 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002103 break 2
2104 fi
2105done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002106done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002107IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002108
2109fi
2110fi
Reid Spencer0241e382004-11-25 04:51:04 +00002111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002113 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002115else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002116 { echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002118fi
2119
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002120
Reid Spencer0241e382004-11-25 04:51:04 +00002121 test -n "$ac_ct_CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002122done
John Criswell3ef61af2003-06-30 21:59:07 +00002123
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002124 if test "x$ac_ct_CC" = x; then
2125 CC=""
2126 else
2127 case $cross_compiling:$ac_tool_warned in
2128yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002129{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2130whose name does not start with the host triplet. If you think this
2131configuration is useful to you, please write to autoconf@gnu.org." >&5
2132echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2133whose name does not start with the host triplet. If you think this
2134configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002135ac_tool_warned=yes ;;
2136esac
2137 CC=$ac_ct_CC
2138 fi
Reid Spencer0241e382004-11-25 04:51:04 +00002139fi
2140
John Criswell3ef61af2003-06-30 21:59:07 +00002141
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002142test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2143See \`config.log' for more details." >&5
2144echo "$as_me: error: no acceptable C compiler found in \$PATH
2145See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002147
John Criswell3ef61af2003-06-30 21:59:07 +00002148# Provide some information about the compiler.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002149echo "$as_me:$LINENO: checking for C compiler version" >&5
2150ac_compiler=`set X $ac_compile; echo $2`
2151{ (ac_try="$ac_compiler --version >&5"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002152case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_compiler --version >&5") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002158 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }
2161{ (ac_try="$ac_compiler -v >&5"
2162case "(($ac_try" in
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2165esac
2166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_compiler -v >&5") 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }
2171{ (ac_try="$ac_compiler -V >&5"
2172case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175esac
2176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_compiler -V >&5") 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }
John Criswell3ef61af2003-06-30 21:59:07 +00002181
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002182cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h. */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002187/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002188
John Criswell3ef61af2003-06-30 21:59:07 +00002189int
2190main ()
2191{
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002198ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell3ef61af2003-06-30 21:59:07 +00002199# Try to create an executable without -o first, disregard a.out.
2200# It will help us diagnose broken compilers, and finding out an intuition
2201# of exeext.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002202{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2203echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2204ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2205#
2206# List of possible output files, starting from the most likely.
2207# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2208# only as a last resort. b.out is created by i960 compilers.
2209ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2210#
2211# The IRIX 6 linker writes into existing files which may not be
2212# executable, retaining their permissions. Remove them first so a
2213# subsequent execution test works.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002214ac_rmfiles=
2215for ac_file in $ac_files
2216do
2217 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2220 esac
2221done
2222rm -f $ac_rmfiles
2223
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002224if { (ac_try="$ac_link_default"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002225case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2228esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002230 (eval "$ac_link_default") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002231 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2235# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2236# in a Makefile. We should not override ac_cv_exeext if it was cached,
2237# so that the user can short-circuit this test for compilers unknown to
2238# Autoconf.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002239for ac_file in $ac_files
John Criswell3eaf0b42003-09-10 15:17:25 +00002240do
2241 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002242 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencerf184a862004-09-19 23:53:36 +00002244 ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002245 [ab].out )
Reid Spencerf184a862004-09-19 23:53:36 +00002246 # We found the default executable, but exeext='' is most
2247 # certainly right.
2248 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002249 *.* )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002251 then :; else
2252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253 fi
2254 # We set ac_cv_exeext here because the later test for it is not
2255 # safe: cross compilers may not add the suffix if given an `-o'
2256 # argument, so we may need to know it at that point already.
2257 # Even if this section looks crufty: it has the advantage of
2258 # actually working.
Reid Spencerf184a862004-09-19 23:53:36 +00002259 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002260 * )
Reid Spencerf184a862004-09-19 23:53:36 +00002261 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002262 esac
2263done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002264test "$ac_cv_exeext" = no && ac_cv_exeext=
2265
John Criswell3ef61af2003-06-30 21:59:07 +00002266else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002267 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002268sed 's/^/| /' conftest.$ac_ext >&5
2269
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002270{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: C compiler cannot create executables
2273See \`config.log' for more details." >&2;}
2274 { (exit 77); exit 77; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002275fi
John Criswell3ef61af2003-06-30 21:59:07 +00002276
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002277ac_exeext=$ac_cv_exeext
2278{ echo "$as_me:$LINENO: result: $ac_file" >&5
2279echo "${ECHO_T}$ac_file" >&6; }
2280
2281# Check that the compiler produces executables we can run. If not, either
2282# the compiler is broken, or we cross compile.
2283{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2284echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2285# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2286# If not cross compiling, check that we can run a simple program.
2287if test "$cross_compiling" != yes; then
2288 if { ac_try='./$ac_file'
2289 { (case "(($ac_try" in
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2292esac
2293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_try") 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 cross_compiling=no
2299 else
2300 if test "$cross_compiling" = maybe; then
2301 cross_compiling=yes
2302 else
2303 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304If you meant to cross compile, use \`--host'.
2305See \`config.log' for more details." >&5
2306echo "$as_me: error: cannot run C compiled programs.
2307If you meant to cross compile, use \`--host'.
2308See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2310 fi
2311 fi
2312fi
2313{ echo "$as_me:$LINENO: result: yes" >&5
2314echo "${ECHO_T}yes" >&6; }
2315
2316rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell3ef61af2003-06-30 21:59:07 +00002317ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002318# Check that the compiler produces executables we can run. If not, either
2319# the compiler is broken, or we cross compile.
2320{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2322{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323echo "${ECHO_T}$cross_compiling" >&6; }
2324
2325{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2327if { (ac_try="$ac_link"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002328case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002333 (eval "$ac_link") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002334 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2338# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2339# work properly (i.e., refer to `conftest.exe'), while it won't with
2340# `rm'.
John Criswell3eaf0b42003-09-10 15:17:25 +00002341for ac_file in conftest.exe conftest conftest.*; do
2342 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002343 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencerf184a862004-09-19 23:53:36 +00002346 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002347 * ) break;;
2348 esac
2349done
2350else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002351 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2352See \`config.log' for more details." >&5
2353echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2354See \`config.log' for more details." >&2;}
2355 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002356fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002357
2358rm -f conftest$ac_cv_exeext
2359{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2360echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002361
2362rm -f conftest.$ac_ext
2363EXEEXT=$ac_cv_exeext
2364ac_exeext=$EXEEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002365{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2366echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2367if test "${ac_cv_objext+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00002369else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002370 cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002375/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002376
John Criswell3ef61af2003-06-30 21:59:07 +00002377int
2378main ()
2379{
2380
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385rm -f conftest.o conftest.obj
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002386if { (ac_try="$ac_compile"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002387case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002392 (eval "$ac_compile") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002393 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002396 for ac_file in conftest.o conftest.obj conftest.*; do
2397 test -f "$ac_file" || continue;
John Criswell3ef61af2003-06-30 21:59:07 +00002398 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002400 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2401 break;;
2402 esac
2403done
2404else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002405 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002408{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2409See \`config.log' for more details." >&5
2410echo "$as_me: error: cannot compute suffix of object files: cannot compile
2411See \`config.log' for more details." >&2;}
2412 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002413fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002414
John Criswell3ef61af2003-06-30 21:59:07 +00002415rm -f conftest.$ac_cv_objext conftest.$ac_ext
2416fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002417{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2418echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002419OBJEXT=$ac_cv_objext
2420ac_objext=$OBJEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002421{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2422echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2423if test "${ac_cv_c_compiler_gnu+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002425else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002431/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002432
John Criswell3ef61af2003-06-30 21:59:07 +00002433int
2434main ()
2435{
2436#ifndef __GNUC__
2437 choke me
2438#endif
2439
2440 ;
2441 return 0;
2442}
2443_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002444rm -f conftest.$ac_objext
2445if { (ac_try="$ac_compile"
2446case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449esac
2450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_compile") 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2459 { (case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462esac
2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_try") 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472esac
2473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474 (eval "$ac_try") 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002478 ac_compiler_gnu=yes
2479else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002480 echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 ac_compiler_gnu=no
John Criswell3ef61af2003-06-30 21:59:07 +00002484fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002485
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002487ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002488
2489fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002490{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2491echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2492GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer0241e382004-11-25 04:51:04 +00002493ac_test_CFLAGS=${CFLAGS+set}
2494ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002495{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2496echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2497if test "${ac_cv_prog_cc_g+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002499else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002500 ac_save_c_werror_flag=$ac_c_werror_flag
2501 ac_c_werror_flag=yes
2502 ac_cv_prog_cc_g=no
2503 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002504 cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h. */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002509/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002510
John Criswell3ef61af2003-06-30 21:59:07 +00002511int
2512main ()
2513{
2514
2515 ;
2516 return 0;
2517}
2518_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002519rm -f conftest.$ac_objext
2520if { (ac_try="$ac_compile"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2534 { (case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_try") 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547esac
2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_try") 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002553 ac_cv_prog_cc_g=yes
John Criswell3ef61af2003-06-30 21:59:07 +00002554else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002555 echo "$as_me: failed program was:" >&5
2556sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 CFLAGS=""
2559 cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h. */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002564/* end confdefs.h. */
2565
2566int
2567main ()
2568{
2569
2570 ;
2571 return 0;
2572}
2573_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002574rm -f conftest.$ac_objext
2575if { (ac_try="$ac_compile"
2576case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579esac
2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602esac
2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2608 :
Torok Edwinaec06332010-01-26 08:50:50 +00002609else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002610 echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
2613 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002614 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002615 cat >conftest.$ac_ext <<_ACEOF
2616/* confdefs.h. */
2617_ACEOF
2618cat confdefs.h >>conftest.$ac_ext
2619cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002620/* end confdefs.h. */
2621
2622int
2623main ()
2624{
2625
2626 ;
2627 return 0;
2628}
2629_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002630rm -f conftest.$ac_objext
2631if { (ac_try="$ac_compile"
2632case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635esac
2636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2645 { (case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648esac
2649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_try") 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; } &&
2654 { ac_try='test -s conftest.$ac_objext'
2655 { (case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658esac
2659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_try") 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002664 ac_cv_prog_cc_g=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002665else
2666 echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669
John Criswell3ef61af2003-06-30 21:59:07 +00002670fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002671
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00002673fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002674
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002677
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_c_werror_flag=$ac_save_c_werror_flag
2680fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002681{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2682echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00002683if test "$ac_test_CFLAGS" = set; then
2684 CFLAGS=$ac_save_CFLAGS
2685elif test $ac_cv_prog_cc_g = yes; then
2686 if test "$GCC" = yes; then
2687 CFLAGS="-g -O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002688 else
Reid Spencer0241e382004-11-25 04:51:04 +00002689 CFLAGS="-g"
John Criswell3ef61af2003-06-30 21:59:07 +00002690 fi
2691else
Reid Spencer0241e382004-11-25 04:51:04 +00002692 if test "$GCC" = yes; then
2693 CFLAGS="-O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002694 else
Reid Spencer0241e382004-11-25 04:51:04 +00002695 CFLAGS=
John Criswell3ef61af2003-06-30 21:59:07 +00002696 fi
2697fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002698{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2699echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2700if test "${ac_cv_prog_cc_c89+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00002702else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002703 ac_cv_prog_cc_c89=no
Reid Spencer0241e382004-11-25 04:51:04 +00002704ac_save_CC=$CC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002705cat >conftest.$ac_ext <<_ACEOF
2706/* confdefs.h. */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00002710/* end confdefs.h. */
2711#include <stdarg.h>
2712#include <stdio.h>
2713#include <sys/types.h>
2714#include <sys/stat.h>
2715/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2716struct buf { int x; };
2717FILE * (*rcsopen) (struct buf *, struct stat *, int);
2718static char *e (p, i)
2719 char **p;
2720 int i;
2721{
2722 return p[i];
2723}
2724static char *f (char * (*g) (char **, int), char **p, ...)
2725{
2726 char *s;
2727 va_list v;
2728 va_start (v,p);
2729 s = g (p, va_arg (v,int));
2730 va_end (v);
2731 return s;
2732}
2733
2734/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2735 function prototypes and stuff, but not '\xHH' hex character constants.
2736 These don't provoke an error unfortunately, instead are silently treated
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002737 as 'x'. The following induces an error, until -std is added to get
Reid Spencer0241e382004-11-25 04:51:04 +00002738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2739 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002740 that's true only with -std. */
Reid Spencer0241e382004-11-25 04:51:04 +00002741int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2742
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002743/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2744 inside strings and character constants. */
2745#define FOO(x) 'x'
2746int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2747
Reid Spencer0241e382004-11-25 04:51:04 +00002748int test (int i, double x);
2749struct s1 {int (*f) (int a);};
2750struct s2 {int (*f) (double a);};
2751int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752int argc;
2753char **argv;
2754int
2755main ()
2756{
2757return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2758 ;
2759 return 0;
2760}
2761_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002762for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer0241e382004-11-25 04:51:04 +00002764do
2765 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002766 rm -f conftest.$ac_objext
2767if { (ac_try="$ac_compile"
2768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2781 { (case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_try") 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794esac
2795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_try") 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002800 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002801else
2802 echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805
Reid Spencer0241e382004-11-25 04:51:04 +00002806fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002807
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002808rm -f core conftest.err conftest.$ac_objext
2809 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer0241e382004-11-25 04:51:04 +00002810done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002811rm -f conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002812CC=$ac_save_CC
2813
2814fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002815# AC_CACHE_VAL
2816case "x$ac_cv_prog_cc_c89" in
2817 x)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002818 { echo "$as_me:$LINENO: result: none needed" >&5
2819echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002820 xno)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002821 { echo "$as_me:$LINENO: result: unsupported" >&5
2822echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002823 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002824 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002825 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2826echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002827esac
2828
John Criswell3eaf0b42003-09-10 15:17:25 +00002829
Reid Spencer0241e382004-11-25 04:51:04 +00002830ac_ext=c
2831ac_cpp='$CPP $CPPFLAGS'
2832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835
Eric Christopher58839712011-09-16 20:36:25 +00002836ac_ext=cpp
2837ac_cpp='$CXXCPP $CPPFLAGS'
2838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2841if test -z "$CXX"; then
2842 if test -n "$CCC"; then
2843 CXX=$CCC
2844 else
2845 if test -n "$ac_tool_prefix"; then
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002846 for ac_prog in clang++ g++
Eric Christopher58839712011-09-16 20:36:25 +00002847 do
2848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852if test "${ac_cv_prog_CXX+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 if test -n "$CXX"; then
2856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869done
2870done
2871IFS=$as_save_IFS
2872
2873fi
2874fi
2875CXX=$ac_cv_prog_CXX
2876if test -n "$CXX"; then
2877 { echo "$as_me:$LINENO: result: $CXX" >&5
2878echo "${ECHO_T}$CXX" >&6; }
2879else
2880 { echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6; }
2882fi
2883
2884
2885 test -n "$CXX" && break
2886 done
2887fi
2888if test -z "$CXX"; then
2889 ac_ct_CXX=$CXX
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002890 for ac_prog in clang++ g++
Eric Christopher58839712011-09-16 20:36:25 +00002891do
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893set dummy $ac_prog; ac_word=$2
2894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898else
2899 if test -n "$ac_ct_CXX"; then
2900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CXX="$ac_prog"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913done
2914done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2920if test -n "$ac_ct_CXX"; then
2921 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2922echo "${ECHO_T}$ac_ct_CXX" >&6; }
2923else
2924 { echo "$as_me:$LINENO: result: no" >&5
2925echo "${ECHO_T}no" >&6; }
2926fi
2927
2928
2929 test -n "$ac_ct_CXX" && break
2930done
2931
2932 if test "x$ac_ct_CXX" = x; then
2933 CXX="g++"
2934 else
2935 case $cross_compiling:$ac_tool_warned in
2936yes:)
2937{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2938whose name does not start with the host triplet. If you think this
2939configuration is useful to you, please write to autoconf@gnu.org." >&5
2940echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2941whose name does not start with the host triplet. If you think this
2942configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2943ac_tool_warned=yes ;;
2944esac
2945 CXX=$ac_ct_CXX
2946 fi
2947fi
2948
2949 fi
2950fi
2951# Provide some information about the compiler.
2952echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2953ac_compiler=`set X $ac_compile; echo $2`
2954{ (ac_try="$ac_compiler --version >&5"
2955case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compiler --version >&5") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2964{ (ac_try="$ac_compiler -v >&5"
2965case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compiler -v >&5") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }
2974{ (ac_try="$ac_compiler -V >&5"
2975case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_compiler -V >&5") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984
2985{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2986echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2987if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990 cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
2996
2997int
2998main ()
2999{
3000#ifndef __GNUC__
3001 choke me
3002#endif
3003
3004 ;
3005 return 0;
3006}
3007_ACEOF
3008rm -f conftest.$ac_objext
3009if { (ac_try="$ac_compile"
3010case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
3016 ac_status=$?
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3023 { (case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_try") 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 ac_compiler_gnu=yes
3043else
3044 echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 ac_compiler_gnu=no
3048fi
3049
3050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3052
3053fi
3054{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3055echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3056GXX=`test $ac_compiler_gnu = yes && echo yes`
3057ac_test_CXXFLAGS=${CXXFLAGS+set}
3058ac_save_CXXFLAGS=$CXXFLAGS
3059{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3060echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3061if test "${ac_cv_prog_cxx_g+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3065 ac_cxx_werror_flag=yes
3066 ac_cv_prog_cxx_g=no
3067 CXXFLAGS="-g"
3068 cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
3074
3075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3098 { (case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_try") 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 ac_cv_prog_cxx_g=yes
3118else
3119 echo "$as_me: failed program was:" >&5
3120sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 CXXFLAGS=""
3123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129
3130int
3131main ()
3132{
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (ac_try="$ac_compile"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 :
3173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178 CXXFLAGS="-g"
3179 cat >conftest.$ac_ext <<_ACEOF
3180/* confdefs.h. */
3181_ACEOF
3182cat confdefs.h >>conftest.$ac_ext
3183cat >>conftest.$ac_ext <<_ACEOF
3184/* end confdefs.h. */
3185
3186int
3187main ()
3188{
3189
3190 ;
3191 return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext
3195if { (ac_try="$ac_compile"
3196case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compile") 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_try") 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_try") 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 ac_cv_prog_cxx_g=yes
3229else
3230 echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233
3234fi
3235
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
3238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3244fi
3245{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3246echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3247if test "$ac_test_CXXFLAGS" = set; then
3248 CXXFLAGS=$ac_save_CXXFLAGS
3249elif test $ac_cv_prog_cxx_g = yes; then
3250 if test "$GXX" = yes; then
3251 CXXFLAGS="-g -O2"
3252 else
3253 CXXFLAGS="-g"
3254 fi
3255else
3256 if test "$GXX" = yes; then
3257 CXXFLAGS="-O2"
3258 else
3259 CXXFLAGS=
3260 fi
3261fi
3262ac_ext=c
3263ac_cpp='$CPP $CPPFLAGS'
3264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer0241e382004-11-25 04:51:04 +00003267
Reid Spencer0241e382004-11-25 04:51:04 +00003268ac_ext=c
3269ac_cpp='$CPP $CPPFLAGS'
3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003273{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3274echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003275# On Suns, sometimes $CPP names a directory.
3276if test -n "$CPP" && test -d "$CPP"; then
3277 CPP=
3278fi
3279if test -z "$CPP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003280 if test "${ac_cv_prog_CPP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00003282else
3283 # Double quotes because CPP needs to be expanded
3284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3285 do
3286 ac_preproc_ok=false
3287for ac_c_preproc_warn_flag in '' yes
3288do
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003300/* end confdefs.h. */
3301#ifdef __STDC__
3302# include <limits.h>
3303#else
3304# include <assert.h>
3305#endif
3306 Syntax error
3307_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003308if { (ac_try="$ac_cpp conftest.$ac_ext"
3309case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null; then
3321 if test -s conftest.err; then
3322 ac_cpp_err=$ac_c_preproc_warn_flag
3323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324 else
3325 ac_cpp_err=
3326 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003327else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003328 ac_cpp_err=yes
3329fi
3330if test -z "$ac_cpp_err"; then
3331 :
3332else
3333 echo "$as_me: failed program was:" >&5
3334sed 's/^/| /' conftest.$ac_ext >&5
3335
Reid Spencer0241e382004-11-25 04:51:04 +00003336 # Broken: fails on valid input.
3337continue
3338fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003339
Reid Spencer0241e382004-11-25 04:51:04 +00003340rm -f conftest.err conftest.$ac_ext
3341
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003342 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003343 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003344 cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h. */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003349/* end confdefs.h. */
3350#include <ac_nonexistent.h>
3351_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003352if { (ac_try="$ac_cpp conftest.$ac_ext"
3353case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356esac
3357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } >/dev/null; then
3365 if test -s conftest.err; then
3366 ac_cpp_err=$ac_c_preproc_warn_flag
3367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368 else
3369 ac_cpp_err=
3370 fi
3371else
3372 ac_cpp_err=yes
3373fi
3374if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003375 # Broken: success on invalid input.
3376continue
3377else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003378 echo "$as_me: failed program was:" >&5
3379sed 's/^/| /' conftest.$ac_ext >&5
3380
Reid Spencer0241e382004-11-25 04:51:04 +00003381 # Passes both tests.
3382ac_preproc_ok=:
3383break
3384fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003385
Reid Spencer0241e382004-11-25 04:51:04 +00003386rm -f conftest.err conftest.$ac_ext
3387
3388done
3389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003391if $ac_preproc_ok; then
Reid Spencer0241e382004-11-25 04:51:04 +00003392 break
3393fi
3394
3395 done
3396 ac_cv_prog_CPP=$CPP
3397
3398fi
3399 CPP=$ac_cv_prog_CPP
3400else
3401 ac_cv_prog_CPP=$CPP
3402fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003403{ echo "$as_me:$LINENO: result: $CPP" >&5
3404echo "${ECHO_T}$CPP" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003405ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003419/* end confdefs.h. */
3420#ifdef __STDC__
3421# include <limits.h>
3422#else
3423# include <assert.h>
3424#endif
3425 Syntax error
3426_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003427if { (ac_try="$ac_cpp conftest.$ac_ext"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3445 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003446else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003447 ac_cpp_err=yes
3448fi
3449if test -z "$ac_cpp_err"; then
3450 :
3451else
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
Reid Spencer0241e382004-11-25 04:51:04 +00003455 # Broken: fails on valid input.
3456continue
3457fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003458
Reid Spencer0241e382004-11-25 04:51:04 +00003459rm -f conftest.err conftest.$ac_ext
3460
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003461 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003462 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003468/* end confdefs.h. */
3469#include <ac_nonexistent.h>
3470_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003494 # Broken: success on invalid input.
3495continue
3496else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
Reid Spencer0241e382004-11-25 04:51:04 +00003500 # Passes both tests.
3501ac_preproc_ok=:
3502break
3503fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003504
Reid Spencer0241e382004-11-25 04:51:04 +00003505rm -f conftest.err conftest.$ac_ext
3506
3507done
3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003510if $ac_preproc_ok; then
3511 :
Reid Spencer0241e382004-11-25 04:51:04 +00003512else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003513 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3514See \`config.log' for more details." >&5
3515echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3516See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00003518fi
3519
John Criswell3ef61af2003-06-30 21:59:07 +00003520ac_ext=c
3521ac_cpp='$CPP $CPPFLAGS'
3522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525
John Criswell3ef61af2003-06-30 21:59:07 +00003526
Dmitri Gribenko06358bd2013-01-09 15:25:30 +00003527if test "$CXX" = "clang++" ; then
3528 { echo "$as_me:$LINENO: checking whether clang works" >&5
3529echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3530 ac_ext=cpp
3531ac_cpp='$CXXCPP $CPPFLAGS'
3532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3535
3536
3537cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h. */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h. */
3543#include <limits>
3544#if __has_include (<cxxabi.h>)
3545#include <cxxabi.h>
3546#endif
3547#if __has_include (<unwind.h>)
3548#include <unwind.h>
3549#endif
3550
3551int
3552main ()
3553{
3554
3555 ;
3556 return 0;
3557}
3558_ACEOF
3559rm -f conftest.$ac_objext
3560if { (ac_try="$ac_compile"
3561case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564esac
3565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3574 { (case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577esac
3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_try") 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587esac
3588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_try") 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593
3594 { echo "$as_me:$LINENO: result: yes" >&5
3595echo "${ECHO_T}yes" >&6; }
3596
3597else
3598 echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601
3602 { echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6; }
3604 { { 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
3605echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3606 { (exit 1); exit 1; }; }
3607
3608fi
3609
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_ext=c
3612ac_cpp='$CPP $CPPFLAGS'
3613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616
3617fi
3618
Chandler Carruth75a65452014-01-14 05:02:38 +00003619{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3620echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3621ac_ext=cpp
3622ac_cpp='$CXXCPP $CPPFLAGS'
3623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3626
3627llvm_cv_cxx_compiler=unknown
3628cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h. */
3634#if ! __clang__
Chandler Carruthf8c6ccf2014-01-15 10:31:15 +00003635 #error
3636 #endif
Chandler Carruth75a65452014-01-14 05:02:38 +00003637
Chandler Carruth75a65452014-01-14 05:02:38 +00003638_ACEOF
3639rm -f conftest.$ac_objext
3640if { (ac_try="$ac_compile"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3654 { (case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_try") 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (case "(($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_try") 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 llvm_cv_cxx_compiler=clang
3674else
3675 echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 cat >conftest.$ac_ext <<_ACEOF
3679/* confdefs.h. */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h. */
3684#if ! __GNUC__
Chandler Carruthf8c6ccf2014-01-15 10:31:15 +00003685 #error
3686 #endif
Chandler Carruth75a65452014-01-14 05:02:38 +00003687
Chandler Carruth75a65452014-01-14 05:02:38 +00003688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (ac_try="$ac_compile"
3691case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_compile") 2>conftest.er1
3697 ac_status=$?
3698 grep -v '^ *+' conftest.er1 >conftest.err
3699 rm -f conftest.er1
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3704 { (case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707esac
3708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_try") 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; } &&
3713 { ac_try='test -s conftest.$ac_objext'
3714 { (case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717esac
3718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_try") 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 llvm_cv_cxx_compiler=gcc
3724else
3725 echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728
3729fi
3730
3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732fi
3733
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735ac_ext=c
3736ac_cpp='$CPP $CPPFLAGS'
3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
3741{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3742echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3743
Eric Christopher58839712011-09-16 20:36:25 +00003744
3745
Eric Christopher58839712011-09-16 20:36:25 +00003746if test -d ${srcdir}/projects/test-suite ; then
3747 subdirs="$subdirs projects/test-suite"
3748
3749fi
3750
3751if test -d ${srcdir}/projects/llvm-test ; then
3752 subdirs="$subdirs projects/llvm-test"
3753
3754fi
3755
3756if test -d ${srcdir}/projects/poolalloc ; then
3757 subdirs="$subdirs projects/poolalloc"
3758
3759fi
3760
3761if test -d ${srcdir}/projects/llvm-poolalloc ; then
3762 subdirs="$subdirs projects/llvm-poolalloc"
3763
3764fi
3765
3766for i in `ls ${srcdir}/projects`
3767do
3768 if test -d ${srcdir}/projects/${i} ; then
3769 case ${i} in
Eric Christopher58839712011-09-16 20:36:25 +00003770 safecode) subdirs="$subdirs projects/safecode"
3771 ;;
Daniel Dunbar7ce849d2011-12-07 22:07:03 +00003772 compiler-rt) ;;
Eric Christopher58839712011-09-16 20:36:25 +00003773 test-suite) ;;
3774 llvm-test) ;;
3775 poolalloc) ;;
3776 llvm-poolalloc) ;;
3777 *)
3778 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3779echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3780 ;;
3781 esac
3782 fi
3783done
3784
3785# Check whether --enable-polly was given.
3786if test "${enable_polly+set}" = set; then
3787 enableval=$enable_polly;
3788else
3789 enableval=default
3790fi
3791
3792case "$enableval" in
3793 yes) ENABLE_POLLY=1
3794 ;;
3795 no) ENABLE_POLLY=0
3796 ;;
3797 default) ENABLE_POLLY=1
3798 ;;
3799 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3800echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3801 { (exit 1); exit 1; }; } ;;
3802esac
3803
3804
3805if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3806 LLVM_HAS_POLLY=1
3807
3808 subdirs="$subdirs tools/polly"
3809
3810fi
3811
3812
3813# Make sure we can run config.sub.
3814$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3815 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3816echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3817 { (exit 1); exit 1; }; }
3818
3819{ echo "$as_me:$LINENO: checking build system type" >&5
3820echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3821if test "${ac_cv_build+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823else
3824 ac_build_alias=$build_alias
3825test "x$ac_build_alias" = x &&
3826 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3827test "x$ac_build_alias" = x &&
3828 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3829echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3830 { (exit 1); exit 1; }; }
3831ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3832 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3833echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3834 { (exit 1); exit 1; }; }
3835
3836fi
3837{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3838echo "${ECHO_T}$ac_cv_build" >&6; }
3839case $ac_cv_build in
3840*-*-*) ;;
3841*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3842echo "$as_me: error: invalid value of canonical build" >&2;}
3843 { (exit 1); exit 1; }; };;
3844esac
3845build=$ac_cv_build
3846ac_save_IFS=$IFS; IFS='-'
3847set x $ac_cv_build
3848shift
3849build_cpu=$1
3850build_vendor=$2
3851shift; shift
3852# Remember, the first character of IFS is used to create $*,
3853# except with old shells:
3854build_os=$*
3855IFS=$ac_save_IFS
3856case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3857
3858
3859{ echo "$as_me:$LINENO: checking host system type" >&5
3860echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3861if test "${ac_cv_host+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 if test "x$host_alias" = x; then
3865 ac_cv_host=$ac_cv_build
3866else
3867 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3868 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3869echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3870 { (exit 1); exit 1; }; }
3871fi
3872
3873fi
3874{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3875echo "${ECHO_T}$ac_cv_host" >&6; }
3876case $ac_cv_host in
3877*-*-*) ;;
3878*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3879echo "$as_me: error: invalid value of canonical host" >&2;}
3880 { (exit 1); exit 1; }; };;
3881esac
3882host=$ac_cv_host
3883ac_save_IFS=$IFS; IFS='-'
3884set x $ac_cv_host
3885shift
3886host_cpu=$1
3887host_vendor=$2
3888shift; shift
3889# Remember, the first character of IFS is used to create $*,
3890# except with old shells:
3891host_os=$*
3892IFS=$ac_save_IFS
3893case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3894
3895
3896{ echo "$as_me:$LINENO: checking target system type" >&5
3897echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3898if test "${ac_cv_target+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901 if test "x$target_alias" = x; then
3902 ac_cv_target=$ac_cv_host
3903else
3904 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3905 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3906echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3907 { (exit 1); exit 1; }; }
3908fi
3909
3910fi
3911{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3912echo "${ECHO_T}$ac_cv_target" >&6; }
3913case $ac_cv_target in
3914*-*-*) ;;
3915*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3916echo "$as_me: error: invalid value of canonical target" >&2;}
3917 { (exit 1); exit 1; }; };;
3918esac
3919target=$ac_cv_target
3920ac_save_IFS=$IFS; IFS='-'
3921set x $ac_cv_target
3922shift
3923target_cpu=$1
3924target_vendor=$2
3925shift; shift
3926# Remember, the first character of IFS is used to create $*,
3927# except with old shells:
3928target_os=$*
3929IFS=$ac_save_IFS
3930case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3931
3932
3933# The aliases save the names the user supplied, while $host etc.
3934# will get canonicalized.
3935test -n "$target_alias" &&
3936 test "$program_prefix$program_suffix$program_transform_name" = \
3937 NONENONEs,x,x, &&
3938 program_prefix=${target_alias}-
3939
3940{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3941echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3942if test "${llvm_cv_os_type+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944else
3945 case $host in
3946 *-*-aix*)
3947 llvm_cv_link_all_option="-Wl,--whole-archive"
3948 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3949 llvm_cv_os_type="AIX"
3950 llvm_cv_platform_type="Unix" ;;
3951 *-*-irix*)
3952 llvm_cv_link_all_option="-Wl,--whole-archive"
3953 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3954 llvm_cv_os_type="IRIX"
3955 llvm_cv_platform_type="Unix" ;;
3956 *-*-cygwin*)
3957 llvm_cv_link_all_option="-Wl,--whole-archive"
3958 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3959 llvm_cv_os_type="Cygwin"
3960 llvm_cv_platform_type="Unix" ;;
3961 *-*-darwin*)
3962 llvm_cv_link_all_option="-Wl,-all_load"
3963 llvm_cv_no_link_all_option="-Wl,-noall_load"
3964 llvm_cv_os_type="Darwin"
3965 llvm_cv_platform_type="Unix" ;;
3966 *-*-minix*)
3967 llvm_cv_link_all_option="-Wl,-all_load"
3968 llvm_cv_no_link_all_option="-Wl,-noall_load"
3969 llvm_cv_os_type="Minix"
3970 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00003971 *-*-freebsd*)
Eric Christopher58839712011-09-16 20:36:25 +00003972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="FreeBSD"
3975 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00003976 *-*-kfreebsd-gnu)
3977 llvm_cv_link_all_option="-Wl,--whole-archive"
3978 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979 llvm_cv_os_type="GNU/kFreeBSD"
3980 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003981 *-*-openbsd*)
3982 llvm_cv_link_all_option="-Wl,--whole-archive"
3983 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984 llvm_cv_os_type="OpenBSD"
3985 llvm_cv_platform_type="Unix" ;;
3986 *-*-netbsd*)
3987 llvm_cv_link_all_option="-Wl,--whole-archive"
3988 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3989 llvm_cv_os_type="NetBSD"
3990 llvm_cv_platform_type="Unix" ;;
3991 *-*-dragonfly*)
3992 llvm_cv_link_all_option="-Wl,--whole-archive"
3993 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994 llvm_cv_os_type="DragonFly"
3995 llvm_cv_platform_type="Unix" ;;
Eric Christopher83f88242015-02-26 19:46:32 +00003996 *-*-bitrig*)
3997 llvm_cv_link_all_option="-Wl,--whole-archive"
3998 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999 llvm_cv_os_type="Bitrig"
4000 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004001 *-*-hpux*)
4002 llvm_cv_link_all_option="-Wl,--whole-archive"
4003 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004 llvm_cv_os_type="HP-UX"
4005 llvm_cv_platform_type="Unix" ;;
4006 *-*-interix*)
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="Interix"
4010 llvm_cv_platform_type="Unix" ;;
4011 *-*-linux*)
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="Linux"
4015 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00004016 *-*-gnu*)
4017 llvm_cv_link_all_option="-Wl,--whole-archive"
4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019 llvm_cv_os_type="GNU"
4020 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004021 *-*-solaris*)
4022 llvm_cv_link_all_option="-Wl,-z,allextract"
4023 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4024 llvm_cv_os_type="SunOS"
4025 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004026 *-*-win32*)
4027 llvm_cv_link_all_option="-Wl,--whole-archive"
4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029 llvm_cv_os_type="Win32"
4030 llvm_cv_platform_type="Win32" ;;
4031 *-*-mingw*)
4032 llvm_cv_link_all_option="-Wl,--whole-archive"
4033 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4034 llvm_cv_os_type="MingW"
4035 llvm_cv_platform_type="Win32" ;;
4036 *-*-haiku*)
4037 llvm_cv_link_all_option="-Wl,--whole-archive"
4038 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4039 llvm_cv_os_type="Haiku"
4040 llvm_cv_platform_type="Unix" ;;
4041 *-unknown-eabi*)
4042 llvm_cv_link_all_option="-Wl,--whole-archive"
4043 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4044 llvm_cv_os_type="Freestanding"
4045 llvm_cv_platform_type="Unix" ;;
4046 *-unknown-elf*)
4047 llvm_cv_link_all_option="-Wl,--whole-archive"
4048 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4049 llvm_cv_os_type="Freestanding"
4050 llvm_cv_platform_type="Unix" ;;
4051 *)
4052 llvm_cv_link_all_option=""
4053 llvm_cv_no_link_all_option=""
4054 llvm_cv_os_type="Unknown"
4055 llvm_cv_platform_type="Unknown" ;;
4056esac
4057fi
4058{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4059echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4060
4061{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4062echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4063if test "${llvm_cv_target_os_type+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 case $target in
4067 *-*-aix*)
4068 llvm_cv_target_os_type="AIX" ;;
4069 *-*-irix*)
4070 llvm_cv_target_os_type="IRIX" ;;
4071 *-*-cygwin*)
4072 llvm_cv_target_os_type="Cygwin" ;;
4073 *-*-darwin*)
4074 llvm_cv_target_os_type="Darwin" ;;
4075 *-*-minix*)
4076 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00004077 *-*-freebsd*)
Eric Christopher58839712011-09-16 20:36:25 +00004078 llvm_cv_target_os_type="FreeBSD" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00004079 *-*-kfreebsd-gnu)
4080 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004081 *-*-openbsd*)
4082 llvm_cv_target_os_type="OpenBSD" ;;
4083 *-*-netbsd*)
4084 llvm_cv_target_os_type="NetBSD" ;;
4085 *-*-dragonfly*)
4086 llvm_cv_target_os_type="DragonFly" ;;
Eric Christopher83f88242015-02-26 19:46:32 +00004087 *-*-bitrig*)
4088 llvm_cv_target_os_type="Bitrig" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004089 *-*-hpux*)
4090 llvm_cv_target_os_type="HP-UX" ;;
4091 *-*-interix*)
4092 llvm_cv_target_os_type="Interix" ;;
4093 *-*-linux*)
4094 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledrue8235fe2012-04-05 19:34:15 +00004095 *-*-gnu*)
4096 llvm_cv_target_os_type="GNU" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004097 *-*-solaris*)
4098 llvm_cv_target_os_type="SunOS" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004099 *-*-win32*)
4100 llvm_cv_target_os_type="Win32" ;;
4101 *-*-mingw*)
4102 llvm_cv_target_os_type="MingW" ;;
4103 *-*-haiku*)
4104 llvm_cv_target_os_type="Haiku" ;;
4105 *-*-rtems*)
4106 llvm_cv_target_os_type="RTEMS" ;;
4107 *-*-nacl*)
4108 llvm_cv_target_os_type="NativeClient" ;;
4109 *-unknown-eabi*)
4110 llvm_cv_target_os_type="Freestanding" ;;
NAKAMURA Takumi3f47d812015-01-30 13:01:00 +00004111 *-*-ps4)
4112 llvm_cv_target_os_type="PS4" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004113 *)
4114 llvm_cv_target_os_type="Unknown" ;;
4115esac
4116fi
4117{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4118echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4119
4120if test "$llvm_cv_os_type" = "Unknown" ; then
4121 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4122echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4123 { (exit 1); exit 1; }; }
4124fi
4125
4126OS=$llvm_cv_os_type
4127
4128HOST_OS=$llvm_cv_os_type
4129
4130TARGET_OS=$llvm_cv_target_os_type
4131
4132
4133LINKALL=$llvm_cv_link_all_option
4134
4135NOLINKALL=$llvm_cv_no_link_all_option
4136
4137
4138case $llvm_cv_platform_type in
4139 Unix)
4140
4141cat >>confdefs.h <<\_ACEOF
4142#define LLVM_ON_UNIX 1
4143_ACEOF
4144
4145 LLVM_ON_UNIX=1
4146
4147 LLVM_ON_WIN32=0
4148
4149 ;;
4150 Win32)
4151
4152cat >>confdefs.h <<\_ACEOF
4153#define LLVM_ON_WIN32 1
4154_ACEOF
4155
4156 LLVM_ON_UNIX=0
4157
4158 LLVM_ON_WIN32=1
4159
4160 ;;
4161esac
4162
4163{ echo "$as_me:$LINENO: checking target architecture" >&5
4164echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4165if test "${llvm_cv_target_arch+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168 case $target in
4169 i?86-*) llvm_cv_target_arch="x86" ;;
4170 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4171 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4172 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00004173 arm64*-*) llvm_cv_target_arch="AArch64" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004174 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00004175 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004176 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4177 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004178 xcore-*) llvm_cv_target_arch="XCore" ;;
4179 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004180 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00004181 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004182 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004183 *) llvm_cv_target_arch="Unknown" ;;
4184esac
4185fi
4186{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4187echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4188
4189if test "$llvm_cv_target_arch" = "Unknown" ; then
4190 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4191echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4192fi
4193
Eric Christopher58839712011-09-16 20:36:25 +00004194case "$llvm_cv_target_arch" in
4195 x86) LLVM_NATIVE_ARCH="X86" ;;
4196 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4197 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4198esac
4199
4200ARCH=$llvm_cv_target_arch
4201
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00004202LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4203
Eric Christopher58839712011-09-16 20:36:25 +00004204
Danil Malyshev7c5db452012-05-17 21:07:47 +00004205case $host in
4206 i?86-*) host_arch="x86" ;;
4207 amd64-* | x86_64-*) host_arch="x86_64" ;;
4208 sparc*-*) host_arch="Sparc" ;;
4209 powerpc*-*) host_arch="PowerPC" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00004210 arm64*-*) host_arch="AArch64" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004211 arm*-*) host_arch="ARM" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00004212 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004213 mips-* | mips64-*) host_arch="Mips" ;;
4214 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004215 xcore-*) host_arch="XCore" ;;
4216 msp430-*) host_arch="MSP430" ;;
4217 hexagon-*) host_arch="Hexagon" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004218 s390x-*) host_arch="SystemZ" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004219 *) host_arch="Unknown" ;;
4220esac
4221
4222if test "$host_arch" = "Unknown" ; then
4223 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4224echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4225fi
4226
4227HOST_ARCH=$host_arch
4228
4229
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004230if test "$cross_compiling" = yes; then
4231 LLVM_CROSS_COMPILING=1
4232
4233
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004234{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4235echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4236if test "${ac_cv_build_exeext+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004238else
4239 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4240 ac_cv_build_exeext=.exe
4241else
4242 ac_build_prefix=${build_alias}-
4243
4244 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4245set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004250else
4251 if test -n "$BUILD_CC"; then
4252 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 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 +00004261 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004263 break 2
4264 fi
4265done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004266done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004267IFS=$as_save_IFS
4268
4269fi
4270fi
4271BUILD_CC=$ac_cv_prog_BUILD_CC
4272if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004273 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4274echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004275else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004276 { echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004278fi
4279
4280
4281 if test -z "$BUILD_CC"; then
4282 # Extract the first word of "gcc", so it can be a program name with args.
4283set dummy gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004288else
4289 if test -n "$BUILD_CC"; then
4290 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 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 +00004299 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004301 break 2
4302 fi
4303done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004304done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004305IFS=$as_save_IFS
4306
4307fi
4308fi
4309BUILD_CC=$ac_cv_prog_BUILD_CC
4310if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004311 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004313else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004314 { echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004316fi
4317
4318
4319 if test -z "$BUILD_CC"; then
4320 # Extract the first word of "cc", so it can be a program name with args.
4321set dummy cc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004326else
4327 if test -n "$BUILD_CC"; then
4328 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4329else
4330 ac_prog_rejected=no
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 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 +00004338 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4339 ac_prog_rejected=yes
4340 continue
4341 fi
4342 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004344 break 2
4345 fi
4346done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004347done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004348IFS=$as_save_IFS
4349
4350if test $ac_prog_rejected = yes; then
4351 # We found a bogon in the path, so make sure we never use it.
4352 set dummy $ac_cv_prog_BUILD_CC
4353 shift
4354 if test $# != 0; then
4355 # We chose a different compiler from the bogus one.
4356 # However, it has the same basename, so the bogon will be chosen
4357 # first if we set BUILD_CC to just the basename; use the full file name.
4358 shift
4359 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4360 fi
4361fi
4362fi
4363fi
4364BUILD_CC=$ac_cv_prog_BUILD_CC
4365if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004366 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4367echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004368else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004369 { echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004371fi
4372
4373
4374 fi
4375 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004376 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4377echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4378 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004379 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4380 rm -f conftest*
4381 echo 'int main () { return 0; }' > conftest.$ac_ext
4382 ac_cv_build_exeext=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004383 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004384 (eval $ac_build_link) 2>&5
4385 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004388 for file in conftest.*; do
4389 case $file in
Jim Grosbachbfc70b02008-09-26 17:27:58 +00004390 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004391 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4392 esac
4393 done
4394 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004395 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4396echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4397 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004398 fi
4399 rm -f conftest*
4400 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4401fi
4402fi
4403
4404BUILD_EXEEXT=""
4405test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004406{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4407echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004408ac_build_exeext=$BUILD_EXEEXT
4409
Jim Grosbach009db892008-10-02 22:56:44 +00004410 ac_build_prefix=${build_alias}-
4411 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4412set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004417else
4418 if test -n "$BUILD_CXX"; then
4419 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 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 +00004428 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004430 break 2
4431 fi
4432done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004433done
Jim Grosbach009db892008-10-02 22:56:44 +00004434IFS=$as_save_IFS
4435
4436fi
4437fi
4438BUILD_CXX=$ac_cv_prog_BUILD_CXX
4439if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004440 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4441echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004442else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004443 { echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004445fi
4446
4447
4448 if test -z "$BUILD_CXX"; then
4449 # Extract the first word of "g++", so it can be a program name with args.
4450set dummy g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004455else
4456 if test -n "$BUILD_CXX"; then
4457 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 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 +00004466 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004468 break 2
4469 fi
4470done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004471done
Jim Grosbach009db892008-10-02 22:56:44 +00004472IFS=$as_save_IFS
4473
4474fi
4475fi
4476BUILD_CXX=$ac_cv_prog_BUILD_CXX
4477if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004478 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4479echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004480else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004481 { echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004483fi
4484
4485
4486 if test -z "$BUILD_CXX"; then
4487 # Extract the first word of "c++", so it can be a program name with args.
4488set dummy c++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4491if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004493else
4494 if test -n "$BUILD_CXX"; then
4495 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4496else
4497 ac_prog_rejected=no
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 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 +00004505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4506 ac_prog_rejected=yes
4507 continue
4508 fi
4509 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004511 break 2
4512 fi
4513done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004514done
Jim Grosbach009db892008-10-02 22:56:44 +00004515IFS=$as_save_IFS
4516
4517if test $ac_prog_rejected = yes; then
4518 # We found a bogon in the path, so make sure we never use it.
4519 set dummy $ac_cv_prog_BUILD_CXX
4520 shift
4521 if test $# != 0; then
4522 # We chose a different compiler from the bogus one.
4523 # However, it has the same basename, so the bogon will be chosen
4524 # first if we set BUILD_CXX to just the basename; use the full file name.
4525 shift
4526 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4527 fi
4528fi
4529fi
4530fi
4531BUILD_CXX=$ac_cv_prog_BUILD_CXX
4532if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004533 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4534echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004535else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004536 { echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004538fi
4539
4540
4541 fi
4542 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004543else
4544 LLVM_CROSS_COMPILING=0
4545
4546fi
4547
Dan Gohmande75469c2010-08-04 16:25:01 +00004548if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004549 cvsbuild="yes"
4550 optimize="no"
4551 CVSBUILD=CVSBUILD=1
4552
4553else
4554 cvsbuild="no"
4555 optimize="yes"
4556fi
4557
4558
Eric Christopher1094ded2011-11-11 22:51:42 +00004559# Check whether --enable-libcpp was given.
4560if test "${enable_libcpp+set}" = set; then
4561 enableval=$enable_libcpp;
4562else
4563 enableval=default
4564fi
4565
4566case "$enableval" in
4567 yes) ENABLE_LIBCPP=1
4568 ;;
4569 no) ENABLE_LIBCPP=0
4570 ;;
4571 default) ENABLE_LIBCPP=0
4572;;
4573 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4574echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4575 { (exit 1); exit 1; }; } ;;
4576esac
4577
Chandler Carruth7206eae2014-01-15 19:19:13 +00004578# Check whether --enable-compiler-version-checks was given.
4579if test "${enable_compiler_version_checks+set}" = set; then
4580 enableval=$enable_compiler_version_checks;
4581else
4582 enableval=default
4583fi
4584
4585case "$enableval" in
4586 no)
4587 ;;
4588 yes|default)
4589 ac_ext=cpp
4590ac_cpp='$CXXCPP $CPPFLAGS'
4591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4594
4595 case "$llvm_cv_cxx_compiler" in
4596 clang)
4597 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4598echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4599 cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h. */
4605
4606#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4607#error This version of Clang is too old to build LLVM
4608#endif
4609
4610_ACEOF
4611rm -f conftest.$ac_objext
4612if { (ac_try="$ac_compile"
4613case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616esac
4617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4626 { (case "(($ac_try" in
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4629esac
4630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631 (eval "$ac_try") 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; } &&
4635 { ac_try='test -s conftest.$ac_objext'
4636 { (case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
4640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_try") 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 { echo "$as_me:$LINENO: result: yes" >&5
4646echo "${ECHO_T}yes" >&6; }
4647else
4648 echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 { echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6; }
4653 { { echo "$as_me:$LINENO: error:
4654The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4655Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4656bypass these sanity checks." >&5
4657echo "$as_me: error:
4658The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4659Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4660bypass these sanity checks." >&2;}
4661 { (exit 1); exit 1; }; }
4662fi
4663
4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004666 if test "$ENABLE_LIBCPP" -eq 0 ; then
4667 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
Chandler Carruth7206eae2014-01-15 19:19:13 +00004668echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004669 llvm_cv_old_cxxflags="$CXXFLAGS"
4670 CXXFLAGS="$CXXFLAGS -std=c++0x"
4671 cat >conftest.$ac_ext <<_ACEOF
Chandler Carruth7206eae2014-01-15 19:19:13 +00004672/* confdefs.h. */
4673_ACEOF
4674cat confdefs.h >>conftest.$ac_ext
4675cat >>conftest.$ac_ext <<_ACEOF
4676/* end confdefs.h. */
4677
4678#include <atomic>
4679std::atomic<float> x(0.0f);
4680int main() { return (float)x; }
4681
4682_ACEOF
4683rm -f conftest.$ac_objext conftest$ac_exeext
4684if { (ac_try="$ac_link"
4685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_link") 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4698 { (case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701esac
4702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4703 (eval "$ac_try") 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try='test -s conftest$ac_exeext'
4708 { (case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711esac
4712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_try") 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 { echo "$as_me:$LINENO: result: yes" >&5
4718echo "${ECHO_T}yes" >&6; }
4719else
4720 echo "$as_me: failed program was:" >&5
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004725 { { echo "$as_me:$LINENO: error:
Chandler Carruth7206eae2014-01-15 19:19:13 +00004726We detected a missing feature in the standard C++ library that was known to be
4727missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4728C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4729than 4.7. You will need to update your system and ensure Clang uses the newer
4730standard library.
4731
4732If this error is incorrect or you need to force things to work, you may pass
4733'--disable-compiler-version-checks' to configure to bypass this test." >&5
4734echo "$as_me: error:
4735We detected a missing feature in the standard C++ library that was known to be
4736missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4737C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4738than 4.7. You will need to update your system and ensure Clang uses the newer
4739standard library.
4740
4741If this error is incorrect or you need to force things to work, you may pass
4742'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4743 { (exit 1); exit 1; }; }
4744fi
4745
4746rm -f core conftest.err conftest.$ac_objext \
4747 conftest$ac_exeext conftest.$ac_ext
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004748 CXXFLAGS="$llvm_cv_old_cxxflags"
4749 fi
Chandler Carruth7206eae2014-01-15 19:19:13 +00004750 ;;
4751 gcc)
4752 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4753echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4754 cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
4760
4761#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4762#error This version of GCC is too old to build LLVM
4763#endif
4764
4765_ACEOF
4766rm -f conftest.$ac_objext
4767if { (ac_try="$ac_compile"
4768case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771esac
4772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773 (eval "$ac_compile") 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4781 { (case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4784esac
4785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_try") 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 { (case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
4795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_try") 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 { echo "$as_me:$LINENO: result: yes" >&5
4801echo "${ECHO_T}yes" >&6; }
4802else
4803 echo "$as_me: failed program was:" >&5
4804sed 's/^/| /' conftest.$ac_ext >&5
4805
4806 { echo "$as_me:$LINENO: result: no" >&5
4807echo "${ECHO_T}no" >&6; }
4808 { { echo "$as_me:$LINENO: error:
4809The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4810to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4811bypass these sanity checks." >&5
4812echo "$as_me: error:
4813The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4814to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4815bypass these sanity checks." >&2;}
4816 { (exit 1); exit 1; }; }
4817fi
4818
4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ;;
4821 unknown)
4822 ;;
4823 esac
4824 ac_ext=c
4825ac_cpp='$CPP $CPPFLAGS'
4826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829
4830 ;;
4831 *)
4832 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4833echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4834 { (exit 1); exit 1; }; }
4835 ;;
4836esac
4837
Chandler Carruthbbae5122014-03-01 03:33:08 +00004838# Check whether --enable-cxx1y was given.
4839if test "${enable_cxx1y+set}" = set; then
4840 enableval=$enable_cxx1y;
Eric Christopher04e35972012-08-03 19:47:14 +00004841else
4842 enableval=default
4843fi
4844
4845case "$enableval" in
Chandler Carruthbbae5122014-03-01 03:33:08 +00004846 yes) ENABLE_CXX1Y=1
Eric Christopher04e35972012-08-03 19:47:14 +00004847 ;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004848 no) ENABLE_CXX1Y=0
Eric Christopher04e35972012-08-03 19:47:14 +00004849 ;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004850 default) ENABLE_CXX1Y=0
Eric Christopher04e35972012-08-03 19:47:14 +00004851;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4853echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
Eric Christopher04e35972012-08-03 19:47:14 +00004854 { (exit 1); exit 1; }; } ;;
4855esac
4856
Eric Christopherf1bd7702013-06-25 01:12:25 +00004857# Check whether --enable-split-dwarf was given.
4858if test "${enable_split_dwarf+set}" = set; then
4859 enableval=$enable_split_dwarf;
4860else
4861 enableval=default
4862fi
4863
4864case "$enableval" in
4865 yes) ENABLE_SPLIT_DWARF=1
4866 ;;
4867 no) ENABLE_SPLIT_DWARF=0
4868 ;;
4869 default) ENABLE_SPLIT_DWARF=0
4870;;
4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4872echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
4874esac
4875
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004876clang_arcmt="yes"
4877# Check whether --enable-clang-arcmt was given.
4878if test "${enable_clang_arcmt+set}" = set; then
4879 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4880else
4881 enableval="yes"
4882fi
4883
4884case "$enableval" in
4885 yes) ENABLE_CLANG_ARCMT=1
4886 ;;
4887 no) ENABLE_CLANG_ARCMT=0
4888 ;;
4889 default) ENABLE_CLANG_ARCMT=1
4890;;
4891 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4892echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4893 { (exit 1); exit 1; }; } ;;
4894esac
4895
Rafael Espindolae33f06c2014-03-10 16:58:35 +00004896clang_plugin_support="yes"
4897# Check whether --enable-clang-plugin-support was given.
4898if test "${enable_clang_plugin_support+set}" = set; then
4899 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4900else
4901 enableval="yes"
4902fi
4903
4904case "$enableval" in
4905 yes) CLANG_PLUGIN_SUPPORT=1
4906 ;;
4907 no) CLANG_PLUGIN_SUPPORT=0
4908 ;;
4909 default) CLANG_PLUGIN_SUPPORT=1
4910;;
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4912echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4914esac
4915
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004916clang_static_analyzer="yes"
4917# Check whether --enable-clang-static-analyzer was given.
4918if test "${enable_clang_static_analyzer+set}" = set; then
4919 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4920else
4921 enableval="yes"
4922fi
4923
4924case "$enableval" in
4925 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4926 ;;
Jordan Rose23fc6f32013-08-22 15:49:53 +00004927 no)
4928 if test ${clang_arcmt} != "no" ; then
4929 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4930echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4931 { (exit 1); exit 1; }; }
4932 fi
4933 ENABLE_CLANG_STATIC_ANALYZER=0
NAKAMURA Takumi4cfe5542013-08-22 16:31:34 +00004934
Jordan Rose23fc6f32013-08-22 15:49:53 +00004935 ;;
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004936 default) ENABLE_CLANG_STATIC_ANALYZER=1
4937;;
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4939echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4941esac
4942
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004943# Check whether --enable-optimized was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004944if test "${enable_optimized+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004945 enableval=$enable_optimized;
4946else
4947 enableval=$optimize
4948fi
4949
4950if test ${enableval} = "no" ; then
4951 ENABLE_OPTIMIZED=
4952
4953else
4954 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4955
4956fi
4957
David Greenec0a34a072009-04-17 14:50:39 +00004958# Check whether --enable-profiling was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004959if test "${enable_profiling+set}" = set; then
David Greenec0a34a072009-04-17 14:50:39 +00004960 enableval=$enable_profiling;
4961else
4962 enableval="no"
4963fi
4964
4965if test ${enableval} = "no" ; then
4966 ENABLE_PROFILING=
4967
4968else
4969 ENABLE_PROFILING=ENABLE_PROFILING=1
4970
4971fi
4972
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004973# Check whether --enable-assertions was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004974if test "${enable_assertions+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004975 enableval=$enable_assertions;
4976else
4977 enableval="yes"
4978fi
4979
4980if test ${enableval} = "yes" ; then
4981 DISABLE_ASSERTIONS=
4982
4983else
4984 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4985
4986fi
4987
Eric Christopher84864012012-08-03 19:58:20 +00004988# Check whether --enable-werror was given.
4989if test "${enable_werror+set}" = set; then
4990 enableval=$enable_werror;
4991else
4992 enableval="no"
4993fi
4994
4995case "$enableval" in
4996 yes) ENABLE_WERROR=1
4997 ;;
4998 no) ENABLE_WERROR=0
4999 ;;
5000 default) ENABLE_WERROR=0
5001;;
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5003echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5005esac
5006
David Greenecbc8ddf2007-06-28 19:36:08 +00005007# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005008if test "${enable_expensive_checks+set}" = set; then
David Greenecbc8ddf2007-06-28 19:36:08 +00005009 enableval=$enable_expensive_checks;
5010else
5011 enableval="no"
5012fi
5013
5014if test ${enableval} = "yes" ; then
5015 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5016
5017 EXPENSIVE_CHECKS=yes
5018
5019else
5020 ENABLE_EXPENSIVE_CHECKS=
5021
5022 EXPENSIVE_CHECKS=no
5023
5024fi
5025
Reid Spencer4b8067f2006-11-17 03:32:33 +00005026# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005027if test "${enable_debug_runtime+set}" = set; then
Reid Spencer4b8067f2006-11-17 03:32:33 +00005028 enableval=$enable_debug_runtime;
5029else
5030 enableval=no
5031fi
5032
5033if test ${enableval} = "no" ; then
5034 DEBUG_RUNTIME=
5035
5036else
5037 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5038
5039fi
5040
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005041# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005042if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005043 enableval=$enable_debug_symbols;
5044else
5045 enableval=no
5046fi
5047
5048if test ${enableval} = "no" ; then
5049 DEBUG_SYMBOLS=
5050
5051else
5052 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5053
5054fi
5055
Daniel Dunbar39c04622012-08-14 18:14:22 +00005056# Check whether --enable-keep-symbols was given.
5057if test "${enable_keep_symbols+set}" = set; then
5058 enableval=$enable_keep_symbols;
5059else
5060 enableval=no
5061fi
5062
5063if test ${enableval} = "no" ; then
5064 KEEP_SYMBOLS=
5065
5066else
5067 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5068
5069fi
5070
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005071# Check whether --enable-jit was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005072if test "${enable_jit+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005073 enableval=$enable_jit;
5074else
5075 enableval=default
5076fi
5077
5078if test ${enableval} = "no"
5079then
5080 JIT=
5081
5082else
5083 case "$llvm_cv_target_arch" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005084 x86) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005085 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005086 Sparc) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005087 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005088 PowerPC) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005089 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005090 x86_64) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005091 ;;
Eric Christopherd8530f32009-09-14 16:38:49 +00005092 ARM) TARGET_HAS_JIT=1
Reid Spencerd7c8b3c2007-01-21 06:32:59 +00005093 ;;
Bruno Cardoso Lopesd1d9c782011-07-21 16:28:51 +00005094 Mips) TARGET_HAS_JIT=1
Tanya Lattnerbca16c82007-08-29 16:38:16 +00005095 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005096 XCore) TARGET_HAS_JIT=0
Richard Osborneca08e062008-11-07 10:59:00 +00005097 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005098 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov9173b492009-05-03 13:42:23 +00005099 ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005100 Hexagon) TARGET_HAS_JIT=0
5101 ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005102 NVPTX) TARGET_HAS_JIT=0
5103 ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005104 SystemZ) TARGET_HAS_JIT=1
5105 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005106 *) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005107 ;;
5108 esac
5109fi
5110
Tim Northover3b0846e2014-05-24 12:50:23 +00005111TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005112TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5113
5114
Rafael Espindola7ac506d2010-11-12 19:24:06 +00005115# Check whether --enable-docs was given.
5116if test "${enable_docs+set}" = set; then
5117 enableval=$enable_docs;
5118else
5119 enableval=default
5120fi
5121
5122case "$enableval" in
5123 yes) ENABLE_DOCS=1
5124 ;;
5125 no) ENABLE_DOCS=0
5126 ;;
5127 default) ENABLE_DOCS=1
5128 ;;
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5130echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5132esac
5133
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005134# Check whether --enable-doxygen was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005135if test "${enable_doxygen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005136 enableval=$enable_doxygen;
5137else
5138 enableval=default
5139fi
5140
5141case "$enableval" in
5142 yes) ENABLE_DOXYGEN=1
5143 ;;
Logan Chiene1c36012015-03-12 17:25:25 +00005144 no|default) ENABLE_DOXYGEN=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005145 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005146 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5147echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5148 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005149esac
5150
Logan Chiene1c36012015-03-12 17:25:25 +00005151# Check whether --enable-doxygen-search was given.
5152if test "${enable_doxygen_search+set}" = set; then
5153 enableval=$enable_doxygen_search;
5154else
5155 enableval=default
5156fi
5157
5158ENABLE_DOXYGEN_SEARCH="$enableval"
5159
5160case "$enableval" in
5161 yes|no|default) ;;
5162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5163echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5165esac
5166
5167# Check whether --enable-doxygen-external-search was given.
5168if test "${enable_doxygen_external_search+set}" = set; then
5169 enableval=$enable_doxygen_external_search;
5170else
5171 enableval=default
5172fi
5173
5174ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5175
5176case "$enableval" in
5177 yes)
5178 case "$ENABLE_DOXYGEN_SEARCH" in
5179 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5180 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5181echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5182 { (exit 1); exit 1; }; } ;;
5183 esac
5184 ;;
5185 no|default) ;;
5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5187echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5189esac
5190
5191
5192# Check whether --with-doxygen-search-engine-url was given.
5193if test "${with_doxygen_search_engine_url+set}" = set; then
5194 withval=$with_doxygen_search_engine_url;
5195fi
5196
5197WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5198
5199
5200# Check whether --with-doxygen-search-mappings was given.
5201if test "${with_doxygen_search_mappings+set}" = set; then
5202 withval=$with_doxygen_search_mappings;
5203fi
5204
5205WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5206
5207case "$ENABLE_DOXYGEN_SEARCH" in
5208 yes)
5209 if test "$ENABLE_DOXYGEN" = "0" ; then
5210 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5211echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5212 { (exit 1); exit 1; }; }
5213 fi
5214
5215 enable_searchengine=YES
5216
5217
5218 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5219 yes)
5220 enable_external_search=YES
5221
5222 enable_server_based_search=YES
5223
Logan Chien6203f9e2015-03-12 19:56:25 +00005224 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
Logan Chiene1c36012015-03-12 17:25:25 +00005225
Logan Chien6203f9e2015-03-12 19:56:25 +00005226 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
Logan Chiene1c36012015-03-12 17:25:25 +00005227
5228 ;;
5229
5230 no|default)
5231 enable_external_search=NO
5232
5233 enable_server_based_search=NO
5234
5235
5236
5237 ;;
5238 esac
5239 ;;
5240
5241 no|default)
5242 enable_searchengine=NO
5243
5244
5245 enable_server_based_search=NO
5246
5247 enable_external_search=NO
5248
5249
5250 ;;
5251
5252 *)
5253 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5254echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; }
5256 ;;
5257esac
5258
5259# Check whether --enable-doxygen-qt-help was given.
5260if test "${enable_doxygen_qt_help+set}" = set; then
5261 enableval=$enable_doxygen_qt_help;
5262else
5263 enableval=default
5264fi
5265
5266case "$enableval" in
5267 yes)
5268 if test "$ENABLE_DOXYGEN" = "0" ; then
5269 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5270echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5271 { (exit 1); exit 1; }; }
5272 fi
5273
5274 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5275set dummy qhelpgenerator; ac_word=$2
5276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281 case $QHELPGENERATOR in
5282 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5284 ;;
5285 *)
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297done
5298done
5299IFS=$as_save_IFS
5300
5301 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5302 ;;
5303esac
5304fi
5305QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5306if test -n "$QHELPGENERATOR"; then
5307 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5308echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5309else
5310 { echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6; }
5312fi
5313
5314
5315
5316 llvm_doxygen_generate_qhp=YES
5317
5318 llvm_doxygen_qch_filename=org.llvm.qch
5319
5320 llvm_doxygen_qhp_namespace=org.llvm
5321
Logan Chien6203f9e2015-03-12 19:56:25 +00005322 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
Logan Chiene1c36012015-03-12 17:25:25 +00005323
Logan Chien6203f9e2015-03-12 19:56:25 +00005324 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
Logan Chiene1c36012015-03-12 17:25:25 +00005325
Logan Chien6203f9e2015-03-12 19:56:25 +00005326 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
Logan Chiene1c36012015-03-12 17:25:25 +00005327
5328
5329 clang_doxygen_generate_qhp=YES
5330
5331 clang_doxygen_qch_filename=org.llvm.clang.qch
5332
5333 clang_doxygen_qhp_namespace=org.llvm.clang
5334
Logan Chien6203f9e2015-03-12 19:56:25 +00005335 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
Logan Chiene1c36012015-03-12 17:25:25 +00005336
Logan Chien6203f9e2015-03-12 19:56:25 +00005337 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
Logan Chiene1c36012015-03-12 17:25:25 +00005338
Logan Chien6203f9e2015-03-12 19:56:25 +00005339 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
Logan Chiene1c36012015-03-12 17:25:25 +00005340
5341 ;;
5342
5343 no|default)
5344 llvm_doxygen_generate_qhp=NO
5345
5346
5347
5348
5349
5350
5351
5352 clang_doxygen_generate_qhp=NO
5353
5354
5355
5356
Logan Chien6203f9e2015-03-12 19:56:25 +00005357 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
Logan Chiene1c36012015-03-12 17:25:25 +00005358
Logan Chien6203f9e2015-03-12 19:56:25 +00005359 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
Logan Chiene1c36012015-03-12 17:25:25 +00005360
5361 ;;
5362
5363 *)
5364 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5365echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5366 { (exit 1); exit 1; }; } ;;
5367esac
5368
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005369# Check whether --enable-threads was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005370if test "${enable_threads+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005371 enableval=$enable_threads;
5372else
Reid Spencerd549edc2006-11-05 17:08:18 +00005373 enableval=default
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005374fi
5375
5376case "$enableval" in
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005377 yes) LLVM_ENABLE_THREADS=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005378 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005379 no) LLVM_ENABLE_THREADS=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005380 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005381 default) LLVM_ENABLE_THREADS=1
Reid Spencerd549edc2006-11-05 17:08:18 +00005382 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005383 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5384echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5385 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005386esac
5387
Owen Andersonaf5db832009-05-19 22:18:56 +00005388cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005389#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersonaf5db832009-05-19 22:18:56 +00005390_ACEOF
5391
5392
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00005393# Check whether --enable-pthreads was given.
5394if test "${enable_pthreads+set}" = set; then
5395 enableval=$enable_pthreads;
5396else
5397 enableval=default
5398fi
5399
5400case "$enableval" in
5401 yes) ENABLE_PTHREADS=1
5402 ;;
5403 no) ENABLE_PTHREADS=0
5404 ;;
5405 default) ENABLE_PTHREADS=1
5406 ;;
5407 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5408echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5409 { (exit 1); exit 1; }; } ;;
5410esac
5411
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00005412# Check whether --enable-zlib was given.
5413if test "${enable_zlib+set}" = set; then
5414 enableval=$enable_zlib;
5415else
5416 enableval=default
5417fi
5418
5419case "$enableval" in
5420 yes) LLVM_ENABLE_ZLIB=1
5421 ;;
5422 no) LLVM_ENABLE_ZLIB=0
5423 ;;
5424 default) LLVM_ENABLE_ZLIB=1
5425 ;;
5426 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5427echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5428 { (exit 1); exit 1; }; } ;;
5429esac
5430
5431cat >>confdefs.h <<_ACEOF
5432#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5433_ACEOF
5434
5435
Reid Spencer05a1fe52006-12-16 22:07:52 +00005436# Check whether --enable-pic was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005437if test "${enable_pic+set}" = set; then
Reid Spencer05a1fe52006-12-16 22:07:52 +00005438 enableval=$enable_pic;
5439else
5440 enableval=default
5441fi
5442
5443case "$enableval" in
5444 yes) ENABLE_PIC=1
5445 ;;
5446 no) ENABLE_PIC=0
5447 ;;
Nick Lewycky38525192009-02-19 06:18:56 +00005448 default) ENABLE_PIC=1
Reid Spencer05a1fe52006-12-16 22:07:52 +00005449 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5451echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
Reid Spencer05a1fe52006-12-16 22:07:52 +00005453esac
5454
5455cat >>confdefs.h <<_ACEOF
5456#define ENABLE_PIC $ENABLE_PIC
5457_ACEOF
5458
5459
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00005460# Check whether --enable-shared was given.
5461if test "${enable_shared+set}" = set; then
5462 enableval=$enable_shared;
5463else
5464 enableval=default
5465fi
5466
5467case "$enableval" in
5468 yes) ENABLE_SHARED=1
5469 ;;
5470 no) ENABLE_SHARED=0
5471 ;;
5472 default) ENABLE_SHARED=0
5473 ;;
5474 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5475echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5477esac
5478
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005479# Check whether --enable-embed-stdcxx was given.
5480if test "${enable_embed_stdcxx+set}" = set; then
5481 enableval=$enable_embed_stdcxx;
5482else
5483 enableval=default
5484fi
5485
5486case "$enableval" in
5487 yes) ENABLE_EMBED_STDCXX=1
5488 ;;
5489 no) ENABLE_EMBED_STDCXX=0
5490 ;;
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00005491 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005492 ;;
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5494echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5496esac
5497
Daniel Dunbardac18242010-05-10 20:11:56 +00005498# Check whether --enable-timestamps was given.
5499if test "${enable_timestamps+set}" = set; then
5500 enableval=$enable_timestamps;
5501else
5502 enableval=default
5503fi
5504
5505case "$enableval" in
5506 yes) ENABLE_TIMESTAMPS=1
5507 ;;
5508 no) ENABLE_TIMESTAMPS=0
5509 ;;
5510 default) ENABLE_TIMESTAMPS=1
5511 ;;
5512 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5513echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5514 { (exit 1); exit 1; }; } ;;
5515esac
5516
5517cat >>confdefs.h <<_ACEOF
5518#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5519_ACEOF
5520
5521
Eric Christopher9fafe072012-09-21 23:03:29 +00005522# Check whether --enable-backtraces was given.
5523if test "${enable_backtraces+set}" = set; then
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005524 enableval=$enable_backtraces; case "$enableval" in
5525 yes) llvm_cv_enable_backtraces="yes" ;;
5526 no) llvm_cv_enable_backtraces="no" ;;
5527 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
Eric Christopher9fafe072012-09-21 23:03:29 +00005528echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5529 { (exit 1); exit 1; }; } ;;
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005530 esac
5531else
5532 llvm_cv_enable_backtraces="yes"
5533fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005534
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005535if test "$llvm_cv_enable_backtraces" = "yes" ; then
5536
5537cat >>confdefs.h <<\_ACEOF
5538#define ENABLE_BACKTRACES 1
Eric Christopher9fafe072012-09-21 23:03:29 +00005539_ACEOF
5540
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005541fi
5542
5543# Check whether --enable-crash-overrides was given.
5544if test "${enable_crash_overrides+set}" = set; then
5545 enableval=$enable_crash_overrides; case "$enableval" in
5546 yes) llvm_cv_enable_crash_overrides="yes" ;;
5547 no) llvm_cv_enable_crash_overrides="no" ;;
5548 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5549echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5551 esac
5552else
5553 llvm_cv_enable_crash_overrides="yes"
5554fi
5555
5556if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5557
5558cat >>confdefs.h <<\_ACEOF
5559#define ENABLE_CRASH_OVERRIDES 1
5560_ACEOF
5561
5562fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005563
Tim Northover3b0846e2014-05-24 12:50:23 +00005564ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005565ALL_TARGETS=$ALL_TARGETS
5566
5567
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005568TARGETS_TO_BUILD=""
5569# Check whether --enable-targets was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005570if test "${enable_targets+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005571 enableval=$enable_targets;
5572else
5573 enableval=all
5574fi
5575
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005576if test "$enableval" = host-only ; then
5577 enableval=host
5578fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005579case "$enableval" in
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005580 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005581 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5582 case "$a_target" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005583 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5584 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5585 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5586 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00005587 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5588 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00005589 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005590 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindolae46f0962011-12-28 17:08:00 +00005591 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00005592 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5593 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005594 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5595 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005596 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005597 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005598 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005599 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Rafael Espindolaf6474d22013-05-22 00:35:47 +00005600 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005601 host) case "$llvm_cv_target_arch" in
5602 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5603 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5604 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5605 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Tim Northover3b0846e2014-05-24 12:50:23 +00005606 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005607 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5608 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005609 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5610 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005611 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005612 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005613 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005614 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5615echo "$as_me: error: Can not set target to build" >&2;}
5616 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005617 esac ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005618 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5619echo "$as_me: error: Unrecognized target $a_target" >&2;}
5620 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005621 esac
5622 done
5623 ;;
5624esac
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00005625
5626# Check whether --enable-experimental-targets was given.
5627if test "${enable_experimental_targets+set}" = set; then
5628 enableval=$enable_experimental_targets;
5629else
5630 enableval=disable
5631fi
5632
5633
5634if test ${enableval} != "disable"
5635then
5636 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5637fi
5638
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005639TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5640
5641
Douglas Gregor43613a22009-06-17 00:43:20 +00005642for a_target in $TARGETS_TO_BUILD; do
5643 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5644
5645cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005646#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5647_ACEOF
5648
5649 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5650 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng8c886a42011-07-22 21:58:54 +00005651 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christophere7a9db12010-08-30 18:34:48 +00005652 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005653 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5654 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5655 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005656 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5657 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5658 fi
Eric Christophere7a9db12010-08-30 18:34:48 +00005659
5660cat >>confdefs.h <<_ACEOF
5661#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbaredf7b8b2010-08-03 14:26:17 +00005662_ACEOF
5663
5664
5665cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005666#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5667_ACEOF
5668
5669
5670cat >>confdefs.h <<_ACEOF
Evan Cheng8c886a42011-07-22 21:58:54 +00005671#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng2129f592011-07-19 06:37:02 +00005672_ACEOF
5673
5674
5675cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005676#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor43613a22009-06-17 00:43:20 +00005677_ACEOF
5678
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005679 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödin27e07c32011-03-09 17:25:46 +00005680
5681cat >>confdefs.h <<_ACEOF
5682#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5683_ACEOF
5684
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005685 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005686 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5687
5688cat >>confdefs.h <<_ACEOF
5689#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5690_ACEOF
5691
5692 fi
Douglas Gregor43613a22009-06-17 00:43:20 +00005693 fi
5694done
5695
Douglas Gregor1b731d52009-06-16 20:12:29 +00005696LLVM_ENUM_TARGETS=""
5697LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005698LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar32027202009-11-25 04:37:28 +00005699LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1b731d52009-06-16 20:12:29 +00005700for target_to_build in $TARGETS_TO_BUILD; do
5701 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattner28776602010-11-14 19:10:47 +00005702 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach0e854f32010-10-01 22:39:28 +00005703 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5704 fi
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005705 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5706 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5707 fi
Daniel Dunbar32027202009-11-25 04:37:28 +00005708 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5709 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5710 fi
Douglas Gregor1b731d52009-06-16 20:12:29 +00005711done
5712
5713
5714
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005715
Daniel Dunbar32027202009-11-25 04:37:28 +00005716
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005717
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005718# Check whether --with-optimize-option was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005719if test "${with_optimize_option+set}" = set; then
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005720 withval=$with_optimize_option;
5721else
5722 withval=default
5723fi
5724
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005725{ echo "$as_me:$LINENO: checking optimization flags" >&5
5726echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005727case "$withval" in
5728 default)
5729 case "$llvm_cv_os_type" in
Daniel Dunbard411fcb2010-04-30 17:12:26 +00005730 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +00005731 MingW) optimize_option=-O2 ;;
5732 *) optimize_option=-O3 ;;
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005733 esac ;;
5734 *) optimize_option="$withval" ;;
5735esac
5736OPTIMIZE_OPTION=$optimize_option
5737
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005738{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5739echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005740
5741
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005742# Check whether --with-extra-options was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005743if test "${with_extra_options+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005744 withval=$with_extra_options;
5745else
5746 withval=default
5747fi
5748
5749case "$withval" in
5750 default) EXTRA_OPTIONS= ;;
5751 *) EXTRA_OPTIONS=$withval ;;
5752esac
5753EXTRA_OPTIONS=$EXTRA_OPTIONS
5754
5755
Daniel Dunbar3b95df82011-06-16 22:30:41 +00005756
5757# Check whether --with-extra-ld-options was given.
5758if test "${with_extra_ld_options+set}" = set; then
5759 withval=$with_extra_ld_options;
5760else
5761 withval=default
5762fi
5763
5764case "$withval" in
5765 default) EXTRA_LD_OPTIONS= ;;
5766 *) EXTRA_LD_OPTIONS=$withval ;;
5767esac
5768EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5769
5770
Gordon Henriksene61dd672007-10-02 09:50:32 +00005771# Check whether --enable-bindings was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005772if test "${enable_bindings+set}" = set; then
Gordon Henriksene61dd672007-10-02 09:50:32 +00005773 enableval=$enable_bindings;
5774else
5775 enableval=default
5776fi
5777
5778BINDINGS_TO_BUILD=""
5779case "$enableval" in
Gordon Henriksenacc2a832007-10-02 10:14:42 +00005780 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005781 all ) BINDINGS_TO_BUILD="ocaml" ;;
5782 none | no) BINDINGS_TO_BUILD="" ;;
5783 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5784 case "$a_binding" in
5785 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005786 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5787echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5788 { (exit 1); exit 1; }; } ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005789 esac
5790 done
5791 ;;
5792esac
5793
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005794
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005795# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005796if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005797 withval=$with_ocaml_libdir;
5798else
5799 withval=auto
5800fi
5801
5802case "$withval" in
5803 auto) with_ocaml_libdir="$withval" ;;
5804 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005805 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5806echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5807 { (exit 1); exit 1; }; } ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005808esac
5809
5810
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005811# Check whether --with-clang-srcdir was given.
5812if test "${with_clang_srcdir+set}" = set; then
5813 withval=$with_clang_srcdir;
5814else
5815 withval="-"
5816fi
5817
5818case "$withval" in
Eric Christopher7f977de2012-02-02 00:19:05 +00005819 -) clang_src_root="" ;;
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005820 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5821 *) clang_src_root="$ac_pwd/$withval" ;;
5822esac
5823CLANG_SRC_ROOT=$clang_src_root
5824
5825
5826
Chandler Carruthffae4a62010-10-19 08:21:25 +00005827# Check whether --with-clang-resource-dir was given.
5828if test "${with_clang_resource_dir+set}" = set; then
5829 withval=$with_clang_resource_dir;
5830else
5831 withval=""
5832fi
5833
5834
5835cat >>confdefs.h <<_ACEOF
5836#define CLANG_RESOURCE_DIR "$withval"
5837_ACEOF
5838
5839
5840
Rafael Espindola662908c2009-12-07 00:27:35 +00005841# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005842if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola662908c2009-12-07 00:27:35 +00005843 withval=$with_c_include_dirs;
Rafael Espindolad95960b2009-11-12 05:46:09 +00005844else
5845 withval=""
5846fi
5847
5848
5849cat >>confdefs.h <<_ACEOF
5850#define C_INCLUDE_DIRS "$withval"
5851_ACEOF
5852
5853
Rafael Espindolaec217f62012-02-03 00:59:30 +00005854# Clang normally uses the system c++ headers and libraries. With this option,
5855# clang will use the ones provided by a gcc installation instead. This option should
5856# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindolad95960b2009-11-12 05:46:09 +00005857
Rafael Espindolaec217f62012-02-03 00:59:30 +00005858# Check whether --with-gcc-toolchain was given.
5859if test "${with_gcc_toolchain+set}" = set; then
5860 withval=$with_gcc_toolchain;
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005861else
5862 withval=""
5863fi
5864
5865
5866cat >>confdefs.h <<_ACEOF
Rafael Espindolaec217f62012-02-03 00:59:30 +00005867#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005868_ACEOF
5869
5870
5871
Sebastian Pope29a6c72012-04-30 20:06:58 +00005872# Check whether --with-default-sysroot was given.
5873if test "${with_default_sysroot+set}" = set; then
5874 withval=$with_default_sysroot;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00005875else
5876 withval=""
5877fi
5878
5879
5880cat >>confdefs.h <<_ACEOF
5881#define DEFAULT_SYSROOT "$withval"
5882_ACEOF
5883
5884
5885
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005886# Check whether --with-binutils-include was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005887if test "${with_binutils_include+set}" = set; then
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005888 withval=$with_binutils_include;
5889else
5890 withval=default
5891fi
5892
5893case "$withval" in
5894 default) WITH_BINUTILS_INCDIR=default ;;
5895 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005896 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5897echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5898 { (exit 1); exit 1; }; } ;;
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005899esac
5900if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5901 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5902
5903 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5904 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005905 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5906echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5907 { (exit 1); exit 1; }; };
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005908 fi
5909fi
5910
Eric Christopher65080cc2011-07-20 17:04:49 +00005911
5912# Check whether --with-bug-report-url was given.
5913if test "${with_bug_report_url+set}" = set; then
5914 withval=$with_bug_report_url;
5915else
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00005916 withval="http://llvm.org/bugs/"
Eric Christopher65080cc2011-07-20 17:04:49 +00005917fi
5918
5919
5920cat >>confdefs.h <<_ACEOF
5921#define BUG_REPORT_URL "$withval"
5922_ACEOF
5923
5924
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005925# Check whether --enable-terminfo was given.
5926if test "${enable_terminfo+set}" = set; then
5927 enableval=$enable_terminfo; case "$enableval" in
5928 yes) llvm_cv_enable_terminfo="yes" ;;
5929 no) llvm_cv_enable_terminfo="no" ;;
5930 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5931echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005932 { (exit 1); exit 1; }; } ;;
5933 esac
5934else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005935 llvm_cv_enable_terminfo="yes"
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005936fi
5937
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005938case "$llvm_cv_enable_terminfo" in
5939 yes) ENABLE_TERMINFO=1
5940 ;;
5941 no) ENABLE_TERMINFO=0
5942 ;;
5943esac
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005944
Peter Collingbournec7d437c2014-01-31 23:46:14 +00005945# Check whether --enable-libedit was given.
5946if test "${enable_libedit+set}" = set; then
5947 enableval=$enable_libedit; case "$enableval" in
5948 yes) llvm_cv_enable_libedit="yes" ;;
5949 no) llvm_cv_enable_libedit="no" ;;
5950 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5951echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5952 { (exit 1); exit 1; }; } ;;
5953 esac
5954else
5955 llvm_cv_enable_libedit="yes"
5956fi
5957
5958
Nick Lewycky86679902009-06-06 06:25:09 +00005959# Check whether --enable-libffi was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005960if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005961 enableval=$enable_libffi; case "$enableval" in
5962 yes) llvm_cv_enable_libffi="yes" ;;
5963 no) llvm_cv_enable_libffi="no" ;;
5964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005965echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5966 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005967 esac
5968else
5969 llvm_cv_enable_libffi=no
5970fi
5971
Nick Lewycky86679902009-06-06 06:25:09 +00005972
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005973
Bob Wilson3f354702011-11-28 07:59:52 +00005974# Check whether --with-internal-prefix was given.
5975if test "${with_internal_prefix+set}" = set; then
5976 withval=$with_internal_prefix;
5977else
5978 withval=""
5979fi
5980
5981INTERNAL_PREFIX=$withval
5982
5983
5984
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005985{ echo "$as_me:$LINENO: checking for GNU make" >&5
5986echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5987if test "${llvm_cv_gnu_make_command+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005989else
5990 llvm_cv_gnu_make_command=''
5991 for a in "$MAKE" make gmake gnumake ; do
5992 if test -z "$a" ; then continue ; fi ;
5993 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5994 then
5995 llvm_cv_gnu_make_command=$a ;
5996 break;
5997 fi
5998 done
5999fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006000{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6001echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006002 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6003 ifGNUmake='' ;
6004 else
6005 ifGNUmake='#' ;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006006 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6007echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006008 fi
6009
6010
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006011{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006013LN_S=$as_ln_s
6014if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006015 { echo "$as_me:$LINENO: result: yes" >&5
6016echo "${ECHO_T}yes" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006017else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006018 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006020fi
6021
Rafael Espindolafd1355a2014-02-28 18:17:54 +00006022# Extract the first word of "nm", so it can be a program name with args.
6023set dummy nm; ac_word=$2
6024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026if test "${ac_cv_path_NM+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028else
6029 case $NM in
6030 [\\/]* | ?:[\\/]*)
6031 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6032 ;;
6033 *)
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6044 fi
6045done
6046done
6047IFS=$as_save_IFS
6048
6049 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6050 ;;
6051esac
6052fi
6053NM=$ac_cv_path_NM
6054if test -n "$NM"; then
6055 { echo "$as_me:$LINENO: result: $NM" >&5
6056echo "${ECHO_T}$NM" >&6; }
6057else
6058 { echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6; }
6060fi
6061
6062
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006063# Extract the first word of "cmp", so it can be a program name with args.
6064set dummy cmp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067if test "${ac_cv_path_CMP+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006069else
6070 case $CMP in
6071 [\\/]* | ?:[\\/]*)
6072 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6073 ;;
6074 *)
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 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 +00006082 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006084 break 2
6085 fi
6086done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006087done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006088IFS=$as_save_IFS
6089
6090 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6091 ;;
6092esac
6093fi
6094CMP=$ac_cv_path_CMP
6095if test -n "$CMP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006096 { echo "$as_me:$LINENO: result: $CMP" >&5
6097echo "${ECHO_T}$CMP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006098else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006099 { echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006101fi
6102
6103
6104# Extract the first word of "cp", so it can be a program name with args.
6105set dummy cp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108if test "${ac_cv_path_CP+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006110else
6111 case $CP in
6112 [\\/]* | ?:[\\/]*)
6113 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6114 ;;
6115 *)
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 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 +00006123 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006125 break 2
6126 fi
6127done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006128done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006129IFS=$as_save_IFS
6130
6131 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6132 ;;
6133esac
6134fi
6135CP=$ac_cv_path_CP
6136if test -n "$CP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006137 { echo "$as_me:$LINENO: result: $CP" >&5
6138echo "${ECHO_T}$CP" >&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
6145# Extract the first word of "date", so it can be a program name with args.
6146set dummy date; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149if test "${ac_cv_path_DATE+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006151else
6152 case $DATE in
6153 [\\/]* | ?:[\\/]*)
6154 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6155 ;;
6156 *)
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 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 +00006164 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006166 break 2
6167 fi
6168done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006169done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006170IFS=$as_save_IFS
6171
6172 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6173 ;;
6174esac
6175fi
6176DATE=$ac_cv_path_DATE
6177if test -n "$DATE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006178 { echo "$as_me:$LINENO: result: $DATE" >&5
6179echo "${ECHO_T}$DATE" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006180else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006181 { echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006183fi
6184
6185
6186# Extract the first word of "find", so it can be a program name with args.
6187set dummy find; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190if test "${ac_cv_path_FIND+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006192else
6193 case $FIND in
6194 [\\/]* | ?:[\\/]*)
6195 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6196 ;;
6197 *)
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 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 +00006205 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006207 break 2
6208 fi
6209done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006210done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006211IFS=$as_save_IFS
6212
6213 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6214 ;;
6215esac
6216fi
6217FIND=$ac_cv_path_FIND
6218if test -n "$FIND"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006219 { echo "$as_me:$LINENO: result: $FIND" >&5
6220echo "${ECHO_T}$FIND" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006221else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006222 { echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006224fi
6225
6226
6227# Extract the first word of "grep", so it can be a program name with args.
6228set dummy grep; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006229{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231if test "${ac_cv_path_GREP+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006233else
6234 case $GREP in
6235 [\\/]* | ?:[\\/]*)
6236 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6237 ;;
6238 *)
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 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 +00006246 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006248 break 2
6249 fi
6250done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006251done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006252IFS=$as_save_IFS
6253
6254 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6255 ;;
6256esac
6257fi
6258GREP=$ac_cv_path_GREP
6259if test -n "$GREP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006260 { echo "$as_me:$LINENO: result: $GREP" >&5
6261echo "${ECHO_T}$GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006262else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006263 { echo "$as_me:$LINENO: result: no" >&5
6264echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006265fi
6266
6267
6268# Extract the first word of "mkdir", so it can be a program name with args.
6269set dummy mkdir; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272if test "${ac_cv_path_MKDIR+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006274else
6275 case $MKDIR in
6276 [\\/]* | ?:[\\/]*)
6277 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6278 ;;
6279 *)
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 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 +00006287 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006289 break 2
6290 fi
6291done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006292done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006293IFS=$as_save_IFS
6294
6295 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6296 ;;
6297esac
6298fi
6299MKDIR=$ac_cv_path_MKDIR
6300if test -n "$MKDIR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006301 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6302echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006303else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006304 { echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006306fi
6307
6308
6309# Extract the first word of "mv", so it can be a program name with args.
6310set dummy mv; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313if test "${ac_cv_path_MV+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006315else
6316 case $MV in
6317 [\\/]* | ?:[\\/]*)
6318 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6319 ;;
6320 *)
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 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 +00006328 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006330 break 2
6331 fi
6332done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006333done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006334IFS=$as_save_IFS
6335
6336 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6337 ;;
6338esac
6339fi
6340MV=$ac_cv_path_MV
6341if test -n "$MV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006342 { echo "$as_me:$LINENO: result: $MV" >&5
6343echo "${ECHO_T}$MV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006344else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006345 { echo "$as_me:$LINENO: result: no" >&5
6346echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006347fi
6348
6349
6350if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6352set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355if test "${ac_cv_prog_RANLIB+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006357else
6358 if test -n "$RANLIB"; then
6359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 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 +00006368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006370 break 2
6371 fi
6372done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006373done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006374IFS=$as_save_IFS
6375
6376fi
6377fi
6378RANLIB=$ac_cv_prog_RANLIB
6379if test -n "$RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006380 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6381echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006382else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006383 { echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006385fi
6386
6387
6388fi
6389if test -z "$ac_cv_prog_RANLIB"; then
6390 ac_ct_RANLIB=$RANLIB
6391 # Extract the first word of "ranlib", so it can be a program name with args.
6392set dummy ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006397else
6398 if test -n "$ac_ct_RANLIB"; then
6399 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 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 +00006408 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006410 break 2
6411 fi
6412done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006413done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006414IFS=$as_save_IFS
6415
6416fi
6417fi
6418ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6419if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006420 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6421echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006422else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006423 { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006425fi
6426
6427 if test "x$ac_ct_RANLIB" = x; then
6428 RANLIB=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006432{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6433whose name does not start with the host triplet. If you think this
6434configuration is useful to you, please write to autoconf@gnu.org." >&5
6435echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6436whose name does not start with the host triplet. If you think this
6437configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006438ac_tool_warned=yes ;;
6439esac
6440 RANLIB=$ac_ct_RANLIB
6441 fi
6442else
6443 RANLIB="$ac_cv_prog_RANLIB"
6444fi
6445
Torok Edwinaec06332010-01-26 08:50:50 +00006446if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6448set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451if test "${ac_cv_prog_AR+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006453else
6454 if test -n "$AR"; then
6455 ac_cv_prog_AR="$AR" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 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 +00006464 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006466 break 2
6467 fi
6468done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006469done
Torok Edwinaec06332010-01-26 08:50:50 +00006470IFS=$as_save_IFS
6471
6472fi
6473fi
6474AR=$ac_cv_prog_AR
6475if test -n "$AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006476 { echo "$as_me:$LINENO: result: $AR" >&5
6477echo "${ECHO_T}$AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006478else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006479 { echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006481fi
6482
6483
6484fi
6485if test -z "$ac_cv_prog_AR"; then
6486 ac_ct_AR=$AR
6487 # Extract the first word of "ar", so it can be a program name with args.
6488set dummy ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006493else
6494 if test -n "$ac_ct_AR"; then
6495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 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 +00006504 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006506 break 2
6507 fi
6508done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006509done
Torok Edwinaec06332010-01-26 08:50:50 +00006510IFS=$as_save_IFS
6511
6512fi
6513fi
6514ac_ct_AR=$ac_cv_prog_ac_ct_AR
6515if test -n "$ac_ct_AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006516 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6517echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006518else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006519 { echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006521fi
6522
6523 if test "x$ac_ct_AR" = x; then
6524 AR="false"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006528{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6529whose name does not start with the host triplet. If you think this
6530configuration is useful to you, please write to autoconf@gnu.org." >&5
6531echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6532whose name does not start with the host triplet. If you think this
6533configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwinaec06332010-01-26 08:50:50 +00006534ac_tool_warned=yes ;;
6535esac
6536 AR=$ac_ct_AR
6537 fi
6538else
6539 AR="$ac_cv_prog_AR"
6540fi
6541
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006542# Extract the first word of "rm", so it can be a program name with args.
6543set dummy rm; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546if test "${ac_cv_path_RM+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006548else
6549 case $RM in
6550 [\\/]* | ?:[\\/]*)
6551 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6552 ;;
6553 *)
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006561 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006563 break 2
6564 fi
6565done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006566done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006567IFS=$as_save_IFS
6568
6569 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6570 ;;
6571esac
6572fi
6573RM=$ac_cv_path_RM
6574if test -n "$RM"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006575 { echo "$as_me:$LINENO: result: $RM" >&5
6576echo "${ECHO_T}$RM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006577else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006578 { echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006580fi
6581
6582
6583# Extract the first word of "sed", so it can be a program name with args.
6584set dummy sed; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587if test "${ac_cv_path_SED+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006589else
6590 case $SED in
6591 [\\/]* | ?:[\\/]*)
6592 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6593 ;;
6594 *)
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 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 +00006602 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006604 break 2
6605 fi
6606done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006607done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006608IFS=$as_save_IFS
6609
6610 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6611 ;;
6612esac
6613fi
6614SED=$ac_cv_path_SED
6615if test -n "$SED"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006616 { echo "$as_me:$LINENO: result: $SED" >&5
6617echo "${ECHO_T}$SED" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006618else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006619 { echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006621fi
6622
6623
6624# Extract the first word of "tar", so it can be a program name with args.
6625set dummy tar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628if test "${ac_cv_path_TAR+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006630else
6631 case $TAR in
6632 [\\/]* | ?:[\\/]*)
6633 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6634 ;;
6635 *)
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 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 +00006643 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006645 break 2
6646 fi
6647done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006648done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006649IFS=$as_save_IFS
6650
6651 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6652 ;;
6653esac
6654fi
6655TAR=$ac_cv_path_TAR
6656if test -n "$TAR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006657 { echo "$as_me:$LINENO: result: $TAR" >&5
6658echo "${ECHO_T}$TAR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006659else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006660 { echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006662fi
6663
6664
6665# Extract the first word of "pwd", so it can be a program name with args.
6666set dummy pwd; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669if test "${ac_cv_path_BINPWD+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006671else
6672 case $BINPWD in
6673 [\\/]* | ?:[\\/]*)
6674 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6675 ;;
6676 *)
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 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 +00006684 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006686 break 2
6687 fi
6688done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006689done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006690IFS=$as_save_IFS
6691
6692 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6693 ;;
6694esac
6695fi
6696BINPWD=$ac_cv_path_BINPWD
6697if test -n "$BINPWD"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006698 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6699echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006700else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006701 { echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006703fi
6704
6705
6706
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006707# Extract the first word of "dot", so it can be a program name with args.
6708set dummy dot; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711if test "${ac_cv_path_DOT+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006713else
6714 case $DOT in
6715 [\\/]* | ?:[\\/]*)
6716 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6717 ;;
6718 *)
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 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 +00006726 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006728 break 2
6729 fi
6730done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006731done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006732IFS=$as_save_IFS
6733
6734 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6735 ;;
6736esac
6737fi
6738DOT=$ac_cv_path_DOT
6739if test -n "$DOT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006740 { echo "$as_me:$LINENO: result: $DOT" >&5
6741echo "${ECHO_T}$DOT" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006742else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006743 { echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006745fi
6746
6747
6748if test "$DOT" != "echo dot" ; then
6749
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006750cat >>confdefs.h <<\_ACEOF
6751#define HAVE_DOT 1
6752_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006753
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006754 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006755 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6756 fi
6757
6758cat >>confdefs.h <<_ACEOF
6759#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6760_ACEOF
6761
6762fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006763
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006764# Find a good install program. We prefer a C program (faster),
6765# so one script is as good as another. But avoid the broken or
6766# incompatible versions:
6767# SysV /etc/install, /usr/sbin/install
6768# SunOS /usr/etc/install
6769# IRIX /sbin/install
6770# AIX /bin/install
6771# AmigaOS /C/install, which installs bootblocks on floppy discs
6772# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6773# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6774# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6775# OS/2's system install, which has a completely different semantic
6776# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006777{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6778echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006779if test -z "$INSTALL"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006780if test "${ac_cv_path_install+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006782else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006788 # Account for people who put trailing slashes in PATH elements.
6789case $as_dir/ in
6790 ./ | .// | /cC/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006792 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006793 /usr/ucb/* ) ;;
6794 *)
6795 # OSF1 and SCO ODT 3.0 have their own names for install.
6796 # Don't use installbsd from OSF since it installs stuff as root
6797 # by default.
6798 for ac_prog in ginstall scoinst install; do
6799 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006800 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 +00006801 if test $ac_prog = install &&
6802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6803 # AIX install. It has an incompatible calling convention.
6804 :
6805 elif test $ac_prog = install &&
6806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6807 # program-specific install script used by HP pwplus--don't use.
6808 :
6809 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6811 break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006812 fi
6813 fi
6814 done
6815 done
6816 ;;
6817esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006818done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006819IFS=$as_save_IFS
6820
6821
6822fi
6823 if test "${ac_cv_path_install+set}" = set; then
6824 INSTALL=$ac_cv_path_install
6825 else
6826 # As a last resort, use the slow shell script. Don't cache a
6827 # value for INSTALL within a source directory, because that will
6828 # break other packages using the cache if that directory is
6829 # removed, or if the value is a relative name.
6830 INSTALL=$ac_install_sh
6831 fi
6832fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006833{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6834echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006835
6836# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6837# It thinks the first close brace ends the variable substitution.
6838test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6839
6840test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6841
6842test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6843
Eric Christophere3befc72010-07-22 21:13:48 +00006844case "$INSTALL" in
6845 [\\/$]* | ?:[\\/]* ) ;;
6846 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6847esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006848
6849# Extract the first word of "bzip2", so it can be a program name with args.
6850set dummy bzip2; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853if test "${ac_cv_path_BZIP2+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006855else
6856 case $BZIP2 in
6857 [\\/]* | ?:[\\/]*)
6858 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6859 ;;
6860 *)
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 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 +00006868 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006870 break 2
6871 fi
6872done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006873done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006874IFS=$as_save_IFS
6875
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006876 ;;
6877esac
6878fi
6879BZIP2=$ac_cv_path_BZIP2
6880if test -n "$BZIP2"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006881 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6882echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006883else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006884 { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006886fi
6887
6888
mike-me08af302010-05-06 23:45:43 +00006889# Extract the first word of "cat", so it can be a program name with args.
6890set dummy cat; ac_word=$2
6891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893if test "${ac_cv_path_CAT+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896 case $CAT in
6897 [\\/]* | ?:[\\/]*)
6898 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6899 ;;
6900 *)
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916 ;;
6917esac
6918fi
6919CAT=$ac_cv_path_CAT
6920if test -n "$CAT"; then
6921 { echo "$as_me:$LINENO: result: $CAT" >&5
6922echo "${ECHO_T}$CAT" >&6; }
6923else
6924 { echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6; }
6926fi
6927
6928
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006929# Extract the first word of "doxygen", so it can be a program name with args.
6930set dummy doxygen; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933if test "${ac_cv_path_DOXYGEN+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006935else
6936 case $DOXYGEN in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6939 ;;
6940 *)
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 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 +00006948 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006950 break 2
6951 fi
6952done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006953done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006954IFS=$as_save_IFS
6955
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006956 ;;
6957esac
6958fi
6959DOXYGEN=$ac_cv_path_DOXYGEN
6960if test -n "$DOXYGEN"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006961 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6962echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006963else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006964 { echo "$as_me:$LINENO: result: no" >&5
6965echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006966fi
6967
6968
Daniel Dunbard1888822012-05-08 18:26:07 +00006969# Extract the first word of "groff", so it can be a program name with args.
6970set dummy groff; ac_word=$2
6971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973if test "${ac_cv_path_GROFF+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975else
6976 case $GROFF in
6977 [\\/]* | ?:[\\/]*)
6978 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6979 ;;
6980 *)
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992done
6993done
6994IFS=$as_save_IFS
6995
6996 ;;
6997esac
6998fi
6999GROFF=$ac_cv_path_GROFF
7000if test -n "$GROFF"; then
7001 { echo "$as_me:$LINENO: result: $GROFF" >&5
7002echo "${ECHO_T}$GROFF" >&6; }
7003else
7004 { echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6; }
7006fi
7007
7008
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007009# Extract the first word of "gzip", so it can be a program name with args.
7010set dummy gzip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher77560892010-12-10 01:31:51 +00007013if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007015else
Eric Christopher77560892010-12-10 01:31:51 +00007016 case $GZIPBIN in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007017 [\\/]* | ?:[\\/]*)
Eric Christopher77560892010-12-10 01:31:51 +00007018 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007019 ;;
7020 *)
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 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 +00007028 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007030 break 2
7031 fi
7032done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007033done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007034IFS=$as_save_IFS
7035
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007036 ;;
7037esac
7038fi
Eric Christopher77560892010-12-10 01:31:51 +00007039GZIPBIN=$ac_cv_path_GZIPBIN
7040if test -n "$GZIPBIN"; then
7041 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7042echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007043else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007044 { echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007046fi
7047
7048
Daniel Dunbard1888822012-05-08 18:26:07 +00007049# Extract the first word of "pdfroff", so it can be a program name with args.
7050set dummy pdfroff; ac_word=$2
7051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053if test "${ac_cv_path_PDFROFF+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055else
7056 case $PDFROFF in
7057 [\\/]* | ?:[\\/]*)
7058 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7059 ;;
7060 *)
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072done
7073done
7074IFS=$as_save_IFS
7075
7076 ;;
7077esac
7078fi
7079PDFROFF=$ac_cv_path_PDFROFF
7080if test -n "$PDFROFF"; then
7081 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7082echo "${ECHO_T}$PDFROFF" >&6; }
7083else
7084 { echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6; }
7086fi
7087
7088
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007089# Extract the first word of "zip", so it can be a program name with args.
7090set dummy zip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093if test "${ac_cv_path_ZIP+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007095else
7096 case $ZIP in
7097 [\\/]* | ?:[\\/]*)
7098 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7099 ;;
7100 *)
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 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 +00007108 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007110 break 2
7111 fi
7112done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007113done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007114IFS=$as_save_IFS
7115
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007116 ;;
7117esac
7118fi
7119ZIP=$ac_cv_path_ZIP
7120if test -n "$ZIP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007121 { echo "$as_me:$LINENO: result: $ZIP" >&5
7122echo "${ECHO_T}$ZIP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007123else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007124 { echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007126fi
7127
7128
Peter Collingbourne82e3e372014-10-16 22:48:02 +00007129# Extract the first word of "go", so it can be a program name with args.
7130set dummy go; ac_word=$2
7131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133if test "${ac_cv_path_GO+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136 case $GO in
7137 [\\/]* | ?:[\\/]*)
7138 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7139 ;;
7140 *)
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152done
7153done
7154IFS=$as_save_IFS
7155
7156 ;;
7157esac
7158fi
7159GO=$ac_cv_path_GO
7160if test -n "$GO"; then
7161 { echo "$as_me:$LINENO: result: $GO" >&5
7162echo "${ECHO_T}$GO" >&6; }
7163else
7164 { echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6; }
7166fi
7167
7168
Peter Zotov668f9672014-10-30 08:29:45 +00007169for ac_prog in ocamlfind
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007170do
7171 # Extract the first word of "$ac_prog", so it can be a program name with args.
7172set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Peter Zotov668f9672014-10-30 08:29:45 +00007175if test "${ac_cv_path_OCAMLFIND+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007176 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007177else
Peter Zotov668f9672014-10-30 08:29:45 +00007178 case $OCAMLFIND in
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007179 [\\/]* | ?:[\\/]*)
Peter Zotov668f9672014-10-30 08:29:45 +00007180 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007181 ;;
7182 *)
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 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 +00007190 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007192 break 2
7193 fi
7194done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007195done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007196IFS=$as_save_IFS
7197
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007198 ;;
7199esac
7200fi
Peter Zotov668f9672014-10-30 08:29:45 +00007201OCAMLFIND=$ac_cv_path_OCAMLFIND
7202if test -n "$OCAMLFIND"; then
7203 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7204echo "${ECHO_T}$OCAMLFIND" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007205else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007208fi
7209
7210
Peter Zotov668f9672014-10-30 08:29:45 +00007211 test -n "$OCAMLFIND" && break
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007212done
7213
Daniel Dunbard1888822012-05-08 18:26:07 +00007214for ac_prog in gas as
7215do
7216 # Extract the first word of "$ac_prog", so it can be a program name with args.
7217set dummy $ac_prog; ac_word=$2
7218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220if test "${ac_cv_path_GAS+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 case $GAS in
7224 [\\/]* | ?:[\\/]*)
7225 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7226 ;;
7227 *)
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239done
7240done
7241IFS=$as_save_IFS
7242
7243 ;;
7244esac
7245fi
7246GAS=$ac_cv_path_GAS
7247if test -n "$GAS"; then
7248 { echo "$as_me:$LINENO: result: $GAS" >&5
7249echo "${ECHO_T}$GAS" >&6; }
7250else
7251 { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
7253fi
7254
7255
7256 test -n "$GAS" && break
7257done
7258
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007259
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007260{ echo "$as_me:$LINENO: checking for linker version" >&5
7261echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7262if test "${llvm_cv_link_version+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264else
7265
Joerg Sonnenbergere6aafbb2014-05-28 15:12:55 +00007266 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007267
7268 # Check for ld64.
7269 if (echo "$version_string" | grep -q "ld64"); then
Charles Davise56294d2012-02-28 02:55:41 +00007270 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007271 else
7272 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7273 fi
7274
7275fi
7276{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7277echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7278
7279cat >>confdefs.h <<_ACEOF
7280#define HOST_LINK_VERSION "$llvm_cv_link_version"
7281_ACEOF
7282
7283
7284
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007285
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007286{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7287echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7288if test "${llvm_cv_link_use_r+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007290else
7291 ac_ext=c
7292ac_cpp='$CPP $CPPFLAGS'
7293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296
7297 oldcflags="$CFLAGS"
7298 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007299 cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h. */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007304/* end confdefs.h. */
7305
7306int
7307main ()
7308{
Dan Gohmana1c94042010-04-25 00:12:20 +00007309
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007310 ;
7311 return 0;
7312}
7313_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007314rm -f conftest.$ac_objext conftest$ac_exeext
7315if { (ac_try="$ac_link"
7316case "(($ac_try" in
7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 *) ac_try_echo=$ac_try;;
7319esac
7320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321 (eval "$ac_link") 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7329 { (case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332esac
7333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 (eval "$ac_try") 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest$ac_exeext'
7339 { (case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342esac
7343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_try") 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007348 llvm_cv_link_use_r=yes
7349else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007350 echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 llvm_cv_link_use_r=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007354fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007355
Bill Wendling02b47d92009-04-18 11:20:33 +00007356rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007357 conftest$ac_exeext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007358 CFLAGS="$oldcflags"
7359 ac_ext=c
7360ac_cpp='$CPP $CPPFLAGS'
7361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364
7365
7366fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007367{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7368echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007369if test "$llvm_cv_link_use_r" = yes ; then
7370
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007371cat >>confdefs.h <<\_ACEOF
7372#define HAVE_LINK_R 1
7373_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007374
7375 fi
7376
7377
Bob Wilson8d7e6902013-08-02 22:51:11 +00007378{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7379echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007380if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007382else
7383 ac_ext=c
7384ac_cpp='$CPP $CPPFLAGS'
7385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387ac_compiler_gnu=$ac_cv_c_compiler_gnu
7388
7389 oldcflags="$CFLAGS"
Bob Wilson8d7e6902013-08-02 22:51:11 +00007390 CFLAGS="$CFLAGS -rdynamic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007391 cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h. */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007396/* end confdefs.h. */
7397
7398int
7399main ()
7400{
Dan Gohmana1c94042010-04-25 00:12:20 +00007401
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007402 ;
7403 return 0;
7404}
7405_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007406rm -f conftest.$ac_objext conftest$ac_exeext
7407if { (ac_try="$ac_link"
7408case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7411esac
7412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413 (eval "$ac_link") 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7421 { (case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424esac
7425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_try") 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest$ac_exeext'
7431 { (case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434esac
7435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_try") 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007440 llvm_cv_link_use_export_dynamic=yes
7441else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007442 echo "$as_me: failed program was:" >&5
7443sed 's/^/| /' conftest.$ac_ext >&5
7444
7445 llvm_cv_link_use_export_dynamic=no
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007446fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007447
Bill Wendling02b47d92009-04-18 11:20:33 +00007448rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007449 conftest$ac_exeext conftest.$ac_ext
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007450 CFLAGS="$oldcflags"
7451 ac_ext=c
7452ac_cpp='$CPP $CPPFLAGS'
7453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
7457
7458fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007459{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7460echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007461if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7462
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007463cat >>confdefs.h <<\_ACEOF
7464#define HAVE_LINK_EXPORT_DYNAMIC 1
7465_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007466
7467 fi
7468
7469
Dan Gohmanb7edb422010-06-01 14:56:56 +00007470{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7471echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7472if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanfe051a52010-04-16 22:59:06 +00007473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 ac_ext=c
7476ac_cpp='$CPP $CPPFLAGS'
7477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479ac_compiler_gnu=$ac_cv_c_compiler_gnu
7480
7481 oldcflags="$CFLAGS"
7482
7483 # The following code is from the autoconf manual,
7484 # "11.13: Limitations of Usual Tools".
7485 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7486 # Use mktemp if possible; otherwise fall back on mkdir,
7487 # with $RANDOM to make collisions less likely.
7488 : ${TMPDIR=/tmp}
7489 {
7490 tmp=`
7491 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7492 ` &&
7493 test -n "$tmp" && test -d "$tmp"
7494 } || {
7495 tmp=$TMPDIR/foo$$-$RANDOM
7496 (umask 077 && mkdir "$tmp")
7497 } || exit $?
7498
Dan Gohmanb7edb422010-06-01 14:56:56 +00007499 echo "{" > "$tmp/export.map"
7500 echo " global: main;" >> "$tmp/export.map"
7501 echo " local: *;" >> "$tmp/export.map"
7502 echo "};" >> "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007503
Dan Gohmanb7edb422010-06-01 14:56:56 +00007504 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007505 cat >conftest.$ac_ext <<_ACEOF
7506/* confdefs.h. */
7507_ACEOF
7508cat confdefs.h >>conftest.$ac_ext
7509cat >>conftest.$ac_ext <<_ACEOF
7510/* end confdefs.h. */
7511
7512int
7513main ()
7514{
Dan Gohmana1c94042010-04-25 00:12:20 +00007515
Dan Gohmanfe051a52010-04-16 22:59:06 +00007516 ;
7517 return 0;
7518}
7519_ACEOF
7520rm -f conftest.$ac_objext conftest$ac_exeext
7521if { (ac_try="$ac_link"
7522case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525esac
7526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_link") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535 { (case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
7539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_try") 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_try") 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
Dan Gohmanb7edb422010-06-01 14:56:56 +00007554 llvm_cv_link_use_version_script=yes
Dan Gohmanfe051a52010-04-16 22:59:06 +00007555else
7556 echo "$as_me: failed program was:" >&5
7557sed 's/^/| /' conftest.$ac_ext >&5
7558
Dan Gohmanc6998312010-06-01 16:22:27 +00007559 llvm_cv_link_use_version_script=no
Dan Gohmanfe051a52010-04-16 22:59:06 +00007560fi
7561
7562rm -f core conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanb7edb422010-06-01 14:56:56 +00007564 rm "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007565 rmdir "$tmp"
7566 CFLAGS="$oldcflags"
7567 ac_ext=c
7568ac_cpp='$CPP $CPPFLAGS'
7569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571ac_compiler_gnu=$ac_cv_c_compiler_gnu
7572
7573
7574fi
Dan Gohmanb7edb422010-06-01 14:56:56 +00007575{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7576echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7577if test "$llvm_cv_link_use_version_script" = yes ; then
7578 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanfe051a52010-04-16 22:59:06 +00007579
7580 fi
7581
7582
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007583
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007584{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7585echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7586if test "${ac_cv_path_GREP+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 # Extract the first word of "grep ggrep" to use in msg output
7590if test -z "$GREP"; then
7591set dummy grep ggrep; ac_prog_name=$2
7592if test "${ac_cv_path_GREP+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595 ac_path_GREP_found=false
7596# Loop through the user's path and test for each of PROGNAME-LIST
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_prog in grep ggrep; do
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7605 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7606 # Check for GNU ac_path_GREP and select it if it is found.
7607 # Check for GNU $ac_path_GREP
7608case `"$ac_path_GREP" --version 2>&1` in
7609*GNU*)
7610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7611*)
7612 ac_count=0
7613 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7614 while :
7615 do
7616 cat "conftest.in" "conftest.in" >"conftest.tmp"
7617 mv "conftest.tmp" "conftest.in"
7618 cp "conftest.in" "conftest.nl"
7619 echo 'GREP' >> "conftest.nl"
7620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7622 ac_count=`expr $ac_count + 1`
7623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7624 # Best one so far, save it but keep looking for a better one
7625 ac_cv_path_GREP="$ac_path_GREP"
7626 ac_path_GREP_max=$ac_count
7627 fi
7628 # 10*(2^10) chars as input seems more than enough
7629 test $ac_count -gt 10 && break
7630 done
7631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7632esac
7633
7634
7635 $ac_path_GREP_found && break 3
7636 done
7637done
7638
7639done
7640IFS=$as_save_IFS
7641
7642
7643fi
7644
7645GREP="$ac_cv_path_GREP"
7646if test -z "$GREP"; then
7647 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7648echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7649 { (exit 1); exit 1; }; }
7650fi
7651
7652else
7653 ac_cv_path_GREP=$GREP
7654fi
7655
7656
7657fi
7658{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7659echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7660 GREP="$ac_cv_path_GREP"
7661
7662
7663{ echo "$as_me:$LINENO: checking for egrep" >&5
7664echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7665if test "${ac_cv_path_EGREP+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7669 then ac_cv_path_EGREP="$GREP -E"
7670 else
7671 # Extract the first word of "egrep" to use in msg output
7672if test -z "$EGREP"; then
7673set dummy egrep; ac_prog_name=$2
7674if test "${ac_cv_path_EGREP+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 ac_path_EGREP_found=false
7678# Loop through the user's path and test for each of PROGNAME-LIST
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_prog in egrep; do
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7687 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7688 # Check for GNU ac_path_EGREP and select it if it is found.
7689 # Check for GNU $ac_path_EGREP
7690case `"$ac_path_EGREP" --version 2>&1` in
7691*GNU*)
7692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7693*)
7694 ac_count=0
7695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7696 while :
7697 do
7698 cat "conftest.in" "conftest.in" >"conftest.tmp"
7699 mv "conftest.tmp" "conftest.in"
7700 cp "conftest.in" "conftest.nl"
7701 echo 'EGREP' >> "conftest.nl"
7702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7704 ac_count=`expr $ac_count + 1`
7705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7706 # Best one so far, save it but keep looking for a better one
7707 ac_cv_path_EGREP="$ac_path_EGREP"
7708 ac_path_EGREP_max=$ac_count
7709 fi
7710 # 10*(2^10) chars as input seems more than enough
7711 test $ac_count -gt 10 && break
7712 done
7713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7714esac
7715
7716
7717 $ac_path_EGREP_found && break 3
7718 done
7719done
7720
7721done
7722IFS=$as_save_IFS
7723
7724
7725fi
7726
7727EGREP="$ac_cv_path_EGREP"
7728if test -z "$EGREP"; then
7729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7730echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7731 { (exit 1); exit 1; }; }
7732fi
7733
7734else
7735 ac_cv_path_EGREP=$EGREP
7736fi
7737
7738
7739 fi
7740fi
7741{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7742echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7743 EGREP="$ac_cv_path_EGREP"
7744
7745
7746{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7747echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7748if test "${ac_cv_header_stdc+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751 cat >conftest.$ac_ext <<_ACEOF
7752/* confdefs.h. */
7753_ACEOF
7754cat confdefs.h >>conftest.$ac_ext
7755cat >>conftest.$ac_ext <<_ACEOF
7756/* end confdefs.h. */
7757#include <stdlib.h>
7758#include <stdarg.h>
7759#include <string.h>
7760#include <float.h>
7761
7762int
7763main ()
7764{
7765
7766 ;
7767 return 0;
7768}
7769_ACEOF
7770rm -f conftest.$ac_objext
7771if { (ac_try="$ac_compile"
7772case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_compile") 2>conftest.er1
7778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest.$ac_objext'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798esac
7799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 ac_cv_header_stdc=yes
7805else
7806 echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 ac_cv_header_stdc=no
7810fi
7811
7812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813
7814if test $ac_cv_header_stdc = yes; then
7815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7816 cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h. */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
7821/* end confdefs.h. */
7822#include <string.h>
7823
7824_ACEOF
7825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826 $EGREP "memchr" >/dev/null 2>&1; then
7827 :
7828else
7829 ac_cv_header_stdc=no
7830fi
7831rm -f conftest*
7832
7833fi
7834
7835if test $ac_cv_header_stdc = yes; then
7836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7837 cat >conftest.$ac_ext <<_ACEOF
7838/* confdefs.h. */
7839_ACEOF
7840cat confdefs.h >>conftest.$ac_ext
7841cat >>conftest.$ac_ext <<_ACEOF
7842/* end confdefs.h. */
7843#include <stdlib.h>
7844
7845_ACEOF
7846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7847 $EGREP "free" >/dev/null 2>&1; then
7848 :
7849else
7850 ac_cv_header_stdc=no
7851fi
7852rm -f conftest*
7853
7854fi
7855
7856if test $ac_cv_header_stdc = yes; then
7857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7858 if test "$cross_compiling" = yes; then
7859 :
7860else
7861 cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h. */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */
7867#include <ctype.h>
7868#include <stdlib.h>
7869#if ((' ' & 0x0FF) == 0x020)
7870# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7871# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7872#else
7873# define ISLOWER(c) \
7874 (('a' <= (c) && (c) <= 'i') \
7875 || ('j' <= (c) && (c) <= 'r') \
7876 || ('s' <= (c) && (c) <= 'z'))
7877# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7878#endif
7879
7880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7881int
7882main ()
7883{
7884 int i;
7885 for (i = 0; i < 256; i++)
7886 if (XOR (islower (i), ISLOWER (i))
7887 || toupper (i) != TOUPPER (i))
7888 return 2;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest$ac_exeext
7893if { (ac_try="$ac_link"
7894case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897esac
7898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_link") 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7903 { (case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906esac
7907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_try") 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 :
7913else
7914 echo "$as_me: program exited with status $ac_status" >&5
7915echo "$as_me: failed program was:" >&5
7916sed 's/^/| /' conftest.$ac_ext >&5
7917
7918( exit $ac_status )
7919ac_cv_header_stdc=no
7920fi
7921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7922fi
7923
7924
7925fi
7926fi
7927{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7928echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7929if test $ac_cv_header_stdc = yes; then
7930
7931cat >>confdefs.h <<\_ACEOF
7932#define STDC_HEADERS 1
7933_ACEOF
7934
7935fi
7936
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007937# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7948 inttypes.h stdint.h unistd.h
7949do
7950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 cat >conftest.$ac_ext <<_ACEOF
7957/* confdefs.h. */
7958_ACEOF
7959cat confdefs.h >>conftest.$ac_ext
7960cat >>conftest.$ac_ext <<_ACEOF
7961/* end confdefs.h. */
7962$ac_includes_default
7963
7964#include <$ac_header>
7965_ACEOF
7966rm -f conftest.$ac_objext
7967if { (ac_try="$ac_compile"
7968case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971esac
7972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_compile") 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7981 { (case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7984esac
7985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986 (eval "$ac_try") 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest.$ac_objext'
7991 { (case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7994esac
7995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_try") 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
8000 eval "$as_ac_Header=yes"
8001else
8002 echo "$as_me: failed program was:" >&5
8003sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 eval "$as_ac_Header=no"
8006fi
8007
8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009fi
8010ac_res=`eval echo '${'$as_ac_Header'}'`
8011 { echo "$as_me:$LINENO: result: $ac_res" >&5
8012echo "${ECHO_T}$ac_res" >&6; }
8013if test `eval echo '${'$as_ac_Header'}'` = yes; then
8014 cat >>confdefs.h <<_ACEOF
8015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8016_ACEOF
8017
8018fi
8019
8020done
8021
8022
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008023
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008024for ac_header in errno.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008025do
8026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032fi
8033ac_res=`eval echo '${'$as_ac_Header'}'`
8034 { echo "$as_me:$LINENO: result: $ac_res" >&5
8035echo "${ECHO_T}$ac_res" >&6; }
8036else
8037 # Is the header compilable?
8038{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8039echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8040cat >conftest.$ac_ext <<_ACEOF
8041/* confdefs.h. */
8042_ACEOF
8043cat confdefs.h >>conftest.$ac_ext
8044cat >>conftest.$ac_ext <<_ACEOF
8045/* end confdefs.h. */
8046$ac_includes_default
8047#include <$ac_header>
8048_ACEOF
8049rm -f conftest.$ac_objext
8050if { (ac_try="$ac_compile"
8051case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054esac
8055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8064 { (case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
8068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_try") 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; } &&
8073 { ac_try='test -s conftest.$ac_objext'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077esac
8078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 ac_header_compiler=yes
8084else
8085 echo "$as_me: failed program was:" >&5
8086sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 ac_header_compiler=no
8089fi
8090
8091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8093echo "${ECHO_T}$ac_header_compiler" >&6; }
8094
8095# Is the header present?
8096{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8098cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h. */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h. */
8104#include <$ac_header>
8105_ACEOF
8106if { (ac_try="$ac_cpp conftest.$ac_ext"
8107case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110esac
8111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } >/dev/null; then
8119 if test -s conftest.err; then
8120 ac_cpp_err=$ac_c_preproc_warn_flag
8121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8122 else
8123 ac_cpp_err=
8124 fi
8125else
8126 ac_cpp_err=yes
8127fi
8128if test -z "$ac_cpp_err"; then
8129 ac_header_preproc=yes
8130else
8131 echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 ac_header_preproc=no
8135fi
8136
8137rm -f conftest.err conftest.$ac_ext
8138{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8139echo "${ECHO_T}$ac_header_preproc" >&6; }
8140
8141# So? What about this header?
8142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8143 yes:no: )
8144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8148 ac_header_preproc=yes
8149 ;;
8150 no:yes:* )
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8163 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +00008164## ------------------------------------ ##
8165## Report this to http://llvm.org/bugs/ ##
8166## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008167_ASBOX
8168 ) | sed "s/^/$as_me: WARNING: /" >&2
8169 ;;
8170esac
8171{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 eval "$as_ac_Header=\$ac_header_preproc"
8177fi
8178ac_res=`eval echo '${'$as_ac_Header'}'`
8179 { echo "$as_me:$LINENO: result: $ac_res" >&5
8180echo "${ECHO_T}$ac_res" >&6; }
8181
8182fi
8183if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00008184 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +00008186_ACEOF
8187
8188fi
8189
8190done
8191
8192
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008193case "$llvm_cv_os_type" in
8194 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8195 Darwin) llvm_shlib_ext=.dylib ;;
8196 *) llvm_shlib_ext=.so ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008197esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008198
Reid Spencera40c6872004-11-29 12:29:58 +00008199
8200cat >>confdefs.h <<_ACEOF
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008201#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
Reid Spencera40c6872004-11-29 12:29:58 +00008202_ACEOF
8203
8204
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008205{ echo "$as_me:$LINENO: checking tool compatibility" >&5
8206echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00008207
Reid Spencerca06c8e2004-12-08 23:07:27 +00008208ICC=no
8209IXX=no
8210case $CC in
8211 icc*|icpc*)
8212 ICC=yes
8213 IXX=yes
8214 ;;
8215 *)
8216 ;;
8217esac
8218
Duraid Madina8604de82006-02-15 07:57:42 +00008219if test "$GCC" != "yes" && test "$ICC" != "yes"
8220then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008221 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8222echo "$as_me: error: gcc|icc required but not found" >&2;}
8223 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +00008224fi
8225
8226if test "$GXX" != "yes" && test "$IXX" != "yes"
8227then
Eric Christopher8d842da2010-12-08 02:02:14 +00008228 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8229echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008230 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +00008231fi
8232
Reid Spencerca06c8e2004-12-08 23:07:27 +00008233if test "$GCC" = "yes"
8234then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008235 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +00008236
8237 /* confdefs.h. */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
8241/* end confdefs.h. */
8242
8243 #if !defined(__GNUC__) || __GNUC__ < 3
8244 #error Unsupported GCC version
8245 #endif
8246
Chris Lattnere115fb52008-02-05 19:43:53 +00008247
8248_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008249rm -f conftest.$ac_objext
8250if { (ac_try="$ac_compile"
8251case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_try") 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_try") 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 :
Chris Lattnere115fb52008-02-05 19:43:53 +00008284else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008285 echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8289echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8290 { (exit 1); exit 1; }; }
Chris Lattnere115fb52008-02-05 19:43:53 +00008291fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008292
Chris Lattnere115fb52008-02-05 19:43:53 +00008293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00008294fi
8295
8296if test -z "$llvm_cv_gnu_make_command"
8297then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008298 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8299echo "$as_me: error: GNU Make required but not found" >&2;}
8300 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00008301fi
8302
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008303{ echo "$as_me:$LINENO: result: ok" >&5
8304echo "${ECHO_T}ok" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00008305
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008306{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
8307echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithf89ffcd2013-02-08 22:55:10 +00008308NO_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 +00008309
Richard Smithf89ffcd2013-02-08 22:55:10 +00008310NO_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 +00008311
Rafael Espindola42e94d12012-02-28 23:32:06 +00008312COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8313
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008314
8315NO_UNINITIALIZED=
8316NO_MAYBE_UNINITIALIZED=
David Greene9ff8d472013-01-09 22:11:13 +00008317if test "$GXX" = "yes"
8318then
Richard Smithf89ffcd2013-02-08 22:55:10 +00008319 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 +00008320
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008321 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greene9ff8d472013-01-09 22:11:13 +00008322 then
Richard Smithf89ffcd2013-02-08 22:55:10 +00008323 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +00008324
David Greene9ff8d472013-01-09 22:11:13 +00008325 fi
David Greene9ff8d472013-01-09 22:11:13 +00008326fi
Eric Christopher65ec83b2014-11-05 00:35:15 +00008327
8328no_comment=
8329llvm_cv_old_cxxflags="$CXXFLAGS"
8330CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8331cat >conftest.$ac_ext <<_ACEOF
8332
8333 /* confdefs.h. */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h. */
8338// Comment \o\
8339// Another comment
8340int main() { return 0; }
8341
8342
8343_ACEOF
8344rm -f conftest.$ac_objext
8345if { (ac_try="$ac_compile"
8346case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349esac
8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378
8379 no_comment=-Wno-comment
8380
8381else
8382 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5
8384
8385
8386fi
8387
8388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389NO_COMMENT=$no_comment
8390
8391CXXFLAGS="$llvm_cv_old_cxxflags"
8392
8393{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8394echo "${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 +00008395
Julien Lerougeb614dd32009-10-26 20:00:35 +00008396
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008397# Check whether --with-python was given.
8398if test "${with_python+set}" = set; then
8399 withval=$with_python; PYTHON="$withval"
8400fi
8401
8402
8403if test -n "$PYTHON" && test -x "$PYTHON" ; then
8404 { echo "$as_me:$LINENO: checking for python" >&5
8405echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8406 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8407echo "${ECHO_T}user defined: $with_python" >&6; }
8408else
8409 if test -n "$PYTHON" ; then
8410 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8411echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8412 fi
8413
Rafael Espindola21a400852014-12-12 15:29:31 +00008414 # Extract the first word of "python python2 python27", so it can be a program name with args.
8415set dummy python python2 python27; ac_word=$2
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418if test "${ac_cv_path_PYTHON+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421 case $PYTHON in
8422 [\\/]* | ?:[\\/]*)
8423 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8424 ;;
8425 *)
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427for as_dir in $PATH
8428do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8436 fi
8437done
8438done
8439IFS=$as_save_IFS
8440
8441 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8442echo "${ECHO_T}not found" >&6; }
Rafael Espindola21a400852014-12-12 15:29:31 +00008443 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8444echo "$as_me: error: could not find python 2.7 or higher" >&2;}
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008445 { (exit 1); exit 1; }; }"
8446 ;;
8447esac
8448fi
8449PYTHON=$ac_cv_path_PYTHON
8450if test -n "$PYTHON"; then
8451 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8452echo "${ECHO_T}$PYTHON" >&6; }
8453else
8454 { echo "$as_me:$LINENO: result: no" >&5
8455echo "${ECHO_T}no" >&6; }
8456fi
8457
8458
8459fi
8460
Rafael Espindola21a400852014-12-12 15:29:31 +00008461{ echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8462echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
Bill Wendling58463e4e82013-10-12 08:42:59 +00008463ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008464ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8465ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8466ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
Bill Wendling58463e4e82013-10-12 08:42:59 +00008467if test "$ac_python_version_major" -gt "2" || \
8468 (test "$ac_python_version_major" -eq "2" && \
Rafael Espindola21a400852014-12-12 15:29:31 +00008469 test "$ac_python_version_minor" -ge "7") ; then
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008470 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8471echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8472else
8473 { echo "$as_me:$LINENO: result: not found" >&5
8474echo "${ECHO_T}not found" >&6; }
Rafael Espindola21a400852014-12-12 15:29:31 +00008475 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008476See \`config.log' for more details." >&5
Rafael Espindola21a400852014-12-12 15:29:31 +00008477echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008478See \`config.log' for more details." >&2;}
8479 { (exit 1); exit 1; }; }
8480fi
8481
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00008482
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008483
8484{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
8485echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8486if test "${ac_cv_lib_m_sin+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerec4a7f522006-01-19 08:31:08 +00008488else
8489 ac_check_lib_save_LIBS=$LIBS
8490LIBS="-lm $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008491cat >conftest.$ac_ext <<_ACEOF
8492/* confdefs.h. */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerec4a7f522006-01-19 08:31:08 +00008496/* end confdefs.h. */
8497
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008498/* Override any GCC internal prototype to avoid an error.
8499 Use char because int might match the return type of a GCC
8500 builtin and then its argument prototype would still apply. */
Reid Spencerec4a7f522006-01-19 08:31:08 +00008501#ifdef __cplusplus
8502extern "C"
8503#endif
Reid Spencerec4a7f522006-01-19 08:31:08 +00008504char sin ();
8505int
8506main ()
8507{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008508return sin ();
Reid Spencerec4a7f522006-01-19 08:31:08 +00008509 ;
8510 return 0;
8511}
8512_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008513rm -f conftest.$ac_objext conftest$ac_exeext
8514if { (ac_try="$ac_link"
8515case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518esac
8519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_try") 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
Reid Spencerec4a7f522006-01-19 08:31:08 +00008547 ac_cv_lib_m_sin=yes
8548else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008549 echo "$as_me: failed program was:" >&5
8550sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 ac_cv_lib_m_sin=no
Reid Spencerec4a7f522006-01-19 08:31:08 +00008553fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008554
Bill Wendling02b47d92009-04-18 11:20:33 +00008555rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008556 conftest$ac_exeext conftest.$ac_ext
Reid Spencerec4a7f522006-01-19 08:31:08 +00008557LIBS=$ac_check_lib_save_LIBS
8558fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008559{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8560echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8561if test $ac_cv_lib_m_sin = yes; then
Reid Spencerec4a7f522006-01-19 08:31:08 +00008562 cat >>confdefs.h <<_ACEOF
8563#define HAVE_LIBM 1
8564_ACEOF
8565
8566 LIBS="-lm $LIBS"
8567
8568fi
8569
Jeff Cohenc5e5b272007-01-12 18:22:38 +00008570if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008571
8572{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8573echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8574if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +00008576else
8577 ac_check_lib_save_LIBS=$LIBS
8578LIBS="-limagehlp $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
Reid Spencera16b9862006-06-01 16:55:59 +00008584/* end confdefs.h. */
8585
Reid Spencer187b4ad2006-06-01 19:03:21 +00008586
Reid Spencera16b9862006-06-01 16:55:59 +00008587int
8588main ()
8589{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008590return main ();
Reid Spencera16b9862006-06-01 16:55:59 +00008591 ;
8592 return 0;
8593}
8594_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008595rm -f conftest.$ac_objext conftest$ac_exeext
8596if { (ac_try="$ac_link"
8597case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600esac
8601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_link") 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610 { (case "(($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_try") 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623esac
8624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +00008629 ac_cv_lib_imagehlp_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +00008630else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008631 echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634 ac_cv_lib_imagehlp_main=no
Reid Spencera16b9862006-06-01 16:55:59 +00008635fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008636
Bill Wendling02b47d92009-04-18 11:20:33 +00008637rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008638 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +00008639LIBS=$ac_check_lib_save_LIBS
8640fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008641{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8642echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8643if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +00008644 cat >>confdefs.h <<_ACEOF
8645#define HAVE_LIBIMAGEHLP 1
8646_ACEOF
8647
8648 LIBS="-limagehlp $LIBS"
8649
8650fi
8651
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008652
8653{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8654echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8655if test "${ac_cv_lib_psapi_main+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +00008657else
8658 ac_check_lib_save_LIBS=$LIBS
8659LIBS="-lpsapi $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008660cat >conftest.$ac_ext <<_ACEOF
8661/* confdefs.h. */
8662_ACEOF
8663cat confdefs.h >>conftest.$ac_ext
8664cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +00008665/* end confdefs.h. */
8666
Reid Spencer187b4ad2006-06-01 19:03:21 +00008667
Reid Spencera16b9862006-06-01 16:55:59 +00008668int
8669main ()
8670{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008671return main ();
Reid Spencera16b9862006-06-01 16:55:59 +00008672 ;
8673 return 0;
8674}
8675_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008676rm -f conftest.$ac_objext conftest$ac_exeext
8677if { (ac_try="$ac_link"
8678case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681esac
8682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_link") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8691 { (case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694esac
8695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_try") 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest$ac_exeext'
8701 { (case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8704esac
8705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_try") 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +00008710 ac_cv_lib_psapi_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +00008711else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008712 echo "$as_me: failed program was:" >&5
8713sed 's/^/| /' conftest.$ac_ext >&5
8714
8715 ac_cv_lib_psapi_main=no
Reid Spencera16b9862006-06-01 16:55:59 +00008716fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008717
Bill Wendling02b47d92009-04-18 11:20:33 +00008718rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008719 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +00008720LIBS=$ac_check_lib_save_LIBS
8721fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008722{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8723echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8724if test $ac_cv_lib_psapi_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +00008725 cat >>confdefs.h <<_ACEOF
8726#define HAVE_LIBPSAPI 1
8727_ACEOF
8728
8729 LIBS="-lpsapi $LIBS"
8730
8731fi
8732
David Majnemer61eae2e2013-10-07 01:00:07 +00008733
8734{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8735echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8736if test "${ac_cv_lib_shell32_main+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8738else
8739 ac_check_lib_save_LIBS=$LIBS
8740LIBS="-lshell32 $LIBS"
8741cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h. */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
8746/* end confdefs.h. */
8747
8748
8749int
8750main ()
8751{
8752return main ();
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext
8758if { (ac_try="$ac_link"
8759case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762esac
8763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_link") 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8775esac
8776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_try") 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest$ac_exeext'
8782 { (case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785esac
8786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_try") 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_lib_shell32_main=yes
8792else
8793 echo "$as_me: failed program was:" >&5
8794sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 ac_cv_lib_shell32_main=no
8797fi
8798
8799rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8801LIBS=$ac_check_lib_save_LIBS
8802fi
8803{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8804echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8805if test $ac_cv_lib_shell32_main = yes; then
8806 cat >>confdefs.h <<_ACEOF
8807#define HAVE_LIBSHELL32 1
8808_ACEOF
8809
8810 LIBS="-lshell32 $LIBS"
8811
8812fi
8813
Reid Spencera16b9862006-06-01 16:55:59 +00008814fi
Reid Spencer1aa7d052005-07-12 15:24:20 +00008815
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008816{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8817echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8818if test "${ac_cv_search_dlopen+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00008820else
8821 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h. */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00008827/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00008828
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008829/* Override any GCC internal prototype to avoid an error.
8830 Use char because int might match the return type of a GCC
8831 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +00008832#ifdef __cplusplus
8833extern "C"
8834#endif
John Criswell3ef61af2003-06-30 21:59:07 +00008835char dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +00008836int
8837main ()
8838{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008839return dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +00008840 ;
8841 return 0;
8842}
8843_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008844for ac_lib in '' dl; do
8845 if test -z "$ac_lib"; then
8846 ac_res="none required"
8847 else
8848 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +00008849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008850 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008851 rm -f conftest.$ac_objext conftest$ac_exeext
8852if { (ac_try="$ac_link"
8853case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8856esac
8857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_link") 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869esac
8870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879esac
8880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008885 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008886else
8887 echo "$as_me: failed program was:" >&5
8888sed 's/^/| /' conftest.$ac_ext >&5
8889
8890
John Criswell3ef61af2003-06-30 21:59:07 +00008891fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008892
Bill Wendling02b47d92009-04-18 11:20:33 +00008893rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008894 conftest$ac_exeext
8895 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008896 break
John Criswell3ef61af2003-06-30 21:59:07 +00008897fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008898done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008899if test "${ac_cv_search_dlopen+set}" = set; then
8900 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008901else
8902 ac_cv_search_dlopen=no
8903fi
8904rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00008905LIBS=$ac_func_search_save_LIBS
8906fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008907{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8908echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008909ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008910if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +00008912
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00008913
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008914cat >>confdefs.h <<\_ACEOF
8915#define HAVE_DLOPEN 1
8916_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00008917
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00008918HAVE_DLOPEN='1'
8919
8920
John Criswell3ef61af2003-06-30 21:59:07 +00008921else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008922 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8923echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00008924fi
8925
8926
Chandler Carruthef7f9682013-01-04 23:19:55 +00008927{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8928echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8929if test "${ac_cv_search_clock_gettime+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931else
8932 ac_func_search_save_LIBS=$LIBS
8933cat >conftest.$ac_ext <<_ACEOF
8934/* confdefs.h. */
8935_ACEOF
8936cat confdefs.h >>conftest.$ac_ext
8937cat >>conftest.$ac_ext <<_ACEOF
8938/* end confdefs.h. */
8939
8940/* Override any GCC internal prototype to avoid an error.
8941 Use char because int might match the return type of a GCC
8942 builtin and then its argument prototype would still apply. */
8943#ifdef __cplusplus
8944extern "C"
8945#endif
8946char clock_gettime ();
8947int
8948main ()
8949{
8950return clock_gettime ();
8951 ;
8952 return 0;
8953}
8954_ACEOF
8955for ac_lib in '' rt; do
8956 if test -z "$ac_lib"; then
8957 ac_res="none required"
8958 else
8959 ac_res=-l$ac_lib
8960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8961 fi
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (ac_try="$ac_link"
8964case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
8968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_link") 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8977 { (case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980esac
8981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_try") 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8990esac
8991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_try") 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_search_clock_gettime=$ac_res
8997else
8998 echo "$as_me: failed program was:" >&5
8999sed 's/^/| /' conftest.$ac_ext >&5
9000
9001
9002fi
9003
9004rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext
9006 if test "${ac_cv_search_clock_gettime+set}" = set; then
9007 break
9008fi
9009done
9010if test "${ac_cv_search_clock_gettime+set}" = set; then
9011 :
9012else
9013 ac_cv_search_clock_gettime=no
9014fi
9015rm conftest.$ac_ext
9016LIBS=$ac_func_search_save_LIBS
9017fi
9018{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9019echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9020ac_res=$ac_cv_search_clock_gettime
9021if test "$ac_res" != no; then
9022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9023
Chandler Carruthef7f9682013-01-04 23:19:55 +00009024fi
9025
9026
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009027if test "$llvm_cv_enable_terminfo" = "yes" ; then
9028 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9029echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9030if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009031 echo $ECHO_N "(cached) $ECHO_C" >&6
9032else
9033 ac_func_search_save_LIBS=$LIBS
9034cat >conftest.$ac_ext <<_ACEOF
9035/* confdefs.h. */
9036_ACEOF
9037cat confdefs.h >>conftest.$ac_ext
9038cat >>conftest.$ac_ext <<_ACEOF
9039/* end confdefs.h. */
9040
9041/* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
9044#ifdef __cplusplus
9045extern "C"
9046#endif
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009047char setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009048int
9049main ()
9050{
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009051return setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009052 ;
9053 return 0;
9054}
9055_ACEOF
Joerg Sonnenberger4e5a3992013-08-17 11:06:00 +00009056for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009057 if test -z "$ac_lib"; then
9058 ac_res="none required"
9059 else
9060 ac_res=-l$ac_lib
9061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9062 fi
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064if { (ac_try="$ac_link"
9065case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068esac
9069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_link") 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9078 { (case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081esac
9082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_try") 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest$ac_exeext'
9088 { (case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9091esac
9092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_try") 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009097 ac_cv_search_setupterm=$ac_res
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009098else
9099 echo "$as_me: failed program was:" >&5
9100sed 's/^/| /' conftest.$ac_ext >&5
9101
9102
9103fi
9104
9105rm -f core conftest.err conftest.$ac_objext \
9106 conftest$ac_exeext
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009107 if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009108 break
9109fi
9110done
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009111if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009112 :
9113else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009114 ac_cv_search_setupterm=no
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009115fi
9116rm conftest.$ac_ext
9117LIBS=$ac_func_search_save_LIBS
9118fi
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009119{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9120echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9121ac_res=$ac_cv_search_setupterm
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009122if test "$ac_res" != no; then
9123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9124
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009125
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009126cat >>confdefs.h <<\_ACEOF
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009127#define HAVE_TERMINFO 1
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009128_ACEOF
9129
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009130HAVE_TERMINFO='1'
9131
9132
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009133fi
9134
9135fi
9136
Peter Collingbournec7d437c2014-01-31 23:46:14 +00009137if test "$llvm_cv_enable_libedit" = "yes" ; then
9138 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9139echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9140if test "${ac_cv_search_el_init+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9142else
9143 ac_func_search_save_LIBS=$LIBS
9144cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150
9151/* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9154#ifdef __cplusplus
9155extern "C"
9156#endif
9157char el_init ();
9158int
9159main ()
9160{
9161return el_init ();
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166for ac_lib in '' edit; do
9167 if test -z "$ac_lib"; then
9168 ac_res="none required"
9169 else
9170 ac_res=-l$ac_lib
9171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9172 fi
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174if { (ac_try="$ac_link"
9175case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178esac
9179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_link") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9188 { (case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9191esac
9192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_try") 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201esac
9202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_try") 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 ac_cv_search_el_init=$ac_res
9208else
9209 echo "$as_me: failed program was:" >&5
9210sed 's/^/| /' conftest.$ac_ext >&5
9211
9212
9213fi
9214
9215rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext
9217 if test "${ac_cv_search_el_init+set}" = set; then
9218 break
9219fi
9220done
9221if test "${ac_cv_search_el_init+set}" = set; then
9222 :
9223else
9224 ac_cv_search_el_init=no
9225fi
9226rm conftest.$ac_ext
9227LIBS=$ac_func_search_save_LIBS
9228fi
9229{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9230echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9231ac_res=$ac_cv_search_el_init
9232if test "$ac_res" != no; then
9233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9234
9235cat >>confdefs.h <<\_ACEOF
9236#define HAVE_LIBEDIT 1
9237_ACEOF
9238
9239fi
9240
9241fi
9242
Nick Lewycky86679902009-06-06 06:25:09 +00009243if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009244 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9245echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9246if test "${ac_cv_search_ffi_call+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky11e92142009-02-04 06:27:44 +00009248else
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009249 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009250cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h. */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +00009255/* end confdefs.h. */
9256
9257/* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9260#ifdef __cplusplus
9261extern "C"
9262#endif
9263char ffi_call ();
9264int
9265main ()
9266{
9267return ffi_call ();
9268 ;
9269 return 0;
9270}
9271_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009272for ac_lib in '' ffi; do
9273 if test -z "$ac_lib"; then
9274 ac_res="none required"
9275 else
9276 ac_res=-l$ac_lib
9277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9278 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009279 rm -f conftest.$ac_objext conftest$ac_exeext
9280if { (ac_try="$ac_link"
9281case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284esac
9285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_link") 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9294 { (case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9297esac
9298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_try") 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; } &&
9303 { ac_try='test -s conftest$ac_exeext'
9304 { (case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9307esac
9308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_try") 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009313 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009314else
9315 echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
9318
Nick Lewycky11e92142009-02-04 06:27:44 +00009319fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009320
Bill Wendling02b47d92009-04-18 11:20:33 +00009321rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009322 conftest$ac_exeext
9323 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009324 break
Nick Lewycky11e92142009-02-04 06:27:44 +00009325fi
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009326done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009327if test "${ac_cv_search_ffi_call+set}" = set; then
9328 :
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009329else
9330 ac_cv_search_ffi_call=no
9331fi
9332rm conftest.$ac_ext
9333LIBS=$ac_func_search_save_LIBS
9334fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009335{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9336echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009337ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009338if test "$ac_res" != no; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9340
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009341cat >>confdefs.h <<\_ACEOF
9342#define HAVE_FFI_CALL 1
9343_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009344
Nick Lewycky11e92142009-02-04 06:27:44 +00009345else
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00009346 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9347echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9348 { (exit 1); exit 1; }; }
Nick Lewycky11e92142009-02-04 06:27:44 +00009349fi
9350
Nick Lewycky86679902009-06-06 06:25:09 +00009351fi
Nick Lewycky11e92142009-02-04 06:27:44 +00009352
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009353{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9354echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9355if test "${ac_cv_search_mallinfo+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00009357else
9358 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009359cat >conftest.$ac_ext <<_ACEOF
9360/* confdefs.h. */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00009364/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00009365
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009366/* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +00009369#ifdef __cplusplus
9370extern "C"
9371#endif
John Criswell3ef61af2003-06-30 21:59:07 +00009372char mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +00009373int
9374main ()
9375{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009376return mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +00009377 ;
9378 return 0;
9379}
9380_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009381for ac_lib in '' malloc; do
9382 if test -z "$ac_lib"; then
9383 ac_res="none required"
9384 else
9385 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +00009386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009387 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009388 rm -f conftest.$ac_objext conftest$ac_exeext
9389if { (ac_try="$ac_link"
9390case "(($ac_try" in
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9393esac
9394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_link") 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9403 { (case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406esac
9407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_try") 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest$ac_exeext'
9413 { (case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9416esac
9417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_try") 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009422 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009423else
9424 echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
9427
John Criswell3ef61af2003-06-30 21:59:07 +00009428fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009429
Bill Wendling02b47d92009-04-18 11:20:33 +00009430rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009431 conftest$ac_exeext
9432 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009433 break
John Criswell3ef61af2003-06-30 21:59:07 +00009434fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009435done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009436if test "${ac_cv_search_mallinfo+set}" = set; then
9437 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009438else
9439 ac_cv_search_mallinfo=no
9440fi
9441rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00009442LIBS=$ac_func_search_save_LIBS
9443fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009444{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9445echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009446ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009447if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +00009449
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009450cat >>confdefs.h <<\_ACEOF
9451#define HAVE_MALLINFO 1
9452_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00009453
9454fi
9455
9456
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00009457if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009458
9459{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9460echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9461if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer1aa7d052005-07-12 15:24:20 +00009463else
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009464 ac_check_lib_save_LIBS=$LIBS
9465LIBS="-lpthread $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009466cat >conftest.$ac_ext <<_ACEOF
9467/* confdefs.h. */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +00009471/* end confdefs.h. */
9472
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009473/* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
Reid Spencer1aa7d052005-07-12 15:24:20 +00009476#ifdef __cplusplus
9477extern "C"
9478#endif
Reid Spencer1aa7d052005-07-12 15:24:20 +00009479char pthread_mutex_init ();
9480int
9481main ()
9482{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009483return pthread_mutex_init ();
Reid Spencer1aa7d052005-07-12 15:24:20 +00009484 ;
9485 return 0;
9486}
9487_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009488rm -f conftest.$ac_objext conftest$ac_exeext
9489if { (ac_try="$ac_link"
9490case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493esac
9494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503 { (case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_try") 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516esac
9517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009522 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer1aa7d052005-07-12 15:24:20 +00009523else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009524 echo "$as_me: failed program was:" >&5
9525sed 's/^/| /' conftest.$ac_ext >&5
9526
9527 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer1aa7d052005-07-12 15:24:20 +00009528fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009529
Bill Wendling02b47d92009-04-18 11:20:33 +00009530rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009531 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009532LIBS=$ac_check_lib_save_LIBS
Reid Spencer1aa7d052005-07-12 15:24:20 +00009533fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009534{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9535echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9536if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009537 cat >>confdefs.h <<_ACEOF
9538#define HAVE_LIBPTHREAD 1
Edward O'Callaghana5314b82009-10-13 01:01:38 +00009539_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +00009540
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009541 LIBS="-lpthread $LIBS"
9542
Reid Spencer1aa7d052005-07-12 15:24:20 +00009543fi
9544
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009545 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9546echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9547if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009549else
9550 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009551cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009556/* end confdefs.h. */
9557
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009558/* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009561#ifdef __cplusplus
9562extern "C"
9563#endif
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009564char pthread_mutex_lock ();
9565int
9566main ()
9567{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009568return pthread_mutex_lock ();
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009569 ;
9570 return 0;
9571}
9572_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009573for ac_lib in '' pthread; do
9574 if test -z "$ac_lib"; then
9575 ac_res="none required"
9576 else
9577 ac_res=-l$ac_lib
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009579 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009580 rm -f conftest.$ac_objext conftest$ac_exeext
9581if { (ac_try="$ac_link"
9582case "(($ac_try" in
9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584 *) ac_try_echo=$ac_try;;
9585esac
9586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 (eval "$ac_link") 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9595 { (case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598esac
9599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_try") 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9608esac
9609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_try") 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009614 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009615else
9616 echo "$as_me: failed program was:" >&5
9617sed 's/^/| /' conftest.$ac_ext >&5
9618
9619
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009620fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009621
Bill Wendling02b47d92009-04-18 11:20:33 +00009622rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009623 conftest$ac_exeext
9624 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009625 break
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009626fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009627done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009628if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9629 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009630else
9631 ac_cv_search_pthread_mutex_lock=no
9632fi
9633rm conftest.$ac_ext
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009634LIBS=$ac_func_search_save_LIBS
9635fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009636{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9637echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009638ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009639if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009641
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009642cat >>confdefs.h <<\_ACEOF
9643#define HAVE_PTHREAD_MUTEX_LOCK 1
9644_ACEOF
John Criswell71c8d5e2004-09-24 21:19:06 +00009645
9646fi
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009647
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009648 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9649echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9650if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersona149e222009-06-16 18:20:20 +00009652else
9653 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009654cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +00009659/* end confdefs.h. */
9660
9661/* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9664#ifdef __cplusplus
9665extern "C"
9666#endif
9667char pthread_rwlock_init ();
9668int
9669main ()
9670{
9671return pthread_rwlock_init ();
9672 ;
9673 return 0;
9674}
9675_ACEOF
9676for ac_lib in '' pthread; do
9677 if test -z "$ac_lib"; then
9678 ac_res="none required"
9679 else
9680 ac_res=-l$ac_lib
9681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9682 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009683 rm -f conftest.$ac_objext conftest$ac_exeext
9684if { (ac_try="$ac_link"
9685case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688esac
9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
Owen Andersona149e222009-06-16 18:20:20 +00009717 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009718else
9719 echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722
Owen Andersona149e222009-06-16 18:20:20 +00009723fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009724
Owen Andersona149e222009-06-16 18:20:20 +00009725rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009726 conftest$ac_exeext
9727 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersona149e222009-06-16 18:20:20 +00009728 break
9729fi
9730done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009731if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9732 :
Owen Andersona149e222009-06-16 18:20:20 +00009733else
9734 ac_cv_search_pthread_rwlock_init=no
9735fi
9736rm conftest.$ac_ext
9737LIBS=$ac_func_search_save_LIBS
9738fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009739{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9740echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersona149e222009-06-16 18:20:20 +00009741ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009742if test "$ac_res" != no; then
Owen Andersona149e222009-06-16 18:20:20 +00009743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9744
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009745cat >>confdefs.h <<\_ACEOF
9746#define HAVE_PTHREAD_RWLOCK_INIT 1
9747_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +00009748
9749fi
9750
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009751 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9752echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9753if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson11549832009-06-25 23:10:26 +00009755else
9756 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009757cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +00009762/* end confdefs.h. */
9763
9764/* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9767#ifdef __cplusplus
9768extern "C"
9769#endif
9770char pthread_getspecific ();
9771int
9772main ()
9773{
9774return pthread_getspecific ();
9775 ;
9776 return 0;
9777}
9778_ACEOF
9779for ac_lib in '' pthread; do
9780 if test -z "$ac_lib"; then
9781 ac_res="none required"
9782 else
9783 ac_res=-l$ac_lib
9784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9785 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009786 rm -f conftest.$ac_objext conftest$ac_exeext
9787if { (ac_try="$ac_link"
9788case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791esac
9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9804esac
9805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_try") 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; } &&
9810 { ac_try='test -s conftest$ac_exeext'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814esac
9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
Owen Anderson11549832009-06-25 23:10:26 +00009820 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009821else
9822 echo "$as_me: failed program was:" >&5
9823sed 's/^/| /' conftest.$ac_ext >&5
9824
9825
Owen Anderson11549832009-06-25 23:10:26 +00009826fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009827
Owen Anderson11549832009-06-25 23:10:26 +00009828rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009829 conftest$ac_exeext
9830 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson11549832009-06-25 23:10:26 +00009831 break
9832fi
9833done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009834if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9835 :
Owen Anderson11549832009-06-25 23:10:26 +00009836else
9837 ac_cv_search_pthread_getspecific=no
9838fi
9839rm conftest.$ac_ext
9840LIBS=$ac_func_search_save_LIBS
9841fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009842{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9843echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson11549832009-06-25 23:10:26 +00009844ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009845if test "$ac_res" != no; then
Owen Anderson11549832009-06-25 23:10:26 +00009846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9847
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009848cat >>confdefs.h <<\_ACEOF
9849#define HAVE_PTHREAD_GETSPECIFIC 1
9850_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +00009851
9852fi
9853
Reid Spencerf85fabeb2005-08-24 10:07:20 +00009854fi
Brian Gaeked3de6c02004-02-23 21:30:37 +00009855
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00009856if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9857
9858{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9859echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9860if test "${ac_cv_lib_z_compress2+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 ac_check_lib_save_LIBS=$LIBS
9864LIBS="-lz $LIBS"
9865cat >conftest.$ac_ext <<_ACEOF
9866/* confdefs.h. */
9867_ACEOF
9868cat confdefs.h >>conftest.$ac_ext
9869cat >>conftest.$ac_ext <<_ACEOF
9870/* end confdefs.h. */
9871
9872/* Override any GCC internal prototype to avoid an error.
9873 Use char because int might match the return type of a GCC
9874 builtin and then its argument prototype would still apply. */
9875#ifdef __cplusplus
9876extern "C"
9877#endif
9878char compress2 ();
9879int
9880main ()
9881{
9882return compress2 ();
9883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
9888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902 { (case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905esac
9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_try") 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_lib_z_compress2=yes
9922else
9923 echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
9926 ac_cv_lib_z_compress2=no
9927fi
9928
9929rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931LIBS=$ac_check_lib_save_LIBS
9932fi
9933{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9934echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9935if test $ac_cv_lib_z_compress2 = yes; then
9936 cat >>confdefs.h <<_ACEOF
9937#define HAVE_LIBZ 1
9938_ACEOF
9939
9940 LIBS="-lz $LIBS"
9941
9942fi
9943
9944fi
9945
Reid Spencer0241e382004-11-25 04:51:04 +00009946
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009947# Check whether --with-oprofile was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009948if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009949 withval=$with_oprofile;
9950 USE_OPROFILE=1
9951
9952 case "$withval" in
9953 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009954 no) llvm_cv_oppath=
9955 USE_OPROFILE=0
9956 ;;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009957 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher46342fe2012-08-03 17:45:31 +00009958 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00009959 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +00009960 case $llvm_cv_os_type in
9961 Linux)
9962 if test -n "$llvm_cv_oppath" ; then
9963 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9964 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009965echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9966if test "${ac_cv_search_bfd_init+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009968else
9969 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009970cat >conftest.$ac_ext <<_ACEOF
9971/* confdefs.h. */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin2da72312009-10-07 23:22:42 +00009975/* end confdefs.h. */
9976
9977/* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9980#ifdef __cplusplus
9981extern "C"
9982#endif
9983char bfd_init ();
9984int
9985main ()
9986{
9987return bfd_init ();
9988 ;
9989 return 0;
9990}
9991_ACEOF
9992for ac_lib in '' bfd; do
9993 if test -z "$ac_lib"; then
9994 ac_res="none required"
9995 else
9996 ac_res=-l$ac_lib
9997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9998 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009999 rm -f conftest.$ac_objext conftest$ac_exeext
10000if { (ac_try="$ac_link"
10001case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010033 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010034else
10035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010039fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010040
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010041rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010042 conftest$ac_exeext
10043 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010044 break
10045fi
10046done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010047if test "${ac_cv_search_bfd_init+set}" = set; then
10048 :
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010049else
10050 ac_cv_search_bfd_init=no
10051fi
10052rm conftest.$ac_ext
10053LIBS=$ac_func_search_save_LIBS
10054fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010055{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10056echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010057ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010058if test "$ac_res" != no; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10060
10061fi
10062
Eli Bendersky5262ad22012-03-13 08:33:15 +000010063 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010064echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10065if test "${ac_cv_search_op_open_agent+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010067else
10068 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010069cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h. */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010074/* end confdefs.h. */
10075
10076/* Override any GCC internal prototype to avoid an error.
10077 Use char because int might match the return type of a GCC
10078 builtin and then its argument prototype would still apply. */
10079#ifdef __cplusplus
10080extern "C"
10081#endif
10082char op_open_agent ();
10083int
10084main ()
10085{
10086return op_open_agent ();
10087 ;
10088 return 0;
10089}
10090_ACEOF
10091for ac_lib in '' opagent; do
10092 if test -z "$ac_lib"; then
10093 ac_res="none required"
10094 else
10095 ac_res=-l$ac_lib
10096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10097 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010098 rm -f conftest.$ac_objext conftest$ac_exeext
10099if { (ac_try="$ac_link"
10100case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116esac
10117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010132 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010133else
10134 echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
10137
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010138fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010139
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010140rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010141 conftest$ac_exeext
10142 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010143 break
10144fi
10145done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010146if test "${ac_cv_search_op_open_agent+set}" = set; then
10147 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010148else
10149 ac_cv_search_op_open_agent=no
10150fi
10151rm conftest.$ac_ext
10152LIBS=$ac_func_search_save_LIBS
10153fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010154{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10155echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010156ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010157if test "$ac_res" != no; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10159
10160else
10161
Eli Bendersky5262ad22012-03-13 08:33:15 +000010162 echo "Error! You need to have libopagent around."
Sylvestre Ledru1b3961c2015-02-01 14:55:43 +000010163 exit 1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010164
10165fi
10166
Eli Bendersky5262ad22012-03-13 08:33:15 +000010167 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010168 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10169echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10170if test "${ac_cv_header_opagent_h+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172fi
10173{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10174echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10175else
10176 # Is the header compilable?
10177{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
10178echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10179cat >conftest.$ac_ext <<_ACEOF
10180/* confdefs.h. */
10181_ACEOF
10182cat confdefs.h >>conftest.$ac_ext
10183cat >>conftest.$ac_ext <<_ACEOF
10184/* end confdefs.h. */
10185$ac_includes_default
10186#include <opagent.h>
10187_ACEOF
10188rm -f conftest.$ac_objext
10189if { (ac_try="$ac_compile"
10190case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193esac
10194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_compile") 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest.$ac_objext'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_header_compiler=yes
10223else
10224 echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010226
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010227 ac_header_compiler=no
10228fi
10229
10230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10232echo "${ECHO_T}$ac_header_compiler" >&6; }
10233
10234# Is the header present?
10235{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
10236echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10237cat >conftest.$ac_ext <<_ACEOF
10238/* confdefs.h. */
10239_ACEOF
10240cat confdefs.h >>conftest.$ac_ext
10241cat >>conftest.$ac_ext <<_ACEOF
10242/* end confdefs.h. */
10243#include <opagent.h>
10244_ACEOF
10245if { (ac_try="$ac_cpp conftest.$ac_ext"
10246case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249esac
10250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } >/dev/null; then
10258 if test -s conftest.err; then
10259 ac_cpp_err=$ac_c_preproc_warn_flag
10260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10261 else
10262 ac_cpp_err=
10263 fi
10264else
10265 ac_cpp_err=yes
10266fi
10267if test -z "$ac_cpp_err"; then
10268 ac_header_preproc=yes
10269else
10270 echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 ac_header_preproc=no
10274fi
10275
10276rm -f conftest.err conftest.$ac_ext
10277{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10278echo "${ECHO_T}$ac_header_preproc" >&6; }
10279
10280# So? What about this header?
10281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10282 yes:no: )
10283 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10284echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10286echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10287 ac_header_preproc=yes
10288 ;;
10289 no:yes:* )
10290 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10291echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10293echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10295echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10297echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10299echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10300 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10301echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10302 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000010303## ------------------------------------ ##
10304## Report this to http://llvm.org/bugs/ ##
10305## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010306_ASBOX
10307 ) | sed "s/^/$as_me: WARNING: /" >&2
10308 ;;
10309esac
10310{ echo "$as_me:$LINENO: checking for opagent.h" >&5
10311echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10312if test "${ac_cv_header_opagent_h+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314else
10315 ac_cv_header_opagent_h=$ac_header_preproc
10316fi
10317{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10318echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10319
10320fi
10321if test $ac_cv_header_opagent_h = yes; then
10322 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010323else
10324
Eli Bendersky5262ad22012-03-13 08:33:15 +000010325 echo "Error! You need to have opagent.h around."
Sylvestre Ledru1b3961c2015-02-01 14:55:43 +000010326 exit 1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010327
10328fi
10329
10330
Eli Bendersky5262ad22012-03-13 08:33:15 +000010331 fi ;;
10332 *)
10333 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10334echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10335 { (exit 1); exit 1; }; } ;;
10336 esac
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010337
10338else
10339
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010340 USE_OPROFILE=0
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010341
10342
10343fi
10344
10345
10346cat >>confdefs.h <<_ACEOF
Eli Bendersky5262ad22012-03-13 08:33:15 +000010347#define LLVM_USE_OPROFILE $USE_OPROFILE
10348_ACEOF
10349
10350
10351
10352# Check whether --with-intel-jitevents was given.
10353if test "${with_intel_jitevents+set}" = set; then
10354 withval=$with_intel_jitevents;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010355 case "$withval" in
10356 yes) USE_INTEL_JITEVENTS=1
10357;;
10358 no) USE_INTEL_JITEVENTS=0
10359;;
10360 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10361echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10362 { (exit 1); exit 1; }; };;
10363 esac
10364
Eli Bendersky5262ad22012-03-13 08:33:15 +000010365 case $llvm_cv_os_type in
10366 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010367 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10368echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10369 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000010370 esac
10371
Eli Bendersky5262ad22012-03-13 08:33:15 +000010372 case "$llvm_cv_target_arch" in
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010373 x86|x86_64) ;;
10374 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10375echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10376 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000010377 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000010378
10379else
10380
10381 USE_INTEL_JITEVENTS=0
10382
10383
10384fi
10385
10386
10387cat >>confdefs.h <<_ACEOF
10388#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010389_ACEOF
10390
10391
Eric Christopherc807c532012-08-03 19:47:19 +000010392for ac_prog in xml2-config
10393do
10394 # Extract the first word of "$ac_prog", so it can be a program name with args.
10395set dummy $ac_prog; ac_word=$2
10396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10398if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400else
10401 if test -n "$XML2CONFIG"; then
10402 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10403else
10404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405for as_dir in $PATH
10406do
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10411 ac_cv_prog_XML2CONFIG="$ac_prog"
10412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10414 fi
10415done
10416done
10417IFS=$as_save_IFS
10418
10419fi
10420fi
10421XML2CONFIG=$ac_cv_prog_XML2CONFIG
10422if test -n "$XML2CONFIG"; then
10423 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10424echo "${ECHO_T}$XML2CONFIG" >&6; }
10425else
10426 { echo "$as_me:$LINENO: result: no" >&5
10427echo "${ECHO_T}no" >&6; }
10428fi
10429
10430
10431 test -n "$XML2CONFIG" && break
10432done
10433
10434
10435{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10436echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10437if test "x$XML2CONFIG" = "x"; then
10438 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10439echo "${ECHO_T}xml2-config not found" >&6; }
10440else
10441 LIBXML2_INC=`$XML2CONFIG --cflags`
10442 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10443echo "${ECHO_T}$LIBXML2_INC" >&6; }
10444 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10445echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10446if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448else
10449 ac_check_lib_save_LIBS=$LIBS
10450LIBS="-lxml2 $LIBS"
10451cat >conftest.$ac_ext <<_ACEOF
10452/* confdefs.h. */
10453_ACEOF
10454cat confdefs.h >>conftest.$ac_ext
10455cat >>conftest.$ac_ext <<_ACEOF
10456/* end confdefs.h. */
10457
10458/* Override any GCC internal prototype to avoid an error.
10459 Use char because int might match the return type of a GCC
10460 builtin and then its argument prototype would still apply. */
10461#ifdef __cplusplus
10462extern "C"
10463#endif
10464char xmlReadFile ();
10465int
10466main ()
10467{
10468return xmlReadFile ();
10469 ;
10470 return 0;
10471}
10472_ACEOF
10473rm -f conftest.$ac_objext conftest$ac_exeext
10474if { (ac_try="$ac_link"
10475case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478esac
10479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } &&
10487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10488 { (case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10491esac
10492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_try") 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10501esac
10502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_try") 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_lib_xml2_xmlReadFile=yes
10508else
10509 echo "$as_me: failed program was:" >&5
10510sed 's/^/| /' conftest.$ac_ext >&5
10511
10512 ac_cv_lib_xml2_xmlReadFile=no
10513fi
10514
10515rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517LIBS=$ac_check_lib_save_LIBS
10518fi
10519{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10520echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10521if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10522
10523cat >>confdefs.h <<\_ACEOF
10524#define CLANG_HAVE_LIBXML 1
10525_ACEOF
10526
10527 LIBXML2_LIBS="-lxml2"
10528fi
10529
10530fi
10531
10532
10533
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010534
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010535
10536
10537
10538
10539
Reid Spencer8bc110c2004-12-25 07:31:29 +000010540ac_header_dirent=no
10541for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010542 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10543{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10544echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010547else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010548 cat >conftest.$ac_ext <<_ACEOF
10549/* confdefs.h. */
10550_ACEOF
10551cat confdefs.h >>conftest.$ac_ext
10552cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010553/* end confdefs.h. */
10554#include <sys/types.h>
10555#include <$ac_hdr>
10556
10557int
10558main ()
10559{
10560if ((DIR *) 0)
10561return 0;
10562 ;
10563 return 0;
10564}
10565_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010566rm -f conftest.$ac_objext
10567if { (ac_try="$ac_compile"
10568case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_compile") 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584esac
10585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try='test -s conftest.$ac_objext'
10591 { (case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594esac
10595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000010600 eval "$as_ac_Header=yes"
10601else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010602 echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 eval "$as_ac_Header=no"
Reid Spencer8bc110c2004-12-25 07:31:29 +000010606fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010607
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000010609fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010610ac_res=`eval echo '${'$as_ac_Header'}'`
10611 { echo "$as_me:$LINENO: result: $ac_res" >&5
10612echo "${ECHO_T}$ac_res" >&6; }
10613if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000010614 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010615#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000010616_ACEOF
10617
10618ac_header_dirent=$ac_hdr; break
10619fi
10620
10621done
10622# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10623if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010624 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10625echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10626if test "${ac_cv_search_opendir+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010628else
10629 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010635/* end confdefs.h. */
10636
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010637/* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000010640#ifdef __cplusplus
10641extern "C"
10642#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010643char opendir ();
10644int
10645main ()
10646{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010647return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000010648 ;
10649 return 0;
10650}
10651_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010652for ac_lib in '' dir; do
10653 if test -z "$ac_lib"; then
10654 ac_res="none required"
10655 else
10656 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000010657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010658 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010659 rm -f conftest.$ac_objext conftest$ac_exeext
10660if { (ac_try="$ac_link"
10661case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664esac
10665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677esac
10678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest$ac_exeext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010693 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010694else
10695 echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698
Reid Spencer8bc110c2004-12-25 07:31:29 +000010699fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010700
Bill Wendling02b47d92009-04-18 11:20:33 +000010701rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010702 conftest$ac_exeext
10703 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010704 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000010705fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010706done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010707if test "${ac_cv_search_opendir+set}" = set; then
10708 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010709else
10710 ac_cv_search_opendir=no
10711fi
10712rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000010713LIBS=$ac_func_search_save_LIBS
10714fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010715{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10716echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010717ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010718if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000010720
10721fi
10722
10723else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010724 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10725echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10726if test "${ac_cv_search_opendir+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010728else
10729 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010735/* end confdefs.h. */
10736
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010737/* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000010740#ifdef __cplusplus
10741extern "C"
10742#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010743char opendir ();
10744int
10745main ()
10746{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010747return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000010748 ;
10749 return 0;
10750}
10751_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010752for ac_lib in '' x; do
10753 if test -z "$ac_lib"; then
10754 ac_res="none required"
10755 else
10756 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000010757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010758 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010759 rm -f conftest.$ac_objext conftest$ac_exeext
10760if { (ac_try="$ac_link"
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_link") 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_exeext'
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
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010793 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010794else
10795 echo "$as_me: failed program was:" >&5
10796sed 's/^/| /' conftest.$ac_ext >&5
10797
10798
Reid Spencer8bc110c2004-12-25 07:31:29 +000010799fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010800
Bill Wendling02b47d92009-04-18 11:20:33 +000010801rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010802 conftest$ac_exeext
10803 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010804 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000010805fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010806done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010807if test "${ac_cv_search_opendir+set}" = set; then
10808 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010809else
10810 ac_cv_search_opendir=no
10811fi
10812rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000010813LIBS=$ac_func_search_save_LIBS
10814fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010815{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10816echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010817ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010818if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000010820
10821fi
10822
10823fi
10824
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010825{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10826echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10827if test "${ac_cv_header_mmap_anon+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010829else
10830 ac_ext=c
10831ac_cpp='$CPP $CPPFLAGS'
10832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10834ac_compiler_gnu=$ac_cv_c_compiler_gnu
10835
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010836 cat >conftest.$ac_ext <<_ACEOF
10837/* confdefs.h. */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010841/* end confdefs.h. */
10842#include <sys/mman.h>
10843#include <unistd.h>
10844#include <fcntl.h>
10845int
10846main ()
10847{
10848mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10849 ;
10850 return 0;
10851}
10852_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010853rm -f conftest.$ac_objext
10854if { (ac_try="$ac_compile"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest.$ac_objext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000010887 ac_cv_header_mmap_anon=yes
10888else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 ac_cv_header_mmap_anon=no
Reid Spencer8bc110c2004-12-25 07:31:29 +000010893fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010894
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000010896 ac_ext=c
10897ac_cpp='$CPP $CPPFLAGS'
10898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10900ac_compiler_gnu=$ac_cv_c_compiler_gnu
10901
10902
10903fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010904{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10905echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000010906if test "$ac_cv_header_mmap_anon" = yes; then
10907
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010908cat >>confdefs.h <<\_ACEOF
10909#define HAVE_MMAP_ANONYMOUS 1
10910_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010911
10912fi
10913
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010914{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10915echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10916if test "${ac_cv_header_stat_broken+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010918else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010919 cat >conftest.$ac_ext <<_ACEOF
10920/* confdefs.h. */
10921_ACEOF
10922cat confdefs.h >>conftest.$ac_ext
10923cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010924/* end confdefs.h. */
10925#include <sys/types.h>
10926#include <sys/stat.h>
10927
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010928#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010929# if S_ISBLK (S_IFDIR)
10930You lose.
10931# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010932#endif
10933
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010934#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010935# if S_ISBLK (S_IFCHR)
10936You lose.
10937# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010938#endif
10939
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010940#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010941# if S_ISLNK (S_IFREG)
10942You lose.
10943# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010944#endif
10945
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010946#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010947# if S_ISSOCK (S_IFREG)
10948You lose.
10949# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000010950#endif
10951
10952_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10954 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwinaec06332010-01-26 08:50:50 +000010955 ac_cv_header_stat_broken=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010956else
10957 ac_cv_header_stat_broken=no
Mikhail Glushenkov4308aa52009-04-18 09:59:26 +000010958fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010959rm -f conftest*
10960
Reid Spencer8bc110c2004-12-25 07:31:29 +000010961fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010962{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10963echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000010964if test $ac_cv_header_stat_broken = yes; then
10965
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010966cat >>confdefs.h <<\_ACEOF
10967#define STAT_MACROS_BROKEN 1
10968_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010969
10970fi
10971
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010972{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10973echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10974if test "${ac_cv_header_sys_wait_h+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000010976else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010977 cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000010982/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000010983#include <sys/types.h>
10984#include <sys/wait.h>
10985#ifndef WEXITSTATUS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010986# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell3ef61af2003-06-30 21:59:07 +000010987#endif
10988#ifndef WIFEXITED
10989# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10990#endif
10991
John Criswell3ef61af2003-06-30 21:59:07 +000010992int
10993main ()
10994{
10995 int s;
10996 wait (&s);
10997 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10998 ;
10999 return 0;
11000}
11001_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011002rm -f conftest.$ac_objext
11003if { (ac_try="$ac_compile"
11004case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007esac
11008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_try") 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000011036 ac_cv_header_sys_wait_h=yes
11037else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011038 echo "$as_me: failed program was:" >&5
11039sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 ac_cv_header_sys_wait_h=no
John Criswell3ef61af2003-06-30 21:59:07 +000011042fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011043
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000011045fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011046{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11047echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000011048if test $ac_cv_header_sys_wait_h = yes; then
11049
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011050cat >>confdefs.h <<\_ACEOF
11051#define HAVE_SYS_WAIT_H 1
11052_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000011053
11054fi
11055
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011056{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11057echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11058if test "${ac_cv_header_time+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000011060else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011061 cat >conftest.$ac_ext <<_ACEOF
11062/* confdefs.h. */
11063_ACEOF
11064cat confdefs.h >>conftest.$ac_ext
11065cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000011066/* end confdefs.h. */
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011067#include <sys/types.h>
Reid Spencer0241e382004-11-25 04:51:04 +000011068#include <sys/time.h>
11069#include <time.h>
11070
11071int
11072main ()
11073{
11074if ((struct tm *) 0)
11075return 0;
11076 ;
11077 return 0;
11078}
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011079_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011080rm -f conftest.$ac_objext
11081if { (ac_try="$ac_compile"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000011114 ac_cv_header_time=yes
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011115else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011116 echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
11119 ac_cv_header_time=no
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011120fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011121
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000011123fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011124{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11125echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000011126if test $ac_cv_header_time = yes; then
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011127
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011128cat >>confdefs.h <<\_ACEOF
11129#define TIME_WITH_SYS_TIME 1
11130_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000011131
11132fi
11133
Reid Spencer0241e382004-11-25 04:51:04 +000011134
Benjamin Kramer00622f72013-05-03 15:55:06 +000011135ac_ext=cpp
11136ac_cpp='$CXXCPP $CPPFLAGS'
11137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11140
Rui Ueyama7ef57962014-10-27 08:03:21 +000011141
11142for ac_header in cxxabi.h
11143do
11144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Rui Ueyama292fb6d2014-10-27 08:16:18 +000011145{ echo "$as_me:$LINENO: checking for $ac_header" >&5
Rui Ueyama7ef57962014-10-27 08:03:21 +000011146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
Rui Ueyama7ef57962014-10-27 08:03:21 +000011149else
Rui Ueyama292fb6d2014-10-27 08:16:18 +000011150 cat >conftest.$ac_ext <<_ACEOF
Rui Ueyama7ef57962014-10-27 08:03:21 +000011151/* confdefs.h. */
11152_ACEOF
11153cat confdefs.h >>conftest.$ac_ext
11154cat >>conftest.$ac_ext <<_ACEOF
11155/* end confdefs.h. */
Rui Ueyama292fb6d2014-10-27 08:16:18 +000011156#include <stddef.h>
11157
11158
Benjamin Kramer00622f72013-05-03 15:55:06 +000011159#include <$ac_header>
11160_ACEOF
11161rm -f conftest.$ac_objext
11162if { (ac_try="$ac_compile"
11163case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_compile") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189esac
11190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
Rui Ueyama292fb6d2014-10-27 08:16:18 +000011195 eval "$as_ac_Header=yes"
Benjamin Kramer00622f72013-05-03 15:55:06 +000011196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
Rui Ueyama292fb6d2014-10-27 08:16:18 +000011200 eval "$as_ac_Header=no"
Benjamin Kramer00622f72013-05-03 15:55:06 +000011201fi
11202
11203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benjamin Kramer00622f72013-05-03 15:55:06 +000011204fi
11205ac_res=`eval echo '${'$as_ac_Header'}'`
11206 { echo "$as_me:$LINENO: result: $ac_res" >&5
11207echo "${ECHO_T}$ac_res" >&6; }
Benjamin Kramer00622f72013-05-03 15:55:06 +000011208if test `eval echo '${'$as_ac_Header'}'` = yes; then
11209 cat >>confdefs.h <<_ACEOF
11210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11211_ACEOF
11212
11213fi
11214
11215done
11216
11217ac_ext=c
11218ac_cpp='$CPP $CPPFLAGS'
11219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11221ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011222
11223
11224
11225
11226
11227
Rui Ueyama292fb6d2014-10-27 08:16:18 +000011228
Eric Christopher30536382013-07-26 17:13:47 +000011229for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011230do
11231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237fi
11238ac_res=`eval echo '${'$as_ac_Header'}'`
11239 { echo "$as_me:$LINENO: result: $ac_res" >&5
11240echo "${ECHO_T}$ac_res" >&6; }
11241else
11242 # Is the header compilable?
11243{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11245cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
11251$ac_includes_default
11252#include <$ac_header>
11253_ACEOF
11254rm -f conftest.$ac_objext
11255if { (ac_try="$ac_compile"
11256case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259esac
11260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282esac
11283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_header_compiler=yes
11289else
11290 echo "$as_me: failed program was:" >&5
11291sed 's/^/| /' conftest.$ac_ext >&5
11292
11293 ac_header_compiler=no
11294fi
11295
11296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298echo "${ECHO_T}$ac_header_compiler" >&6; }
11299
11300# Is the header present?
11301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11303cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309#include <$ac_header>
11310_ACEOF
11311if { (ac_try="$ac_cpp conftest.$ac_ext"
11312case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } >/dev/null; then
11324 if test -s conftest.err; then
11325 ac_cpp_err=$ac_c_preproc_warn_flag
11326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11327 else
11328 ac_cpp_err=
11329 fi
11330else
11331 ac_cpp_err=yes
11332fi
11333if test -z "$ac_cpp_err"; then
11334 ac_header_preproc=yes
11335else
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
11339 ac_header_preproc=no
11340fi
11341
11342rm -f conftest.err conftest.$ac_ext
11343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344echo "${ECHO_T}$ac_header_preproc" >&6; }
11345
11346# So? What about this header?
11347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348 yes:no: )
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11354 ;;
11355 no:yes:* )
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11368 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011369## ------------------------------------ ##
11370## Report this to http://llvm.org/bugs/ ##
11371## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011372_ASBOX
11373 ) | sed "s/^/$as_me: WARNING: /" >&2
11374 ;;
11375esac
11376{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
11381 eval "$as_ac_Header=\$ac_header_preproc"
11382fi
11383ac_res=`eval echo '${'$as_ac_Header'}'`
11384 { echo "$as_me:$LINENO: result: $ac_res" >&5
11385echo "${ECHO_T}$ac_res" >&6; }
11386
11387fi
11388if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000011389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0241e382004-11-25 04:51:04 +000011391_ACEOF
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011392
11393fi
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011394
Reid Spencer8bc110c2004-12-25 07:31:29 +000011395done
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011396
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011397
11398
11399
11400
11401
11402
Douglas Gregorb81294d2009-05-18 17:21:34 +000011403for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011404do
11405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411fi
11412ac_res=`eval echo '${'$as_ac_Header'}'`
11413 { echo "$as_me:$LINENO: result: $ac_res" >&5
11414echo "${ECHO_T}$ac_res" >&6; }
11415else
11416 # Is the header compilable?
11417{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11419cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h. */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
11424/* end confdefs.h. */
11425$ac_includes_default
11426#include <$ac_header>
11427_ACEOF
11428rm -f conftest.$ac_objext
11429if { (ac_try="$ac_compile"
11430case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11433esac
11434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_compile") 2>conftest.er1
11436 ac_status=$?
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11443 { (case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_try") 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest.$ac_objext'
11453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456esac
11457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_header_compiler=yes
11463else
11464 echo "$as_me: failed program was:" >&5
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 ac_header_compiler=no
11468fi
11469
11470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11472echo "${ECHO_T}$ac_header_compiler" >&6; }
11473
11474# Is the header present?
11475{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11477cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h. */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h. */
11483#include <$ac_header>
11484_ACEOF
11485if { (ac_try="$ac_cpp conftest.$ac_ext"
11486case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489esac
11490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } >/dev/null; then
11498 if test -s conftest.err; then
11499 ac_cpp_err=$ac_c_preproc_warn_flag
11500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11501 else
11502 ac_cpp_err=
11503 fi
11504else
11505 ac_cpp_err=yes
11506fi
11507if test -z "$ac_cpp_err"; then
11508 ac_header_preproc=yes
11509else
11510 echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 ac_header_preproc=no
11514fi
11515
11516rm -f conftest.err conftest.$ac_ext
11517{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518echo "${ECHO_T}$ac_header_preproc" >&6; }
11519
11520# So? What about this header?
11521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11522 yes:no: )
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc=yes
11528 ;;
11529 no:yes:* )
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011543## ------------------------------------ ##
11544## Report this to http://llvm.org/bugs/ ##
11545## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011546_ASBOX
11547 ) | sed "s/^/$as_me: WARNING: /" >&2
11548 ;;
11549esac
11550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
11555 eval "$as_ac_Header=\$ac_header_preproc"
11556fi
11557ac_res=`eval echo '${'$as_ac_Header'}'`
11558 { echo "$as_me:$LINENO: result: $ac_res" >&5
11559echo "${ECHO_T}$ac_res" >&6; }
11560
11561fi
11562if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000011563 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000011565_ACEOF
11566
11567fi
11568
11569done
11570
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011571
Eric Christopher30536382013-07-26 17:13:47 +000011572for ac_header in utime.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011573do
11574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580fi
11581ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583echo "${ECHO_T}$ac_res" >&6; }
11584else
11585 # Is the header compilable?
11586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
11594$ac_includes_default
11595#include <$ac_header>
11596_ACEOF
11597rm -f conftest.$ac_objext
11598if { (ac_try="$ac_compile"
11599case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11602esac
11603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_compile") 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_header_compiler=yes
11632else
11633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 ac_header_compiler=no
11637fi
11638
11639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641echo "${ECHO_T}$ac_header_compiler" >&6; }
11642
11643# Is the header present?
11644{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652#include <$ac_header>
11653_ACEOF
11654if { (ac_try="$ac_cpp conftest.$ac_ext"
11655case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } >/dev/null; then
11667 if test -s conftest.err; then
11668 ac_cpp_err=$ac_c_preproc_warn_flag
11669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670 else
11671 ac_cpp_err=
11672 fi
11673else
11674 ac_cpp_err=yes
11675fi
11676if test -z "$ac_cpp_err"; then
11677 ac_header_preproc=yes
11678else
11679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 ac_header_preproc=no
11683fi
11684
11685rm -f conftest.err conftest.$ac_ext
11686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687echo "${ECHO_T}$ac_header_preproc" >&6; }
11688
11689# So? What about this header?
11690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691 yes:no: )
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696 ac_header_preproc=yes
11697 ;;
11698 no:yes:* )
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011712## ------------------------------------ ##
11713## Report this to http://llvm.org/bugs/ ##
11714## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011715_ASBOX
11716 ) | sed "s/^/$as_me: WARNING: /" >&2
11717 ;;
11718esac
11719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 eval "$as_ac_Header=\$ac_header_preproc"
11725fi
11726ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728echo "${ECHO_T}$ac_res" >&6; }
11729
11730fi
11731if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000011732 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000011734_ACEOF
11735
11736fi
11737
11738done
Reid Spencer8bc110c2004-12-25 07:31:29 +000011739
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011740
11741
11742
11743
Daniel Dunbar7840c542011-02-03 02:40:02 +000011744
11745for 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 +000011746do
11747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753fi
11754ac_res=`eval echo '${'$as_ac_Header'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756echo "${ECHO_T}$ac_res" >&6; }
11757else
11758 # Is the header compilable?
11759{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h. */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h. */
11767$ac_includes_default
11768#include <$ac_header>
11769_ACEOF
11770rm -f conftest.$ac_objext
11771if { (ac_try="$ac_compile"
11772case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775esac
11776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788esac
11789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_header_compiler=yes
11805else
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_header_compiler=no
11810fi
11811
11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814echo "${ECHO_T}$ac_header_compiler" >&6; }
11815
11816# Is the header present?
11817{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11819cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825#include <$ac_header>
11826_ACEOF
11827if { (ac_try="$ac_cpp conftest.$ac_ext"
11828case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831esac
11832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null; then
11840 if test -s conftest.err; then
11841 ac_cpp_err=$ac_c_preproc_warn_flag
11842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11843 else
11844 ac_cpp_err=
11845 fi
11846else
11847 ac_cpp_err=yes
11848fi
11849if test -z "$ac_cpp_err"; then
11850 ac_header_preproc=yes
11851else
11852 echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 ac_header_preproc=no
11856fi
11857
11858rm -f conftest.err conftest.$ac_ext
11859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860echo "${ECHO_T}$ac_header_preproc" >&6; }
11861
11862# So? What about this header?
11863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11864 yes:no: )
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc=yes
11870 ;;
11871 no:yes:* )
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11884 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011885## ------------------------------------ ##
11886## Report this to http://llvm.org/bugs/ ##
11887## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011888_ASBOX
11889 ) | sed "s/^/$as_me: WARNING: /" >&2
11890 ;;
11891esac
11892{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897 eval "$as_ac_Header=\$ac_header_preproc"
11898fi
11899ac_res=`eval echo '${'$as_ac_Header'}'`
11900 { echo "$as_me:$LINENO: result: $ac_res" >&5
11901echo "${ECHO_T}$ac_res" >&6; }
11902
11903fi
11904if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000011905 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswellb92c7c22004-07-19 16:12:29 +000011907_ACEOF
John Criswellb92c7c22004-07-19 16:12:29 +000011908
11909fi
John Criswellb92c7c22004-07-19 16:12:29 +000011910
Reid Spencer0241e382004-11-25 04:51:04 +000011911done
11912
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011913
11914
11915
Eric Christopher30536382013-07-26 17:13:47 +000011916for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011917do
11918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924fi
11925ac_res=`eval echo '${'$as_ac_Header'}'`
11926 { echo "$as_me:$LINENO: result: $ac_res" >&5
11927echo "${ECHO_T}$ac_res" >&6; }
11928else
11929 # Is the header compilable?
11930{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11932cat >conftest.$ac_ext <<_ACEOF
11933/* confdefs.h. */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h. */
11938$ac_includes_default
11939#include <$ac_header>
11940_ACEOF
11941rm -f conftest.$ac_objext
11942if { (ac_try="$ac_compile"
11943case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946esac
11947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11956 { (case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_try") 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest.$ac_objext'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969esac
11970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_header_compiler=yes
11976else
11977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980 ac_header_compiler=no
11981fi
11982
11983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11985echo "${ECHO_T}$ac_header_compiler" >&6; }
11986
11987# Is the header present?
11988{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11990cat >conftest.$ac_ext <<_ACEOF
11991/* confdefs.h. */
11992_ACEOF
11993cat confdefs.h >>conftest.$ac_ext
11994cat >>conftest.$ac_ext <<_ACEOF
11995/* end confdefs.h. */
11996#include <$ac_header>
11997_ACEOF
11998if { (ac_try="$ac_cpp conftest.$ac_ext"
11999case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002esac
12003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } >/dev/null; then
12011 if test -s conftest.err; then
12012 ac_cpp_err=$ac_c_preproc_warn_flag
12013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12014 else
12015 ac_cpp_err=
12016 fi
12017else
12018 ac_cpp_err=yes
12019fi
12020if test -z "$ac_cpp_err"; then
12021 ac_header_preproc=yes
12022else
12023 echo "$as_me: failed program was:" >&5
12024sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 ac_header_preproc=no
12027fi
12028
12029rm -f conftest.err conftest.$ac_ext
12030{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12031echo "${ECHO_T}$ac_header_preproc" >&6; }
12032
12033# So? What about this header?
12034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12035 yes:no: )
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12040 ac_header_preproc=yes
12041 ;;
12042 no:yes:* )
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12055 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012056## ------------------------------------ ##
12057## Report this to http://llvm.org/bugs/ ##
12058## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012059_ASBOX
12060 ) | sed "s/^/$as_me: WARNING: /" >&2
12061 ;;
12062esac
12063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
12068 eval "$as_ac_Header=\$ac_header_preproc"
12069fi
12070ac_res=`eval echo '${'$as_ac_Header'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072echo "${ECHO_T}$ac_res" >&6; }
12073
12074fi
12075if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner973917a2005-11-14 06:57:34 +000012076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner973917a2005-11-14 06:57:34 +000012078_ACEOF
12079
12080fi
12081
12082done
12083
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000012084
12085for ac_header in valgrind/valgrind.h
12086do
12087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093fi
12094ac_res=`eval echo '${'$as_ac_Header'}'`
12095 { echo "$as_me:$LINENO: result: $ac_res" >&5
12096echo "${ECHO_T}$ac_res" >&6; }
12097else
12098 # Is the header compilable?
12099{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12101cat >conftest.$ac_ext <<_ACEOF
12102/* confdefs.h. */
12103_ACEOF
12104cat confdefs.h >>conftest.$ac_ext
12105cat >>conftest.$ac_ext <<_ACEOF
12106/* end confdefs.h. */
12107$ac_includes_default
12108#include <$ac_header>
12109_ACEOF
12110rm -f conftest.$ac_objext
12111if { (ac_try="$ac_compile"
12112case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115esac
12116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_compile") 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128esac
12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest.$ac_objext'
12135 { (case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_header_compiler=yes
12145else
12146 echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ac_header_compiler=no
12150fi
12151
12152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154echo "${ECHO_T}$ac_header_compiler" >&6; }
12155
12156# Is the header present?
12157{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12159cat >conftest.$ac_ext <<_ACEOF
12160/* confdefs.h. */
12161_ACEOF
12162cat confdefs.h >>conftest.$ac_ext
12163cat >>conftest.$ac_ext <<_ACEOF
12164/* end confdefs.h. */
12165#include <$ac_header>
12166_ACEOF
12167if { (ac_try="$ac_cpp conftest.$ac_ext"
12168case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171esac
12172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null; then
12180 if test -s conftest.err; then
12181 ac_cpp_err=$ac_c_preproc_warn_flag
12182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12183 else
12184 ac_cpp_err=
12185 fi
12186else
12187 ac_cpp_err=yes
12188fi
12189if test -z "$ac_cpp_err"; then
12190 ac_header_preproc=yes
12191else
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195 ac_header_preproc=no
12196fi
12197
12198rm -f conftest.err conftest.$ac_ext
12199{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12200echo "${ECHO_T}$ac_header_preproc" >&6; }
12201
12202# So? What about this header?
12203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12204 yes:no: )
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12209 ac_header_preproc=yes
12210 ;;
12211 no:yes:* )
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12215echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12219echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12224 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012225## ------------------------------------ ##
12226## Report this to http://llvm.org/bugs/ ##
12227## ------------------------------------ ##
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000012228_ASBOX
12229 ) | sed "s/^/$as_me: WARNING: /" >&2
12230 ;;
12231esac
12232{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236else
12237 eval "$as_ac_Header=\$ac_header_preproc"
12238fi
12239ac_res=`eval echo '${'$as_ac_Header'}'`
12240 { echo "$as_me:$LINENO: result: $ac_res" >&5
12241echo "${ECHO_T}$ac_res" >&6; }
12242
12243fi
12244if test `eval echo '${'$as_ac_Header'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12247_ACEOF
12248
12249fi
12250
12251done
12252
Dan Gohmandf257772010-09-17 20:08:35 +000012253
12254for ac_header in fenv.h
12255do
12256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262fi
12263ac_res=`eval echo '${'$as_ac_Header'}'`
12264 { echo "$as_me:$LINENO: result: $ac_res" >&5
12265echo "${ECHO_T}$ac_res" >&6; }
12266else
12267 # Is the header compilable?
12268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12270cat >conftest.$ac_ext <<_ACEOF
12271/* confdefs.h. */
12272_ACEOF
12273cat confdefs.h >>conftest.$ac_ext
12274cat >>conftest.$ac_ext <<_ACEOF
12275/* end confdefs.h. */
12276$ac_includes_default
12277#include <$ac_header>
12278_ACEOF
12279rm -f conftest.$ac_objext
12280if { (ac_try="$ac_compile"
12281case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
12287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12294 { (case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297esac
12298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_try") 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12313 ac_header_compiler=yes
12314else
12315 echo "$as_me: failed program was:" >&5
12316sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 ac_header_compiler=no
12319fi
12320
12321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12323echo "${ECHO_T}$ac_header_compiler" >&6; }
12324
12325# Is the header present?
12326{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12328cat >conftest.$ac_ext <<_ACEOF
12329/* confdefs.h. */
12330_ACEOF
12331cat confdefs.h >>conftest.$ac_ext
12332cat >>conftest.$ac_ext <<_ACEOF
12333/* end confdefs.h. */
12334#include <$ac_header>
12335_ACEOF
12336if { (ac_try="$ac_cpp conftest.$ac_ext"
12337case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340esac
12341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } >/dev/null; then
12349 if test -s conftest.err; then
12350 ac_cpp_err=$ac_c_preproc_warn_flag
12351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12352 else
12353 ac_cpp_err=
12354 fi
12355else
12356 ac_cpp_err=yes
12357fi
12358if test -z "$ac_cpp_err"; then
12359 ac_header_preproc=yes
12360else
12361 echo "$as_me: failed program was:" >&5
12362sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 ac_header_preproc=no
12365fi
12366
12367rm -f conftest.err conftest.$ac_ext
12368{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12369echo "${ECHO_T}$ac_header_preproc" >&6; }
12370
12371# So? What about this header?
12372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12373 yes:no: )
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12378 ac_header_preproc=yes
12379 ;;
12380 no:yes:* )
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12384echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12388echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12393 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012394## ------------------------------------ ##
12395## Report this to http://llvm.org/bugs/ ##
12396## ------------------------------------ ##
Dan Gohmandf257772010-09-17 20:08:35 +000012397_ASBOX
12398 ) | sed "s/^/$as_me: WARNING: /" >&2
12399 ;;
12400esac
12401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405else
12406 eval "$as_ac_Header=\$ac_header_preproc"
12407fi
12408ac_res=`eval echo '${'$as_ac_Header'}'`
12409 { echo "$as_me:$LINENO: result: $ac_res" >&5
12410echo "${ECHO_T}$ac_res" >&6; }
12411
12412fi
12413if test `eval echo '${'$as_ac_Header'}'` = yes; then
12414 cat >>confdefs.h <<_ACEOF
12415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12416_ACEOF
12417
12418fi
12419
12420done
12421
Joerg Sonnenberger8a1177f2013-03-25 13:13:33 +000012422{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12423echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12424if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426else
12427 cat >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 <fenv.h>
12434
12435int
12436main ()
12437{
12438#ifndef FE_ALL_EXCEPT
12439 char *p = (char *) FE_ALL_EXCEPT;
12440 return !p;
12441#endif
12442
12443 ;
12444 return 0;
12445}
12446_ACEOF
12447rm -f conftest.$ac_objext
12448if { (ac_try="$ac_compile"
12449case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_compile") 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465esac
12466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest.$ac_objext'
12472 { (case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475esac
12476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_try") 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12482else
12483 echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
12486 ac_cv_have_decl_FE_ALL_EXCEPT=no
12487fi
12488
12489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490fi
12491{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12492echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12493if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12494
12495cat >>confdefs.h <<_ACEOF
12496#define HAVE_DECL_FE_ALL_EXCEPT 1
12497_ACEOF
12498
12499
12500else
12501 cat >>confdefs.h <<_ACEOF
12502#define HAVE_DECL_FE_ALL_EXCEPT 0
12503_ACEOF
12504
12505
12506fi
12507{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12508echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12509if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511else
12512 cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518#include <fenv.h>
12519
12520int
12521main ()
12522{
12523#ifndef FE_INEXACT
12524 char *p = (char *) FE_INEXACT;
12525 return !p;
12526#endif
12527
12528 ;
12529 return 0;
12530}
12531_ACEOF
12532rm -f conftest.$ac_objext
12533if { (ac_try="$ac_compile"
12534case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537esac
12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_cv_have_decl_FE_INEXACT=yes
12567else
12568 echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571 ac_cv_have_decl_FE_INEXACT=no
12572fi
12573
12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575fi
12576{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12577echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12578if test $ac_cv_have_decl_FE_INEXACT = yes; then
12579
12580cat >>confdefs.h <<_ACEOF
12581#define HAVE_DECL_FE_INEXACT 1
12582_ACEOF
12583
12584
12585else
12586 cat >>confdefs.h <<_ACEOF
12587#define HAVE_DECL_FE_INEXACT 0
12588_ACEOF
12589
12590
12591fi
12592
12593
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000012594if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012595
12596for ac_header in pthread.h
12597do
12598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12604fi
12605ac_res=`eval echo '${'$as_ac_Header'}'`
12606 { echo "$as_me:$LINENO: result: $ac_res" >&5
12607echo "${ECHO_T}$ac_res" >&6; }
12608else
12609 # Is the header compilable?
12610{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12612cat >conftest.$ac_ext <<_ACEOF
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
12618$ac_includes_default
12619#include <$ac_header>
12620_ACEOF
12621rm -f conftest.$ac_objext
12622if { (ac_try="$ac_compile"
12623case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_compile") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639esac
12640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest.$ac_objext'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 ac_header_compiler=yes
12656else
12657 echo "$as_me: failed program was:" >&5
12658sed 's/^/| /' conftest.$ac_ext >&5
12659
12660 ac_header_compiler=no
12661fi
12662
12663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12665echo "${ECHO_T}$ac_header_compiler" >&6; }
12666
12667# Is the header present?
12668{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12669echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12670cat >conftest.$ac_ext <<_ACEOF
12671/* confdefs.h. */
12672_ACEOF
12673cat confdefs.h >>conftest.$ac_ext
12674cat >>conftest.$ac_ext <<_ACEOF
12675/* end confdefs.h. */
12676#include <$ac_header>
12677_ACEOF
12678if { (ac_try="$ac_cpp conftest.$ac_ext"
12679case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12682esac
12683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12685 ac_status=$?
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } >/dev/null; then
12691 if test -s conftest.err; then
12692 ac_cpp_err=$ac_c_preproc_warn_flag
12693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12694 else
12695 ac_cpp_err=
12696 fi
12697else
12698 ac_cpp_err=yes
12699fi
12700if test -z "$ac_cpp_err"; then
12701 ac_header_preproc=yes
12702else
12703 echo "$as_me: failed program was:" >&5
12704sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 ac_header_preproc=no
12707fi
12708
12709rm -f conftest.err conftest.$ac_ext
12710{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12711echo "${ECHO_T}$ac_header_preproc" >&6; }
12712
12713# So? What about this header?
12714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12715 yes:no: )
12716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12719echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12720 ac_header_preproc=yes
12721 ;;
12722 no:yes:* )
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12726echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12728echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12730echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12734echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12735 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012736## ------------------------------------ ##
12737## Report this to http://llvm.org/bugs/ ##
12738## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012739_ASBOX
12740 ) | sed "s/^/$as_me: WARNING: /" >&2
12741 ;;
12742esac
12743{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
12748 eval "$as_ac_Header=\$ac_header_preproc"
12749fi
12750ac_res=`eval echo '${'$as_ac_Header'}'`
12751 { echo "$as_me:$LINENO: result: $ac_res" >&5
12752echo "${ECHO_T}$ac_res" >&6; }
12753
12754fi
12755if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000012756 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000012758_ACEOF
12759 HAVE_PTHREAD=1
Reid Spencerd4399922006-12-01 00:37:14 +000012760
12761else
12762 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000012763
12764fi
12765
Reid Spencerb8135562007-08-17 05:45:26 +000012766done
Reid Spencerd4399922006-12-01 00:37:14 +000012767
12768else
12769 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000012770
12771fi
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000012772if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12773
12774for ac_header in zlib.h
12775do
12776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782fi
12783ac_res=`eval echo '${'$as_ac_Header'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785echo "${ECHO_T}$ac_res" >&6; }
12786else
12787 # Is the header compilable?
12788{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12790cat >conftest.$ac_ext <<_ACEOF
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796$ac_includes_default
12797#include <$ac_header>
12798_ACEOF
12799rm -f conftest.$ac_objext
12800if { (ac_try="$ac_compile"
12801case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804esac
12805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_compile") 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817esac
12818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827esac
12828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_try") 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 ac_header_compiler=yes
12834else
12835 echo "$as_me: failed program was:" >&5
12836sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ac_header_compiler=no
12839fi
12840
12841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12843echo "${ECHO_T}$ac_header_compiler" >&6; }
12844
12845# Is the header present?
12846{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12848cat >conftest.$ac_ext <<_ACEOF
12849/* confdefs.h. */
12850_ACEOF
12851cat confdefs.h >>conftest.$ac_ext
12852cat >>conftest.$ac_ext <<_ACEOF
12853/* end confdefs.h. */
12854#include <$ac_header>
12855_ACEOF
12856if { (ac_try="$ac_cpp conftest.$ac_ext"
12857case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev/null; then
12869 if test -s conftest.err; then
12870 ac_cpp_err=$ac_c_preproc_warn_flag
12871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12872 else
12873 ac_cpp_err=
12874 fi
12875else
12876 ac_cpp_err=yes
12877fi
12878if test -z "$ac_cpp_err"; then
12879 ac_header_preproc=yes
12880else
12881 echo "$as_me: failed program was:" >&5
12882sed 's/^/| /' conftest.$ac_ext >&5
12883
12884 ac_header_preproc=no
12885fi
12886
12887rm -f conftest.err conftest.$ac_ext
12888{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12889echo "${ECHO_T}$ac_header_preproc" >&6; }
12890
12891# So? What about this header?
12892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12893 yes:no: )
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12898 ac_header_preproc=yes
12899 ;;
12900 no:yes:* )
12901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12913 ( cat <<\_ASBOX
12914## ------------------------------------ ##
12915## Report this to http://llvm.org/bugs/ ##
12916## ------------------------------------ ##
12917_ASBOX
12918 ) | sed "s/^/$as_me: WARNING: /" >&2
12919 ;;
12920esac
12921{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925else
12926 eval "$as_ac_Header=\$ac_header_preproc"
12927fi
12928ac_res=`eval echo '${'$as_ac_Header'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930echo "${ECHO_T}$ac_res" >&6; }
12931
12932fi
12933if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936_ACEOF
12937 HAVE_LIBZ=1
12938
12939else
12940 HAVE_LIBZ=0
12941
12942fi
12943
12944done
12945
12946else
12947 HAVE_LIBZ=0
12948
12949fi
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000012950
Nick Lewycky86679902009-06-06 06:25:09 +000012951if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012952
12953
12954for ac_header in ffi.h ffi/ffi.h
12955do
12956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962fi
12963ac_res=`eval echo '${'$as_ac_Header'}'`
12964 { echo "$as_me:$LINENO: result: $ac_res" >&5
12965echo "${ECHO_T}$ac_res" >&6; }
12966else
12967 # Is the header compilable?
12968{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12970cat >conftest.$ac_ext <<_ACEOF
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
12976$ac_includes_default
12977#include <$ac_header>
12978_ACEOF
12979rm -f conftest.$ac_objext
12980if { (ac_try="$ac_compile"
12981case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984esac
12985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_compile") 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12994 { (case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12997esac
12998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_try") 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest.$ac_objext'
13004 { (case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007esac
13008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_try") 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_header_compiler=yes
13014else
13015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018 ac_header_compiler=no
13019fi
13020
13021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13023echo "${ECHO_T}$ac_header_compiler" >&6; }
13024
13025# Is the header present?
13026{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13028cat >conftest.$ac_ext <<_ACEOF
13029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
13034#include <$ac_header>
13035_ACEOF
13036if { (ac_try="$ac_cpp conftest.$ac_ext"
13037case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13040esac
13041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } >/dev/null; then
13049 if test -s conftest.err; then
13050 ac_cpp_err=$ac_c_preproc_warn_flag
13051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13052 else
13053 ac_cpp_err=
13054 fi
13055else
13056 ac_cpp_err=yes
13057fi
13058if test -z "$ac_cpp_err"; then
13059 ac_header_preproc=yes
13060else
13061 echo "$as_me: failed program was:" >&5
13062sed 's/^/| /' conftest.$ac_ext >&5
13063
13064 ac_header_preproc=no
13065fi
13066
13067rm -f conftest.err conftest.$ac_ext
13068{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13069echo "${ECHO_T}$ac_header_preproc" >&6; }
13070
13071# So? What about this header?
13072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13073 yes:no: )
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13078 ac_header_preproc=yes
13079 ;;
13080 no:yes:* )
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13093 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013094## ------------------------------------ ##
13095## Report this to http://llvm.org/bugs/ ##
13096## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013097_ASBOX
13098 ) | sed "s/^/$as_me: WARNING: /" >&2
13099 ;;
13100esac
13101{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105else
13106 eval "$as_ac_Header=\$ac_header_preproc"
13107fi
13108ac_res=`eval echo '${'$as_ac_Header'}'`
13109 { echo "$as_me:$LINENO: result: $ac_res" >&5
13110echo "${ECHO_T}$ac_res" >&6; }
13111
13112fi
13113if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky11e92142009-02-04 06:27:44 +000013114 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky11e92142009-02-04 06:27:44 +000013116_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000013117
13118fi
13119
13120done
13121
Nick Lewycky86679902009-06-06 06:25:09 +000013122fi
Nick Lewycky11e92142009-02-04 06:27:44 +000013123
Nick Lewyckyc94134d2009-01-20 00:52:24 +000013124
Eric Christophere9c1bb62010-06-22 21:01:04 +000013125for ac_header in CrashReporterClient.h
13126do
13127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133fi
13134ac_res=`eval echo '${'$as_ac_Header'}'`
13135 { echo "$as_me:$LINENO: result: $ac_res" >&5
13136echo "${ECHO_T}$ac_res" >&6; }
13137else
13138 # Is the header compilable?
13139{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13141cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147$ac_includes_default
13148#include <$ac_header>
13149_ACEOF
13150rm -f conftest.$ac_objext
13151if { (ac_try="$ac_compile"
13152case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13155esac
13156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_compile") 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165 { (case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168esac
13169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest.$ac_objext'
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
13184 ac_header_compiler=yes
13185else
13186 echo "$as_me: failed program was:" >&5
13187sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ac_header_compiler=no
13190fi
13191
13192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13194echo "${ECHO_T}$ac_header_compiler" >&6; }
13195
13196# Is the header present?
13197{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13199cat >conftest.$ac_ext <<_ACEOF
13200/* confdefs.h. */
13201_ACEOF
13202cat confdefs.h >>conftest.$ac_ext
13203cat >>conftest.$ac_ext <<_ACEOF
13204/* end confdefs.h. */
13205#include <$ac_header>
13206_ACEOF
13207if { (ac_try="$ac_cpp conftest.$ac_ext"
13208case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
13212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } >/dev/null; then
13220 if test -s conftest.err; then
13221 ac_cpp_err=$ac_c_preproc_warn_flag
13222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13223 else
13224 ac_cpp_err=
13225 fi
13226else
13227 ac_cpp_err=yes
13228fi
13229if test -z "$ac_cpp_err"; then
13230 ac_header_preproc=yes
13231else
13232 echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235 ac_header_preproc=no
13236fi
13237
13238rm -f conftest.err conftest.$ac_ext
13239{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13240echo "${ECHO_T}$ac_header_preproc" >&6; }
13241
13242# So? What about this header?
13243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13244 yes:no: )
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13249 ac_header_preproc=yes
13250 ;;
13251 no:yes:* )
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13264 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013265## ------------------------------------ ##
13266## Report this to http://llvm.org/bugs/ ##
13267## ------------------------------------ ##
Eric Christophere9c1bb62010-06-22 21:01:04 +000013268_ASBOX
13269 ) | sed "s/^/$as_me: WARNING: /" >&2
13270 ;;
13271esac
13272{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276else
13277 eval "$as_ac_Header=\$ac_header_preproc"
13278fi
13279ac_res=`eval echo '${'$as_ac_Header'}'`
13280 { echo "$as_me:$LINENO: result: $ac_res" >&5
13281echo "${ECHO_T}$ac_res" >&6; }
13282
13283fi
13284if test `eval echo '${'$as_ac_Header'}'` = yes; then
13285 cat >>confdefs.h <<_ACEOF
13286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13287_ACEOF
13288
13289fi
13290
13291done
13292
13293
Eric Christopherba4f7722010-12-07 02:05:42 +000013294{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13295echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000013296cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013297
13298 /* confdefs.h. */
Eric Christopherca466732010-12-03 07:45:22 +000013299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
13302/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013303
13304 extern const char *__crashreporter_info__;
13305 int main() {
13306 __crashreporter_info__ = "test";
13307 return 0;
13308 }
13309
Eric Christopherca466732010-12-03 07:45:22 +000013310
Eric Christopherca466732010-12-03 07:45:22 +000013311_ACEOF
13312rm -f conftest.$ac_objext conftest$ac_exeext
13313if { (ac_try="$ac_link"
13314case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340esac
13341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013346
Eric Christopherba4f7722010-12-07 02:05:42 +000013347 { echo "$as_me:$LINENO: result: yes" >&5
13348echo "${ECHO_T}yes" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000013349
13350cat >>confdefs.h <<\_ACEOF
13351#define HAVE_CRASHREPORTER_INFO 1
13352_ACEOF
13353
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013354
Eric Christopherba4f7722010-12-07 02:05:42 +000013355else
13356 echo "$as_me: failed program was:" >&5
13357sed 's/^/| /' conftest.$ac_ext >&5
13358
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013359
13360 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopherba4f7722010-12-07 02:05:42 +000013361echo "${ECHO_T}no" >&6; }
13362
13363cat >>confdefs.h <<\_ACEOF
13364#define HAVE_CRASHREPORTER_INFO 0
13365_ACEOF
13366
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000013367
Eric Christopherca466732010-12-03 07:45:22 +000013368fi
Eric Christophere9c1bb62010-06-22 21:01:04 +000013369
Eric Christopherba4f7722010-12-07 02:05:42 +000013370rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372
13373
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000013374
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013375 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13376echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13377if test "${ac_cv_huge_val_sanity+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer128ae102006-11-03 18:04:08 +000013379else
13380
Reid Spencer7b7ab9c2006-11-03 19:49:16 +000013381 ac_ext=cpp
13382ac_cpp='$CXXCPP $CPPFLAGS'
13383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencer128ae102006-11-03 18:04:08 +000013386
Eric Christopherf0ee6a12010-03-02 05:06:54 +000013387 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher8e52bdc2012-04-02 06:54:01 +000013388 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013389 if test "$cross_compiling" = yes; then
Reid Spencer128ae102006-11-03 18:04:08 +000013390 ac_cv_huge_val_sanity=yes
13391else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013392 cat >conftest.$ac_ext <<_ACEOF
13393/* confdefs.h. */
13394_ACEOF
13395cat confdefs.h >>conftest.$ac_ext
13396cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer128ae102006-11-03 18:04:08 +000013397/* end confdefs.h. */
13398#include <math.h>
13399int
13400main ()
13401{
13402double x = HUGE_VAL; return x != x;
13403 ;
13404 return 0;
13405}
13406_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013407rm -f conftest$ac_exeext
13408if { (ac_try="$ac_link"
13409case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421esac
13422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
Reid Spencer128ae102006-11-03 18:04:08 +000013427 ac_cv_huge_val_sanity=yes
13428else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013429 echo "$as_me: program exited with status $ac_status" >&5
13430echo "$as_me: failed program was:" >&5
13431sed 's/^/| /' conftest.$ac_ext >&5
13432
13433( exit $ac_status )
13434ac_cv_huge_val_sanity=no
Reid Spencer128ae102006-11-03 18:04:08 +000013435fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013436rm -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 +000013437fi
13438
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013439
Eric Christopherf0ee6a12010-03-02 05:06:54 +000013440 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencer128ae102006-11-03 18:04:08 +000013441 ac_ext=c
13442ac_cpp='$CPP $CPPFLAGS'
13443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13445ac_compiler_gnu=$ac_cv_c_compiler_gnu
13446
13447
13448fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013449{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13450echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencer128ae102006-11-03 18:04:08 +000013451 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13452
13453
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013454{ echo "$as_me:$LINENO: checking for pid_t" >&5
13455echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13456if test "${ac_cv_type_pid_t+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465$ac_includes_default
13466typedef pid_t ac__type_new_;
13467int
13468main ()
13469{
13470if ((ac__type_new_ *) 0)
13471 return 0;
13472if (sizeof (ac__type_new_))
13473 return 0;
13474 ;
13475 return 0;
13476}
13477_ACEOF
13478rm -f conftest.$ac_objext
13479if { (ac_try="$ac_compile"
13480case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483esac
13484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest.$ac_objext'
13503 { (case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13506esac
13507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_try") 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 ac_cv_type_pid_t=yes
13513else
13514 echo "$as_me: failed program was:" >&5
13515sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000013516
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013517 ac_cv_type_pid_t=no
13518fi
13519
13520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521fi
13522{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13523echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13524if test $ac_cv_type_pid_t = yes; then
13525 :
John Criswell3ef61af2003-06-30 21:59:07 +000013526else
13527
13528cat >>confdefs.h <<_ACEOF
13529#define pid_t int
13530_ACEOF
13531
13532fi
13533
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013534{ echo "$as_me:$LINENO: checking for size_t" >&5
13535echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13536if test "${ac_cv_type_size_t+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13538else
13539 cat >conftest.$ac_ext <<_ACEOF
13540/* confdefs.h. */
13541_ACEOF
13542cat confdefs.h >>conftest.$ac_ext
13543cat >>conftest.$ac_ext <<_ACEOF
13544/* end confdefs.h. */
13545$ac_includes_default
13546typedef size_t ac__type_new_;
13547int
13548main ()
13549{
13550if ((ac__type_new_ *) 0)
13551 return 0;
13552if (sizeof (ac__type_new_))
13553 return 0;
13554 ;
13555 return 0;
13556}
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (ac_try="$ac_compile"
13560case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_compile") 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest.$ac_objext'
13583 { (case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_try") 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_type_size_t=yes
13593else
13594 echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000013596
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013597 ac_cv_type_size_t=no
13598fi
13599
13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601fi
13602{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13603echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13604if test $ac_cv_type_size_t = yes; then
13605 :
John Criswell3ef61af2003-06-30 21:59:07 +000013606else
13607
13608cat >>confdefs.h <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013609#define size_t unsigned int
John Criswell3ef61af2003-06-30 21:59:07 +000013610_ACEOF
13611
13612fi
13613
Reid Spencer0241e382004-11-25 04:51:04 +000013614
13615cat >>confdefs.h <<_ACEOF
Torok Edwinaec06332010-01-26 08:50:50 +000013616#define RETSIGTYPE void
Reid Spencer0241e382004-11-25 04:51:04 +000013617_ACEOF
13618
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013619{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13620echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13621if test "${ac_cv_struct_tm+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000013623else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013624 cat >conftest.$ac_ext <<_ACEOF
13625/* confdefs.h. */
13626_ACEOF
13627cat confdefs.h >>conftest.$ac_ext
13628cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000013629/* end confdefs.h. */
13630#include <sys/types.h>
13631#include <time.h>
13632
13633int
13634main ()
13635{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013636struct tm *tp; tp->tm_sec;
Reid Spencer0241e382004-11-25 04:51:04 +000013637 ;
13638 return 0;
13639}
13640_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013641rm -f conftest.$ac_objext
13642if { (ac_try="$ac_compile"
13643case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13646esac
13647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_compile") 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13656 { (case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659esac
13660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_try") 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13669esac
13670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000013675 ac_cv_struct_tm=time.h
13676else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013677 echo "$as_me: failed program was:" >&5
13678sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 ac_cv_struct_tm=sys/time.h
Reid Spencer0241e382004-11-25 04:51:04 +000013681fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013682
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000013684fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013685{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13686echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000013687if test $ac_cv_struct_tm = sys/time.h; then
13688
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013689cat >>confdefs.h <<\_ACEOF
13690#define TM_IN_SYS_TIME 1
13691_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000013692
13693fi
13694
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013695{ echo "$as_me:$LINENO: checking for int64_t" >&5
13696echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13697if test "${ac_cv_type_int64_t+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700 cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
13705/* end confdefs.h. */
13706$ac_includes_default
13707typedef int64_t ac__type_new_;
13708int
13709main ()
13710{
13711if ((ac__type_new_ *) 0)
13712 return 0;
13713if (sizeof (ac__type_new_))
13714 return 0;
13715 ;
13716 return 0;
13717}
13718_ACEOF
13719rm -f conftest.$ac_objext
13720if { (ac_try="$ac_compile"
13721case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724esac
13725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_compile") 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
13733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737esac
13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; } &&
13743 { ac_try='test -s conftest.$ac_objext'
13744 { (case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13747esac
13748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_try") 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_type_int64_t=yes
13754else
13755 echo "$as_me: failed program was:" >&5
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
13758 ac_cv_type_int64_t=no
13759fi
13760
13761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762fi
13763{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13764echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13765if test $ac_cv_type_int64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000013766
13767cat >>confdefs.h <<_ACEOF
13768#define HAVE_INT64_T 1
13769_ACEOF
13770
13771
13772else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013773 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13774echo "$as_me: error: Type int64_t required but not found" >&2;}
13775 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000013776fi
13777
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013778{ echo "$as_me:$LINENO: checking for uint64_t" >&5
13779echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13780if test "${ac_cv_type_uint64_t+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783 cat >conftest.$ac_ext <<_ACEOF
13784/* confdefs.h. */
13785_ACEOF
13786cat confdefs.h >>conftest.$ac_ext
13787cat >>conftest.$ac_ext <<_ACEOF
13788/* end confdefs.h. */
13789$ac_includes_default
13790typedef uint64_t ac__type_new_;
13791int
13792main ()
13793{
13794if ((ac__type_new_ *) 0)
13795 return 0;
13796if (sizeof (ac__type_new_))
13797 return 0;
13798 ;
13799 return 0;
13800}
13801_ACEOF
13802rm -f conftest.$ac_objext
13803if { (ac_try="$ac_compile"
13804case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807esac
13808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_compile") 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820esac
13821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_type_uint64_t=yes
13837else
13838 echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_cv_type_uint64_t=no
13842fi
13843
13844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845fi
13846{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13847echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13848if test $ac_cv_type_uint64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000013849
13850cat >>confdefs.h <<_ACEOF
13851#define HAVE_UINT64_T 1
13852_ACEOF
13853
13854
13855else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013856 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13857echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13858if test "${ac_cv_type_u_int64_t+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860else
13861 cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867$ac_includes_default
13868typedef u_int64_t ac__type_new_;
13869int
13870main ()
13871{
13872if ((ac__type_new_ *) 0)
13873 return 0;
13874if (sizeof (ac__type_new_))
13875 return 0;
13876 ;
13877 return 0;
13878}
13879_ACEOF
13880rm -f conftest.$ac_objext
13881if { (ac_try="$ac_compile"
13882case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885esac
13886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_compile") 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898esac
13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest.$ac_objext'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_type_u_int64_t=yes
13915else
13916 echo "$as_me: failed program was:" >&5
13917sed 's/^/| /' conftest.$ac_ext >&5
13918
13919 ac_cv_type_u_int64_t=no
13920fi
13921
13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923fi
13924{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13925echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13926if test $ac_cv_type_u_int64_t = yes; then
John Criswelld672a3d2004-09-02 18:44:44 +000013927
13928cat >>confdefs.h <<_ACEOF
13929#define HAVE_U_INT64_T 1
13930_ACEOF
13931
13932
Misha Brukmancb46e662004-09-02 23:02:30 +000013933else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013934 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13935echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13936 { (exit 1); exit 1; }; }
Misha Brukmancb46e662004-09-02 23:02:30 +000013937fi
13938
John Criswelld672a3d2004-09-02 18:44:44 +000013939fi
13940
Reid Spencer0241e382004-11-25 04:51:04 +000013941
13942
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013943
13944
Benjamin Kramer37dce442015-03-09 18:35:18 +000013945for ac_func in backtrace getcwd
Owen Anderson132ae8b2013-02-07 00:21:34 +000013946do
13947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13948{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13950if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953 cat >conftest.$ac_ext <<_ACEOF
13954/* confdefs.h. */
13955_ACEOF
13956cat confdefs.h >>conftest.$ac_ext
13957cat >>conftest.$ac_ext <<_ACEOF
13958/* end confdefs.h. */
13959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13961#define $ac_func innocuous_$ac_func
13962
13963/* System header to define __stub macros and hopefully few prototypes,
13964 which can conflict with char $ac_func (); below.
13965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13966 <limits.h> exists even on freestanding compilers. */
13967
13968#ifdef __STDC__
13969# include <limits.h>
13970#else
13971# include <assert.h>
13972#endif
13973
13974#undef $ac_func
13975
13976/* Override any GCC internal prototype to avoid an error.
13977 Use char because int might match the return type of a GCC
13978 builtin and then its argument prototype would still apply. */
13979#ifdef __cplusplus
13980extern "C"
13981#endif
13982char $ac_func ();
13983/* The GNU C library defines this for functions which it implements
13984 to always fail with ENOSYS. Some functions are actually named
13985 something starting with __ and the normal name is an alias. */
13986#if defined __stub_$ac_func || defined __stub___$ac_func
13987choke me
13988#endif
13989
13990int
13991main ()
13992{
13993return $ac_func ();
13994 ;
13995 return 0;
13996}
13997_ACEOF
13998rm -f conftest.$ac_objext conftest$ac_exeext
13999if { (ac_try="$ac_link"
14000case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14003esac
14004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_link") 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013 { (case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14016esac
14017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_try") 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest$ac_exeext'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026esac
14027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 eval "$as_ac_var=yes"
14033else
14034 echo "$as_me: failed program was:" >&5
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
14037 eval "$as_ac_var=no"
14038fi
14039
14040rm -f core conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042fi
14043ac_res=`eval echo '${'$as_ac_var'}'`
14044 { echo "$as_me:$LINENO: result: $ac_res" >&5
14045echo "${ECHO_T}$ac_res" >&6; }
14046if test `eval echo '${'$as_ac_var'}'` = yes; then
14047 cat >>confdefs.h <<_ACEOF
14048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14049_ACEOF
14050
14051fi
14052done
14053
14054
14055
14056
14057
14058
Reid Spenceredd2ccc2007-02-16 19:17:20 +000014059for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014060do
14061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066else
14067 cat >conftest.$ac_ext <<_ACEOF
14068/* confdefs.h. */
14069_ACEOF
14070cat confdefs.h >>conftest.$ac_ext
14071cat >>conftest.$ac_ext <<_ACEOF
14072/* end confdefs.h. */
14073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14075#define $ac_func innocuous_$ac_func
14076
14077/* System header to define __stub macros and hopefully few prototypes,
14078 which can conflict with char $ac_func (); below.
14079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14080 <limits.h> exists even on freestanding compilers. */
14081
14082#ifdef __STDC__
14083# include <limits.h>
14084#else
14085# include <assert.h>
14086#endif
14087
14088#undef $ac_func
14089
14090/* Override any GCC internal prototype to avoid an error.
14091 Use char because int might match the return type of a GCC
14092 builtin and then its argument prototype would still apply. */
14093#ifdef __cplusplus
14094extern "C"
14095#endif
14096char $ac_func ();
14097/* The GNU C library defines this for functions which it implements
14098 to always fail with ENOSYS. Some functions are actually named
14099 something starting with __ and the normal name is an alias. */
14100#if defined __stub_$ac_func || defined __stub___$ac_func
14101choke me
14102#endif
14103
14104int
14105main ()
14106{
14107return $ac_func ();
14108 ;
14109 return 0;
14110}
14111_ACEOF
14112rm -f conftest.$ac_objext conftest$ac_exeext
14113if { (ac_try="$ac_link"
14114case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117esac
14118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_link") 2>conftest.er1
14120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14127 { (case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14130esac
14131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_try") 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest$ac_exeext'
14137 { (case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14140esac
14141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142 (eval "$ac_try") 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 eval "$as_ac_var=yes"
14147else
14148 echo "$as_me: failed program was:" >&5
14149sed 's/^/| /' conftest.$ac_ext >&5
14150
14151 eval "$as_ac_var=no"
14152fi
14153
14154rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14156fi
14157ac_res=`eval echo '${'$as_ac_var'}'`
14158 { echo "$as_me:$LINENO: result: $ac_res" >&5
14159echo "${ECHO_T}$ac_res" >&6; }
14160if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spenceredd2ccc2007-02-16 19:17:20 +000014161 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spenceredd2ccc2007-02-16 19:17:20 +000014163_ACEOF
14164
14165fi
14166done
14167
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014168
14169
14170
Reid Spenceredd2ccc2007-02-16 19:17:20 +000014171for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014172do
14173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14176if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178else
14179 cat >conftest.$ac_ext <<_ACEOF
14180/* confdefs.h. */
14181_ACEOF
14182cat confdefs.h >>conftest.$ac_ext
14183cat >>conftest.$ac_ext <<_ACEOF
14184/* end confdefs.h. */
14185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14187#define $ac_func innocuous_$ac_func
14188
14189/* System header to define __stub macros and hopefully few prototypes,
14190 which can conflict with char $ac_func (); below.
14191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14192 <limits.h> exists even on freestanding compilers. */
14193
14194#ifdef __STDC__
14195# include <limits.h>
14196#else
14197# include <assert.h>
14198#endif
14199
14200#undef $ac_func
14201
14202/* Override any GCC internal prototype to avoid an error.
14203 Use char because int might match the return type of a GCC
14204 builtin and then its argument prototype would still apply. */
14205#ifdef __cplusplus
14206extern "C"
14207#endif
14208char $ac_func ();
14209/* The GNU C library defines this for functions which it implements
14210 to always fail with ENOSYS. Some functions are actually named
14211 something starting with __ and the normal name is an alias. */
14212#if defined __stub_$ac_func || defined __stub___$ac_func
14213choke me
14214#endif
14215
14216int
14217main ()
14218{
14219return $ac_func ();
14220 ;
14221 return 0;
14222}
14223_ACEOF
14224rm -f conftest.$ac_objext conftest$ac_exeext
14225if { (ac_try="$ac_link"
14226case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229esac
14230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_link") 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest$ac_exeext'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252esac
14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 eval "$as_ac_var=yes"
14259else
14260 echo "$as_me: failed program was:" >&5
14261sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 eval "$as_ac_var=no"
14264fi
14265
14266rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268fi
14269ac_res=`eval echo '${'$as_ac_var'}'`
14270 { echo "$as_me:$LINENO: result: $ac_res" >&5
14271echo "${ECHO_T}$ac_res" >&6; }
14272if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera609b652006-01-23 08:15:53 +000014273 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera609b652006-01-23 08:15:53 +000014275_ACEOF
14276
14277fi
14278done
14279
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014280
14281
14282
14283
14284
Eric Christopherdea3bda2010-04-16 05:14:21 +000014285
Eric Christopher30536382013-07-26 17:13:47 +000014286for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014287do
14288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14289{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14291if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293else
14294 cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h. */
14300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14302#define $ac_func innocuous_$ac_func
14303
14304/* System header to define __stub macros and hopefully few prototypes,
14305 which can conflict with char $ac_func (); below.
14306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14307 <limits.h> exists even on freestanding compilers. */
14308
14309#ifdef __STDC__
14310# include <limits.h>
14311#else
14312# include <assert.h>
14313#endif
14314
14315#undef $ac_func
14316
14317/* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply. */
14320#ifdef __cplusplus
14321extern "C"
14322#endif
14323char $ac_func ();
14324/* The GNU C library defines this for functions which it implements
14325 to always fail with ENOSYS. Some functions are actually named
14326 something starting with __ and the normal name is an alias. */
14327#if defined __stub_$ac_func || defined __stub___$ac_func
14328choke me
14329#endif
14330
14331int
14332main ()
14333{
14334return $ac_func ();
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339rm -f conftest.$ac_objext conftest$ac_exeext
14340if { (ac_try="$ac_link"
14341case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14344esac
14345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_link") 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14354 { (case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14357esac
14358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_try") 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest$ac_exeext'
14364 { (case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14367esac
14368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369 (eval "$ac_try") 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; }; then
14373 eval "$as_ac_var=yes"
14374else
14375 echo "$as_me: failed program was:" >&5
14376sed 's/^/| /' conftest.$ac_ext >&5
14377
14378 eval "$as_ac_var=no"
14379fi
14380
14381rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext conftest.$ac_ext
14383fi
14384ac_res=`eval echo '${'$as_ac_var'}'`
14385 { echo "$as_me:$LINENO: result: $ac_res" >&5
14386echo "${ECHO_T}$ac_res" >&6; }
14387if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000014388 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000014390_ACEOF
14391
14392fi
14393done
Reid Spencera609b652006-01-23 08:15:53 +000014394
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014395
14396
14397
Todd Fiala4ccfe392014-02-05 05:04:36 +000014398for ac_func in strerror strerror_r setenv
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014399do
14400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14401{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14403if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14405else
14406 cat >conftest.$ac_ext <<_ACEOF
14407/* confdefs.h. */
14408_ACEOF
14409cat confdefs.h >>conftest.$ac_ext
14410cat >>conftest.$ac_ext <<_ACEOF
14411/* end confdefs.h. */
14412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14414#define $ac_func innocuous_$ac_func
14415
14416/* System header to define __stub macros and hopefully few prototypes,
14417 which can conflict with char $ac_func (); below.
14418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14419 <limits.h> exists even on freestanding compilers. */
14420
14421#ifdef __STDC__
14422# include <limits.h>
14423#else
14424# include <assert.h>
14425#endif
14426
14427#undef $ac_func
14428
14429/* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply. */
14432#ifdef __cplusplus
14433extern "C"
14434#endif
14435char $ac_func ();
14436/* The GNU C library defines this for functions which it implements
14437 to always fail with ENOSYS. Some functions are actually named
14438 something starting with __ and the normal name is an alias. */
14439#if defined __stub_$ac_func || defined __stub___$ac_func
14440choke me
14441#endif
14442
14443int
14444main ()
14445{
14446return $ac_func ();
14447 ;
14448 return 0;
14449}
14450_ACEOF
14451rm -f conftest.$ac_objext conftest$ac_exeext
14452if { (ac_try="$ac_link"
14453case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456esac
14457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_link") 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14466 { (case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469esac
14470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_try") 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest$ac_exeext'
14476 { (case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14479esac
14480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_try") 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 eval "$as_ac_var=yes"
14486else
14487 echo "$as_me: failed program was:" >&5
14488sed 's/^/| /' conftest.$ac_ext >&5
14489
14490 eval "$as_ac_var=no"
14491fi
14492
14493rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
14495fi
14496ac_res=`eval echo '${'$as_ac_var'}'`
14497 { echo "$as_me:$LINENO: result: $ac_res" >&5
14498echo "${ECHO_T}$ac_res" >&6; }
14499if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb6681582004-12-27 06:15:02 +000014500 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb6681582004-12-27 06:15:02 +000014502_ACEOF
14503
14504fi
14505done
14506
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014507
14508
14509
14510
Chris Lattner81479022005-11-14 07:25:50 +000014511for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014512do
14513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14514{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14516if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518else
14519 cat >conftest.$ac_ext <<_ACEOF
14520/* confdefs.h. */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
14524/* end confdefs.h. */
14525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14527#define $ac_func innocuous_$ac_func
14528
14529/* System header to define __stub macros and hopefully few prototypes,
14530 which can conflict with char $ac_func (); below.
14531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14532 <limits.h> exists even on freestanding compilers. */
14533
14534#ifdef __STDC__
14535# include <limits.h>
14536#else
14537# include <assert.h>
14538#endif
14539
14540#undef $ac_func
14541
14542/* Override any GCC internal prototype to avoid an error.
14543 Use char because int might match the return type of a GCC
14544 builtin and then its argument prototype would still apply. */
14545#ifdef __cplusplus
14546extern "C"
14547#endif
14548char $ac_func ();
14549/* The GNU C library defines this for functions which it implements
14550 to always fail with ENOSYS. Some functions are actually named
14551 something starting with __ and the normal name is an alias. */
14552#if defined __stub_$ac_func || defined __stub___$ac_func
14553choke me
14554#endif
14555
14556int
14557main ()
14558{
14559return $ac_func ();
14560 ;
14561 return 0;
14562}
14563_ACEOF
14564rm -f conftest.$ac_objext conftest$ac_exeext
14565if { (ac_try="$ac_link"
14566case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569esac
14570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14579 { (case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14582esac
14583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_try") 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest$ac_exeext'
14589 { (case "(($ac_try" in
14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591 *) ac_try_echo=$ac_try;;
14592esac
14593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_try") 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 eval "$as_ac_var=yes"
14599else
14600 echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
14603 eval "$as_ac_var=no"
14604fi
14605
14606rm -f core conftest.err conftest.$ac_objext \
14607 conftest$ac_exeext conftest.$ac_ext
14608fi
14609ac_res=`eval echo '${'$as_ac_var'}'`
14610 { echo "$as_me:$LINENO: result: $ac_res" >&5
14611echo "${ECHO_T}$ac_res" >&6; }
14612if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000014613 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000014615_ACEOF
14616
14617fi
Reid Spencer0241e382004-11-25 04:51:04 +000014618done
John Criswell3ef61af2003-06-30 21:59:07 +000014619
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014620
14621
14622
14623
Daniel Dunbar7840c542011-02-03 02:40:02 +000014624
14625for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014626do
14627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14628{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14630if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633 cat >conftest.$ac_ext <<_ACEOF
14634/* confdefs.h. */
14635_ACEOF
14636cat confdefs.h >>conftest.$ac_ext
14637cat >>conftest.$ac_ext <<_ACEOF
14638/* end confdefs.h. */
14639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14641#define $ac_func innocuous_$ac_func
14642
14643/* System header to define __stub macros and hopefully few prototypes,
14644 which can conflict with char $ac_func (); below.
14645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14646 <limits.h> exists even on freestanding compilers. */
14647
14648#ifdef __STDC__
14649# include <limits.h>
14650#else
14651# include <assert.h>
14652#endif
14653
14654#undef $ac_func
14655
14656/* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14659#ifdef __cplusplus
14660extern "C"
14661#endif
14662char $ac_func ();
14663/* The GNU C library defines this for functions which it implements
14664 to always fail with ENOSYS. Some functions are actually named
14665 something starting with __ and the normal name is an alias. */
14666#if defined __stub_$ac_func || defined __stub___$ac_func
14667choke me
14668#endif
14669
14670int
14671main ()
14672{
14673return $ac_func ();
14674 ;
14675 return 0;
14676}
14677_ACEOF
14678rm -f conftest.$ac_objext conftest$ac_exeext
14679if { (ac_try="$ac_link"
14680case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14683esac
14684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_link") 2>conftest.er1
14686 ac_status=$?
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696esac
14697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest$ac_exeext'
14703 { (case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706esac
14707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_try") 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 eval "$as_ac_var=yes"
14713else
14714 echo "$as_me: failed program was:" >&5
14715sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 eval "$as_ac_var=no"
14718fi
14719
14720rm -f core conftest.err conftest.$ac_objext \
14721 conftest$ac_exeext conftest.$ac_ext
14722fi
14723ac_res=`eval echo '${'$as_ac_var'}'`
14724 { echo "$as_me:$LINENO: result: $ac_res" >&5
14725echo "${ECHO_T}$ac_res" >&6; }
14726if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera31ac4e2006-06-05 16:11:07 +000014727 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera31ac4e2006-06-05 16:11:07 +000014729_ACEOF
14730
14731fi
14732done
14733
Eric Christophera24dc7f2013-07-04 01:10:38 +000014734
14735
14736for ac_func in futimes futimens
14737do
14738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743else
14744 cat >conftest.$ac_ext <<_ACEOF
14745/* confdefs.h. */
14746_ACEOF
14747cat confdefs.h >>conftest.$ac_ext
14748cat >>conftest.$ac_ext <<_ACEOF
14749/* end confdefs.h. */
14750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14752#define $ac_func innocuous_$ac_func
14753
14754/* System header to define __stub macros and hopefully few prototypes,
14755 which can conflict with char $ac_func (); below.
14756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14757 <limits.h> exists even on freestanding compilers. */
14758
14759#ifdef __STDC__
14760# include <limits.h>
14761#else
14762# include <assert.h>
14763#endif
14764
14765#undef $ac_func
14766
14767/* Override any GCC internal prototype to avoid an error.
14768 Use char because int might match the return type of a GCC
14769 builtin and then its argument prototype would still apply. */
14770#ifdef __cplusplus
14771extern "C"
14772#endif
14773char $ac_func ();
14774/* The GNU C library defines this for functions which it implements
14775 to always fail with ENOSYS. Some functions are actually named
14776 something starting with __ and the normal name is an alias. */
14777#if defined __stub_$ac_func || defined __stub___$ac_func
14778choke me
14779#endif
14780
14781int
14782main ()
14783{
14784return $ac_func ();
14785 ;
14786 return 0;
14787}
14788_ACEOF
14789rm -f conftest.$ac_objext conftest$ac_exeext
14790if { (ac_try="$ac_link"
14791case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_link") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14804 { (case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807esac
14808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_try") 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
14814 { (case "(($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_try") 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 eval "$as_ac_var=yes"
14824else
14825 echo "$as_me: failed program was:" >&5
14826sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 eval "$as_ac_var=no"
14829fi
14830
14831rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833fi
14834ac_res=`eval echo '${'$as_ac_var'}'`
14835 { echo "$as_me:$LINENO: result: $ac_res" >&5
14836echo "${ECHO_T}$ac_res" >&6; }
14837if test `eval echo '${'$as_ac_var'}'` = yes; then
14838 cat >>confdefs.h <<_ACEOF
14839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840_ACEOF
14841
14842fi
14843done
14844
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014845{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14846echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14847if test "${llvm_cv_c_printf_a+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014849else
Reid Spencerf184a862004-09-19 23:53:36 +000014850 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000014851ac_cpp='$CPP $CPPFLAGS'
14852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014856 if test "$cross_compiling" = yes; then
Reid Spencer8de46052004-11-27 22:01:43 +000014857 llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000014858else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014859 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerf184a862004-09-19 23:53:36 +000014860
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014861 /* confdefs.h. */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000014866
John Criswell42859552003-10-13 16:22:01 +000014867#include <stdio.h>
Reid Spencerf184a862004-09-19 23:53:36 +000014868#include <stdlib.h>
14869
John Criswell42859552003-10-13 16:22:01 +000014870int
14871main ()
14872{
14873
Reid Spencerf184a862004-09-19 23:53:36 +000014874volatile double A, B;
14875char Buffer[100];
14876A = 1;
14877A /= 10.0;
14878sprintf(Buffer, "%a", A);
14879B = atof(Buffer);
14880if (A != B)
14881 return (1);
14882if (A != 0x1.999999999999ap-4)
14883 return (1);
14884return (0);
John Criswell42859552003-10-13 16:22:01 +000014885 ;
14886 return 0;
14887}
14888_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014889rm -f conftest$ac_exeext
14890if { (ac_try="$ac_link"
14891case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14894esac
14895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14900 { (case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14903esac
14904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_try") 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
Reid Spencer8de46052004-11-27 22:01:43 +000014909 llvm_cv_c_printf_a=yes
John Criswell42859552003-10-13 16:22:01 +000014910else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014911 echo "$as_me: program exited with status $ac_status" >&5
14912echo "$as_me: failed program was:" >&5
14913sed 's/^/| /' conftest.$ac_ext >&5
14914
14915( exit $ac_status )
14916llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000014917fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014918rm -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 +000014919fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014920
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014921
Reid Spencerf184a862004-09-19 23:53:36 +000014922 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000014923ac_cpp='$CPP $CPPFLAGS'
14924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926ac_compiler_gnu=$ac_cv_c_compiler_gnu
14927
Reid Spencer0241e382004-11-25 04:51:04 +000014928fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014929{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14930echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer8de46052004-11-27 22:01:43 +000014931 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswell42859552003-10-13 16:22:01 +000014932
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014933cat >>confdefs.h <<\_ACEOF
14934#define HAVE_PRINTF_A 1
14935_ACEOF
John Criswell42859552003-10-13 16:22:01 +000014936
Reid Spencerf184a862004-09-19 23:53:36 +000014937 fi
John Criswell42859552003-10-13 16:22:01 +000014938
Reid Spencer0241e382004-11-25 04:51:04 +000014939
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014940
14941 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014942echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14943if test "${ac_cv_func_rand48+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014945else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014946
14947 ac_ext=cpp
Reid Spencer0241e382004-11-25 04:51:04 +000014948ac_cpp='$CXXCPP $CPPFLAGS'
14949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14952
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014953 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014954/* confdefs.h. */
14955_ACEOF
14956cat confdefs.h >>conftest.$ac_ext
14957cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014958/* end confdefs.h. */
14959#include <stdlib.h>
14960int
14961main ()
14962{
14963srand48(0);lrand48();drand48();
14964 ;
14965 return 0;
14966}
14967_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014968rm -f conftest.$ac_objext
14969if { (ac_try="$ac_compile"
14970case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973esac
14974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986esac
14987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest.$ac_objext'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996esac
14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000015002 ac_cv_func_rand48=yes
15003else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015004 echo "$as_me: failed program was:" >&5
15005sed 's/^/| /' conftest.$ac_ext >&5
15006
15007 ac_cv_func_rand48=no
Reid Spencer0241e382004-11-25 04:51:04 +000015008fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015009
Reid Spencer0b52e2f2006-08-04 18:18:08 +000015010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015011 ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +000015012ac_cpp='$CPP $CPPFLAGS'
15013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015017
Reid Spencer0241e382004-11-25 04:51:04 +000015018fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015019{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15020echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000015021
15022if test "$ac_cv_func_rand48" = "yes" ; then
15023
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015024cat >>confdefs.h <<\_ACEOF
15025#define HAVE_RAND48 1
15026_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000015027
15028fi
John Criswell3b4195f32004-02-13 21:57:29 +000015029
15030
Todd Fiala4ccfe392014-02-05 05:04:36 +000015031{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15032echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15033if test "${ac_cv_have_decl_arc4random+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035else
15036 cat >conftest.$ac_ext <<_ACEOF
15037/* confdefs.h. */
15038_ACEOF
15039cat confdefs.h >>conftest.$ac_ext
15040cat >>conftest.$ac_ext <<_ACEOF
15041/* end confdefs.h. */
15042$ac_includes_default
15043int
15044main ()
15045{
15046#ifndef arc4random
15047 char *p = (char *) arc4random;
15048 return !p;
15049#endif
15050
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext
15056if { (ac_try="$ac_compile"
15057case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_compile") 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15070 { (case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_try") 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_try") 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_cv_have_decl_arc4random=yes
15090else
15091 echo "$as_me: failed program was:" >&5
15092sed 's/^/| /' conftest.$ac_ext >&5
15093
15094 ac_cv_have_decl_arc4random=no
15095fi
15096
15097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098fi
15099{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15100echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15101if test $ac_cv_have_decl_arc4random = yes; then
15102
15103cat >>confdefs.h <<_ACEOF
15104#define HAVE_DECL_ARC4RANDOM 1
15105_ACEOF
15106
15107
15108else
15109 cat >>confdefs.h <<_ACEOF
15110#define HAVE_DECL_ARC4RANDOM 0
15111_ACEOF
15112
15113
15114fi
15115
15116
15117
NAKAMURA Takumi189111802011-02-09 04:18:48 +000015118{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15119echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15120if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122else
15123 cat >conftest.$ac_ext <<_ACEOF
15124/* confdefs.h. */
15125_ACEOF
15126cat confdefs.h >>conftest.$ac_ext
15127cat >>conftest.$ac_ext <<_ACEOF
15128/* end confdefs.h. */
15129$ac_includes_default
15130int
15131main ()
15132{
15133#ifndef strerror_s
15134 char *p = (char *) strerror_s;
15135 return !p;
15136#endif
15137
15138 ;
15139 return 0;
15140}
15141_ACEOF
15142rm -f conftest.$ac_objext
15143if { (ac_try="$ac_compile"
15144case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147esac
15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_compile") 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160esac
15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_try") 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest.$ac_objext'
15167 { (case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15170esac
15171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_try") 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176 ac_cv_have_decl_strerror_s=yes
15177else
15178 echo "$as_me: failed program was:" >&5
15179sed 's/^/| /' conftest.$ac_ext >&5
15180
15181 ac_cv_have_decl_strerror_s=no
15182fi
15183
15184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185fi
15186{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15187echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15188if test $ac_cv_have_decl_strerror_s = yes; then
15189
15190cat >>confdefs.h <<_ACEOF
15191#define HAVE_DECL_STRERROR_S 1
15192_ACEOF
15193
15194
15195else
15196 cat >>confdefs.h <<_ACEOF
15197#define HAVE_DECL_STRERROR_S 0
15198_ACEOF
15199
15200
15201fi
15202
15203
15204
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000015205if test "$llvm_cv_os_type" = "MingW" ; then
15206 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15207echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15208if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210else
15211 ac_check_lib_save_LIBS=$LIBS
15212LIBS="-lgcc $LIBS"
15213cat >conftest.$ac_ext <<_ACEOF
15214/* confdefs.h. */
15215_ACEOF
15216cat confdefs.h >>conftest.$ac_ext
15217cat >>conftest.$ac_ext <<_ACEOF
15218/* end confdefs.h. */
15219
15220/* Override any GCC internal prototype to avoid an error.
15221 Use char because int might match the return type of a GCC
15222 builtin and then its argument prototype would still apply. */
15223#ifdef __cplusplus
15224extern "C"
15225#endif
15226char _alloca ();
15227int
15228main ()
15229{
15230return _alloca ();
15231 ;
15232 return 0;
15233}
15234_ACEOF
15235rm -f conftest.$ac_objext conftest$ac_exeext
15236if { (ac_try="$ac_link"
15237case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240esac
15241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_link") 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest$ac_exeext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15263esac
15264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_lib_gcc__alloca=yes
15270else
15271 echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 ac_cv_lib_gcc__alloca=no
15275fi
15276
15277rm -f core conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15279LIBS=$ac_check_lib_save_LIBS
15280fi
15281{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15282echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15283if test $ac_cv_lib_gcc__alloca = yes; then
15284
15285cat >>confdefs.h <<\_ACEOF
15286#define HAVE__ALLOCA 1
15287_ACEOF
15288
15289fi
15290
15291 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15292echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15293if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15295else
15296 ac_check_lib_save_LIBS=$LIBS
15297LIBS="-lgcc $LIBS"
15298cat >conftest.$ac_ext <<_ACEOF
15299/* confdefs.h. */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h. */
15304
15305/* Override any GCC internal prototype to avoid an error.
15306 Use char because int might match the return type of a GCC
15307 builtin and then its argument prototype would still apply. */
15308#ifdef __cplusplus
15309extern "C"
15310#endif
15311char __alloca ();
15312int
15313main ()
15314{
15315return __alloca ();
15316 ;
15317 return 0;
15318}
15319_ACEOF
15320rm -f conftest.$ac_objext conftest$ac_exeext
15321if { (ac_try="$ac_link"
15322case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_link") 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } &&
15334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15335 { (case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15338esac
15339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_try") 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest$ac_exeext'
15345 { (case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348esac
15349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_try") 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 ac_cv_lib_gcc___alloca=yes
15355else
15356 echo "$as_me: failed program was:" >&5
15357sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 ac_cv_lib_gcc___alloca=no
15360fi
15361
15362rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
15364LIBS=$ac_check_lib_save_LIBS
15365fi
15366{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15367echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15368if test $ac_cv_lib_gcc___alloca = yes; then
15369
15370cat >>confdefs.h <<\_ACEOF
15371#define HAVE___ALLOCA 1
15372_ACEOF
15373
15374fi
15375
15376 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15377echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15378if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380else
15381 ac_check_lib_save_LIBS=$LIBS
15382LIBS="-lgcc $LIBS"
15383cat >conftest.$ac_ext <<_ACEOF
15384/* confdefs.h. */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
15388/* end confdefs.h. */
15389
15390/* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15393#ifdef __cplusplus
15394extern "C"
15395#endif
15396char __chkstk ();
15397int
15398main ()
15399{
15400return __chkstk ();
15401 ;
15402 return 0;
15403}
15404_ACEOF
15405rm -f conftest.$ac_objext conftest$ac_exeext
15406if { (ac_try="$ac_link"
15407case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410esac
15411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15420 { (case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15423esac
15424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_try") 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest$ac_exeext'
15430 { (case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433esac
15434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_try") 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_lib_gcc___chkstk=yes
15440else
15441 echo "$as_me: failed program was:" >&5
15442sed 's/^/| /' conftest.$ac_ext >&5
15443
15444 ac_cv_lib_gcc___chkstk=no
15445fi
15446
15447rm -f core conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
15449LIBS=$ac_check_lib_save_LIBS
15450fi
15451{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15452echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15453if test $ac_cv_lib_gcc___chkstk = yes; then
15454
15455cat >>confdefs.h <<\_ACEOF
15456#define HAVE___CHKSTK 1
15457_ACEOF
15458
15459fi
15460
NAKAMURA Takumi78855072015-01-30 13:01:19 +000015461 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15462echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15463if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465else
15466 ac_check_lib_save_LIBS=$LIBS
15467LIBS="-lgcc $LIBS"
15468cat >conftest.$ac_ext <<_ACEOF
15469/* confdefs.h. */
15470_ACEOF
15471cat confdefs.h >>conftest.$ac_ext
15472cat >>conftest.$ac_ext <<_ACEOF
15473/* end confdefs.h. */
15474
15475/* Override any GCC internal prototype to avoid an error.
15476 Use char because int might match the return type of a GCC
15477 builtin and then its argument prototype would still apply. */
15478#ifdef __cplusplus
15479extern "C"
15480#endif
15481char __chkstk_ms ();
15482int
15483main ()
15484{
15485return __chkstk_ms ();
15486 ;
15487 return 0;
15488}
15489_ACEOF
15490rm -f conftest.$ac_objext conftest$ac_exeext
15491if { (ac_try="$ac_link"
15492case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495esac
15496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_link") 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15505 { (case "(($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_try") 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; } &&
15514 { ac_try='test -s conftest$ac_exeext'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518esac
15519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524 ac_cv_lib_gcc___chkstk_ms=yes
15525else
15526 echo "$as_me: failed program was:" >&5
15527sed 's/^/| /' conftest.$ac_ext >&5
15528
15529 ac_cv_lib_gcc___chkstk_ms=no
15530fi
15531
15532rm -f core conftest.err conftest.$ac_objext \
15533 conftest$ac_exeext conftest.$ac_ext
15534LIBS=$ac_check_lib_save_LIBS
15535fi
15536{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15537echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15538if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15539
15540cat >>confdefs.h <<\_ACEOF
15541#define HAVE___CHKSTK_MS 1
15542_ACEOF
15543
15544fi
15545
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000015546 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15547echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15548if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 ac_check_lib_save_LIBS=$LIBS
15552LIBS="-lgcc $LIBS"
15553cat >conftest.$ac_ext <<_ACEOF
15554/* confdefs.h. */
15555_ACEOF
15556cat confdefs.h >>conftest.$ac_ext
15557cat >>conftest.$ac_ext <<_ACEOF
15558/* end confdefs.h. */
15559
15560/* Override any GCC internal prototype to avoid an error.
15561 Use char because int might match the return type of a GCC
15562 builtin and then its argument prototype would still apply. */
15563#ifdef __cplusplus
15564extern "C"
15565#endif
15566char ___chkstk ();
15567int
15568main ()
15569{
15570return ___chkstk ();
15571 ;
15572 return 0;
15573}
15574_ACEOF
15575rm -f conftest.$ac_objext conftest$ac_exeext
15576if { (ac_try="$ac_link"
15577case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15580esac
15581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_link") 2>conftest.er1
15583 ac_status=$?
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15590 { (case "(($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_try") 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; } &&
15599 { ac_try='test -s conftest$ac_exeext'
15600 { (case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15603esac
15604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_try") 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_lib_gcc____chkstk=yes
15610else
15611 echo "$as_me: failed program was:" >&5
15612sed 's/^/| /' conftest.$ac_ext >&5
15613
15614 ac_cv_lib_gcc____chkstk=no
15615fi
15616
15617rm -f core conftest.err conftest.$ac_objext \
15618 conftest$ac_exeext conftest.$ac_ext
15619LIBS=$ac_check_lib_save_LIBS
15620fi
15621{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15622echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15623if test $ac_cv_lib_gcc____chkstk = yes; then
15624
15625cat >>confdefs.h <<\_ACEOF
15626#define HAVE____CHKSTK 1
15627_ACEOF
15628
15629fi
15630
NAKAMURA Takumi78855072015-01-30 13:01:19 +000015631 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15632echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15633if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635else
15636 ac_check_lib_save_LIBS=$LIBS
15637LIBS="-lgcc $LIBS"
15638cat >conftest.$ac_ext <<_ACEOF
15639/* confdefs.h. */
15640_ACEOF
15641cat confdefs.h >>conftest.$ac_ext
15642cat >>conftest.$ac_ext <<_ACEOF
15643/* end confdefs.h. */
15644
15645/* Override any GCC internal prototype to avoid an error.
15646 Use char because int might match the return type of a GCC
15647 builtin and then its argument prototype would still apply. */
15648#ifdef __cplusplus
15649extern "C"
15650#endif
15651char ___chkstk_ms ();
15652int
15653main ()
15654{
15655return ___chkstk_ms ();
15656 ;
15657 return 0;
15658}
15659_ACEOF
15660rm -f conftest.$ac_objext conftest$ac_exeext
15661if { (ac_try="$ac_link"
15662case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665esac
15666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_link") 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
15674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15675 { (case "(($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_try") 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest$ac_exeext'
15685 { (case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15688esac
15689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_try") 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 ac_cv_lib_gcc____chkstk_ms=yes
15695else
15696 echo "$as_me: failed program was:" >&5
15697sed 's/^/| /' conftest.$ac_ext >&5
15698
15699 ac_cv_lib_gcc____chkstk_ms=no
15700fi
15701
15702rm -f core conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
15704LIBS=$ac_check_lib_save_LIBS
15705fi
15706{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15707echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15708if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15709
15710cat >>confdefs.h <<\_ACEOF
15711#define HAVE____CHKSTK_MS 1
15712_ACEOF
15713
15714fi
15715
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000015716
15717 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15718echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15719if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721else
15722 ac_check_lib_save_LIBS=$LIBS
15723LIBS="-lgcc $LIBS"
15724cat >conftest.$ac_ext <<_ACEOF
15725/* confdefs.h. */
15726_ACEOF
15727cat confdefs.h >>conftest.$ac_ext
15728cat >>conftest.$ac_ext <<_ACEOF
15729/* end confdefs.h. */
15730
15731/* Override any GCC internal prototype to avoid an error.
15732 Use char because int might match the return type of a GCC
15733 builtin and then its argument prototype would still apply. */
15734#ifdef __cplusplus
15735extern "C"
15736#endif
15737char __ashldi3 ();
15738int
15739main ()
15740{
15741return __ashldi3 ();
15742 ;
15743 return 0;
15744}
15745_ACEOF
15746rm -f conftest.$ac_objext conftest$ac_exeext
15747if { (ac_try="$ac_link"
15748case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751esac
15752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_link") 2>conftest.er1
15754 ac_status=$?
15755 grep -v '^ *+' conftest.er1 >conftest.err
15756 rm -f conftest.er1
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } &&
15760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15761 { (case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15764esac
15765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766 (eval "$ac_try") 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; } &&
15770 { ac_try='test -s conftest$ac_exeext'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_cv_lib_gcc___ashldi3=yes
15781else
15782 echo "$as_me: failed program was:" >&5
15783sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 ac_cv_lib_gcc___ashldi3=no
15786fi
15787
15788rm -f core conftest.err conftest.$ac_objext \
15789 conftest$ac_exeext conftest.$ac_ext
15790LIBS=$ac_check_lib_save_LIBS
15791fi
15792{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15793echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15794if test $ac_cv_lib_gcc___ashldi3 = yes; then
15795
15796cat >>confdefs.h <<\_ACEOF
15797#define HAVE___ASHLDI3 1
15798_ACEOF
15799
15800fi
15801
15802 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15803echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15804if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15806else
15807 ac_check_lib_save_LIBS=$LIBS
15808LIBS="-lgcc $LIBS"
15809cat >conftest.$ac_ext <<_ACEOF
15810/* confdefs.h. */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h. */
15815
15816/* Override any GCC internal prototype to avoid an error.
15817 Use char because int might match the return type of a GCC
15818 builtin and then its argument prototype would still apply. */
15819#ifdef __cplusplus
15820extern "C"
15821#endif
15822char __ashrdi3 ();
15823int
15824main ()
15825{
15826return __ashrdi3 ();
15827 ;
15828 return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext conftest$ac_exeext
15832if { (ac_try="$ac_link"
15833case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836esac
15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_link") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849esac
15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest$ac_exeext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859esac
15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_cv_lib_gcc___ashrdi3=yes
15866else
15867 echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 ac_cv_lib_gcc___ashrdi3=no
15871fi
15872
15873rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext conftest.$ac_ext
15875LIBS=$ac_check_lib_save_LIBS
15876fi
15877{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15878echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15879if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15880
15881cat >>confdefs.h <<\_ACEOF
15882#define HAVE___ASHRDI3 1
15883_ACEOF
15884
15885fi
15886
15887 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15888echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15889if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891else
15892 ac_check_lib_save_LIBS=$LIBS
15893LIBS="-lgcc $LIBS"
15894cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
15900
15901/* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15904#ifdef __cplusplus
15905extern "C"
15906#endif
15907char __divdi3 ();
15908int
15909main ()
15910{
15911return __divdi3 ();
15912 ;
15913 return 0;
15914}
15915_ACEOF
15916rm -f conftest.$ac_objext conftest$ac_exeext
15917if { (ac_try="$ac_link"
15918case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921esac
15922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_link") 2>conftest.er1
15924 ac_status=$?
15925 grep -v '^ *+' conftest.er1 >conftest.err
15926 rm -f conftest.er1
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15931 { (case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934esac
15935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_try") 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest$ac_exeext'
15941 { (case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15944esac
15945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_try") 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_cv_lib_gcc___divdi3=yes
15951else
15952 echo "$as_me: failed program was:" >&5
15953sed 's/^/| /' conftest.$ac_ext >&5
15954
15955 ac_cv_lib_gcc___divdi3=no
15956fi
15957
15958rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15960LIBS=$ac_check_lib_save_LIBS
15961fi
15962{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15963echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15964if test $ac_cv_lib_gcc___divdi3 = yes; then
15965
15966cat >>confdefs.h <<\_ACEOF
15967#define HAVE___DIVDI3 1
15968_ACEOF
15969
15970fi
15971
15972 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15973echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15974if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15976else
15977 ac_check_lib_save_LIBS=$LIBS
15978LIBS="-lgcc $LIBS"
15979cat >conftest.$ac_ext <<_ACEOF
15980/* confdefs.h. */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h. */
15985
15986/* Override any GCC internal prototype to avoid an error.
15987 Use char because int might match the return type of a GCC
15988 builtin and then its argument prototype would still apply. */
15989#ifdef __cplusplus
15990extern "C"
15991#endif
15992char __fixdfdi ();
15993int
15994main ()
15995{
15996return __fixdfdi ();
15997 ;
15998 return 0;
15999}
16000_ACEOF
16001rm -f conftest.$ac_objext conftest$ac_exeext
16002if { (ac_try="$ac_link"
16003case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16006esac
16007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_link") 2>conftest.er1
16009 ac_status=$?
16010 grep -v '^ *+' conftest.er1 >conftest.err
16011 rm -f conftest.er1
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16019esac
16020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest$ac_exeext'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_lib_gcc___fixdfdi=yes
16036else
16037 echo "$as_me: failed program was:" >&5
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_cv_lib_gcc___fixdfdi=no
16041fi
16042
16043rm -f core conftest.err conftest.$ac_objext \
16044 conftest$ac_exeext conftest.$ac_ext
16045LIBS=$ac_check_lib_save_LIBS
16046fi
16047{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16048echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16049if test $ac_cv_lib_gcc___fixdfdi = yes; then
16050
16051cat >>confdefs.h <<\_ACEOF
16052#define HAVE___FIXDFDI 1
16053_ACEOF
16054
16055fi
16056
16057 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16058echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16059if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061else
16062 ac_check_lib_save_LIBS=$LIBS
16063LIBS="-lgcc $LIBS"
16064cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070
16071/* Override any GCC internal prototype to avoid an error.
16072 Use char because int might match the return type of a GCC
16073 builtin and then its argument prototype would still apply. */
16074#ifdef __cplusplus
16075extern "C"
16076#endif
16077char __fixsfdi ();
16078int
16079main ()
16080{
16081return __fixsfdi ();
16082 ;
16083 return 0;
16084}
16085_ACEOF
16086rm -f conftest.$ac_objext conftest$ac_exeext
16087if { (ac_try="$ac_link"
16088case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091esac
16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_link") 2>conftest.er1
16094 ac_status=$?
16095 grep -v '^ *+' conftest.er1 >conftest.err
16096 rm -f conftest.er1
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104esac
16105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114esac
16115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_cv_lib_gcc___fixsfdi=yes
16121else
16122 echo "$as_me: failed program was:" >&5
16123sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 ac_cv_lib_gcc___fixsfdi=no
16126fi
16127
16128rm -f core conftest.err conftest.$ac_objext \
16129 conftest$ac_exeext conftest.$ac_ext
16130LIBS=$ac_check_lib_save_LIBS
16131fi
16132{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16133echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16134if test $ac_cv_lib_gcc___fixsfdi = yes; then
16135
16136cat >>confdefs.h <<\_ACEOF
16137#define HAVE___FIXSFDI 1
16138_ACEOF
16139
16140fi
16141
16142 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16143echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16144if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16146else
16147 ac_check_lib_save_LIBS=$LIBS
16148LIBS="-lgcc $LIBS"
16149cat >conftest.$ac_ext <<_ACEOF
16150/* confdefs.h. */
16151_ACEOF
16152cat confdefs.h >>conftest.$ac_ext
16153cat >>conftest.$ac_ext <<_ACEOF
16154/* end confdefs.h. */
16155
16156/* Override any GCC internal prototype to avoid an error.
16157 Use char because int might match the return type of a GCC
16158 builtin and then its argument prototype would still apply. */
16159#ifdef __cplusplus
16160extern "C"
16161#endif
16162char __floatdidf ();
16163int
16164main ()
16165{
16166return __floatdidf ();
16167 ;
16168 return 0;
16169}
16170_ACEOF
16171rm -f conftest.$ac_objext conftest$ac_exeext
16172if { (ac_try="$ac_link"
16173case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16176esac
16177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_link") 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189esac
16190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest$ac_exeext'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16199esac
16200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_lib_gcc___floatdidf=yes
16206else
16207 echo "$as_me: failed program was:" >&5
16208sed 's/^/| /' conftest.$ac_ext >&5
16209
16210 ac_cv_lib_gcc___floatdidf=no
16211fi
16212
16213rm -f core conftest.err conftest.$ac_objext \
16214 conftest$ac_exeext conftest.$ac_ext
16215LIBS=$ac_check_lib_save_LIBS
16216fi
16217{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16218echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16219if test $ac_cv_lib_gcc___floatdidf = yes; then
16220
16221cat >>confdefs.h <<\_ACEOF
16222#define HAVE___FLOATDIDF 1
16223_ACEOF
16224
16225fi
16226
16227 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16228echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16229if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231else
16232 ac_check_lib_save_LIBS=$LIBS
16233LIBS="-lgcc $LIBS"
16234cat >conftest.$ac_ext <<_ACEOF
16235/* confdefs.h. */
16236_ACEOF
16237cat confdefs.h >>conftest.$ac_ext
16238cat >>conftest.$ac_ext <<_ACEOF
16239/* end confdefs.h. */
16240
16241/* Override any GCC internal prototype to avoid an error.
16242 Use char because int might match the return type of a GCC
16243 builtin and then its argument prototype would still apply. */
16244#ifdef __cplusplus
16245extern "C"
16246#endif
16247char __lshrdi3 ();
16248int
16249main ()
16250{
16251return __lshrdi3 ();
16252 ;
16253 return 0;
16254}
16255_ACEOF
16256rm -f conftest.$ac_objext conftest$ac_exeext
16257if { (ac_try="$ac_link"
16258case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261esac
16262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_link") 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274esac
16275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest$ac_exeext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284esac
16285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_lib_gcc___lshrdi3=yes
16291else
16292 echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
16295 ac_cv_lib_gcc___lshrdi3=no
16296fi
16297
16298rm -f core conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16300LIBS=$ac_check_lib_save_LIBS
16301fi
16302{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16303echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16304if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16305
16306cat >>confdefs.h <<\_ACEOF
16307#define HAVE___LSHRDI3 1
16308_ACEOF
16309
16310fi
16311
16312 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16313echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16314if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316else
16317 ac_check_lib_save_LIBS=$LIBS
16318LIBS="-lgcc $LIBS"
16319cat >conftest.$ac_ext <<_ACEOF
16320/* confdefs.h. */
16321_ACEOF
16322cat confdefs.h >>conftest.$ac_ext
16323cat >>conftest.$ac_ext <<_ACEOF
16324/* end confdefs.h. */
16325
16326/* Override any GCC internal prototype to avoid an error.
16327 Use char because int might match the return type of a GCC
16328 builtin and then its argument prototype would still apply. */
16329#ifdef __cplusplus
16330extern "C"
16331#endif
16332char __moddi3 ();
16333int
16334main ()
16335{
16336return __moddi3 ();
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext conftest$ac_exeext
16342if { (ac_try="$ac_link"
16343case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346esac
16347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_link") 2>conftest.er1
16349 ac_status=$?
16350 grep -v '^ *+' conftest.er1 >conftest.err
16351 rm -f conftest.er1
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16356 { (case "(($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_try") 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; } &&
16365 { ac_try='test -s conftest$ac_exeext'
16366 { (case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369esac
16370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_try") 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 ac_cv_lib_gcc___moddi3=yes
16376else
16377 echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380 ac_cv_lib_gcc___moddi3=no
16381fi
16382
16383rm -f core conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385LIBS=$ac_check_lib_save_LIBS
16386fi
16387{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16388echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16389if test $ac_cv_lib_gcc___moddi3 = yes; then
16390
16391cat >>confdefs.h <<\_ACEOF
16392#define HAVE___MODDI3 1
16393_ACEOF
16394
16395fi
16396
16397 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16398echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16399if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16401else
16402 ac_check_lib_save_LIBS=$LIBS
16403LIBS="-lgcc $LIBS"
16404cat >conftest.$ac_ext <<_ACEOF
16405/* confdefs.h. */
16406_ACEOF
16407cat confdefs.h >>conftest.$ac_ext
16408cat >>conftest.$ac_ext <<_ACEOF
16409/* end confdefs.h. */
16410
16411/* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16414#ifdef __cplusplus
16415extern "C"
16416#endif
16417char __udivdi3 ();
16418int
16419main ()
16420{
16421return __udivdi3 ();
16422 ;
16423 return 0;
16424}
16425_ACEOF
16426rm -f conftest.$ac_objext conftest$ac_exeext
16427if { (ac_try="$ac_link"
16428case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431esac
16432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_link") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441 { (case "(($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_try") 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest$ac_exeext'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16454esac
16455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_lib_gcc___udivdi3=yes
16461else
16462 echo "$as_me: failed program was:" >&5
16463sed 's/^/| /' conftest.$ac_ext >&5
16464
16465 ac_cv_lib_gcc___udivdi3=no
16466fi
16467
16468rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16470LIBS=$ac_check_lib_save_LIBS
16471fi
16472{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16473echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16474if test $ac_cv_lib_gcc___udivdi3 = yes; then
16475
16476cat >>confdefs.h <<\_ACEOF
16477#define HAVE___UDIVDI3 1
16478_ACEOF
16479
16480fi
16481
16482 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16483echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16484if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486else
16487 ac_check_lib_save_LIBS=$LIBS
16488LIBS="-lgcc $LIBS"
16489cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
16495
16496/* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16499#ifdef __cplusplus
16500extern "C"
16501#endif
16502char __umoddi3 ();
16503int
16504main ()
16505{
16506return __umoddi3 ();
16507 ;
16508 return 0;
16509}
16510_ACEOF
16511rm -f conftest.$ac_objext conftest$ac_exeext
16512if { (ac_try="$ac_link"
16513case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16519 ac_status=$?
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529esac
16530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_lib_gcc___umoddi3=yes
16546else
16547 echo "$as_me: failed program was:" >&5
16548sed 's/^/| /' conftest.$ac_ext >&5
16549
16550 ac_cv_lib_gcc___umoddi3=no
16551fi
16552
16553rm -f core conftest.err conftest.$ac_objext \
16554 conftest$ac_exeext conftest.$ac_ext
16555LIBS=$ac_check_lib_save_LIBS
16556fi
16557{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16558echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16559if test $ac_cv_lib_gcc___umoddi3 = yes; then
16560
16561cat >>confdefs.h <<\_ACEOF
16562#define HAVE___UMODDI3 1
16563_ACEOF
16564
16565fi
16566
16567
16568 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16569echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16570if test "${ac_cv_lib_gcc___main+set}" = set; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16572else
16573 ac_check_lib_save_LIBS=$LIBS
16574LIBS="-lgcc $LIBS"
16575cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581
16582/* Override any GCC internal prototype to avoid an error.
16583 Use char because int might match the return type of a GCC
16584 builtin and then its argument prototype would still apply. */
16585#ifdef __cplusplus
16586extern "C"
16587#endif
16588char __main ();
16589int
16590main ()
16591{
16592return __main ();
16593 ;
16594 return 0;
16595}
16596_ACEOF
16597rm -f conftest.$ac_objext conftest$ac_exeext
16598if { (ac_try="$ac_link"
16599case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602esac
16603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_link") 2>conftest.er1
16605 ac_status=$?
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16615esac
16616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest$ac_exeext'
16622 { (case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625esac
16626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_try") 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_lib_gcc___main=yes
16632else
16633 echo "$as_me: failed program was:" >&5
16634sed 's/^/| /' conftest.$ac_ext >&5
16635
16636 ac_cv_lib_gcc___main=no
16637fi
16638
16639rm -f core conftest.err conftest.$ac_objext \
16640 conftest$ac_exeext conftest.$ac_ext
16641LIBS=$ac_check_lib_save_LIBS
16642fi
16643{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16644echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16645if test $ac_cv_lib_gcc___main = yes; then
16646
16647cat >>confdefs.h <<\_ACEOF
16648#define HAVE___MAIN 1
16649_ACEOF
16650
16651fi
16652
16653 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16654echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16655if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16657else
16658 ac_check_lib_save_LIBS=$LIBS
16659LIBS="-lgcc $LIBS"
16660cat >conftest.$ac_ext <<_ACEOF
16661/* confdefs.h. */
16662_ACEOF
16663cat confdefs.h >>conftest.$ac_ext
16664cat >>conftest.$ac_ext <<_ACEOF
16665/* end confdefs.h. */
16666
16667/* Override any GCC internal prototype to avoid an error.
16668 Use char because int might match the return type of a GCC
16669 builtin and then its argument prototype would still apply. */
16670#ifdef __cplusplus
16671extern "C"
16672#endif
16673char __cmpdi2 ();
16674int
16675main ()
16676{
16677return __cmpdi2 ();
16678 ;
16679 return 0;
16680}
16681_ACEOF
16682rm -f conftest.$ac_objext conftest$ac_exeext
16683if { (ac_try="$ac_link"
16684case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687esac
16688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest$ac_exeext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_lib_gcc___cmpdi2=yes
16717else
16718 echo "$as_me: failed program was:" >&5
16719sed 's/^/| /' conftest.$ac_ext >&5
16720
16721 ac_cv_lib_gcc___cmpdi2=no
16722fi
16723
16724rm -f core conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16726LIBS=$ac_check_lib_save_LIBS
16727fi
16728{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16729echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16730if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16731
16732cat >>confdefs.h <<\_ACEOF
16733#define HAVE___CMPDI2 1
16734_ACEOF
16735
16736fi
16737
16738fi
16739
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000016740if test "$llvm_cv_os_type" = "MingW" ; then
16741 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16742echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16743 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016744
16745 /* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
16750
16751 #include <windows.h>
16752 #include <imagehlp.h>
16753 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16754 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16755
16756
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000016757_ACEOF
16758rm -f conftest.$ac_objext
16759if { (ac_try="$ac_compile"
16760case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763esac
16764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_compile") 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776esac
16777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16786esac
16787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792
16793 { echo "$as_me:$LINENO: result: yes" >&5
16794echo "${ECHO_T}yes" >&6; }
16795 llvm_cv_win32_elmcb_pcstr="PCSTR"
16796
16797else
16798 echo "$as_me: failed program was:" >&5
16799sed 's/^/| /' conftest.$ac_ext >&5
16800
16801
16802 { echo "$as_me:$LINENO: result: no" >&5
16803echo "${ECHO_T}no" >&6; }
16804 llvm_cv_win32_elmcb_pcstr="PSTR"
16805
16806fi
16807
16808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809
16810cat >>confdefs.h <<_ACEOF
16811#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16812_ACEOF
16813
16814fi
16815
Reid Spencerdfda0612007-01-20 07:48:49 +000016816if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell3ef61af2003-06-30 21:59:07 +000016817
16818
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016819for ac_header in stdlib.h unistd.h
16820do
16821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16827fi
16828ac_res=`eval echo '${'$as_ac_Header'}'`
16829 { echo "$as_me:$LINENO: result: $ac_res" >&5
16830echo "${ECHO_T}$ac_res" >&6; }
16831else
16832 # Is the header compilable?
16833{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16835cat >conftest.$ac_ext <<_ACEOF
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
16841$ac_includes_default
16842#include <$ac_header>
16843_ACEOF
16844rm -f conftest.$ac_objext
16845if { (ac_try="$ac_compile"
16846case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16849esac
16850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_compile") 2>conftest.er1
16852 ac_status=$?
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862esac
16863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872esac
16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_header_compiler=yes
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000016882
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016883 ac_header_compiler=no
16884fi
16885
16886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16888echo "${ECHO_T}$ac_header_compiler" >&6; }
16889
16890# Is the header present?
16891{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16893cat >conftest.$ac_ext <<_ACEOF
16894/* confdefs.h. */
16895_ACEOF
16896cat confdefs.h >>conftest.$ac_ext
16897cat >>conftest.$ac_ext <<_ACEOF
16898/* end confdefs.h. */
16899#include <$ac_header>
16900_ACEOF
16901if { (ac_try="$ac_cpp conftest.$ac_ext"
16902case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } >/dev/null; then
16914 if test -s conftest.err; then
16915 ac_cpp_err=$ac_c_preproc_warn_flag
16916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16917 else
16918 ac_cpp_err=
16919 fi
16920else
16921 ac_cpp_err=yes
16922fi
16923if test -z "$ac_cpp_err"; then
16924 ac_header_preproc=yes
16925else
16926 echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
16929 ac_header_preproc=no
16930fi
16931
16932rm -f conftest.err conftest.$ac_ext
16933{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16934echo "${ECHO_T}$ac_header_preproc" >&6; }
16935
16936# So? What about this header?
16937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16938 yes:no: )
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16943 ac_header_preproc=yes
16944 ;;
16945 no:yes:* )
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16958 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016959## ------------------------------------ ##
16960## Report this to http://llvm.org/bugs/ ##
16961## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016962_ASBOX
16963 ) | sed "s/^/$as_me: WARNING: /" >&2
16964 ;;
16965esac
16966{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16970else
16971 eval "$as_ac_Header=\$ac_header_preproc"
16972fi
16973ac_res=`eval echo '${'$as_ac_Header'}'`
16974 { echo "$as_me:$LINENO: result: $ac_res" >&5
16975echo "${ECHO_T}$ac_res" >&6; }
16976
16977fi
16978if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000016979 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000016981_ACEOF
16982
16983fi
16984
16985done
16986
16987
16988for ac_func in getpagesize
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016989do
16990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16993if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995else
16996 cat >conftest.$ac_ext <<_ACEOF
16997/* confdefs.h. */
16998_ACEOF
16999cat confdefs.h >>conftest.$ac_ext
17000cat >>conftest.$ac_ext <<_ACEOF
17001/* end confdefs.h. */
17002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17004#define $ac_func innocuous_$ac_func
17005
17006/* System header to define __stub macros and hopefully few prototypes,
17007 which can conflict with char $ac_func (); below.
17008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17009 <limits.h> exists even on freestanding compilers. */
17010
17011#ifdef __STDC__
17012# include <limits.h>
17013#else
17014# include <assert.h>
17015#endif
17016
17017#undef $ac_func
17018
17019/* Override any GCC internal prototype to avoid an error.
17020 Use char because int might match the return type of a GCC
17021 builtin and then its argument prototype would still apply. */
17022#ifdef __cplusplus
17023extern "C"
17024#endif
17025char $ac_func ();
17026/* The GNU C library defines this for functions which it implements
17027 to always fail with ENOSYS. Some functions are actually named
17028 something starting with __ and the normal name is an alias. */
17029#if defined __stub_$ac_func || defined __stub___$ac_func
17030choke me
17031#endif
17032
17033int
17034main ()
17035{
17036return $ac_func ();
17037 ;
17038 return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext conftest$ac_exeext
17042if { (ac_try="$ac_link"
17043case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_link") 2>conftest.er1
17049 ac_status=$?
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069esac
17070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_try") 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 eval "$as_ac_var=yes"
17076else
17077 echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080 eval "$as_ac_var=no"
17081fi
17082
17083rm -f core conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17085fi
17086ac_res=`eval echo '${'$as_ac_var'}'`
17087 { echo "$as_me:$LINENO: result: $ac_res" >&5
17088echo "${ECHO_T}$ac_res" >&6; }
17089if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017090 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017091#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000017092_ACEOF
17093
17094fi
17095done
17096
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017097{ echo "$as_me:$LINENO: checking for working mmap" >&5
17098echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17099if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000017101else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017102 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017103 ac_cv_func_mmap_fixed_mapped=no
17104else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017105 cat >conftest.$ac_ext <<_ACEOF
17106/* confdefs.h. */
17107_ACEOF
17108cat confdefs.h >>conftest.$ac_ext
17109cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000017110/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000017111$ac_includes_default
17112/* malloc might have been renamed as rpl_malloc. */
17113#undef malloc
17114
17115/* Thanks to Mike Haertel and Jim Avera for this test.
17116 Here is a matrix of mmap possibilities:
17117 mmap private not fixed
17118 mmap private fixed at somewhere currently unmapped
17119 mmap private fixed at somewhere already mapped
17120 mmap shared not fixed
17121 mmap shared fixed at somewhere currently unmapped
17122 mmap shared fixed at somewhere already mapped
17123 For private mappings, we should verify that changes cannot be read()
17124 back from the file, nor mmap's back from the file at a different
17125 address. (There have been systems where private was not correctly
17126 implemented like the infamous i386 svr4.0, and systems where the
17127 VM page cache was not coherent with the file system buffer cache
17128 like early versions of FreeBSD and possibly contemporary NetBSD.)
17129 For shared mappings, we should conversely verify that changes get
17130 propagated back to all the places they're supposed to be.
17131
17132 Grep wants private fixed already mapped.
17133 The main things grep needs to know about mmap are:
17134 * does it exist and is it safe to write into the mmap'd area
17135 * how to use it (BSD variants) */
17136
17137#include <fcntl.h>
17138#include <sys/mman.h>
17139
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017140#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +000017141char *malloc ();
17142#endif
17143
17144/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017145#if !HAVE_GETPAGESIZE
17146/* Assume that all systems that can run configure have sys/param.h. */
17147# if !HAVE_SYS_PARAM_H
17148# define HAVE_SYS_PARAM_H 1
17149# endif
17150
John Criswell3ef61af2003-06-30 21:59:07 +000017151# ifdef _SC_PAGESIZE
17152# define getpagesize() sysconf(_SC_PAGESIZE)
17153# else /* no _SC_PAGESIZE */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017154# if HAVE_SYS_PARAM_H
John Criswell3ef61af2003-06-30 21:59:07 +000017155# include <sys/param.h>
17156# ifdef EXEC_PAGESIZE
17157# define getpagesize() EXEC_PAGESIZE
17158# else /* no EXEC_PAGESIZE */
17159# ifdef NBPG
17160# define getpagesize() NBPG * CLSIZE
17161# ifndef CLSIZE
17162# define CLSIZE 1
17163# endif /* no CLSIZE */
17164# else /* no NBPG */
17165# ifdef NBPC
17166# define getpagesize() NBPC
17167# else /* no NBPC */
17168# ifdef PAGESIZE
17169# define getpagesize() PAGESIZE
17170# endif /* PAGESIZE */
17171# endif /* no NBPC */
17172# endif /* no NBPG */
17173# endif /* no EXEC_PAGESIZE */
17174# else /* no HAVE_SYS_PARAM_H */
17175# define getpagesize() 8192 /* punt totally */
17176# endif /* no HAVE_SYS_PARAM_H */
17177# endif /* no _SC_PAGESIZE */
17178
17179#endif /* no HAVE_GETPAGESIZE */
17180
17181int
17182main ()
17183{
17184 char *data, *data2, *data3;
17185 int i, pagesize;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017186 int fd;
John Criswell3ef61af2003-06-30 21:59:07 +000017187
17188 pagesize = getpagesize ();
17189
17190 /* First, make a file with some known garbage in it. */
17191 data = (char *) malloc (pagesize);
17192 if (!data)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017193 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000017194 for (i = 0; i < pagesize; ++i)
17195 *(data + i) = rand ();
17196 umask (0);
17197 fd = creat ("conftest.mmap", 0600);
17198 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017199 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000017200 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017201 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000017202 close (fd);
17203
17204 /* Next, try to mmap the file at a fixed address which already has
17205 something else allocated at it. If we can, also make sure that
17206 we see the same garbage. */
17207 fd = open ("conftest.mmap", O_RDWR);
17208 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017209 return 1;
17210 data2 = (char *) malloc (2 * pagesize);
17211 if (!data2)
17212 return 1;
17213 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell3ef61af2003-06-30 21:59:07 +000017214 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencerf184a862004-09-19 23:53:36 +000017215 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017216 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000017217 for (i = 0; i < pagesize; ++i)
17218 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017219 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000017220
17221 /* Finally, make sure that changes to the mapped area do not
17222 percolate back to the file as seen by read(). (This is a bug on
17223 some variants of i386 svr4.0.) */
17224 for (i = 0; i < pagesize; ++i)
17225 *(data2 + i) = *(data2 + i) + 1;
17226 data3 = (char *) malloc (pagesize);
17227 if (!data3)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017228 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000017229 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017230 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000017231 for (i = 0; i < pagesize; ++i)
17232 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017233 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000017234 close (fd);
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017235 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +000017236}
17237_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017238rm -f conftest$ac_exeext
17239if { (ac_try="$ac_link"
17240case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17243esac
17244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000017258 ac_cv_func_mmap_fixed_mapped=yes
17259else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017260 echo "$as_me: program exited with status $ac_status" >&5
17261echo "$as_me: failed program was:" >&5
17262sed 's/^/| /' conftest.$ac_ext >&5
17263
17264( exit $ac_status )
17265ac_cv_func_mmap_fixed_mapped=no
John Criswell3ef61af2003-06-30 21:59:07 +000017266fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017267rm -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 +000017268fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017269
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017270
John Criswell3ef61af2003-06-30 21:59:07 +000017271fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017272{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17273echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000017274if test $ac_cv_func_mmap_fixed_mapped = yes; then
17275
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017276cat >>confdefs.h <<\_ACEOF
17277#define HAVE_MMAP 1
17278_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000017279
17280fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017281rm -f conftest.mmap
John Criswell3ef61af2003-06-30 21:59:07 +000017282
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017283 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17284echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17285if test "${ac_cv_func_mmap_file+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000017287else
Reid Spencerf184a862004-09-19 23:53:36 +000017288 ac_ext=c
John Criswell3ef61af2003-06-30 21:59:07 +000017289ac_cpp='$CPP $CPPFLAGS'
17290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17292ac_compiler_gnu=$ac_cv_c_compiler_gnu
17293
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017294 if test "$cross_compiling" = yes; then
Reid Spencer5a6815d2004-09-21 17:14:44 +000017295 ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000017296else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017297 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerac16ea92004-09-20 04:09:56 +000017298
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017299 /* confdefs.h. */
17300_ACEOF
17301cat confdefs.h >>conftest.$ac_ext
17302cat >>conftest.$ac_ext <<_ACEOF
17303/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000017304
John Criswell3ef61af2003-06-30 21:59:07 +000017305#include <sys/types.h>
John Criswelle3a9bd82003-10-09 15:44:28 +000017306#include <sys/mman.h>
John Criswell3ef61af2003-06-30 21:59:07 +000017307#include <fcntl.h>
Reid Spencerac16ea92004-09-20 04:09:56 +000017308
17309int
17310main ()
17311{
John Criswell3ef61af2003-06-30 21:59:07 +000017312
17313 int fd;
Reid Spencerac16ea92004-09-20 04:09:56 +000017314 fd = creat ("foo",0777);
17315 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17316 unlink ("foo");
Reid Spencer5a6815d2004-09-21 17:14:44 +000017317 return (fd != (int) MAP_FAILED);
Reid Spencerac16ea92004-09-20 04:09:56 +000017318 ;
17319 return 0;
17320}
John Criswell3ef61af2003-06-30 21:59:07 +000017321_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017322rm -f conftest$ac_exeext
17323if { (ac_try="$ac_link"
17324case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327esac
17328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_link") 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17333 { (case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17336esac
17337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338 (eval "$ac_try") 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000017342 ac_cv_func_mmap_file=yes
17343else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017344 echo "$as_me: program exited with status $ac_status" >&5
17345echo "$as_me: failed program was:" >&5
17346sed 's/^/| /' conftest.$ac_ext >&5
17347
17348( exit $ac_status )
17349ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000017350fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017351rm -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 +000017352fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017353
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017354
John Criswell3ef61af2003-06-30 21:59:07 +000017355 ac_ext=c
17356ac_cpp='$CPP $CPPFLAGS'
17357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17359ac_compiler_gnu=$ac_cv_c_compiler_gnu
17360
17361
17362fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017363{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17364echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000017365if test "$ac_cv_func_mmap_file" = yes; then
John Criswelle3a9bd82003-10-09 15:44:28 +000017366
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017367cat >>confdefs.h <<\_ACEOF
17368#define HAVE_MMAP_FILE
17369_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000017370
17371 MMAP_FILE=yes
17372
17373fi
17374
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017375 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17376echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17377if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6681582004-12-27 06:15:02 +000017379else
Reid Spencer3d745d42004-12-29 07:07:57 +000017380 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencerb6681582004-12-27 06:15:02 +000017381 ac_cv_need_dev_zero_for_mmap=yes
17382 else
17383 ac_cv_need_dev_zero_for_mmap=no
17384 fi
17385
17386fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017387{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17388echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencerb6681582004-12-27 06:15:02 +000017389if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17390
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017391cat >>confdefs.h <<\_ACEOF
17392#define NEED_DEV_ZERO_FOR_MMAP 1
17393_ACEOF
Reid Spencerb6681582004-12-27 06:15:02 +000017394
17395fi
Reid Spencerf184a862004-09-19 23:53:36 +000017396
Reid Spencerdfda0612007-01-20 07:48:49 +000017397 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17398 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017399 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17400echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000017401 fi
17402 if test "$ac_cv_func_mmap_file" = "no"
17403 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017404 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17405echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000017406 fi
John Criswellb65ddad2003-07-22 21:00:24 +000017407fi
John Criswell3ef61af2003-06-30 21:59:07 +000017408
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017409{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17410echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7eb8112010-07-28 20:26:43 +000017411ac_ext=cpp
17412ac_cpp='$CXXCPP $CPPFLAGS'
17413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17416
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017417cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017418
17419 /* confdefs.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonb9509c52009-05-18 23:58:51 +000017423/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017424
17425 int main() {
17426 volatile unsigned long val = 1;
17427 __sync_synchronize();
17428 __sync_val_compare_and_swap(&val, 1, 0);
17429 __sync_add_and_fetch(&val, 1);
17430 __sync_sub_and_fetch(&val, 1);
17431 return 0;
17432 }
17433
Owen Andersonb9509c52009-05-18 23:58:51 +000017434
17435_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017436rm -f conftest.$ac_objext conftest$ac_exeext
17437if { (ac_try="$ac_link"
17438case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441esac
17442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17444 ac_status=$?
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017451 { (case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17454esac
17455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_try") 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
Eric Christopherf7eb8112010-07-28 20:26:43 +000017470
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017471 { echo "$as_me:$LINENO: result: yes" >&5
17472echo "${ECHO_T}yes" >&6; }
Owen Andersonaf5db832009-05-19 22:18:56 +000017473
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017474cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000017475#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017476_ACEOF
Owen Andersonaf5db832009-05-19 22:18:56 +000017477
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017478
Owen Andersonb9509c52009-05-18 23:58:51 +000017479else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017480 echo "$as_me: failed program was:" >&5
17481sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonb9509c52009-05-18 23:58:51 +000017482
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017483
17484 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017485echo "${ECHO_T}no" >&6; }
Owen Andersonb9509c52009-05-18 23:58:51 +000017486
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017487cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000017488#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017489_ACEOF
17490
17491 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17492echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017493
Owen Andersonb9509c52009-05-18 23:58:51 +000017494fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017495
Owen Andersonb9509c52009-05-18 23:58:51 +000017496rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017497 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017498ac_ext=c
17499ac_cpp='$CPP $CPPFLAGS'
17500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17502ac_compiler_gnu=$ac_cv_c_compiler_gnu
17503
Owen Andersonb9509c52009-05-18 23:58:51 +000017504
John Criswell3ef61af2003-06-30 21:59:07 +000017505
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017506if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017507 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17508echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17509if test "${llvm_cv_linux_mixed+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017511else
17512 ac_ext=c
17513ac_cpp='$CPP $CPPFLAGS'
17514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516ac_compiler_gnu=$ac_cv_c_compiler_gnu
17517
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017518 cat >conftest.$ac_ext <<_ACEOF
17519/* confdefs.h. */
17520_ACEOF
17521cat confdefs.h >>conftest.$ac_ext
17522cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017523/* end confdefs.h. */
17524#ifndef __x86_64__
17525 error: Not x86-64 even if uname says so!
17526 #endif
17527
17528int
17529main ()
17530{
17531
17532 ;
17533 return 0;
17534}
17535_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017536rm -f conftest.$ac_objext
17537if { (ac_try="$ac_compile"
17538case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541esac
17542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_compile") 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17551 { (case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17554esac
17555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_try") 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest.$ac_objext'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017570 llvm_cv_linux_mixed=no
17571else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017572 echo "$as_me: failed program was:" >&5
17573sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 llvm_cv_linux_mixed=yes
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017576fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017577
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17579 ac_ext=c
17580ac_cpp='$CPP $CPPFLAGS'
17581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17583ac_compiler_gnu=$ac_cv_c_compiler_gnu
17584
17585
17586fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017587{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17588echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky9b3f7162009-09-29 06:18:23 +000017589
17590 if test "$llvm_cv_linux_mixed" = "yes"; then
17591 llvm_cv_target_arch="x86"
17592 ARCH="x86"
17593 fi
17594fi
17595
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017596
Reid Spencer32046f72007-07-30 20:13:24 +000017597for ac_func in __dso_handle
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017598do
17599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17600{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17602if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17604else
17605 cat >conftest.$ac_ext <<_ACEOF
17606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
17611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17613#define $ac_func innocuous_$ac_func
17614
17615/* System header to define __stub macros and hopefully few prototypes,
17616 which can conflict with char $ac_func (); below.
17617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17618 <limits.h> exists even on freestanding compilers. */
17619
17620#ifdef __STDC__
17621# include <limits.h>
17622#else
17623# include <assert.h>
17624#endif
17625
17626#undef $ac_func
17627
17628/* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
17631#ifdef __cplusplus
17632extern "C"
17633#endif
17634char $ac_func ();
17635/* The GNU C library defines this for functions which it implements
17636 to always fail with ENOSYS. Some functions are actually named
17637 something starting with __ and the normal name is an alias. */
17638#if defined __stub_$ac_func || defined __stub___$ac_func
17639choke me
17640#endif
17641
17642int
17643main ()
17644{
17645return $ac_func ();
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext conftest$ac_exeext
17651if { (ac_try="$ac_link"
17652case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655esac
17656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_link") 2>conftest.er1
17658 ac_status=$?
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665 { (case "(($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_try") 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest$ac_exeext'
17675 { (case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678esac
17679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_try") 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 eval "$as_ac_var=yes"
17685else
17686 echo "$as_me: failed program was:" >&5
17687sed 's/^/| /' conftest.$ac_ext >&5
17688
17689 eval "$as_ac_var=no"
17690fi
17691
17692rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17694fi
17695ac_res=`eval echo '${'$as_ac_var'}'`
17696 { echo "$as_me:$LINENO: result: $ac_res" >&5
17697echo "${ECHO_T}$ac_res" >&6; }
17698if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer32046f72007-07-30 20:13:24 +000017699 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer32046f72007-07-30 20:13:24 +000017701_ACEOF
17702
17703fi
17704done
17705
17706
Rafael Espindolafd1355a2014-02-28 18:17:54 +000017707SHLIBEXT=$llvm_shlib_ext
Brian Gaekea2404522004-01-21 19:39:29 +000017708
17709
Jeff Cohenc5e5b272007-01-12 18:22:38 +000017710if test "${prefix}" = "NONE" ; then
Reid Spencer40f1b132006-05-16 08:53:32 +000017711 prefix="/usr/local"
17712fi
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017713eval LLVM_PREFIX="${prefix}";
17714eval LLVM_BINDIR="${prefix}/bin";
Reid Spencer0194c9a2004-11-29 04:56:35 +000017715eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb3762a02010-03-02 05:17:21 +000017716eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer0194c9a2004-11-29 04:56:35 +000017717eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017718eval LLVM_INCLUDEDIR="${prefix}/include";
17719eval LLVM_INFODIR="${prefix}/info";
17720eval LLVM_MANDIR="${prefix}/man";
17721LLVM_CONFIGTIME=`date`
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
Daniel Dunbar9370ecf2012-03-02 16:24:21 +000017732if test "${ENABLE_TIMESTAMPS}" = "0"; then
17733 LLVM_CONFIGTIME="(timestamp not enabled)"
17734fi
17735
Reid Spencer0241e382004-11-25 04:51:04 +000017736
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017737cat >>confdefs.h <<_ACEOF
17738#define LLVM_PREFIX "$LLVM_PREFIX"
17739_ACEOF
17740
17741
17742cat >>confdefs.h <<_ACEOF
17743#define LLVM_BINDIR "$LLVM_BINDIR"
17744_ACEOF
17745
17746
17747cat >>confdefs.h <<_ACEOF
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017748#define LLVM_DATADIR "$LLVM_DATADIR"
17749_ACEOF
17750
17751
17752cat >>confdefs.h <<_ACEOF
Gordon Henriksen80f35e02007-10-03 12:07:14 +000017753#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017754_ACEOF
17755
17756
17757cat >>confdefs.h <<_ACEOF
Reid Spencer288adf12004-08-20 09:10:31 +000017758#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000017759_ACEOF
17760
17761
17762cat >>confdefs.h <<_ACEOF
17763#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17764_ACEOF
17765
17766
17767cat >>confdefs.h <<_ACEOF
17768#define LLVM_INFODIR "$LLVM_INFODIR"
17769_ACEOF
17770
17771
17772cat >>confdefs.h <<_ACEOF
17773#define LLVM_MANDIR "$LLVM_MANDIR"
17774_ACEOF
17775
17776
17777cat >>confdefs.h <<_ACEOF
17778#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17779_ACEOF
17780
17781
Eric Christophere62b4412007-12-01 00:34:39 +000017782cat >>confdefs.h <<_ACEOF
Tim Northoverfee13d12013-05-04 07:36:23 +000017783#define LLVM_HOST_TRIPLE "$host"
NAKAMURA Takumi43652ae2012-07-22 03:04:52 +000017784_ACEOF
17785
17786
17787cat >>confdefs.h <<_ACEOF
Sebastian Popec2fb222011-11-01 21:31:44 +000017788#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christophere62b4412007-12-01 00:34:39 +000017789_ACEOF
17790
17791
Gordon Henriksene61dd672007-10-02 09:50:32 +000017792if test "$BINDINGS_TO_BUILD" = auto ; then
17793 BINDINGS_TO_BUILD=""
Peter Zotov668f9672014-10-30 08:29:45 +000017794 if test "x$OCAMLFIND" != x ; then
Gordon Henriksene61dd672007-10-02 09:50:32 +000017795 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17796 fi
Peter Collingbourne82e3e372014-10-16 22:48:02 +000017797 if test "x$GO" != x ; then
17798 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17799 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17800 fi
17801 fi
Gordon Henriksene61dd672007-10-02 09:50:32 +000017802fi
17803BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17804
17805
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017806binding_prereqs_failed=0
17807for a_binding in $BINDINGS_TO_BUILD ; do
17808 case "$a_binding" in
17809 ocaml)
Peter Zotov668f9672014-10-30 08:29:45 +000017810 if test "x$OCAMLFIND" = x ; then
17811 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17812echo "$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 +000017813 binding_prereqs_failed=1
17814 fi
Peter Zotov668f9672014-10-30 08:29:45 +000017815
17816 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17817 HAVE_OCAMLOPT=1
17818 else
17819 HAVE_OCAMLOPT=0
17820 fi
17821
17822
17823 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17824 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17825echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017826 binding_prereqs_failed=1
17827 fi
Peter Zotov668f9672014-10-30 08:29:45 +000017828
17829 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17830 HAVE_OCAML_OUNIT=1
17831 else
17832 HAVE_OCAML_OUNIT=0
17833 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17834echo "$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 +000017835 fi
Peter Zotov668f9672014-10-30 08:29:45 +000017836
17837
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017838 if test "x$with_ocaml_libdir" != xauto ; then
17839 OCAML_LIBDIR=$with_ocaml_libdir
17840
17841 else
Peter Zotov668f9672014-10-30 08:29:45 +000017842 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017843 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17844 then
17845 # ocaml stdlib is beneath our prefix; use stdlib
17846 OCAML_LIBDIR=$ocaml_stdlib
17847
17848 else
17849 # ocaml stdlib is outside our prefix; use libdir/ocaml
Rafael Espindolab58973f2013-06-11 18:52:11 +000017850 OCAML_LIBDIR=${prefix}/lib/ocaml
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017851
17852 fi
17853 fi
17854 ;;
Peter Collingbourne82e3e372014-10-16 22:48:02 +000017855 go)
17856 if test "x$GO" = x ; then
17857 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17858echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17859 binding_prereqs_failed=1
17860 else
17861 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17862 :
17863 else
17864 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17865echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17866 binding_prereqs_failed=1
17867 fi
17868 fi
17869 ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017870 esac
17871done
17872if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017873 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17874echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17875 { (exit 1); exit 1; }; }
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017876fi
17877
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017878{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17879echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17880if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017882else
17883 ac_ext=cpp
17884ac_cpp='$CXXCPP $CPPFLAGS'
17885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17888
17889 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi652e0132012-02-19 12:05:12 +000017890 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017891 cat >conftest.$ac_ext <<_ACEOF
17892/* confdefs.h. */
17893_ACEOF
17894cat confdefs.h >>conftest.$ac_ext
17895cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017896/* end confdefs.h. */
Benjamin Kramer54671a72011-12-22 22:50:44 +000017897template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017898int
17899main ()
17900{
Benjamin Kramer942b2872011-12-22 22:25:26 +000017901X<int>().f();
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017902 ;
17903 return 0;
17904}
17905_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017906rm -f conftest.$ac_objext
17907if { (ac_try="$ac_compile"
17908case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911esac
17912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_compile") 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17921 { (case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924esac
17925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_try") 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934esac
17935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017940 llvm_cv_cxx_visibility_inlines_hidden=yes
17941else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017942 echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017946fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017947
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 CXXFLAGS="$oldcxxflags"
17950 ac_ext=c
17951ac_cpp='$CPP $CPPFLAGS'
17952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17954ac_compiler_gnu=$ac_cv_c_compiler_gnu
17955
17956
17957fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017958{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17959echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbar8eec9852008-08-30 01:16:19 +000017960if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17961 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17962
17963else
17964 ENABLE_VISIBILITY_INLINES_HIDDEN=0
17965
17966fi
17967
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000017968
Nick Lewyckyc540cc62009-03-05 08:20:44 +000017969if test "$llvm_cv_link_use_r" = "yes" ; then
17970 RPATH="-Wl,-R"
17971else
17972 RPATH="-Wl,-rpath"
17973fi
17974
17975
17976if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
Bob Wilson8d7e6902013-08-02 22:51:11 +000017977 RDYNAMIC="-rdynamic"
Nick Lewyckyc540cc62009-03-05 08:20:44 +000017978else
17979 RDYNAMIC=""
17980fi
Nick Lewyckyed8472e2009-03-03 04:55:29 +000017981
17982
Reid Spencer0241e382004-11-25 04:51:04 +000017983
Eric Christopher97014d82010-08-08 02:44:25 +000017984ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer0241e382004-11-25 04:51:04 +000017985
Eric Christopher41983c62010-08-08 09:20:39 +000017986
17987
17988
17989
17990
Douglas Gregor1b731d52009-06-16 20:12:29 +000017991ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17992
17993ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17994
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000017995ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17996
Daniel Dunbar32027202009-11-25 04:37:28 +000017997ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17998
Michael J. Spencer447762d2010-11-29 18:16:10 +000017999ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer0241e382004-11-25 04:51:04 +000018000
Reid Spencer0241e382004-11-25 04:51:04 +000018001
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018002ac_config_files="$ac_config_files Makefile.config"
Reid Spencer0241e382004-11-25 04:51:04 +000018003
Eric Christopher49709ad2011-10-26 00:42:12 +000018004
Reid Spencer1277ba22006-08-16 00:45:38 +000018005ac_config_files="$ac_config_files llvm.spec"
18006
18007
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000018008ac_config_files="$ac_config_files docs/doxygen.cfg"
18009
Eric Christopherf1329892012-02-02 00:16:55 +000018010
Dylan Noblesmithe21a3b22012-02-04 02:41:36 +000018011if test "${clang_src_root}" = ""; then
Eric Christopherdc51a5d2012-02-02 01:11:30 +000018012 clang_src_root="$srcdir/tools/clang"
Eric Christopher7f977de2012-02-02 00:19:05 +000018013fi
Eric Christopherf1329892012-02-02 00:16:55 +000018014if test -f ${clang_src_root}/README.txt; then
Chandler Carruth9db2b522014-12-29 11:58:17 +000018015
18016cat >>confdefs.h <<_ACEOF
18017#define CLANG_LIBDIR_SUFFIX ""
18018_ACEOF
18019
18020
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000018021 configh="include/clang/Config/config.h"
18022 doxy="docs/doxygen.cfg"
18023 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopherf1329892012-02-02 00:16:55 +000018024
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000018025 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000018026
18027fi
18028
Torok Edwin229f8d72011-10-14 20:38:02 +000018029ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencer6f682b72006-03-22 15:59:55 +000018030
Eric Christopher49709ad2011-10-26 00:42:12 +000018031
Jordan Rose3c837ab2012-10-01 18:40:32 +000018032test "x$program_prefix" = "xNONE" && program_prefix=""
18033
18034
18035
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018036ac_config_commands="$ac_config_commands setup"
Reid Spencereeedeaf2005-02-24 19:05:19 +000018037
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018038ac_config_commands="$ac_config_commands Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000018039
18040
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018041ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer0241e382004-11-25 04:51:04 +000018042
18043
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018044ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000018045
18046
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018047ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000018048
18049
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018050ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000018051
18052
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018053ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer0241e382004-11-25 04:51:04 +000018054
18055
Bill Wendling7c53a182009-01-04 23:12:30 +000018056ac_config_commands="$ac_config_commands unittests/Makefile"
18057
18058
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018059ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000018060
18061
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018062ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000018063
18064
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018065ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000018066
18067
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000018068ac_config_commands="$ac_config_commands bindings/Makefile"
18069
18070
18071ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18072
18073
Reid Spencer0241e382004-11-25 04:51:04 +000018074
John Criswell3ef61af2003-06-30 21:59:07 +000018075cat >confcache <<\_ACEOF
18076# This file is a shell script that caches the results of configure
18077# tests run on this system so they can be shared between configure
18078# scripts and configure runs, see configure's option --config-cache.
18079# It is not useful on other systems. If it contains results you don't
18080# want to keep, you may remove or edit it.
18081#
18082# config.status only pays attention to the cache file if you give it
18083# the --recheck option to rerun configure.
18084#
John Criswell3eaf0b42003-09-10 15:17:25 +000018085# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell3ef61af2003-06-30 21:59:07 +000018086# loading this file, other *unset* `ac_cv_foo' will be assigned the
18087# following values.
18088
18089_ACEOF
18090
18091# The following way of writing the cache mishandles newlines in values,
18092# but we know of no workaround that is simple, portable, and efficient.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018093# So, we kill variables containing newlines.
John Criswell3ef61af2003-06-30 21:59:07 +000018094# Ultrix sh set writes to stderr and can't be redirected directly,
18095# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018096(
18097 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18098 eval ac_val=\$$ac_var
18099 case $ac_val in #(
18100 *${as_nl}*)
18101 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018102 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18103echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018104 esac
18105 case $ac_var in #(
18106 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018107 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018108 esac ;;
18109 esac
18110 done
18111
John Criswell3ef61af2003-06-30 21:59:07 +000018112 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018113 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18114 *${as_nl}ac_space=\ *)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018115 # `set' does not quote correctly, so add quotes (double-quote
18116 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell3ef61af2003-06-30 21:59:07 +000018117 sed -n \
Reid Spencerf184a862004-09-19 23:53:36 +000018118 "s/'/'\\\\''/g;
18119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018120 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +000018121 *)
18122 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +000018124 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018125 esac |
18126 sort
18127) |
John Criswell3ef61af2003-06-30 21:59:07 +000018128 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018129 /^ac_cv_env_/b end
John Criswell3ef61af2003-06-30 21:59:07 +000018130 t clear
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018131 :clear
John Criswell3ef61af2003-06-30 21:59:07 +000018132 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18133 t end
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018134 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18135 :end' >>confcache
18136if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18137 if test -w "$cache_file"; then
18138 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018139 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18140echo "$as_me: updating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000018141 cat confcache >$cache_file
18142 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018143 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18144echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000018145 fi
18146fi
18147rm -f confcache
18148
18149test "x$prefix" = xNONE && prefix=$ac_default_prefix
18150# Let make expand exec_prefix.
18151test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18152
John Criswell3ef61af2003-06-30 21:59:07 +000018153DEFS=-DHAVE_CONFIG_H
18154
John Criswell3eaf0b42003-09-10 15:17:25 +000018155ac_libobjs=
18156ac_ltlibobjs=
18157for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18158 # 1. Remove the extension, and $U if already installed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018159 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018160 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018161 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18162 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018163 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18164 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell3eaf0b42003-09-10 15:17:25 +000018165done
18166LIBOBJS=$ac_libobjs
18167
18168LTLIBOBJS=$ac_ltlibobjs
18169
18170
John Criswell3ef61af2003-06-30 21:59:07 +000018171
18172: ${CONFIG_STATUS=./config.status}
18173ac_clean_files_save=$ac_clean_files
18174ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018175{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18176echo "$as_me: creating $CONFIG_STATUS" >&6;}
18177cat >$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018178#! $SHELL
18179# Generated by $as_me.
18180# Run this file to recreate the current configuration.
18181# Compiler output produced by configure, useful for debugging
18182# configure, is in config.log if it exists.
18183
18184debug=false
John Criswell3eaf0b42003-09-10 15:17:25 +000018185ac_cs_recheck=false
18186ac_cs_silent=false
John Criswell3ef61af2003-06-30 21:59:07 +000018187SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018188_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018189
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018190cat >>$CONFIG_STATUS <<\_ACEOF
18191## --------------------- ##
18192## M4sh Initialization. ##
18193## --------------------- ##
18194
18195# Be Bourne compatible
18196if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3ef61af2003-06-30 21:59:07 +000018197 emulate sh
18198 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018199 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000018200 # is contrary to our usage. Disable this feature.
18201 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018202 setopt NO_GLOB_SUBST
18203else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018204 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3ef61af2003-06-30 21:59:07 +000018205fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018206BIN_SH=xpg4; export BIN_SH # for Tru64
18207DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3ef61af2003-06-30 21:59:07 +000018208
John Criswell3ef61af2003-06-30 21:59:07 +000018209
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018210# PATH needs CR
18211# Avoid depending upon Character Ranges.
18212as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18213as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18214as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18215as_cr_digits='0123456789'
18216as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3ef61af2003-06-30 21:59:07 +000018217
18218# The user is always right.
18219if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018220 echo "#! /bin/sh" >conf$$.sh
18221 echo "exit 0" >>conf$$.sh
18222 chmod +x conf$$.sh
18223 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18224 PATH_SEPARATOR=';'
18225 else
18226 PATH_SEPARATOR=:
18227 fi
18228 rm -f conf$$.sh
18229fi
18230
18231# Support unset when possible.
18232if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18233 as_unset=unset
18234else
18235 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018236fi
John Criswell3ef61af2003-06-30 21:59:07 +000018237
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018238
18239# IFS
18240# We need space, tab and new line, in precisely that order. Quoting is
18241# there to prevent editors from complaining about space-tab.
18242# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18243# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018244as_nl='
18245'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018246IFS=" "" $as_nl"
18247
18248# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018249case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018250 *[\\/]* ) as_myself=$0 ;;
18251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3ef61af2003-06-30 21:59:07 +000018252for as_dir in $PATH
18253do
18254 IFS=$as_save_IFS
18255 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18257done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018258IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +000018259
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018260 ;;
18261esac
18262# We did not find ourselves, most probably we were run as `sh COMMAND'
18263# in which case we are not to be found in the path.
18264if test "x$as_myself" = x; then
18265 as_myself=$0
18266fi
18267if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018268 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18269 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018270fi
18271
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018272# Work around bugs in pre-3.0 UWIN ksh.
18273for as_var in ENV MAIL MAILPATH
18274do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018275done
18276PS1='$ '
18277PS2='> '
18278PS4='+ '
18279
18280# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018281for as_var in \
18282 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18283 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18284 LC_TELEPHONE LC_TIME
18285do
18286 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18287 eval $as_var=C; export $as_var
18288 else
18289 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +000018290 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018291done
Torok Edwinaec06332010-01-26 08:50:50 +000018292
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018293# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018294if expr a : '\(a\)' >/dev/null 2>&1 &&
18295 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18296 as_expr=expr
18297else
18298 as_expr=false
18299fi
18300
18301if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18302 as_basename=basename
18303else
18304 as_basename=false
18305fi
18306
18307
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018308# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018309as_me=`$as_basename -- "$0" ||
18310$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18311 X"$0" : 'X\(//\)$' \| \
18312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018313echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018314 sed '/^.*\/\([^/][^/]*\)\/*$/{
18315 s//\1/
18316 q
18317 }
18318 /^X\/\(\/\/\)$/{
18319 s//\1/
18320 q
18321 }
18322 /^X\/\(\/\).*/{
18323 s//\1/
18324 q
18325 }
18326 s/.*/./; q'`
18327
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018328# CDPATH.
18329$as_unset CDPATH
18330
18331
18332
18333 as_lineno_1=$LINENO
18334 as_lineno_2=$LINENO
18335 test "x$as_lineno_1" != "x$as_lineno_2" &&
18336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18337
18338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18339 # uniformly replaced by the line number. The first 'sed' inserts a
18340 # line-number line after each line using $LINENO; the second 'sed'
18341 # does the real work. The second script uses 'N' to pair each
18342 # line-number line with the line containing $LINENO, and appends
18343 # trailing '-' during substitution so that $LINENO is not a special
18344 # case at line end.
18345 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18346 # scripts with optimization help from Paolo Bonzini. Blame Lee
18347 # E. McMahon (1931-1989) for sed's syntax. :-)
18348 sed -n '
18349 p
18350 /[$]LINENO/=
18351 ' <$as_myself |
18352 sed '
18353 s/[$]LINENO.*/&-/
18354 t lineno
18355 b
18356 :lineno
18357 N
18358 :loop
18359 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18360 t loop
18361 s/-\n.*//
18362 ' >$as_me.lineno &&
18363 chmod +x "$as_me.lineno" ||
18364 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18365 { (exit 1); exit 1; }; }
18366
18367 # Don't try to exec as it changes $[0], causing all sort of problems
18368 # (the dirname of $[0] is not the place where we might find the
18369 # original and so on. Autoconf is especially sensitive to this).
18370 . "./$as_me.lineno"
18371 # Exit status is that of the last command.
18372 exit
18373}
18374
18375
18376if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18377 as_dirname=dirname
18378else
18379 as_dirname=false
18380fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018381
18382ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018383case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018384-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018385 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018386 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018387 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018388 esac;;
18389*)
18390 ECHO_N='-n';;
John Criswell3ef61af2003-06-30 21:59:07 +000018391esac
18392
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018393if expr a : '\(a\)' >/dev/null 2>&1 &&
18394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18395 as_expr=expr
18396else
18397 as_expr=false
18398fi
18399
John Criswell3ef61af2003-06-30 21:59:07 +000018400rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018401if test -d conf$$.dir; then
18402 rm -f conf$$.dir/conf$$.file
18403else
18404 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018405 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018406fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018407echo >conf$$.file
18408if ln -s conf$$.file conf$$ 2>/dev/null; then
18409 as_ln_s='ln -s'
18410 # ... but there are two gotchas:
18411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18413 # In both cases, we have to default to `cp -p'.
18414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3ef61af2003-06-30 21:59:07 +000018415 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018416elif ln conf$$.file conf$$ 2>/dev/null; then
18417 as_ln_s=ln
John Criswell3ef61af2003-06-30 21:59:07 +000018418else
18419 as_ln_s='cp -p'
18420fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018421rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18422rmdir conf$$.dir 2>/dev/null
John Criswell3ef61af2003-06-30 21:59:07 +000018423
John Criswell3eaf0b42003-09-10 15:17:25 +000018424if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018425 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +000018426else
Reid Spencerf184a862004-09-19 23:53:36 +000018427 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +000018428 as_mkdir_p=false
18429fi
18430
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018431# Find out whether ``test -x'' works. Don't use a zero-byte file, as
18432# systems may use methods other than mode bits to determine executability.
18433cat >conf$$.file <<_ASEOF
18434#! /bin/sh
18435exit 0
18436_ASEOF
18437chmod +x conf$$.file
18438if test -x conf$$.file >/dev/null 2>&1; then
18439 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018440else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018441 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018442fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018443rm -f conf$$.file
John Criswell3ef61af2003-06-30 21:59:07 +000018444
18445# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +000018446as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000018447
18448# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +000018449as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000018450
18451
John Criswell3ef61af2003-06-30 21:59:07 +000018452exec 6>&1
18453
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018454# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell3ef61af2003-06-30 21:59:07 +000018455# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018456# values after options handling.
18457ac_log="
Hans Wennborgd94a5f02015-01-14 17:38:03 +000018458This file was extended by LLVM $as_me 3.7.0svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018459generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +000018460
18461 CONFIG_FILES = $CONFIG_FILES
18462 CONFIG_HEADERS = $CONFIG_HEADERS
18463 CONFIG_LINKS = $CONFIG_LINKS
18464 CONFIG_COMMANDS = $CONFIG_COMMANDS
18465 $ $0 $@
18466
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018467on `(hostname || uname -n) 2>/dev/null | sed 1q`
18468"
18469
John Criswell3ef61af2003-06-30 21:59:07 +000018470_ACEOF
18471
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018472cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018473# Files that config.status was made for.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018474config_files="$ac_config_files"
18475config_headers="$ac_config_headers"
18476config_commands="$ac_config_commands"
John Criswell3ef61af2003-06-30 21:59:07 +000018477
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018478_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018479
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018480cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018481ac_cs_usage="\
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018482\`$as_me' instantiates files from templates according to the
18483current configuration.
John Criswell3ef61af2003-06-30 21:59:07 +000018484
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018485Usage: $0 [OPTIONS] [FILE]...
John Criswell3ef61af2003-06-30 21:59:07 +000018486
18487 -h, --help print this help, then exit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018488 -V, --version print version number, then exit
18489 -q, --quiet do not print progress messages
John Criswell3ef61af2003-06-30 21:59:07 +000018490 -d, --debug don't remove temporary files
18491 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018492 --file=FILE[:TEMPLATE]
18493 instantiate the configuration file FILE
18494 --header=FILE[:TEMPLATE]
18495 instantiate the configuration header FILE
John Criswell3ef61af2003-06-30 21:59:07 +000018496
18497Configuration files:
18498$config_files
18499
18500Configuration headers:
18501$config_headers
18502
John Criswell3bac9bc2003-09-06 15:17:13 +000018503Configuration commands:
18504$config_commands
18505
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018506Report bugs to <bug-autoconf@gnu.org>."
John Criswell3ef61af2003-06-30 21:59:07 +000018507
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018508_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018509cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018510ac_cs_version="\\
Hans Wennborgd94a5f02015-01-14 17:38:03 +000018511LLVM config.status 3.7.0svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018512configured by $0, generated by GNU Autoconf 2.60,
18513 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell3ef61af2003-06-30 21:59:07 +000018514
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018515Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +000018516This config.status script is free software; the Free Software Foundation
18517gives unlimited permission to copy, distribute and modify it."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018518
18519ac_pwd='$ac_pwd'
18520srcdir='$srcdir'
18521INSTALL='$INSTALL'
John Criswell3ef61af2003-06-30 21:59:07 +000018522_ACEOF
18523
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018524cat >>$CONFIG_STATUS <<\_ACEOF
18525# If no file are specified by the user, then we need to provide default
18526# value. By we need to know if files were specified by the user.
John Criswell3ef61af2003-06-30 21:59:07 +000018527ac_need_defaults=:
18528while test $# != 0
18529do
18530 case $1 in
18531 --*=*)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell3eaf0b42003-09-10 15:17:25 +000018534 ac_shift=:
John Criswell3ef61af2003-06-30 21:59:07 +000018535 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018536 *)
John Criswell3eaf0b42003-09-10 15:17:25 +000018537 ac_option=$1
18538 ac_optarg=$2
18539 ac_shift=shift
18540 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018541 esac
18542
John Criswell3eaf0b42003-09-10 15:17:25 +000018543 case $ac_option in
John Criswell3ef61af2003-06-30 21:59:07 +000018544 # Handling of the options.
John Criswell3eaf0b42003-09-10 15:17:25 +000018545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18546 ac_cs_recheck=: ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018548 echo "$ac_cs_version"; exit ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018549 --debug | --debu | --deb | --de | --d | -d )
John Criswell3ef61af2003-06-30 21:59:07 +000018550 debug=: ;;
18551 --file | --fil | --fi | --f )
John Criswell3eaf0b42003-09-10 15:17:25 +000018552 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018553 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000018554 ac_need_defaults=false;;
18555 --header | --heade | --head | --hea )
John Criswell3eaf0b42003-09-10 15:17:25 +000018556 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018557 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000018558 ac_need_defaults=false;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018559 --he | --h)
18560 # Conflict between --help and --header
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018561 { echo "$as_me: error: ambiguous option: $1
18562Try \`$0 --help' for more information." >&2
18563 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018564 --help | --hel | -h )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018565 echo "$ac_cs_usage"; exit ;;
John Criswell3eaf0b42003-09-10 15:17:25 +000018566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18567 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18568 ac_cs_silent=: ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018569
18570 # This is an error.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018571 -*) { echo "$as_me: error: unrecognized option: $1
18572Try \`$0 --help' for more information." >&2
18573 { (exit 1); exit 1; }; } ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018574
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018575 *) ac_config_targets="$ac_config_targets $1"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018576 ac_need_defaults=false ;;
John Criswell3ef61af2003-06-30 21:59:07 +000018577
18578 esac
18579 shift
18580done
18581
John Criswell3eaf0b42003-09-10 15:17:25 +000018582ac_configure_extra_args=
18583
18584if $ac_cs_silent; then
18585 exec 6>/dev/null
18586 ac_configure_extra_args="$ac_configure_extra_args --silent"
18587fi
18588
18589_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018590cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000018591if \$ac_cs_recheck; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018592 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18593 CONFIG_SHELL=$SHELL
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018594 export CONFIG_SHELL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018595 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell3eaf0b42003-09-10 15:17:25 +000018596fi
18597
John Criswell3ef61af2003-06-30 21:59:07 +000018598_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018599cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018600exec 5>>config.log
18601{
18602 echo
18603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18604## Running $as_me. ##
18605_ASBOX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018606 echo "$ac_log"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018607} >&5
John Criswell3ef61af2003-06-30 21:59:07 +000018608
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018609_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018610cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3bac9bc2003-09-06 15:17:13 +000018611#
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018612# INIT-COMMANDS
John Criswell3bac9bc2003-09-06 15:17:13 +000018613#
Reid Spencereeedeaf2005-02-24 19:05:19 +000018614llvm_src="${srcdir}"
John Criswell3bac9bc2003-09-06 15:17:13 +000018615
18616_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018617
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018618cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018619
18620# Handling of arguments.
John Criswell3ef61af2003-06-30 21:59:07 +000018621for ac_config_target in $ac_config_targets
18622do
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018623 case $ac_config_target in
18624 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christopher97014d82010-08-08 02:44:25 +000018625 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1b731d52009-06-16 20:12:29 +000018626 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18627 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000018628 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar32027202009-11-25 04:37:28 +000018629 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer447762d2010-11-29 18:16:10 +000018630 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018631 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1277ba22006-08-16 00:45:38 +000018632 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000018633 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000018634 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18635 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher49709ad2011-10-26 00:42:12 +000018636 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018637 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18638 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18639 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18640 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18641 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018642 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18643 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000018644 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018645 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18646 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18647 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000018648 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18649 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018650
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018651 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18652echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18653 { (exit 1); exit 1; }; };;
John Criswell3ef61af2003-06-30 21:59:07 +000018654 esac
18655done
18656
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018657
John Criswell3ef61af2003-06-30 21:59:07 +000018658# If the user did not use the arguments to specify the items to instantiate,
18659# then the envvar interface is used. Set only those that are not.
18660# We use the long form for the default assignment because of an extremely
18661# bizarre bug on SunOS 4.1.3.
18662if $ac_need_defaults; then
18663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18664 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswell3bac9bc2003-09-06 15:17:13 +000018665 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell3ef61af2003-06-30 21:59:07 +000018666fi
18667
John Criswell3eaf0b42003-09-10 15:17:25 +000018668# Have a temporary directory for convenience. Make it in the build tree
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018669# simply because there is no reason against having it here, and in addition,
John Criswell3eaf0b42003-09-10 15:17:25 +000018670# creating and moving files from /tmp can sometimes cause problems.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018671# Hook for its removal unless debugging.
18672# Note that there is a small window in which the directory will not be cleaned:
18673# after its creation but before its name has been assigned to `$tmp'.
John Criswell3ef61af2003-06-30 21:59:07 +000018674$debug ||
18675{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018676 tmp=
18677 trap 'exit_status=$?
18678 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18679' 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018680 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell3ef61af2003-06-30 21:59:07 +000018681}
John Criswell3ef61af2003-06-30 21:59:07 +000018682# Create a (secure) tmp directory for tmp files.
John Criswell3eaf0b42003-09-10 15:17:25 +000018683
John Criswell3ef61af2003-06-30 21:59:07 +000018684{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018685 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell3ef61af2003-06-30 21:59:07 +000018686 test -n "$tmp" && test -d "$tmp"
18687} ||
18688{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018689 tmp=./conf$$-$RANDOM
18690 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018691} ||
18692{
18693 echo "$me: cannot create a temporary directory in ." >&2
18694 { (exit 1); exit 1; }
18695}
John Criswell3ef61af2003-06-30 21:59:07 +000018696
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018697#
18698# Set up the sed scripts for CONFIG_FILES section.
18699#
18700
18701# No need to generate the scripts if there are no CONFIG_FILES.
18702# This happens for instance when ./config.status config.h
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018703if test -n "$CONFIG_FILES"; then
John Criswell3ef61af2003-06-30 21:59:07 +000018704
18705_ACEOF
18706
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018707
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018708
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018709ac_delim='%!_!# '
18710for ac_last_try in false false false false false :; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018711 cat >conf$$subs.sed <<_ACEOF
18712SHELL!$SHELL$ac_delim
18713PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18714PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18715PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18716PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18717PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18718PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18719exec_prefix!$exec_prefix$ac_delim
18720prefix!$prefix$ac_delim
18721program_transform_name!$program_transform_name$ac_delim
18722bindir!$bindir$ac_delim
18723sbindir!$sbindir$ac_delim
18724libexecdir!$libexecdir$ac_delim
18725datarootdir!$datarootdir$ac_delim
18726datadir!$datadir$ac_delim
18727sysconfdir!$sysconfdir$ac_delim
18728sharedstatedir!$sharedstatedir$ac_delim
18729localstatedir!$localstatedir$ac_delim
18730includedir!$includedir$ac_delim
18731oldincludedir!$oldincludedir$ac_delim
18732docdir!$docdir$ac_delim
18733infodir!$infodir$ac_delim
18734htmldir!$htmldir$ac_delim
18735dvidir!$dvidir$ac_delim
18736pdfdir!$pdfdir$ac_delim
18737psdir!$psdir$ac_delim
18738libdir!$libdir$ac_delim
18739localedir!$localedir$ac_delim
18740mandir!$mandir$ac_delim
18741DEFS!$DEFS$ac_delim
18742ECHO_C!$ECHO_C$ac_delim
18743ECHO_N!$ECHO_N$ac_delim
18744ECHO_T!$ECHO_T$ac_delim
18745LIBS!$LIBS$ac_delim
18746build_alias!$build_alias$ac_delim
18747host_alias!$host_alias$ac_delim
18748target_alias!$target_alias$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018749LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18750LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
Tom Stellarde6ba81d2014-03-03 15:22:00 +000018751LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18752LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018753LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000018754CC!$CC$ac_delim
18755CFLAGS!$CFLAGS$ac_delim
18756LDFLAGS!$LDFLAGS$ac_delim
18757CPPFLAGS!$CPPFLAGS$ac_delim
18758ac_ct_CC!$ac_ct_CC$ac_delim
18759EXEEXT!$EXEEXT$ac_delim
18760OBJEXT!$OBJEXT$ac_delim
18761CXX!$CXX$ac_delim
18762CXXFLAGS!$CXXFLAGS$ac_delim
18763ac_ct_CXX!$ac_ct_CXX$ac_delim
18764CPP!$CPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018765subdirs!$subdirs$ac_delim
Tobias Grosserea9dca42010-10-30 00:54:26 +000018766ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18767LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018768build!$build$ac_delim
18769build_cpu!$build_cpu$ac_delim
18770build_vendor!$build_vendor$ac_delim
18771build_os!$build_os$ac_delim
18772host!$host$ac_delim
18773host_cpu!$host_cpu$ac_delim
18774host_vendor!$host_vendor$ac_delim
18775host_os!$host_os$ac_delim
18776target!$target$ac_delim
18777target_cpu!$target_cpu$ac_delim
18778target_vendor!$target_vendor$ac_delim
18779target_os!$target_os$ac_delim
18780OS!$OS$ac_delim
18781HOST_OS!$HOST_OS$ac_delim
18782TARGET_OS!$TARGET_OS$ac_delim
18783LINKALL!$LINKALL$ac_delim
18784NOLINKALL!$NOLINKALL$ac_delim
18785LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18786LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18787ARCH!$ARCH$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018788LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000018789HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018790LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18791BUILD_CC!$BUILD_CC$ac_delim
18792BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18793BUILD_CXX!$BUILD_CXX$ac_delim
18794CVSBUILD!$CVSBUILD$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000018795ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Chandler Carruthbbae5122014-03-01 03:33:08 +000018796ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
Eric Christopherf1bd7702013-06-25 01:12:25 +000018797ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000018798ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
Rafael Espindolae33f06c2014-03-10 16:58:35 +000018799CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000018800ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018801ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18802ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18803DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000018804ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018805ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18806EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18807DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Eric Christopher14b76d52014-07-28 22:00:44 +000018808DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018809_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018810
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018811 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018812 break
18813 elif $ac_last_try; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018814 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18815echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18816 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018817 else
18818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell3ef61af2003-06-30 21:59:07 +000018819 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018820done
18821
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018822ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18823if test -n "$ac_eof"; then
18824 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18825 ac_eof=`expr $ac_eof + 1`
18826fi
18827
18828cat >>$CONFIG_STATUS <<_ACEOF
18829cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18830/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018831_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018832sed '
18833s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18834s/^/s,@/; s/!/@,|#_!!_#|/
18835:n
18836t n
18837s/'"$ac_delim"'$/,g/; t
18838s/$/\\/; p
18839N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18840' >>$CONFIG_STATUS <conf$$subs.sed
18841rm -f conf$$subs.sed
18842cat >>$CONFIG_STATUS <<_ACEOF
18843CEOF$ac_eof
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018844_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018845
18846
18847ac_delim='%!_!# '
18848for ac_last_try in false false false false false :; do
18849 cat >conf$$subs.sed <<_ACEOF
Tom Stellarde6ba81d2014-03-03 15:22:00 +000018850KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18851JIT!$JIT$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018852TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18853TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18854ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18855ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Logan Chiene1c36012015-03-12 17:25:25 +000018856enable_searchengine!$enable_searchengine$ac_delim
18857enable_external_search!$enable_external_search$ac_delim
18858enable_server_based_search!$enable_server_based_search$ac_delim
18859searchengine_url!$searchengine_url$ac_delim
18860extra_search_mappings!$extra_search_mappings$ac_delim
18861QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18862llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18863llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18864llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18865llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18866llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18867llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18868clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18869clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18870clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18871clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18872clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18873clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000018874LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000018875ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000018876LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000018877ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000018878ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000018879ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000018880ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018881ALL_TARGETS!$ALL_TARGETS$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000018882TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18883LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18884LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +000018885LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumic6fce172010-12-29 03:59:03 +000018886LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000018887OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000018888EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbar3b95df82011-06-16 22:30:41 +000018889EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumi914f1922011-10-16 02:54:26 +000018890CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000018891BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018892ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
Bob Wilson3f354702011-11-28 07:59:52 +000018893INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018894ifGNUmake!$ifGNUmake$ac_delim
18895LN_S!$LN_S$ac_delim
Rafael Espindolafd1355a2014-02-28 18:17:54 +000018896NM!$NM$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018897CMP!$CMP$ac_delim
18898CP!$CP$ac_delim
18899DATE!$DATE$ac_delim
18900FIND!$FIND$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000018901GREP!$GREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018902MKDIR!$MKDIR$ac_delim
18903MV!$MV$ac_delim
18904RANLIB!$RANLIB$ac_delim
18905AR!$AR$ac_delim
18906RM!$RM$ac_delim
18907SED!$SED$ac_delim
18908TAR!$TAR$ac_delim
18909BINPWD!$BINPWD$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018910DOT!$DOT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018911INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18912INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18913INSTALL_DATA!$INSTALL_DATA$ac_delim
18914BZIP2!$BZIP2$ac_delim
mike-me08af302010-05-06 23:45:43 +000018915CAT!$CAT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018916DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000018917GROFF!$GROFF$ac_delim
Eric Christopher77560892010-12-10 01:31:51 +000018918GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000018919PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018920ZIP!$ZIP$ac_delim
Peter Collingbourne82e3e372014-10-16 22:48:02 +000018921GO!$GO$ac_delim
Peter Zotov668f9672014-10-30 08:29:45 +000018922OCAMLFIND!$OCAMLFIND$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000018923GAS!$GAS$ac_delim
Dan Gohmanb7edb422010-06-01 14:56:56 +000018924HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000018925EGREP!$EGREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018926NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18927NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola42e94d12012-02-28 23:32:06 +000018928COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000018929NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18930NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Eric Christopher65ec83b2014-11-05 00:35:15 +000018931NO_COMMENT!$NO_COMMENT$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000018932PYTHON!$PYTHON$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000018933HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18934HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018935USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky5262ad22012-03-13 08:33:15 +000018936USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopherc807c532012-08-03 19:47:19 +000018937XML2CONFIG!$XML2CONFIG$ac_delim
18938LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18939LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018940HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000018941HAVE_LIBZ!$HAVE_LIBZ$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018942HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18943MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018944SHLIBEXT!$SHLIBEXT$ac_delim
18945LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18946LLVM_BINDIR!$LLVM_BINDIR$ac_delim
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018947_ACEOF
18948
Logan Chiene1c36012015-03-12 17:25:25 +000018949 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018950 break
18951 elif $ac_last_try; then
18952 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18953echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18954 { (exit 1); exit 1; }; }
18955 else
18956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18957 fi
18958done
18959
18960ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18961if test -n "$ac_eof"; then
18962 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18963 ac_eof=`expr $ac_eof + 1`
18964fi
18965
18966cat >>$CONFIG_STATUS <<_ACEOF
18967cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Eric Christopher65ec83b2014-11-05 00:35:15 +000018968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Roman Divackyf2bb66b2012-12-13 16:07:19 +000018969_ACEOF
18970sed '
18971s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18972s/^/s,@/; s/!/@,|#_!!_#|/
18973:n
18974t n
18975s/'"$ac_delim"'$/,g/; t
18976s/$/\\/; p
18977N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18978' >>$CONFIG_STATUS <conf$$subs.sed
18979rm -f conf$$subs.sed
18980cat >>$CONFIG_STATUS <<_ACEOF
18981CEOF$ac_eof
18982_ACEOF
18983
18984
Logan Chiene1c36012015-03-12 17:25:25 +000018985ac_delim='%!_!# '
18986for ac_last_try in false false false false false :; do
18987 cat >conf$$subs.sed <<_ACEOF
18988LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18989LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18990LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18991LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18992LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18993LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18994LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18995BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18996HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18997HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
18998OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18999ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19000RPATH!$RPATH$ac_delim
19001RDYNAMIC!$RDYNAMIC$ac_delim
19002program_prefix!$program_prefix$ac_delim
19003LIBOBJS!$LIBOBJS$ac_delim
19004LTLIBOBJS!$LTLIBOBJS$ac_delim
19005_ACEOF
19006
19007 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
19008 break
19009 elif $ac_last_try; then
19010 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19011echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19012 { (exit 1); exit 1; }; }
19013 else
19014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19015 fi
19016done
19017
19018ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19019if test -n "$ac_eof"; then
19020 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19021 ac_eof=`expr $ac_eof + 1`
19022fi
19023
19024cat >>$CONFIG_STATUS <<_ACEOF
19025cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19026/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19027_ACEOF
19028sed '
19029s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19030s/^/s,@/; s/!/@,|#_!!_#|/
19031:n
19032t n
19033s/'"$ac_delim"'$/,g/; t
19034s/$/\\/; p
19035N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19036' >>$CONFIG_STATUS <conf$$subs.sed
19037rm -f conf$$subs.sed
19038cat >>$CONFIG_STATUS <<_ACEOF
19039:end
19040s/|#_!!_#|//g
19041CEOF$ac_eof
19042_ACEOF
19043
19044
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019045# VPATH may cause trouble with some makes, so we remove $(srcdir),
19046# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19047# trailing colons and then remove the whole line if VPATH becomes empty
19048# (actually we leave an empty line to preserve line numbers).
19049if test "x$srcdir" = x.; then
19050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19051s/:*\$(srcdir):*/:/
19052s/:*\${srcdir}:*/:/
19053s/:*@srcdir@:*/:/
19054s/^\([^=]*=[ ]*\):*/\1/
19055s/:*$//
19056s/^[^=]*=[ ]*$//
19057}'
19058fi
19059
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019060cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019061fi # test -n "$CONFIG_FILES"
19062
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019063
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019064for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019065do
19066 case $ac_tag in
19067 :[FHLC]) ac_mode=$ac_tag; continue;;
19068 esac
19069 case $ac_mode$ac_tag in
19070 :[FHL]*:*);;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019071 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19072echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19073 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019074 :[FH]-) ac_tag=-:-;;
19075 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19076 esac
19077 ac_save_IFS=$IFS
19078 IFS=:
19079 set x $ac_tag
19080 IFS=$ac_save_IFS
19081 shift
19082 ac_file=$1
19083 shift
19084
19085 case $ac_mode in
19086 :L) ac_source=$1;;
19087 :[FH])
19088 ac_file_inputs=
19089 for ac_f
19090 do
19091 case $ac_f in
19092 -) ac_f="$tmp/stdin";;
19093 *) # Look for the file first in the build tree, then in the source tree
19094 # (if the path is not absolute). The absolute path cannot be DOS-style,
19095 # because $ac_f cannot contain `:'.
19096 test -f "$ac_f" ||
19097 case $ac_f in
19098 [\\/$]*) false;;
19099 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19100 esac ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019101 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19102echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19103 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019104 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019105 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019106 done
19107
19108 # Let's still pretend it is `configure' which instantiates (i.e., don't
19109 # use $as_me), people would be surprised to read:
19110 # /* config.h. Generated by config.status. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019111 configure_input="Generated from "`IFS=:
19112 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019113 if test x"$ac_file" != x-; then
19114 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019115 { echo "$as_me:$LINENO: creating $ac_file" >&5
19116echo "$as_me: creating $ac_file" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019117 fi
19118
19119 case $ac_tag in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019120 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019121 esac
19122 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019123 esac
19124
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019125 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell3ef61af2003-06-30 21:59:07 +000019126$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencerf184a862004-09-19 23:53:36 +000019127 X"$ac_file" : 'X\(//\)[^/]' \| \
19128 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019129 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019130echo X"$ac_file" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19132 s//\1/
19133 q
19134 }
19135 /^X\(\/\/\)[^/].*/{
19136 s//\1/
19137 q
19138 }
19139 /^X\(\/\/\)$/{
19140 s//\1/
19141 q
19142 }
19143 /^X\(\/\).*/{
19144 s//\1/
19145 q
19146 }
19147 s/.*/./; q'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019148 { as_dir="$ac_dir"
19149 case $as_dir in #(
19150 -*) as_dir=./$as_dir;;
19151 esac
19152 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19153 as_dirs=
19154 while :; do
19155 case $as_dir in #(
19156 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19157 *) as_qdir=$as_dir;;
19158 esac
19159 as_dirs="'$as_qdir' $as_dirs"
19160 as_dir=`$as_dirname -- "$as_dir" ||
19161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19162 X"$as_dir" : 'X\(//\)[^/]' \| \
19163 X"$as_dir" : 'X\(//\)$' \| \
19164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19165echo X"$as_dir" |
19166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19167 s//\1/
19168 q
19169 }
19170 /^X\(\/\/\)[^/].*/{
19171 s//\1/
19172 q
19173 }
19174 /^X\(\/\/\)$/{
19175 s//\1/
19176 q
19177 }
19178 /^X\(\/\).*/{
19179 s//\1/
19180 q
19181 }
19182 s/.*/./; q'`
19183 test -d "$as_dir" && break
19184 done
19185 test -z "$as_dirs" || eval "mkdir $as_dirs"
19186 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19187echo "$as_me: error: cannot create directory $as_dir" >&2;}
19188 { (exit 1); exit 1; }; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000019189 ac_builddir=.
19190
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019191case "$ac_dir" in
19192.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19193*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019194 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019195 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019196 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019197 case $ac_top_builddir_sub in
19198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19200 esac ;;
19201esac
19202ac_abs_top_builddir=$ac_pwd
19203ac_abs_builddir=$ac_pwd$ac_dir_suffix
19204# for backward compatibility:
19205ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +000019206
19207case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019208 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +000019209 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019210 ac_top_srcdir=$ac_top_builddir_sub
19211 ac_abs_top_srcdir=$ac_pwd ;;
19212 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +000019213 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019214 ac_top_srcdir=$srcdir
19215 ac_abs_top_srcdir=$srcdir ;;
19216 *) # Relative name.
19217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19218 ac_top_srcdir=$ac_top_build_prefix$srcdir
19219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019220esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019221ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +000019222
John Criswell3ef61af2003-06-30 21:59:07 +000019223
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019224 case $ac_mode in
19225 :F)
19226 #
19227 # CONFIG_FILE
19228 #
John Criswell3ef61af2003-06-30 21:59:07 +000019229
19230 case $INSTALL in
19231 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019232 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019233 esac
John Criswell3ef61af2003-06-30 21:59:07 +000019234_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019235
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019236cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019237# If the template does not know about datarootdir, expand it.
19238# FIXME: This hack should be removed a few years after 2.60.
19239ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019240
19241case `sed -n '/datarootdir/ {
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019242 p
19243 q
19244}
19245/@datadir@/p
19246/@docdir@/p
19247/@infodir@/p
19248/@localedir@/p
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019249/@mandir@/p
19250' $ac_file_inputs` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019251*datarootdir*) ac_datarootdir_seen=yes;;
19252*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019253 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19254echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019255_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019256cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019257 ac_datarootdir_hack='
19258 s&@datadir@&$datadir&g
19259 s&@docdir@&$docdir&g
19260 s&@infodir@&$infodir&g
19261 s&@localedir@&$localedir&g
19262 s&@mandir@&$mandir&g
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019263 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019264esac
19265_ACEOF
19266
19267# Neutralize VPATH when `$srcdir' = `.'.
19268# Shell code in configure.ac might set extrasub.
19269# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019270cat >>$CONFIG_STATUS <<_ACEOF
19271 sed "$ac_vpsub
John Criswell3ef61af2003-06-30 21:59:07 +000019272$extrasub
19273_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019274cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019275:t
19276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019277s&@configure_input@&$configure_input&;t t
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019278s&@top_builddir@&$ac_top_builddir_sub&;t t
19279s&@srcdir@&$ac_srcdir&;t t
19280s&@abs_srcdir@&$ac_abs_srcdir&;t t
19281s&@top_srcdir@&$ac_top_srcdir&;t t
19282s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19283s&@builddir@&$ac_builddir&;t t
19284s&@abs_builddir@&$ac_abs_builddir&;t t
19285s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19286s&@INSTALL@&$ac_INSTALL&;t t
19287$ac_datarootdir_hack
Logan Chiene1c36012015-03-12 17:25:25 +000019288" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell3ef61af2003-06-30 21:59:07 +000019289
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019290test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19291 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019293 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019294which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019295echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019296which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000019297
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019298 rm -f "$tmp/stdin"
John Criswell3ef61af2003-06-30 21:59:07 +000019299 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019300 -) cat "$tmp/out"; rm -f "$tmp/out";;
19301 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19302 esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019303 ;;
19304 :H)
19305 #
19306 # CONFIG_HEADER
19307 #
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019308_ACEOF
19309
19310# Transform confdefs.h into a sed script `conftest.defines', that
19311# substitutes the proper values into config.h.in to produce config.h.
19312rm -f conftest.defines conftest.tail
19313# First, append a space to every undef/define line, to ease matching.
19314echo 's/$/ /' >conftest.defines
19315# Then, protect against being on the right side of a sed subst, or in
19316# an unquoted here document, in config.status. If some macros were
19317# called several times there might be several #defines for the same
19318# symbol, which is useless. But do not sort them, since the last
19319# AC_DEFINE must be honored.
19320ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19321# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19322# NAME is the cpp macro being defined, VALUE is the value it is being given.
19323# PARAMS is the parameter list in the macro definition--in most cases, it's
19324# just an empty string.
19325ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19326ac_dB='\\)[ (].*,\\1define\\2'
19327ac_dC=' '
19328ac_dD=' ,'
19329
19330uniq confdefs.h |
19331 sed -n '
19332 t rset
19333 :rset
19334 s/^[ ]*#[ ]*define[ ][ ]*//
19335 t ok
19336 d
19337 :ok
19338 s/[\\&,]/\\&/g
19339 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19340 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19341 ' >>conftest.defines
19342
19343# Remove the space that was appended to ease matching.
19344# Then replace #undef with comments. This is necessary, for
19345# example, in the case of _POSIX_SOURCE, which is predefined and required
19346# on some systems where configure will not decide to define it.
19347# (The regexp can be short, since the line contains either #define or #undef.)
19348echo 's/ $//
19349s,^[ #]*u.*,/* & */,' >>conftest.defines
19350
19351# Break up conftest.defines:
19352ac_max_sed_lines=50
19353
19354# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19355# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19356# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19357# et cetera.
19358ac_in='$ac_file_inputs'
19359ac_out='"$tmp/out1"'
19360ac_nxt='"$tmp/out2"'
19361
19362while :
19363do
19364 # Write a here document:
19365 cat >>$CONFIG_STATUS <<_ACEOF
19366 # First, check the format of the line:
19367 cat >"\$tmp/defines.sed" <<\\CEOF
19368/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19369/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19370b
19371:def
19372_ACEOF
19373 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19374 echo 'CEOF
19375 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19376 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19377 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19378 grep . conftest.tail >/dev/null || break
19379 rm -f conftest.defines
19380 mv conftest.tail conftest.defines
19381done
19382rm -f conftest.defines conftest.tail
19383
19384echo "ac_result=$ac_in" >>$CONFIG_STATUS
19385cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019386 if test x"$ac_file" != x-; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019387 echo "/* $configure_input */" >"$tmp/config.h"
19388 cat "$ac_result" >>"$tmp/config.h"
19389 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19390 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19391echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000019392 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019393 rm -f $ac_file
19394 mv "$tmp/config.h" $ac_file
John Criswell3ef61af2003-06-30 21:59:07 +000019395 fi
19396 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019397 echo "/* $configure_input */"
19398 cat "$ac_result"
John Criswell3ef61af2003-06-30 21:59:07 +000019399 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019400 rm -f "$tmp/out12"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019401 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000019402
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019403 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19404echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019405 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000019406 esac
John Criswell3ef61af2003-06-30 21:59:07 +000019407
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019408
19409 case $ac_file$ac_mode in
19410 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019412 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwind70eebe2009-08-28 16:12:48 +000019413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019414 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019416 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019418 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019420 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwind70eebe2009-08-28 16:12:48 +000019421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000019422 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019424 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019426 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019428 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019429 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000019430 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000019431 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000019432 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwind70eebe2009-08-28 16:12:48 +000019433 ${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 +000019434
19435 esac
19436done # for ac_tag
19437
John Criswell3ef61af2003-06-30 21:59:07 +000019438
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019439{ (exit 0); exit 0; }
John Criswell3ef61af2003-06-30 21:59:07 +000019440_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019441chmod +x $CONFIG_STATUS
John Criswell3ef61af2003-06-30 21:59:07 +000019442ac_clean_files=$ac_clean_files_save
19443
19444
19445# configure is writing to config.log, and then calls config.status.
19446# config.status does its own redirection, appending to config.log.
19447# Unfortunately, on DOS this fails, as config.log is still kept open
19448# by configure, so config.status won't be able to write to it; its
19449# output is simply discarded. So we exec the FD to /dev/null,
19450# effectively closing config.log, so it can be properly (re)opened and
19451# appended to by config.status. When coming back to configure, we
19452# need to make the FD available again.
19453if test "$no_create" != yes; then
19454 ac_cs_success=:
John Criswell3eaf0b42003-09-10 15:17:25 +000019455 ac_config_status_args=
19456 test "$silent" = yes &&
19457 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell3ef61af2003-06-30 21:59:07 +000019458 exec 5>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +000019459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell3ef61af2003-06-30 21:59:07 +000019460 exec 5>>config.log
19461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19462 # would make configure fail if this is the last instruction.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019463 $ac_cs_success || { (exit 1); exit 1; }
John Criswell3ef61af2003-06-30 21:59:07 +000019464fi
19465
John Criswell2b3771e2003-09-30 15:55:44 +000019466#
19467# CONFIG_SUBDIRS section.
19468#
19469if test "$no_recursion" != yes; then
19470
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019471 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell2b3771e2003-09-30 15:55:44 +000019472 ac_sub_configure_args=
19473 ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019474 eval "set x $ac_configure_args"
19475 shift
19476 for ac_arg
19477 do
John Criswell2b3771e2003-09-30 15:55:44 +000019478 if test -n "$ac_prev"; then
19479 ac_prev=
19480 continue
19481 fi
19482 case $ac_arg in
19483 -cache-file | --cache-file | --cache-fil | --cache-fi \
19484 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19485 ac_prev=cache_file ;;
19486 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19487 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19488 | --c=*)
19489 ;;
19490 --config-cache | -C)
19491 ;;
19492 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19493 ac_prev=srcdir ;;
19494 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19495 ;;
19496 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19497 ac_prev=prefix ;;
19498 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19499 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019500 *)
19501 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019502 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019503 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019504 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell2b3771e2003-09-30 15:55:44 +000019505 esac
19506 done
19507
19508 # Always prepend --prefix to ensure using the same prefix
19509 # in subdir configurations.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019510 ac_arg="--prefix=$prefix"
19511 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019512 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019513 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019514 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell2b3771e2003-09-30 15:55:44 +000019515
19516 ac_popdir=`pwd`
19517 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19518
19519 # Do not complain, so a configure script can configure whichever
19520 # parts of a large source tree are present.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019521 test -d "$srcdir/$ac_dir" || continue
John Criswell2b3771e2003-09-30 15:55:44 +000019522
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019523 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019524 echo "$as_me:$LINENO: $ac_msg" >&5
19525 echo "$ac_msg" >&6
19526 { as_dir="$ac_dir"
19527 case $as_dir in #(
19528 -*) as_dir=./$as_dir;;
19529 esac
19530 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19531 as_dirs=
19532 while :; do
19533 case $as_dir in #(
19534 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19535 *) as_qdir=$as_dir;;
19536 esac
19537 as_dirs="'$as_qdir' $as_dirs"
19538 as_dir=`$as_dirname -- "$as_dir" ||
19539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19540 X"$as_dir" : 'X\(//\)[^/]' \| \
19541 X"$as_dir" : 'X\(//\)$' \| \
19542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19543echo X"$as_dir" |
19544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19545 s//\1/
19546 q
19547 }
19548 /^X\(\/\/\)[^/].*/{
19549 s//\1/
19550 q
19551 }
19552 /^X\(\/\/\)$/{
19553 s//\1/
19554 q
19555 }
19556 /^X\(\/\).*/{
19557 s//\1/
19558 q
19559 }
19560 s/.*/./; q'`
19561 test -d "$as_dir" && break
19562 done
19563 test -z "$as_dirs" || eval "mkdir $as_dirs"
19564 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19565echo "$as_me: error: cannot create directory $as_dir" >&2;}
19566 { (exit 1); exit 1; }; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000019567 ac_builddir=.
19568
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019569case "$ac_dir" in
19570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19571*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019573 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019574 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019575 case $ac_top_builddir_sub in
19576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19578 esac ;;
19579esac
19580ac_abs_top_builddir=$ac_pwd
19581ac_abs_builddir=$ac_pwd$ac_dir_suffix
19582# for backward compatibility:
19583ac_top_builddir=$ac_top_build_prefix
John Criswell2b3771e2003-09-30 15:55:44 +000019584
19585case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019586 .) # We are building in place.
John Criswell2b3771e2003-09-30 15:55:44 +000019587 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019588 ac_top_srcdir=$ac_top_builddir_sub
19589 ac_abs_top_srcdir=$ac_pwd ;;
19590 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell2b3771e2003-09-30 15:55:44 +000019591 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019592 ac_top_srcdir=$srcdir
19593 ac_abs_top_srcdir=$srcdir ;;
19594 *) # Relative name.
19595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19596 ac_top_srcdir=$ac_top_build_prefix$srcdir
19597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell2b3771e2003-09-30 15:55:44 +000019598esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell2b3771e2003-09-30 15:55:44 +000019600
19601
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019602 cd "$ac_dir"
John Criswell2b3771e2003-09-30 15:55:44 +000019603
19604 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019605 if test -f "$ac_srcdir/configure.gnu"; then
19606 ac_sub_configure=$ac_srcdir/configure.gnu
19607 elif test -f "$ac_srcdir/configure"; then
19608 ac_sub_configure=$ac_srcdir/configure
19609 elif test -f "$ac_srcdir/configure.in"; then
19610 # This should be Cygnus configure.
19611 ac_sub_configure=$ac_aux_dir/configure
John Criswell2b3771e2003-09-30 15:55:44 +000019612 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019613 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19614echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell2b3771e2003-09-30 15:55:44 +000019615 ac_sub_configure=
19616 fi
19617
19618 # The recursion is here.
19619 if test -n "$ac_sub_configure"; then
19620 # Make the cache file name correct relative to the subdirectory.
19621 case $cache_file in
19622 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019623 *) # Relative name.
19624 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell2b3771e2003-09-30 15:55:44 +000019625 esac
19626
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019627 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19628echo "$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 +000019629 # The eval makes quoting arguments work.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019630 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19631 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019632 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19633echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19634 { (exit 1); exit 1; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000019635 fi
19636
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019637 cd "$ac_popdir"
John Criswell2b3771e2003-09-30 15:55:44 +000019638 done
19639fi
19640