blob: 7ddb0f32f9bef0dc1784d424173b0edc60e64917 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Stephen Hinesebe69fe2015-03-23 12:10:34 -07003# Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070012# Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Stephen Hines37ed9c12014-12-01 14:51:49 -080017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Stephen Hinesebe69fe2015-03-23 12:10:34 -0700564PACKAGE_VERSION='3.7.0svn'
565PACKAGE_STRING='LLVM 3.7.0svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Chandler Carruth5ebee9e2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
Stephen Hines36b56882014-04-23 16:57:46 -0700642LLVM_VERSION_MAJOR
643LLVM_VERSION_MINOR
644LLVM_VERSION_PATCH
645LLVM_VERSION_SUFFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000647CC
648CFLAGS
649LDFLAGS
650CPPFLAGS
651ac_ct_CC
652EXEEXT
653OBJEXT
654CXX
655CXXFLAGS
656ac_ct_CXX
657CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000658subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000659ENABLE_POLLY
660LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-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
Stephen Hines36b56882014-04-23 16:57:46 -0700681LLVM_NATIVE_ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000682HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000683LLVM_CROSS_COMPILING
684BUILD_CC
685BUILD_EXEEXT
686BUILD_CXX
687CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000688ENABLE_LIBCPP
Stephen Hines36b56882014-04-23 16:57:46 -0700689ENABLE_CXX1Y
Eric Christopher1baa3812013-06-25 01:12:25 +0000690ENABLE_SPLIT_DWARF
Roman Divackyd14baf42012-12-13 16:07:19 +0000691ENABLE_CLANG_ARCMT
Stephen Hines36b56882014-04-23 16:57:46 -0700692CLANG_PLUGIN_SUPPORT
Roman Divackyd14baf42012-12-13 16:07:19 +0000693ENABLE_CLANG_STATIC_ANALYZER
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694ENABLE_OPTIMIZED
695ENABLE_PROFILING
696DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000697ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_EXPENSIVE_CHECKS
699EXPENSIVE_CHECKS
Pirama Arumuga Nainar2c3e0052015-05-06 11:46:36 -0700700ENABLE_ABI_BREAKING_CHECKS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000701DEBUG_RUNTIME
702DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000703KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000704JIT
705TARGET_HAS_JIT
Stephen Hines36b56882014-04-23 16:57:46 -0700706TARGETS_WITH_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000707ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708ENABLE_DOXYGEN
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -0700709enable_searchengine
710enable_external_search
711enable_server_based_search
712searchengine_url
713extra_search_mappings
714QHELPGENERATOR
715llvm_doxygen_generate_qhp
716llvm_doxygen_qch_filename
717llvm_doxygen_qhp_namespace
718llvm_doxygen_qhelpgenerator_path
719llvm_doxygen_qhp_cust_filter_name
720llvm_doxygen_qhp_cust_filter_attrs
721clang_doxygen_generate_qhp
722clang_doxygen_qch_filename
723clang_doxygen_qhp_namespace
724clang_doxygen_qhelpgenerator_path
725clang_doxygen_qhp_cust_filter_name
726clang_doxygen_qhp_cust_filter_attrs
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000727LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000728ENABLE_PTHREADS
Alexey Samsonovee03c942013-04-23 08:28:39 +0000729LLVM_ENABLE_ZLIB
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000730ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000731ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000732ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000733ENABLE_TIMESTAMPS
Stephen Hines36b56882014-04-23 16:57:46 -0700734ALL_TARGETS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000735TARGETS_TO_BUILD
736LLVM_ENUM_TARGETS
737LLVM_ENUM_ASM_PRINTERS
738LLVM_ENUM_ASM_PARSERS
739LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000740OPTIMIZE_OPTION
741EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000742EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000743CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744BINUTILS_INCDIR
Stephen Hines36b56882014-04-23 16:57:46 -0700745ENABLE_TERMINFO
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000746INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747ifGNUmake
748LN_S
Stephen Hines36b56882014-04-23 16:57:46 -0700749NM
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750CMP
751CP
752DATE
753FIND
Stephen Hines36b56882014-04-23 16:57:46 -0700754GREP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755MKDIR
756MV
757RANLIB
758AR
759RM
760SED
761TAR
762BINPWD
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763DOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764INSTALL_PROGRAM
765INSTALL_SCRIPT
766INSTALL_DATA
767BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000768CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000769DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000770GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000771GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000772PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773ZIP
Stephen Hines37ed9c12014-12-01 14:51:49 -0800774GO
775OCAMLFIND
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000776GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000777HAVE_LINK_VERSION_SCRIPT
Stephen Hines36b56882014-04-23 16:57:46 -0700778EGREP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779NO_VARIADIC_MACROS
780NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000781COVERED_SWITCH_DEFAULT
David Greened2f82162013-01-09 22:11:13 +0000782NO_MAYBE_UNINITIALIZED
783NO_UNINITIALIZED
Stephen Hines37ed9c12014-12-01 14:51:49 -0800784NO_COMMENT
Saleem Abdulrasool581126e2013-01-30 04:44:17 +0000785PYTHON
Stephen Hines36b56882014-04-23 16:57:46 -0700786HAVE_DLOPEN
787HAVE_TERMINFO
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000788USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000789USE_INTEL_JITEVENTS
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000790XML2CONFIG
791LIBXML2_LIBS
792LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000793HAVE_PTHREAD
Alexey Samsonovee03c942013-04-23 08:28:39 +0000794HAVE_LIBZ
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000795HUGE_VAL_SANITY
796MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000797SHLIBEXT
798LLVM_PREFIX
799LLVM_BINDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000800LLVM_DATADIR
801LLVM_DOCSDIR
802LLVM_ETCDIR
803LLVM_INCLUDEDIR
804LLVM_INFODIR
805LLVM_MANDIR
806LLVM_CONFIGTIME
807BINDINGS_TO_BUILD
Stephen Hines37ed9c12014-12-01 14:51:49 -0800808HAVE_OCAMLOPT
809HAVE_OCAML_OUNIT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000810OCAML_LIBDIR
811ENABLE_VISIBILITY_INLINES_HIDDEN
812RPATH
813RDYNAMIC
Jordan Rose92080522012-10-01 18:40:32 +0000814program_prefix
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000815LIBOBJS
816LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000817ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000818 ac_precious_vars='build_alias
819host_alias
820target_alias
821CC
822CFLAGS
823LDFLAGS
824CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000825CXX
826CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000827CCC
Stephen Hines37ed9c12014-12-01 14:51:49 -0800828CPP'
Stephen Hines36b56882014-04-23 16:57:46 -0700829ac_subdirs_all='projects/test-suite
John Criswell0157f502010-03-19 21:31:39 +0000830projects/llvm-test
831projects/poolalloc
832projects/llvm-poolalloc
John Criswell7def2932010-02-25 22:57:19 +0000833projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000834tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839# The variables have the same names as the options, with
840# dashes changed to underlines.
841cache_file=/dev/null
842exec_prefix=NONE
843no_create=
844no_recursion=
845prefix=NONE
846program_prefix=NONE
847program_suffix=NONE
848program_transform_name=s,x,x,
849silent=
850site=
851srcdir=
852verbose=
853x_includes=NONE
854x_libraries=NONE
855
856# Installation directory options.
857# These are left unexpanded so users can "make install exec_prefix=/foo"
858# and all the variables that are supposed to be based on exec_prefix
859# by default will actually change.
860# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000861# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000862bindir='${exec_prefix}/bin'
863sbindir='${exec_prefix}/sbin'
864libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000865datarootdir='${prefix}/share'
866datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000867sysconfdir='${prefix}/etc'
868sharedstatedir='${prefix}/com'
869localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000870includedir='${prefix}/include'
871oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873infodir='${datarootdir}/info'
874htmldir='${docdir}'
875dvidir='${docdir}'
876pdfdir='${docdir}'
877psdir='${docdir}'
878libdir='${exec_prefix}/lib'
879localedir='${datarootdir}/locale'
880mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000881
882ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000883ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000884for ac_option
885do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000888 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000889 ac_prev=
890 continue
891 fi
892
Reid Spencera773bd52006-08-04 18:18:08 +0000893 case $ac_option in
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *) ac_optarg=yes ;;
896 esac
John Criswell7a73b802003-06-30 21:59:07 +0000897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
Reid Spencera773bd52006-08-04 18:18:08 +0000900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
Reid Spencera773bd52006-08-04 18:18:08 +0000924 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000925 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000927 datadir=$ac_optarg ;;
928
Reid Spencera773bd52006-08-04 18:18:08 +0000929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
John Criswell7a73b802003-06-30 21:59:07 +0000936 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000938 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000954
955 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000957 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
Reid Spencera773bd52006-08-04 18:18:08 +0000989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
John Criswell7a73b802003-06-30 21:59:07 +0000995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
Reid Spencera773bd52006-08-04 18:18:08 +00001019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
John Criswell7a73b802003-06-30 21:59:07 +00001024 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001025 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
Reid Spencera773bd52006-08-04 18:18:08 +00001093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
John Criswell7a73b802003-06-30 21:59:07 +00001103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001154 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package| sed 's/-/_/g'`
1159 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001160
1161 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001163 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/-/_/g'`
1168 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 -*) { echo "$as_me: error: unrecognized option: $ac_option
1189Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001199 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 ;;
1209
1210 esac
1211done
1212
1213if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: missing argument to $ac_option" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217fi
1218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001219# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001220for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001224do
Reid Spencera773bd52006-08-04 18:18:08 +00001225 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001226 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001229 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
Reid Spencera773bd52006-08-04 18:18:08 +00001258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001261 { echo "$as_me: error: Working directory cannot be determined" >&2
1262 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001264 { echo "$as_me: error: pwd does not report name of working directory" >&2
1265 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001266
1267
John Criswell7a73b802003-06-30 21:59:07 +00001268# Find the source files, if location was not specified.
1269if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001271 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001272 ac_confdir=`$as_dirname -- "$0" ||
1273$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$0" : 'X\(//\)[^/]' \| \
1275 X"$0" : 'X\(//\)$' \| \
1276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\).*/{
1291 s//\1/
1292 q
1293 }
1294 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001295 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001296 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001297 srcdir=..
1298 fi
1299else
1300 ac_srcdir_defaulted=no
1301fi
Reid Spencera773bd52006-08-04 18:18:08 +00001302if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001306fi
Reid Spencera773bd52006-08-04 18:18:08 +00001307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001311 pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
John Criswell7a73b802003-06-30 21:59:07 +00001328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
Stephen Hinesebe69fe2015-03-23 12:10:34 -07001336\`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE. See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
John Criswell7a73b802003-06-30 21:59:07 +00001356Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001358 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001360 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001389_ACEOF
1390
1391 cat <<\_ACEOF
1392
1393System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401 case $ac_init_help in
Stephen Hinesebe69fe2015-03-23 12:10:34 -07001402 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001403 esac
1404 cat <<\_ACEOF
1405
1406Optional Features:
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001409 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001410 --enable-libcpp Use libc++ if available (default is NO)
Stephen Hines36b56882014-04-23 16:57:46 -07001411 --enable-compiler-version-checks
1412 Check the version of the host compiler (default is
1413 YES)
1414 --enable-cxx1y Use c++1y if available (default is NO)
Eric Christopher1baa3812013-06-25 01:12:25 +00001415 --enable-split-dwarf Use split-dwarf if available (default is NO)
Roman Divackyd14baf42012-12-13 16:07:19 +00001416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
Stephen Hines36b56882014-04-23 16:57:46 -07001417 --enable-clang-plugin-support
1418 Enable plugin support in clang (default is YES)
Roman Divackyd14baf42012-12-13 16:07:19 +00001419 --enable-clang-static-analyzer
1420 Enable building of clang Static Analyzer (default is
1421 YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001422 --enable-optimized Compile with optimizations enabled (default is NO)
1423 --enable-profiling Compile with profiling enabled (default is NO)
1424 --enable-assertions Compile with assertion checks enabled (default is
1425 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001426 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001427 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001428 Compile with expensive debug checks enabled (default
1429 is NO)
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07001430 --enable-abi-breaking-checks
1431 Compile with abi-breaking asserts support (default
1432 is with-asserts)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001433 --enable-debug-runtime Build runtime libs with debug symbols (default is
1434 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001435 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1436 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001437 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001438 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001439 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001440 --enable-doxygen Build doxygen documentation (default is NO)
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07001441 --enable-doxygen-search Enable doxygen search support (default is NO)
1442 --enable-doxygen-external-search
1443 Enable doxygen exteranl search (default is NO)
1444 --enable-doxygen-qt-help
1445 Build Qt help files (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001446 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001447 --enable-pthreads Use pthreads if available (default is YES)
Alexey Samsonovee03c942013-04-23 08:28:39 +00001448 --enable-zlib Use zlib for compression/decompression if available
1449 (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001450 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001451 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001452 --enable-shared Build a shared library and link tools against it
1453 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001455 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001456 --enable-timestamps Enable embedding timestamp information in build
1457 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001458 --enable-backtraces Enable embedding backtraces on crash (default is
1459 YES)
Daniel Dunbare179b312013-08-30 20:39:21 +00001460 --enable-crash-overrides
1461 Enable crash handling overrides (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001462 --enable-targets Build specific host targets: all or
1463 target1,target2,... Valid targets are: host, x86,
Stephen Hines36b56882014-04-23 16:57:46 -07001464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465 hexagon, xcore, msp430, nvptx, systemz, r600, and
1466 cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001467 --enable-experimental-targets
1468 Build experimental host targets: disable or
1469 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001470 --enable-bindings Build specific language bindings:
1471 all,auto,none,{binding-name} (default=auto)
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00001472 --enable-terminfo Query the terminfo database if available (default is
1473 YES)
Stephen Hines36b56882014-04-23 16:57:46 -07001474 --enable-libedit Use libedit if available (default is YES)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001475 --enable-libffi Check for the presence of libffi (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001476
1477Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07001480 --with-doxygen-search-engine-url
1481 Specify the external search engine for doxygen
1482 --with-doxygen-search-mappings
1483 Specify the extra search mapping for doxygen
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001484 --with-optimize-option Select the compiler options to use for optimized
1485 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001486 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001487 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001488 --with-ocaml-libdir Specify install location for ocaml bindings (default
1489 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001490 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001491 --with-clang-resource-dir
1492 Relative directory from the Clang binary for
1493 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001494 --with-c-include-dirs Colon separated list of directories clang will
1495 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001496 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001498 --with-binutils-include Specify path to binutils/include/ containing
1499 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001500 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001501 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001502 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00001503 --with-python path to python
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001504 --with-oprofile=<prefix>
1505 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor770b97b2012-09-28 17:35:20 +00001506 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1507
John Criswell7a73b802003-06-30 21:59:07 +00001508
1509Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001510 CC C compiler command
1511 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001515 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001518 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001519
1520Use these variables to override the choices made by `configure' or to help
1521it to find libraries and programs with nonstandard names/locations.
1522
Eric Christopherf33ab862011-12-21 00:52:44 +00001523Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001524_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001525ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001526fi
1527
1528if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001531 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001532 ac_builddir=.
1533
Reid Spencera773bd52006-08-04 18:18:08 +00001534case "$ac_dir" in
1535.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001538 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 esac ;;
1544esac
1545ac_abs_top_builddir=$ac_pwd
1546ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547# for backward compatibility:
1548ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001549
1550case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001551 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001552 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001556 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1559 *) # Relative name.
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001563esac
Reid Spencera773bd52006-08-04 18:18:08 +00001564ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001565
Reid Spencera773bd52006-08-04 18:18:08 +00001566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001574 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001575 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001578 done
1579fi
1580
Reid Spencera773bd52006-08-04 18:18:08 +00001581test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001582if $ac_init_version; then
1583 cat <<\_ACEOF
Stephen Hinesebe69fe2015-03-23 12:10:34 -07001584LLVM configure 3.7.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001585generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001587Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15882002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001589This configure script is free software; the Free Software Foundation
1590gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001591
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07001592Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001593_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001594 exit
John Criswell7a73b802003-06-30 21:59:07 +00001595fi
Reid Spencera773bd52006-08-04 18:18:08 +00001596cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001597This file contains any messages produced by compilers while
1598running configure, to aid debugging if configure makes a mistake.
1599
Stephen Hinesebe69fe2015-03-23 12:10:34 -07001600It was created by LLVM $as_me 3.7.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001601generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001602
1603 $ $0 $@
1604
1605_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001606exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001607{
1608cat <<_ASUNAME
1609## --------- ##
1610## Platform. ##
1611## --------- ##
1612
1613hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618
1619/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1621
1622/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001625/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001626/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629
1630_ASUNAME
1631
1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633for as_dir in $PATH
1634do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001637 echo "PATH: $as_dir"
1638done
Reid Spencera773bd52006-08-04 18:18:08 +00001639IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001640
1641} >&5
1642
1643cat >&5 <<_ACEOF
1644
1645
1646## ----------- ##
1647## Core tests. ##
1648## ----------- ##
1649
1650_ACEOF
1651
1652
1653# Keep a trace of the command line.
1654# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001655# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001656# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001657# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001658ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001659ac_configure_args0=
1660ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001661ac_must_keep_next=false
1662for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001663do
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 for ac_arg
1665 do
1666 case $ac_arg in
1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1670 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001671 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 esac
1674 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001678 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001679 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001681 case $ac_arg in
1682 *=* | --config-cache | -C | -disable-* | --disable-* \
1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685 | -with-* | --with-* | -without-* | --without-* | --x)
1686 case "$ac_configure_args0 " in
1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688 esac
1689 ;;
1690 -* ) ac_must_keep_next=true ;;
1691 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001692 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001693 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ;;
1695 esac
1696 done
John Criswell7a73b802003-06-30 21:59:07 +00001697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001698$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001700
1701# When interrupted or exit'd, cleanup temporary files, and complete
1702# config.log. We remove comments because anyway the quotes in there
1703# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001704# WARNING: Use '\'' to represent an apostrophe within the trap.
1705# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001706trap 'exit_status=$?
1707 # Save into config.log some information that might help in debugging.
1708 {
1709 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001710
John Criswell7a73b802003-06-30 21:59:07 +00001711 cat <<\_ASBOX
1712## ---------------- ##
1713## Cache variables. ##
1714## ---------------- ##
1715_ASBOX
1716 echo
1717 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001718(
1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720 eval ac_val=\$$ac_var
1721 case $ac_val in #(
1722 *${as_nl}*)
1723 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
1727 case $ac_var in #(
1728 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001730 esac ;;
1731 esac
1732 done
John Criswell7a73b802003-06-30 21:59:07 +00001733 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001736 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001737 "s/'\''/'\''\\\\'\'''\''/g;
1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001740 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001742 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001743 esac |
1744 sort
1745)
John Criswell7a73b802003-06-30 21:59:07 +00001746 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001747
1748 cat <<\_ASBOX
1749## ----------------- ##
1750## Output variables. ##
1751## ----------------- ##
1752_ASBOX
1753 echo
1754 for ac_var in $ac_subst_vars
1755 do
Reid Spencera773bd52006-08-04 18:18:08 +00001756 eval ac_val=\$$ac_var
1757 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001759 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001760 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 done | sort
1762 echo
1763
1764 if test -n "$ac_subst_files"; then
1765 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001766## ------------------- ##
1767## File substitutions. ##
1768## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001769_ASBOX
1770 echo
1771 for ac_var in $ac_subst_files
1772 do
Reid Spencera773bd52006-08-04 18:18:08 +00001773 eval ac_val=\$$ac_var
1774 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001776 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 done | sort
1779 echo
1780 fi
1781
John Criswell7a73b802003-06-30 21:59:07 +00001782 if test -s confdefs.h; then
1783 cat <<\_ASBOX
1784## ----------- ##
1785## confdefs.h. ##
1786## ----------- ##
1787_ASBOX
1788 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001789 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001790 echo
1791 fi
1792 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 echo "$as_me: caught signal $ac_signal"
1794 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001795 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001796 rm -f core *.core core.conftest.* &&
1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001798 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001799' 0
John Criswell7a73b802003-06-30 21:59:07 +00001800for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001802done
1803ac_signal=0
1804
1805# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001806rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001807
1808# Predefined preprocessor variables.
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_NAME "$PACKAGE_NAME"
1812_ACEOF
1813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814
John Criswell7a73b802003-06-30 21:59:07 +00001815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817_ACEOF
1818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819
John Criswell7a73b802003-06-30 21:59:07 +00001820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_VERSION "$PACKAGE_VERSION"
1822_ACEOF
1823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001824
John Criswell7a73b802003-06-30 21:59:07 +00001825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_STRING "$PACKAGE_STRING"
1827_ACEOF
1828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001829
John Criswell7a73b802003-06-30 21:59:07 +00001830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832_ACEOF
1833
1834
1835# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001837if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001838 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001839elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 set x "$ac_default_prefix/share/config.site" \
1843 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845shift
1846for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001847do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001848 if test -r "$ac_site_file"; then
1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001851 sed 's/^/| /' "$ac_site_file" >&5
1852 . "$ac_site_file"
1853 fi
1854done
1855
1856if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001862 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001865 esac
1866 fi
1867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001870 >$cache_file
1871fi
1872
1873# Check that the precious variables saved in the cache have kept the same
1874# value.
1875ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001876for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001881 case $ac_old_set,$ac_new_set in
1882 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001885 ac_cache_corrupted=: ;;
1886 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001889 ac_cache_corrupted=: ;;
1890 ,);;
1891 *)
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001900 fi;;
1901 esac
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1904 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001906 *) ac_arg=$ac_var=$ac_new_val ;;
1907 esac
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001911 esac
1912 fi
1913done
1914if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
Reid Spencera773bd52006-08-04 18:18:08 +00001945
John Criswell7a73b802003-06-30 21:59:07 +00001946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
Stephen Hines36b56882014-04-23 16:57:46 -07001954LLVM_VERSION_MAJOR=3
Stephen Hinesebe69fe2015-03-23 12:10:34 -07001955LLVM_VERSION_MINOR=7
Stephen Hines36b56882014-04-23 16:57:46 -07001956LLVM_VERSION_PATCH=0
1957LLVM_VERSION_SUFFIX=svn
1958
1959
1960cat >>confdefs.h <<_ACEOF
1961#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001962_ACEOF
1963
1964
Stephen Hines36b56882014-04-23 16:57:46 -07001965cat >>confdefs.h <<_ACEOF
1966#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001967_ACEOF
1968
1969
Stephen Hines36b56882014-04-23 16:57:46 -07001970cat >>confdefs.h <<_ACEOF
1971#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1972_ACEOF
1973
1974
Stephen Hines37ed9c12014-12-01 14:51:49 -08001975cat >>confdefs.h <<_ACEOF
1976#define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1977_ACEOF
1978
1979
Stephen Hines36b56882014-04-23 16:57:46 -07001980
1981
1982
1983
1984
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07001985LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001986
1987
1988
1989
1990
1991
1992
John Criswell7a73b802003-06-30 21:59:07 +00001993ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001994for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001995 if 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/install.sh"; then
2000 ac_aux_dir=$ac_dir
2001 ac_install_sh="$ac_aux_dir/install.sh -c"
2002 break
2003 elif test -f "$ac_dir/shtool"; then
2004 ac_aux_dir=$ac_dir
2005 ac_install_sh="$ac_aux_dir/shtool install -c"
2006 break
2007 fi
John Criswell7a73b802003-06-30 21:59:07 +00002008done
2009if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002010 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2011echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2012 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002013fi
Reid Spencera773bd52006-08-04 18:18:08 +00002014
2015# These three variables are undocumented and unsupported,
2016# and are intended to be withdrawn in a future Autoconf release.
2017# They can cause serious problems if a builder's source tree is in a directory
2018# whose full name contains unusual characters.
2019ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2020ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2021ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2022
John Criswell7a73b802003-06-30 21:59:07 +00002023
John Criswell392aaa32003-07-22 19:18:09 +00002024
Reid Spencer2706f8c2004-09-19 23:53:36 +00002025if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002026 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2028echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2029 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030 fi
John Criswell93e1c722003-09-15 17:04:06 +00002031fi
2032
Patrik Hagglundd4bf7a32013-09-24 11:38:45 +00002033: ${CFLAGS=}
2034: ${CXXFLAGS=}
Patrik Hagglund6c440fc2013-02-04 08:15:53 +00002035
Nick Lewycky83fc4472009-09-29 05:48:51 +00002036ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002037ac_cpp='$CPP $CPPFLAGS'
2038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002041if test -n "$ac_tool_prefix"; then
Stephen Hines36b56882014-04-23 16:57:46 -07002042 for ac_prog in clang gcc
John Criswell7a73b802003-06-30 21:59:07 +00002043 do
2044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002050else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002053else
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002063 break 2
2064 fi
2065done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066done
Reid Spencera773bd52006-08-04 18:18:08 +00002067IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002068
2069fi
2070fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071CC=$ac_cv_prog_CC
2072if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002073 { echo "$as_me:$LINENO: result: $CC" >&5
2074echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076 { echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002078fi
2079
Reid Spencera773bd52006-08-04 18:18:08 +00002080
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002082 done
2083fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002084if test -z "$CC"; then
2085 ac_ct_CC=$CC
Stephen Hines36b56882014-04-23 16:57:46 -07002086 for ac_prog in clang gcc
John Criswell7a73b802003-06-30 21:59:07 +00002087do
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002094else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002105 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002107 break 2
2108 fi
2109done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002110done
Reid Spencera773bd52006-08-04 18:18:08 +00002111IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002112
2113fi
2114fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002115ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002119else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120 { echo "$as_me:$LINENO: result: no" >&5
2121echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002122fi
2123
Reid Spencera773bd52006-08-04 18:18:08 +00002124
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002125 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002126done
John Criswell7a73b802003-06-30 21:59:07 +00002127
Reid Spencera773bd52006-08-04 18:18:08 +00002128 if test "x$ac_ct_CC" = x; then
2129 CC=""
2130 else
2131 case $cross_compiling:$ac_tool_warned in
2132yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002133{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2134whose name does not start with the host triplet. If you think this
2135configuration is useful to you, please write to autoconf@gnu.org." >&5
2136echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2137whose name does not start with the host triplet. If you think this
2138configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002139ac_tool_warned=yes ;;
2140esac
2141 CC=$ac_ct_CC
2142 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002143fi
2144
John Criswell7a73b802003-06-30 21:59:07 +00002145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2147See \`config.log' for more details." >&5
2148echo "$as_me: error: no acceptable C compiler found in \$PATH
2149See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002151
John Criswell7a73b802003-06-30 21:59:07 +00002152# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002153echo "$as_me:$LINENO: checking for C compiler version" >&5
2154ac_compiler=`set X $ac_compile; echo $2`
2155{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002156case "(($ac_try" in
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2159esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002162 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165{ (ac_try="$ac_compiler -v >&5"
2166case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169esac
2170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171 (eval "$ac_compiler -v >&5") 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }
2175{ (ac_try="$ac_compiler -V >&5"
2176case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2179esac
2180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2181 (eval "$ac_compiler -V >&5") 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002186cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h. */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002192
John Criswell7a73b802003-06-30 21:59:07 +00002193int
2194main ()
2195{
2196
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002202ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002203# Try to create an executable without -o first, disregard a.out.
2204# It will help us diagnose broken compilers, and finding out an intuition
2205# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002206{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2207echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2208ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2209#
2210# List of possible output files, starting from the most likely.
2211# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2212# only as a last resort. b.out is created by i960 compilers.
2213ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2214#
2215# The IRIX 6 linker writes into existing files which may not be
2216# executable, retaining their permissions. Remove them first so a
2217# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002218ac_rmfiles=
2219for ac_file in $ac_files
2220do
2221 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002223 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2224 esac
2225done
2226rm -f $ac_rmfiles
2227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002228if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002229case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002234 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002235 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002238 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2239# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2240# in a Makefile. We should not override ac_cv_exeext if it was cached,
2241# so that the user can short-circuit this test for compilers unknown to
2242# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002243for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002244do
2245 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002246 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002248 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002249 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002250 # We found the default executable, but exeext='' is most
2251 # certainly right.
2252 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002253 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002255 then :; else
2256 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 fi
2258 # We set ac_cv_exeext here because the later test for it is not
2259 # safe: cross compilers may not add the suffix if given an `-o'
2260 # argument, so we may need to know it at that point already.
2261 # Even if this section looks crufty: it has the advantage of
2262 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002263 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002264 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002265 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002266 esac
2267done
Reid Spencera773bd52006-08-04 18:18:08 +00002268test "$ac_cv_exeext" = no && ac_cv_exeext=
2269
John Criswell7a73b802003-06-30 21:59:07 +00002270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002272sed 's/^/| /' conftest.$ac_ext >&5
2273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275See \`config.log' for more details." >&5
2276echo "$as_me: error: C compiler cannot create executables
2277See \`config.log' for more details." >&2;}
2278 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002279fi
John Criswell7a73b802003-06-30 21:59:07 +00002280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002281ac_exeext=$ac_cv_exeext
2282{ echo "$as_me:$LINENO: result: $ac_file" >&5
2283echo "${ECHO_T}$ac_file" >&6; }
2284
2285# Check that the compiler produces executables we can run. If not, either
2286# the compiler is broken, or we cross compile.
2287{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2289# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290# If not cross compiling, check that we can run a simple program.
2291if test "$cross_compiling" != yes; then
2292 if { ac_try='./$ac_file'
2293 { (case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296esac
2297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_try") 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 cross_compiling=no
2303 else
2304 if test "$cross_compiling" = maybe; then
2305 cross_compiling=yes
2306 else
2307 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2308If you meant to cross compile, use \`--host'.
2309See \`config.log' for more details." >&5
2310echo "$as_me: error: cannot run C compiled programs.
2311If you meant to cross compile, use \`--host'.
2312See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2314 fi
2315 fi
2316fi
2317{ echo "$as_me:$LINENO: result: yes" >&5
2318echo "${ECHO_T}yes" >&6; }
2319
2320rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002321ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002322# Check that the compiler produces executables we can run. If not, either
2323# the compiler is broken, or we cross compile.
2324{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2325echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2326{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2327echo "${ECHO_T}$cross_compiling" >&6; }
2328
2329{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2330echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2331if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002332case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002337 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002338 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002341 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2342# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2343# work properly (i.e., refer to `conftest.exe'), while it won't with
2344# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002345for ac_file in conftest.exe conftest conftest.*; do
2346 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002347 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002349 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002350 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002351 * ) break;;
2352 esac
2353done
2354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2356See \`config.log' for more details." >&5
2357echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2358See \`config.log' for more details." >&2;}
2359 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002361
2362rm -f conftest$ac_cv_exeext
2363{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2364echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002365
2366rm -f conftest.$ac_ext
2367EXEEXT=$ac_cv_exeext
2368ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002369{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2370echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2371if test "${ac_cv_objext+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374 cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002380
John Criswell7a73b802003-06-30 21:59:07 +00002381int
2382main ()
2383{
2384
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002390if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002391case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002396 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002397 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002400 for ac_file in conftest.o conftest.obj conftest.*; do
2401 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002402 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2405 break;;
2406 esac
2407done
2408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002410sed 's/^/| /' conftest.$ac_ext >&5
2411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2413See \`config.log' for more details." >&5
2414echo "$as_me: error: cannot compute suffix of object files: cannot compile
2415See \`config.log' for more details." >&2;}
2416 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002418
John Criswell7a73b802003-06-30 21:59:07 +00002419rm -f conftest.$ac_cv_objext conftest.$ac_ext
2420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002421{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2422echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002423OBJEXT=$ac_cv_objext
2424ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002425{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2426echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2427if test "${ac_cv_c_compiler_gnu+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002430 cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h. */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002435/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002436
John Criswell7a73b802003-06-30 21:59:07 +00002437int
2438main ()
2439{
2440#ifndef __GNUC__
2441 choke me
2442#endif
2443
2444 ;
2445 return 0;
2446}
2447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448rm -f conftest.$ac_objext
2449if { (ac_try="$ac_compile"
2450case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453esac
2454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476esac
2477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002482 ac_compiler_gnu=yes
2483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484 echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002489
Reid Spencera773bd52006-08-04 18:18:08 +00002490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002491ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002492
2493fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2495echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2496GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497ac_test_CFLAGS=${CFLAGS+set}
2498ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002499{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2500echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2501if test "${ac_cv_prog_cc_g+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002503else
Reid Spencera773bd52006-08-04 18:18:08 +00002504 ac_save_c_werror_flag=$ac_c_werror_flag
2505 ac_c_werror_flag=yes
2506 ac_cv_prog_cc_g=no
2507 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002508 cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002513/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002514
John Criswell7a73b802003-06-30 21:59:07 +00002515int
2516main ()
2517{
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002523rm -f conftest.$ac_objext
2524if { (ac_try="$ac_compile"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541esac
2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_try") 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551esac
2552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_try") 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559 echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 CFLAGS=""
2563 cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h. */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002568/* end confdefs.h. */
2569
2570int
2571main ()
2572{
2573
2574 ;
2575 return 0;
2576}
2577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578rm -f conftest.$ac_objext
2579if { (ac_try="$ac_compile"
2580case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583esac
2584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try='test -s conftest.$ac_objext'
2603 { (case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606esac
2607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_try") 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 :
Torok Edwin871384f2010-01-26 08:50:50 +00002613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002614 echo "$as_me: failed program was:" >&5
2615sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002618 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h. */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002624/* end confdefs.h. */
2625
2626int
2627main ()
2628{
2629
2630 ;
2631 return 0;
2632}
2633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634rm -f conftest.$ac_objext
2635if { (ac_try="$ac_compile"
2636case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639esac
2640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compile") 2>conftest.er1
2642 ac_status=$?
2643 grep -v '^ *+' conftest.er1 >conftest.err
2644 rm -f conftest.er1
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2649 { (case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652esac
2653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_try") 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662esac
2663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_try") 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002668 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002669else
2670 echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
2673
John Criswell7a73b802003-06-30 21:59:07 +00002674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002675
Reid Spencera773bd52006-08-04 18:18:08 +00002676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002678
Reid Spencera773bd52006-08-04 18:18:08 +00002679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002681
Reid Spencera773bd52006-08-04 18:18:08 +00002682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_c_werror_flag=$ac_save_c_werror_flag
2684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002685{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2686echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687if test "$ac_test_CFLAGS" = set; then
2688 CFLAGS=$ac_save_CFLAGS
2689elif test $ac_cv_prog_cc_g = yes; then
2690 if test "$GCC" = yes; then
2691 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002692 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002694 fi
2695else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696 if test "$GCC" = yes; then
2697 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002698 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002700 fi
2701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2703echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2704if test "${ac_cv_prog_cc_c89+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706else
Reid Spencera773bd52006-08-04 18:18:08 +00002707 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002708ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709cat >conftest.$ac_ext <<_ACEOF
2710/* confdefs.h. */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002714/* end confdefs.h. */
2715#include <stdarg.h>
2716#include <stdio.h>
2717#include <sys/types.h>
2718#include <sys/stat.h>
2719/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2720struct buf { int x; };
2721FILE * (*rcsopen) (struct buf *, struct stat *, int);
2722static char *e (p, i)
2723 char **p;
2724 int i;
2725{
2726 return p[i];
2727}
2728static char *f (char * (*g) (char **, int), char **p, ...)
2729{
2730 char *s;
2731 va_list v;
2732 va_start (v,p);
2733 s = g (p, va_arg (v,int));
2734 va_end (v);
2735 return s;
2736}
2737
2738/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2739 function prototypes and stuff, but not '\xHH' hex character constants.
2740 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002741 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2743 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002744 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2746
Reid Spencera773bd52006-08-04 18:18:08 +00002747/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2748 inside strings and character constants. */
2749#define FOO(x) 'x'
2750int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2751
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752int test (int i, double x);
2753struct s1 {int (*f) (int a);};
2754struct s2 {int (*f) (double a);};
2755int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2756int argc;
2757char **argv;
2758int
2759main ()
2760{
2761return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2762 ;
2763 return 0;
2764}
2765_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002766for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002768do
2769 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002770 rm -f conftest.$ac_objext
2771if { (ac_try="$ac_compile"
2772case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2785 { (case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788esac
2789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_try") 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798esac
2799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_try") 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002804 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002805else
2806 echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002810fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002811
Reid Spencera773bd52006-08-04 18:18:08 +00002812rm -f core conftest.err conftest.$ac_objext
2813 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002814done
Reid Spencera773bd52006-08-04 18:18:08 +00002815rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002816CC=$ac_save_CC
2817
2818fi
Reid Spencera773bd52006-08-04 18:18:08 +00002819# AC_CACHE_VAL
2820case "x$ac_cv_prog_cc_c89" in
2821 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002822 { echo "$as_me:$LINENO: result: none needed" >&5
2823echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002824 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002825 { echo "$as_me:$LINENO: result: unsupported" >&5
2826echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002827 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002828 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002829 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2830echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002831esac
2832
John Criswell0c38eaf2003-09-10 15:17:25 +00002833
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002834ac_ext=c
2835ac_cpp='$CPP $CPPFLAGS'
2836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839
Eric Christopherffee5722011-09-16 20:36:25 +00002840ac_ext=cpp
2841ac_cpp='$CXXCPP $CPPFLAGS'
2842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2845if test -z "$CXX"; then
2846 if test -n "$CCC"; then
2847 CXX=$CCC
2848 else
2849 if test -n "$ac_tool_prefix"; then
Stephen Hines36b56882014-04-23 16:57:46 -07002850 for ac_prog in clang++ g++
Eric Christopherffee5722011-09-16 20:36:25 +00002851 do
2852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856if test "${ac_cv_prog_CXX+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859 if test -n "$CXX"; then
2860 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2861else
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873done
2874done
2875IFS=$as_save_IFS
2876
2877fi
2878fi
2879CXX=$ac_cv_prog_CXX
2880if test -n "$CXX"; then
2881 { echo "$as_me:$LINENO: result: $CXX" >&5
2882echo "${ECHO_T}$CXX" >&6; }
2883else
2884 { echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6; }
2886fi
2887
2888
2889 test -n "$CXX" && break
2890 done
2891fi
2892if test -z "$CXX"; then
2893 ac_ct_CXX=$CXX
Stephen Hines36b56882014-04-23 16:57:46 -07002894 for ac_prog in clang++ g++
Eric Christopherffee5722011-09-16 20:36:25 +00002895do
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897set dummy $ac_prog; ac_word=$2
2898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903 if test -n "$ac_ct_CXX"; then
2904 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_ac_ct_CXX="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917done
2918done
2919IFS=$as_save_IFS
2920
2921fi
2922fi
2923ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2924if test -n "$ac_ct_CXX"; then
2925 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2926echo "${ECHO_T}$ac_ct_CXX" >&6; }
2927else
2928 { echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6; }
2930fi
2931
2932
2933 test -n "$ac_ct_CXX" && break
2934done
2935
2936 if test "x$ac_ct_CXX" = x; then
2937 CXX="g++"
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940yes:)
2941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2942whose name does not start with the host triplet. If you think this
2943configuration is useful to you, please write to autoconf@gnu.org." >&5
2944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2945whose name does not start with the host triplet. If you think this
2946configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2947ac_tool_warned=yes ;;
2948esac
2949 CXX=$ac_ct_CXX
2950 fi
2951fi
2952
2953 fi
2954fi
2955# Provide some information about the compiler.
2956echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2957ac_compiler=`set X $ac_compile; echo $2`
2958{ (ac_try="$ac_compiler --version >&5"
2959case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compiler --version >&5") 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968{ (ac_try="$ac_compiler -v >&5"
2969case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compiler -v >&5") 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }
2978{ (ac_try="$ac_compiler -V >&5"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compiler -V >&5") 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }
2988
2989{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2990echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2991if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 cat >conftest.$ac_ext <<_ACEOF
2995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
3000
3001int
3002main ()
3003{
3004#ifndef __GNUC__
3005 choke me
3006#endif
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (ac_try="$ac_compile"
3014case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 ac_compiler_gnu=yes
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 ac_compiler_gnu=no
3052fi
3053
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3056
3057fi
3058{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3059echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3060GXX=`test $ac_compiler_gnu = yes && echo yes`
3061ac_test_CXXFLAGS=${CXXFLAGS+set}
3062ac_save_CXXFLAGS=$CXXFLAGS
3063{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3064echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3065if test "${ac_cv_prog_cxx_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3069 ac_cxx_werror_flag=yes
3070 ac_cv_prog_cxx_g=no
3071 CXXFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
3088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 ac_cv_prog_cxx_g=yes
3122else
3123 echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 CXXFLAGS=""
3127 cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
3133
3134int
3135main ()
3136{
3137
3138 ;
3139 return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext
3143if { (ac_try="$ac_compile"
3144case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest.$ac_objext'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_try") 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3176 :
3177else
3178 echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 CXXFLAGS="-g"
3183 cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
3189
3190int
3191main ()
3192{
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
3199if { (ac_try="$ac_compile"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3213 { (case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_try") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_try") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_cv_prog_cxx_g=yes
3233else
3234 echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241fi
3242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244fi
3245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3248fi
3249{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3250echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3251if test "$ac_test_CXXFLAGS" = set; then
3252 CXXFLAGS=$ac_save_CXXFLAGS
3253elif test $ac_cv_prog_cxx_g = yes; then
3254 if test "$GXX" = yes; then
3255 CXXFLAGS="-g -O2"
3256 else
3257 CXXFLAGS="-g"
3258 fi
3259else
3260 if test "$GXX" = yes; then
3261 CXXFLAGS="-O2"
3262 else
3263 CXXFLAGS=
3264 fi
3265fi
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272ac_ext=c
3273ac_cpp='$CPP $CPPFLAGS'
3274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003277{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3278echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279# On Suns, sometimes $CPP names a directory.
3280if test -n "$CPP" && test -d "$CPP"; then
3281 CPP=
3282fi
3283if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003284 if test "${ac_cv_prog_CPP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286else
3287 # Double quotes because CPP needs to be expanded
3288 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3289 do
3290 ac_preproc_ok=false
3291for ac_c_preproc_warn_flag in '' yes
3292do
3293 # Use a header file that comes with gcc, so configuring glibc
3294 # with a fresh cross-compiler works.
3295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3296 # <limits.h> exists even on freestanding compilers.
3297 # On the NeXT, cc -E runs the code through the compiler's parser,
3298 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003299 cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304/* end confdefs.h. */
3305#ifdef __STDC__
3306# include <limits.h>
3307#else
3308# include <assert.h>
3309#endif
3310 Syntax error
3311_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003312if { (ac_try="$ac_cpp conftest.$ac_ext"
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328 else
3329 ac_cpp_err=
3330 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332 ac_cpp_err=yes
3333fi
3334if test -z "$ac_cpp_err"; then
3335 :
3336else
3337 echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003340 # Broken: fails on valid input.
3341continue
3342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003343
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344rm -f conftest.err conftest.$ac_ext
3345
Reid Spencera773bd52006-08-04 18:18:08 +00003346 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353/* end confdefs.h. */
3354#include <ac_nonexistent.h>
3355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356if { (ac_try="$ac_cpp conftest.$ac_ext"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_c_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372 else
3373 ac_cpp_err=
3374 fi
3375else
3376 ac_cpp_err=yes
3377fi
3378if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379 # Broken: success on invalid input.
3380continue
3381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003382 echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385 # Passes both tests.
3386ac_preproc_ok=:
3387break
3388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390rm -f conftest.err conftest.$ac_ext
3391
3392done
3393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3394rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003395if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396 break
3397fi
3398
3399 done
3400 ac_cv_prog_CPP=$CPP
3401
3402fi
3403 CPP=$ac_cv_prog_CPP
3404else
3405 ac_cv_prog_CPP=$CPP
3406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407{ echo "$as_me:$LINENO: result: $CPP" >&5
3408echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003409ac_preproc_ok=false
3410for ac_c_preproc_warn_flag in '' yes
3411do
3412 # Use a header file that comes with gcc, so configuring glibc
3413 # with a fresh cross-compiler works.
3414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3415 # <limits.h> exists even on freestanding compilers.
3416 # On the NeXT, cc -E runs the code through the compiler's parser,
3417 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423/* end confdefs.h. */
3424#ifdef __STDC__
3425# include <limits.h>
3426#else
3427# include <assert.h>
3428#endif
3429 Syntax error
3430_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431if { (ac_try="$ac_cpp conftest.$ac_ext"
3432case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435esac
3436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_c_preproc_warn_flag
3446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3447 else
3448 ac_cpp_err=
3449 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003450else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451 ac_cpp_err=yes
3452fi
3453if test -z "$ac_cpp_err"; then
3454 :
3455else
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003459 # Broken: fails on valid input.
3460continue
3461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463rm -f conftest.err conftest.$ac_ext
3464
Reid Spencera773bd52006-08-04 18:18:08 +00003465 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003467 cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003472/* end confdefs.h. */
3473#include <ac_nonexistent.h>
3474_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003475if { (ac_try="$ac_cpp conftest.$ac_ext"
3476case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 else
3492 ac_cpp_err=
3493 fi
3494else
3495 ac_cpp_err=yes
3496fi
3497if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498 # Broken: success on invalid input.
3499continue
3500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003501 echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504 # Passes both tests.
3505ac_preproc_ok=:
3506break
3507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003508
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003509rm -f conftest.err conftest.$ac_ext
3510
3511done
3512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003514if $ac_preproc_ok; then
3515 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003517 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3518See \`config.log' for more details." >&5
3519echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3520See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003522fi
3523
John Criswell7a73b802003-06-30 21:59:07 +00003524ac_ext=c
3525ac_cpp='$CPP $CPPFLAGS'
3526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529
John Criswell7a73b802003-06-30 21:59:07 +00003530
Dmitri Gribenkoa7303362013-01-09 15:25:30 +00003531if test "$CXX" = "clang++" ; then
3532 { echo "$as_me:$LINENO: checking whether clang works" >&5
3533echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3534 ac_ext=cpp
3535ac_cpp='$CXXCPP $CPPFLAGS'
3536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539
3540
3541cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h. */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h. */
3547#include <limits>
3548#if __has_include (<cxxabi.h>)
3549#include <cxxabi.h>
3550#endif
3551#if __has_include (<unwind.h>)
3552#include <unwind.h>
3553#endif
3554
3555int
3556main ()
3557{
3558
3559 ;
3560 return 0;
3561}
3562_ACEOF
3563rm -f conftest.$ac_objext
3564if { (ac_try="$ac_compile"
3565case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3578 { (case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581esac
3582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_try") 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591esac
3592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_try") 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597
3598 { echo "$as_me:$LINENO: result: yes" >&5
3599echo "${ECHO_T}yes" >&6; }
3600
3601else
3602 echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605
3606 { echo "$as_me:$LINENO: result: no" >&5
3607echo "${ECHO_T}no" >&6; }
3608 { { 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
3609echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3610 { (exit 1); exit 1; }; }
3611
3612fi
3613
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_ext=c
3616ac_cpp='$CPP $CPPFLAGS'
3617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620
3621fi
3622
Stephen Hines36b56882014-04-23 16:57:46 -07003623{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3624echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3625ac_ext=cpp
3626ac_cpp='$CXXCPP $CPPFLAGS'
3627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Eric Christopherffee5722011-09-16 20:36:25 +00003630
Stephen Hines36b56882014-04-23 16:57:46 -07003631llvm_cv_cxx_compiler=unknown
3632cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h. */
3638#if ! __clang__
3639 #error
3640 #endif
Eric Christopherffee5722011-09-16 20:36:25 +00003641
Stephen Hines36b56882014-04-23 16:57:46 -07003642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (ac_try="$ac_compile"
3645case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648esac
3649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_compile") 2>conftest.er1
3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3658 { (case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661esac
3662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_try") 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest.$ac_objext'
3668 { (case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671esac
3672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_try") 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 llvm_cv_cxx_compiler=clang
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h. */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h. */
3688#if ! __GNUC__
3689 #error
3690 #endif
3691
3692_ACEOF
3693rm -f conftest.$ac_objext
3694if { (ac_try="$ac_compile"
3695case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698esac
3699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3708 { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721esac
3722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_try") 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 llvm_cv_cxx_compiler=gcc
3728else
3729 echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
Eric Christopherffee5722011-09-16 20:36:25 +00003732
3733fi
3734
Stephen Hines36b56882014-04-23 16:57:46 -07003735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736fi
3737
3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739ac_ext=c
3740ac_cpp='$CPP $CPPFLAGS'
3741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3746echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3747
3748
3749
Eric Christopherffee5722011-09-16 20:36:25 +00003750if test -d ${srcdir}/projects/test-suite ; then
3751 subdirs="$subdirs projects/test-suite"
3752
3753fi
3754
3755if test -d ${srcdir}/projects/llvm-test ; then
3756 subdirs="$subdirs projects/llvm-test"
3757
3758fi
3759
3760if test -d ${srcdir}/projects/poolalloc ; then
3761 subdirs="$subdirs projects/poolalloc"
3762
3763fi
3764
3765if test -d ${srcdir}/projects/llvm-poolalloc ; then
3766 subdirs="$subdirs projects/llvm-poolalloc"
3767
3768fi
3769
3770for i in `ls ${srcdir}/projects`
3771do
3772 if test -d ${srcdir}/projects/${i} ; then
3773 case ${i} in
Eric Christopherffee5722011-09-16 20:36:25 +00003774 safecode) subdirs="$subdirs projects/safecode"
3775 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003776 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003777 test-suite) ;;
3778 llvm-test) ;;
3779 poolalloc) ;;
3780 llvm-poolalloc) ;;
3781 *)
3782 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3783echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3784 ;;
3785 esac
3786 fi
3787done
3788
3789# Check whether --enable-polly was given.
3790if test "${enable_polly+set}" = set; then
3791 enableval=$enable_polly;
3792else
3793 enableval=default
3794fi
3795
3796case "$enableval" in
3797 yes) ENABLE_POLLY=1
3798 ;;
3799 no) ENABLE_POLLY=0
3800 ;;
3801 default) ENABLE_POLLY=1
3802 ;;
3803 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3804echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3805 { (exit 1); exit 1; }; } ;;
3806esac
3807
3808
3809if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3810 LLVM_HAS_POLLY=1
3811
3812 subdirs="$subdirs tools/polly"
3813
3814fi
3815
3816
3817# Make sure we can run config.sub.
3818$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3819 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3820echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3821 { (exit 1); exit 1; }; }
3822
3823{ echo "$as_me:$LINENO: checking build system type" >&5
3824echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3825if test "${ac_cv_build+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828 ac_build_alias=$build_alias
3829test "x$ac_build_alias" = x &&
3830 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3831test "x$ac_build_alias" = x &&
3832 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3833echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3834 { (exit 1); exit 1; }; }
3835ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3836 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3837echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3838 { (exit 1); exit 1; }; }
3839
3840fi
3841{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3842echo "${ECHO_T}$ac_cv_build" >&6; }
3843case $ac_cv_build in
3844*-*-*) ;;
3845*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3846echo "$as_me: error: invalid value of canonical build" >&2;}
3847 { (exit 1); exit 1; }; };;
3848esac
3849build=$ac_cv_build
3850ac_save_IFS=$IFS; IFS='-'
3851set x $ac_cv_build
3852shift
3853build_cpu=$1
3854build_vendor=$2
3855shift; shift
3856# Remember, the first character of IFS is used to create $*,
3857# except with old shells:
3858build_os=$*
3859IFS=$ac_save_IFS
3860case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3861
3862
3863{ echo "$as_me:$LINENO: checking host system type" >&5
3864echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3865if test "${ac_cv_host+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 if test "x$host_alias" = x; then
3869 ac_cv_host=$ac_cv_build
3870else
3871 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3872 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3873echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3874 { (exit 1); exit 1; }; }
3875fi
3876
3877fi
3878{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3879echo "${ECHO_T}$ac_cv_host" >&6; }
3880case $ac_cv_host in
3881*-*-*) ;;
3882*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3883echo "$as_me: error: invalid value of canonical host" >&2;}
3884 { (exit 1); exit 1; }; };;
3885esac
3886host=$ac_cv_host
3887ac_save_IFS=$IFS; IFS='-'
3888set x $ac_cv_host
3889shift
3890host_cpu=$1
3891host_vendor=$2
3892shift; shift
3893# Remember, the first character of IFS is used to create $*,
3894# except with old shells:
3895host_os=$*
3896IFS=$ac_save_IFS
3897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3898
3899
3900{ echo "$as_me:$LINENO: checking target system type" >&5
3901echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3902if test "${ac_cv_target+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
3905 if test "x$target_alias" = x; then
3906 ac_cv_target=$ac_cv_host
3907else
3908 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3909 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3910echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3911 { (exit 1); exit 1; }; }
3912fi
3913
3914fi
3915{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3916echo "${ECHO_T}$ac_cv_target" >&6; }
3917case $ac_cv_target in
3918*-*-*) ;;
3919*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3920echo "$as_me: error: invalid value of canonical target" >&2;}
3921 { (exit 1); exit 1; }; };;
3922esac
3923target=$ac_cv_target
3924ac_save_IFS=$IFS; IFS='-'
3925set x $ac_cv_target
3926shift
3927target_cpu=$1
3928target_vendor=$2
3929shift; shift
3930# Remember, the first character of IFS is used to create $*,
3931# except with old shells:
3932target_os=$*
3933IFS=$ac_save_IFS
3934case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3935
3936
3937# The aliases save the names the user supplied, while $host etc.
3938# will get canonicalized.
3939test -n "$target_alias" &&
3940 test "$program_prefix$program_suffix$program_transform_name" = \
3941 NONENONEs,x,x, &&
3942 program_prefix=${target_alias}-
3943
3944{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3945echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3946if test "${llvm_cv_os_type+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 case $host in
3950 *-*-aix*)
3951 llvm_cv_link_all_option="-Wl,--whole-archive"
3952 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953 llvm_cv_os_type="AIX"
3954 llvm_cv_platform_type="Unix" ;;
3955 *-*-irix*)
3956 llvm_cv_link_all_option="-Wl,--whole-archive"
3957 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958 llvm_cv_os_type="IRIX"
3959 llvm_cv_platform_type="Unix" ;;
3960 *-*-cygwin*)
3961 llvm_cv_link_all_option="-Wl,--whole-archive"
3962 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963 llvm_cv_os_type="Cygwin"
3964 llvm_cv_platform_type="Unix" ;;
3965 *-*-darwin*)
3966 llvm_cv_link_all_option="-Wl,-all_load"
3967 llvm_cv_no_link_all_option="-Wl,-noall_load"
3968 llvm_cv_os_type="Darwin"
3969 llvm_cv_platform_type="Unix" ;;
3970 *-*-minix*)
3971 llvm_cv_link_all_option="-Wl,-all_load"
3972 llvm_cv_no_link_all_option="-Wl,-noall_load"
3973 llvm_cv_os_type="Minix"
3974 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledruba62f2f2013-07-01 08:07:52 +00003975 *-*-freebsd*)
Eric Christopherffee5722011-09-16 20:36:25 +00003976 llvm_cv_link_all_option="-Wl,--whole-archive"
3977 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978 llvm_cv_os_type="FreeBSD"
3979 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledruba62f2f2013-07-01 08:07:52 +00003980 *-*-kfreebsd-gnu)
3981 llvm_cv_link_all_option="-Wl,--whole-archive"
3982 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3983 llvm_cv_os_type="GNU/kFreeBSD"
3984 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003985 *-*-openbsd*)
3986 llvm_cv_link_all_option="-Wl,--whole-archive"
3987 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3988 llvm_cv_os_type="OpenBSD"
3989 llvm_cv_platform_type="Unix" ;;
3990 *-*-netbsd*)
3991 llvm_cv_link_all_option="-Wl,--whole-archive"
3992 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993 llvm_cv_os_type="NetBSD"
3994 llvm_cv_platform_type="Unix" ;;
3995 *-*-dragonfly*)
3996 llvm_cv_link_all_option="-Wl,--whole-archive"
3997 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3998 llvm_cv_os_type="DragonFly"
3999 llvm_cv_platform_type="Unix" ;;
Stephen Hinesebe69fe2015-03-23 12:10:34 -07004000 *-*-bitrig*)
4001 llvm_cv_link_all_option="-Wl,--whole-archive"
4002 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4003 llvm_cv_os_type="Bitrig"
4004 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004005 *-*-hpux*)
4006 llvm_cv_link_all_option="-Wl,--whole-archive"
4007 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008 llvm_cv_os_type="HP-UX"
4009 llvm_cv_platform_type="Unix" ;;
4010 *-*-interix*)
4011 llvm_cv_link_all_option="-Wl,--whole-archive"
4012 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013 llvm_cv_os_type="Interix"
4014 llvm_cv_platform_type="Unix" ;;
4015 *-*-linux*)
4016 llvm_cv_link_all_option="-Wl,--whole-archive"
4017 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4018 llvm_cv_os_type="Linux"
4019 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00004020 *-*-gnu*)
4021 llvm_cv_link_all_option="-Wl,--whole-archive"
4022 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4023 llvm_cv_os_type="GNU"
4024 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004025 *-*-solaris*)
4026 llvm_cv_link_all_option="-Wl,-z,allextract"
4027 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4028 llvm_cv_os_type="SunOS"
4029 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004030 *-*-win32*)
4031 llvm_cv_link_all_option="-Wl,--whole-archive"
4032 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4033 llvm_cv_os_type="Win32"
4034 llvm_cv_platform_type="Win32" ;;
4035 *-*-mingw*)
4036 llvm_cv_link_all_option="-Wl,--whole-archive"
4037 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4038 llvm_cv_os_type="MingW"
4039 llvm_cv_platform_type="Win32" ;;
4040 *-*-haiku*)
4041 llvm_cv_link_all_option="-Wl,--whole-archive"
4042 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4043 llvm_cv_os_type="Haiku"
4044 llvm_cv_platform_type="Unix" ;;
4045 *-unknown-eabi*)
4046 llvm_cv_link_all_option="-Wl,--whole-archive"
4047 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4048 llvm_cv_os_type="Freestanding"
4049 llvm_cv_platform_type="Unix" ;;
4050 *-unknown-elf*)
4051 llvm_cv_link_all_option="-Wl,--whole-archive"
4052 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4053 llvm_cv_os_type="Freestanding"
4054 llvm_cv_platform_type="Unix" ;;
4055 *)
4056 llvm_cv_link_all_option=""
4057 llvm_cv_no_link_all_option=""
4058 llvm_cv_os_type="Unknown"
4059 llvm_cv_platform_type="Unknown" ;;
4060esac
4061fi
4062{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4063echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4064
4065{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4066echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4067if test "${llvm_cv_target_os_type+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070 case $target in
4071 *-*-aix*)
4072 llvm_cv_target_os_type="AIX" ;;
4073 *-*-irix*)
4074 llvm_cv_target_os_type="IRIX" ;;
4075 *-*-cygwin*)
4076 llvm_cv_target_os_type="Cygwin" ;;
4077 *-*-darwin*)
4078 llvm_cv_target_os_type="Darwin" ;;
4079 *-*-minix*)
4080 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledruba62f2f2013-07-01 08:07:52 +00004081 *-*-freebsd*)
Eric Christopherffee5722011-09-16 20:36:25 +00004082 llvm_cv_target_os_type="FreeBSD" ;;
Sylvestre Ledruba62f2f2013-07-01 08:07:52 +00004083 *-*-kfreebsd-gnu)
4084 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004085 *-*-openbsd*)
4086 llvm_cv_target_os_type="OpenBSD" ;;
4087 *-*-netbsd*)
4088 llvm_cv_target_os_type="NetBSD" ;;
4089 *-*-dragonfly*)
4090 llvm_cv_target_os_type="DragonFly" ;;
Stephen Hinesebe69fe2015-03-23 12:10:34 -07004091 *-*-bitrig*)
4092 llvm_cv_target_os_type="Bitrig" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004093 *-*-hpux*)
4094 llvm_cv_target_os_type="HP-UX" ;;
4095 *-*-interix*)
4096 llvm_cv_target_os_type="Interix" ;;
4097 *-*-linux*)
4098 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00004099 *-*-gnu*)
4100 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004101 *-*-solaris*)
4102 llvm_cv_target_os_type="SunOS" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004103 *-*-win32*)
4104 llvm_cv_target_os_type="Win32" ;;
4105 *-*-mingw*)
4106 llvm_cv_target_os_type="MingW" ;;
4107 *-*-haiku*)
4108 llvm_cv_target_os_type="Haiku" ;;
4109 *-*-rtems*)
4110 llvm_cv_target_os_type="RTEMS" ;;
4111 *-*-nacl*)
4112 llvm_cv_target_os_type="NativeClient" ;;
4113 *-unknown-eabi*)
4114 llvm_cv_target_os_type="Freestanding" ;;
Stephen Hinesebe69fe2015-03-23 12:10:34 -07004115 *-*-ps4)
4116 llvm_cv_target_os_type="PS4" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004117 *)
4118 llvm_cv_target_os_type="Unknown" ;;
4119esac
4120fi
4121{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4122echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4123
4124if test "$llvm_cv_os_type" = "Unknown" ; then
4125 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4126echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4127 { (exit 1); exit 1; }; }
4128fi
4129
4130OS=$llvm_cv_os_type
4131
4132HOST_OS=$llvm_cv_os_type
4133
4134TARGET_OS=$llvm_cv_target_os_type
4135
4136
4137LINKALL=$llvm_cv_link_all_option
4138
4139NOLINKALL=$llvm_cv_no_link_all_option
4140
4141
4142case $llvm_cv_platform_type in
4143 Unix)
4144
4145cat >>confdefs.h <<\_ACEOF
4146#define LLVM_ON_UNIX 1
4147_ACEOF
4148
4149 LLVM_ON_UNIX=1
4150
4151 LLVM_ON_WIN32=0
4152
4153 ;;
4154 Win32)
4155
4156cat >>confdefs.h <<\_ACEOF
4157#define LLVM_ON_WIN32 1
4158_ACEOF
4159
4160 LLVM_ON_UNIX=0
4161
4162 LLVM_ON_WIN32=1
4163
4164 ;;
4165esac
4166
4167{ echo "$as_me:$LINENO: checking target architecture" >&5
4168echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4169if test "${llvm_cv_target_arch+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 case $target in
4173 i?86-*) llvm_cv_target_arch="x86" ;;
4174 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4175 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4176 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Stephen Hinesdce4a402014-05-29 02:49:00 -07004177 arm64*-*) llvm_cv_target_arch="AArch64" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004178 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northover72062f52013-01-31 12:12:40 +00004179 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00004180 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4181 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004182 xcore-*) llvm_cv_target_arch="XCore" ;;
4183 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00004184 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00004185 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Ulrich Weigand735ab832013-05-06 16:22:34 +00004186 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004187 *) llvm_cv_target_arch="Unknown" ;;
4188esac
4189fi
4190{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4191echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4192
4193if test "$llvm_cv_target_arch" = "Unknown" ; then
4194 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4195echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4196fi
4197
Eric Christopherffee5722011-09-16 20:36:25 +00004198case "$llvm_cv_target_arch" in
4199 x86) LLVM_NATIVE_ARCH="X86" ;;
4200 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4201 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4202esac
4203
4204ARCH=$llvm_cv_target_arch
4205
Stephen Hines36b56882014-04-23 16:57:46 -07004206LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4207
Eric Christopherffee5722011-09-16 20:36:25 +00004208
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004209case $host in
4210 i?86-*) host_arch="x86" ;;
4211 amd64-* | x86_64-*) host_arch="x86_64" ;;
4212 sparc*-*) host_arch="Sparc" ;;
4213 powerpc*-*) host_arch="PowerPC" ;;
Stephen Hinesdce4a402014-05-29 02:49:00 -07004214 arm64*-*) host_arch="AArch64" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004215 arm*-*) host_arch="ARM" ;;
Tim Northover72062f52013-01-31 12:12:40 +00004216 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00004217 mips-* | mips64-*) host_arch="Mips" ;;
4218 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004219 xcore-*) host_arch="XCore" ;;
4220 msp430-*) host_arch="MSP430" ;;
4221 hexagon-*) host_arch="Hexagon" ;;
Ulrich Weigand735ab832013-05-06 16:22:34 +00004222 s390x-*) host_arch="SystemZ" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004223 *) host_arch="Unknown" ;;
4224esac
4225
4226if test "$host_arch" = "Unknown" ; then
4227 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4228echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4229fi
4230
4231HOST_ARCH=$host_arch
4232
4233
Reid Spencera773bd52006-08-04 18:18:08 +00004234if test "$cross_compiling" = yes; then
4235 LLVM_CROSS_COMPILING=1
4236
4237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4239echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4240if test "${ac_cv_build_exeext+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004242else
4243 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4244 ac_cv_build_exeext=.exe
4245else
4246 ac_build_prefix=${build_alias}-
4247
4248 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4249set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4252if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004254else
4255 if test -n "$BUILD_CC"; then
4256 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4257else
4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004265 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004267 break 2
4268 fi
4269done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004270done
Reid Spencera773bd52006-08-04 18:18:08 +00004271IFS=$as_save_IFS
4272
4273fi
4274fi
4275BUILD_CC=$ac_cv_prog_BUILD_CC
4276if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004277 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4278echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004280 { echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004282fi
4283
4284
4285 if test -z "$BUILD_CC"; then
4286 # Extract the first word of "gcc", so it can be a program name with args.
4287set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004292else
4293 if test -n "$BUILD_CC"; then
4294 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4295else
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004303 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004305 break 2
4306 fi
4307done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004308done
Reid Spencera773bd52006-08-04 18:18:08 +00004309IFS=$as_save_IFS
4310
4311fi
4312fi
4313BUILD_CC=$ac_cv_prog_BUILD_CC
4314if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004315 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4316echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004318 { echo "$as_me:$LINENO: result: no" >&5
4319echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004320fi
4321
4322
4323 if test -z "$BUILD_CC"; then
4324 # Extract the first word of "cc", so it can be a program name with args.
4325set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004330else
4331 if test -n "$BUILD_CC"; then
4332 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4333else
4334 ac_prog_rejected=no
4335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004342 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4343 ac_prog_rejected=yes
4344 continue
4345 fi
4346 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004348 break 2
4349 fi
4350done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004351done
Reid Spencera773bd52006-08-04 18:18:08 +00004352IFS=$as_save_IFS
4353
4354if test $ac_prog_rejected = yes; then
4355 # We found a bogon in the path, so make sure we never use it.
4356 set dummy $ac_cv_prog_BUILD_CC
4357 shift
4358 if test $# != 0; then
4359 # We chose a different compiler from the bogus one.
4360 # However, it has the same basename, so the bogon will be chosen
4361 # first if we set BUILD_CC to just the basename; use the full file name.
4362 shift
4363 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4364 fi
4365fi
4366fi
4367fi
4368BUILD_CC=$ac_cv_prog_BUILD_CC
4369if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004370 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4371echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373 { echo "$as_me:$LINENO: result: no" >&5
4374echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004375fi
4376
4377
4378 fi
4379 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004380 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4381echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4382 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004383 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4384 rm -f conftest*
4385 echo 'int main () { return 0; }' > conftest.$ac_ext
4386 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004388 (eval $ac_build_link) 2>&5
4389 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004392 for file in conftest.*; do
4393 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004394 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004395 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4396 esac
4397 done
4398 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4400echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4401 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004402 fi
4403 rm -f conftest*
4404 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4405fi
4406fi
4407
4408BUILD_EXEEXT=""
4409test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4411echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004412ac_build_exeext=$BUILD_EXEEXT
4413
Jim Grosbach673612e2008-10-02 22:56:44 +00004414 ac_build_prefix=${build_alias}-
4415 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4416set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004421else
4422 if test -n "$BUILD_CXX"; then
4423 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004432 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004434 break 2
4435 fi
4436done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004437done
Jim Grosbach673612e2008-10-02 22:56:44 +00004438IFS=$as_save_IFS
4439
4440fi
4441fi
4442BUILD_CXX=$ac_cv_prog_BUILD_CXX
4443if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004444 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4445echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447 { echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004449fi
4450
4451
4452 if test -z "$BUILD_CXX"; then
4453 # Extract the first word of "g++", so it can be a program name with args.
4454set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004459else
4460 if test -n "$BUILD_CXX"; then
4461 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4462else
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004470 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004472 break 2
4473 fi
4474done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475done
Jim Grosbach673612e2008-10-02 22:56:44 +00004476IFS=$as_save_IFS
4477
4478fi
4479fi
4480BUILD_CXX=$ac_cv_prog_BUILD_CXX
4481if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4483echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004485 { echo "$as_me:$LINENO: result: no" >&5
4486echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004487fi
4488
4489
4490 if test -z "$BUILD_CXX"; then
4491 # Extract the first word of "c++", so it can be a program name with args.
4492set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004497else
4498 if test -n "$BUILD_CXX"; then
4499 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4500else
4501 ac_prog_rejected=no
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4510 ac_prog_rejected=yes
4511 continue
4512 fi
4513 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004515 break 2
4516 fi
4517done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004518done
Jim Grosbach673612e2008-10-02 22:56:44 +00004519IFS=$as_save_IFS
4520
4521if test $ac_prog_rejected = yes; then
4522 # We found a bogon in the path, so make sure we never use it.
4523 set dummy $ac_cv_prog_BUILD_CXX
4524 shift
4525 if test $# != 0; then
4526 # We chose a different compiler from the bogus one.
4527 # However, it has the same basename, so the bogon will be chosen
4528 # first if we set BUILD_CXX to just the basename; use the full file name.
4529 shift
4530 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4531 fi
4532fi
4533fi
4534fi
4535BUILD_CXX=$ac_cv_prog_BUILD_CXX
4536if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004537 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4538echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004540 { echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004542fi
4543
4544
4545 fi
4546 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004547else
4548 LLVM_CROSS_COMPILING=0
4549
4550fi
4551
Dan Gohman56fb5f92010-08-04 16:25:01 +00004552if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004553 cvsbuild="yes"
4554 optimize="no"
4555 CVSBUILD=CVSBUILD=1
4556
4557else
4558 cvsbuild="no"
4559 optimize="yes"
4560fi
4561
4562
Eric Christopherbee515f2011-11-11 22:51:42 +00004563# Check whether --enable-libcpp was given.
4564if test "${enable_libcpp+set}" = set; then
4565 enableval=$enable_libcpp;
4566else
4567 enableval=default
4568fi
4569
4570case "$enableval" in
4571 yes) ENABLE_LIBCPP=1
4572 ;;
4573 no) ENABLE_LIBCPP=0
4574 ;;
4575 default) ENABLE_LIBCPP=0
4576;;
4577 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4578echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4579 { (exit 1); exit 1; }; } ;;
4580esac
4581
Stephen Hines36b56882014-04-23 16:57:46 -07004582# Check whether --enable-compiler-version-checks was given.
4583if test "${enable_compiler_version_checks+set}" = set; then
4584 enableval=$enable_compiler_version_checks;
Eric Christopher82120022012-08-03 19:47:14 +00004585else
4586 enableval=default
4587fi
4588
4589case "$enableval" in
Stephen Hines36b56882014-04-23 16:57:46 -07004590 no)
4591 ;;
4592 yes|default)
4593 ac_ext=cpp
4594ac_cpp='$CXXCPP $CPPFLAGS'
4595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4598
4599 case "$llvm_cv_cxx_compiler" in
4600 clang)
4601 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4602echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4603 cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h. */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h. */
4609
4610#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4611#error This version of Clang is too old to build LLVM
4612#endif
4613
4614_ACEOF
4615rm -f conftest.$ac_objext
4616if { (ac_try="$ac_compile"
4617case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_compile") 2>conftest.er1
4623 ac_status=$?
4624 grep -v '^ *+' conftest.er1 >conftest.err
4625 rm -f conftest.er1
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4630 { (case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_try") 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643esac
4644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_try") 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 { echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6; }
4651else
4652 echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 { echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6; }
4657 { { echo "$as_me:$LINENO: 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." >&5
4661echo "$as_me: error:
4662The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4663Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4664bypass these sanity checks." >&2;}
4665 { (exit 1); exit 1; }; }
4666fi
4667
4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669
4670 if test "$ENABLE_LIBCPP" -eq 0 ; then
4671 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4672echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4673 llvm_cv_old_cxxflags="$CXXFLAGS"
4674 CXXFLAGS="$CXXFLAGS -std=c++0x"
4675 cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h. */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h. */
4681
4682#include <atomic>
4683std::atomic<float> x(0.0f);
4684int main() { return (float)x; }
4685
4686_ACEOF
4687rm -f conftest.$ac_objext conftest$ac_exeext
4688if { (ac_try="$ac_link"
4689case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692esac
4693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_link") 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4702 { (case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705esac
4706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_try") 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4715esac
4716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_try") 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 { echo "$as_me:$LINENO: result: yes" >&5
4722echo "${ECHO_T}yes" >&6; }
4723else
4724 echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 { echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6; }
4729 { { echo "$as_me:$LINENO: error:
4730We detected a missing feature in the standard C++ library that was known to be
4731missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4732C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4733than 4.7. You will need to update your system and ensure Clang uses the newer
4734standard library.
4735
4736If this error is incorrect or you need to force things to work, you may pass
4737'--disable-compiler-version-checks' to configure to bypass this test." >&5
4738echo "$as_me: error:
4739We detected a missing feature in the standard C++ library that was known to be
4740missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4741C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4742than 4.7. You will need to update your system and ensure Clang uses the newer
4743standard library.
4744
4745If this error is incorrect or you need to force things to work, you may pass
4746'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4747 { (exit 1); exit 1; }; }
4748fi
4749
4750rm -f core conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 CXXFLAGS="$llvm_cv_old_cxxflags"
4753 fi
4754 ;;
4755 gcc)
4756 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4757echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4758 cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764
4765#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4766#error This version of GCC is too old to build LLVM
4767#endif
4768
4769_ACEOF
4770rm -f conftest.$ac_objext
4771if { (ac_try="$ac_compile"
4772case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_compile") 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4785 { (case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788esac
4789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_try") 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798esac
4799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_try") 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 { echo "$as_me:$LINENO: result: yes" >&5
4805echo "${ECHO_T}yes" >&6; }
4806else
4807 echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 { echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6; }
4812 { { echo "$as_me:$LINENO: 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." >&5
4816echo "$as_me: error:
4817The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4818to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4819bypass these sanity checks." >&2;}
4820 { (exit 1); exit 1; }; }
4821fi
4822
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 ;;
4825 unknown)
4826 ;;
4827 esac
4828 ac_ext=c
4829ac_cpp='$CPP $CPPFLAGS'
4830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833
4834 ;;
4835 *)
4836 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4837echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; }
4839 ;;
4840esac
4841
4842# Check whether --enable-cxx1y was given.
4843if test "${enable_cxx1y+set}" = set; then
4844 enableval=$enable_cxx1y;
4845else
4846 enableval=default
4847fi
4848
4849case "$enableval" in
4850 yes) ENABLE_CXX1Y=1
Eric Christopher82120022012-08-03 19:47:14 +00004851 ;;
Stephen Hines36b56882014-04-23 16:57:46 -07004852 no) ENABLE_CXX1Y=0
Eric Christopher82120022012-08-03 19:47:14 +00004853 ;;
Stephen Hines36b56882014-04-23 16:57:46 -07004854 default) ENABLE_CXX1Y=0
Eric Christopher82120022012-08-03 19:47:14 +00004855;;
Stephen Hines36b56882014-04-23 16:57:46 -07004856 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4857echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
Eric Christopher82120022012-08-03 19:47:14 +00004858 { (exit 1); exit 1; }; } ;;
4859esac
4860
Eric Christopher1baa3812013-06-25 01:12:25 +00004861# Check whether --enable-split-dwarf was given.
4862if test "${enable_split_dwarf+set}" = set; then
4863 enableval=$enable_split_dwarf;
4864else
4865 enableval=default
4866fi
4867
4868case "$enableval" in
4869 yes) ENABLE_SPLIT_DWARF=1
4870 ;;
4871 no) ENABLE_SPLIT_DWARF=0
4872 ;;
4873 default) ENABLE_SPLIT_DWARF=0
4874;;
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4878esac
4879
Roman Divackyd14baf42012-12-13 16:07:19 +00004880clang_arcmt="yes"
4881# Check whether --enable-clang-arcmt was given.
4882if test "${enable_clang_arcmt+set}" = set; then
4883 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4884else
4885 enableval="yes"
4886fi
4887
4888case "$enableval" in
4889 yes) ENABLE_CLANG_ARCMT=1
4890 ;;
4891 no) ENABLE_CLANG_ARCMT=0
4892 ;;
4893 default) ENABLE_CLANG_ARCMT=1
4894;;
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4896echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898esac
4899
Stephen Hines36b56882014-04-23 16:57:46 -07004900clang_plugin_support="yes"
4901# Check whether --enable-clang-plugin-support was given.
4902if test "${enable_clang_plugin_support+set}" = set; then
4903 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4904else
4905 enableval="yes"
4906fi
4907
4908case "$enableval" in
4909 yes) CLANG_PLUGIN_SUPPORT=1
4910 ;;
4911 no) CLANG_PLUGIN_SUPPORT=0
4912 ;;
4913 default) CLANG_PLUGIN_SUPPORT=1
4914;;
4915 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4916echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4917 { (exit 1); exit 1; }; } ;;
4918esac
4919
Roman Divackyd14baf42012-12-13 16:07:19 +00004920clang_static_analyzer="yes"
4921# Check whether --enable-clang-static-analyzer was given.
4922if test "${enable_clang_static_analyzer+set}" = set; then
4923 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4924else
4925 enableval="yes"
4926fi
4927
4928case "$enableval" in
4929 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4930 ;;
Jordan Rose3e7f1a92013-08-22 15:49:53 +00004931 no)
4932 if test ${clang_arcmt} != "no" ; then
4933 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4934echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4935 { (exit 1); exit 1; }; }
4936 fi
4937 ENABLE_CLANG_STATIC_ANALYZER=0
NAKAMURA Takumi3aa18c22013-08-22 16:31:34 +00004938
Jordan Rose3e7f1a92013-08-22 15:49:53 +00004939 ;;
Roman Divackyd14baf42012-12-13 16:07:19 +00004940 default) ENABLE_CLANG_STATIC_ANALYZER=1
4941;;
4942 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4943echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4944 { (exit 1); exit 1; }; } ;;
4945esac
4946
Reid Spencera773bd52006-08-04 18:18:08 +00004947# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004949 enableval=$enable_optimized;
4950else
4951 enableval=$optimize
4952fi
4953
4954if test ${enableval} = "no" ; then
4955 ENABLE_OPTIMIZED=
4956
4957else
4958 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4959
4960fi
4961
David Greene2a5a12c2009-04-17 14:50:39 +00004962# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004963if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004964 enableval=$enable_profiling;
4965else
4966 enableval="no"
4967fi
4968
4969if test ${enableval} = "no" ; then
4970 ENABLE_PROFILING=
4971
4972else
4973 ENABLE_PROFILING=ENABLE_PROFILING=1
4974
4975fi
4976
Reid Spencera773bd52006-08-04 18:18:08 +00004977# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004978if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004979 enableval=$enable_assertions;
4980else
4981 enableval="yes"
4982fi
4983
4984if test ${enableval} = "yes" ; then
4985 DISABLE_ASSERTIONS=
4986
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07004987 assertions_enabled="yes"
Reid Spencera773bd52006-08-04 18:18:08 +00004988else
4989 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4990
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07004991 assertions_enabled="no"
Reid Spencera773bd52006-08-04 18:18:08 +00004992fi
4993
Eric Christopher09a88732012-08-03 19:58:20 +00004994# Check whether --enable-werror was given.
4995if test "${enable_werror+set}" = set; then
4996 enableval=$enable_werror;
4997else
4998 enableval="no"
4999fi
5000
5001case "$enableval" in
5002 yes) ENABLE_WERROR=1
5003 ;;
5004 no) ENABLE_WERROR=0
5005 ;;
5006 default) ENABLE_WERROR=0
5007;;
5008 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5009echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5010 { (exit 1); exit 1; }; } ;;
5011esac
5012
David Greenea696d242007-06-28 19:36:08 +00005013# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005014if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005015 enableval=$enable_expensive_checks;
5016else
5017 enableval="no"
5018fi
5019
5020if test ${enableval} = "yes" ; then
5021 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5022
5023 EXPENSIVE_CHECKS=yes
5024
5025else
5026 ENABLE_EXPENSIVE_CHECKS=
5027
5028 EXPENSIVE_CHECKS=no
5029
5030fi
5031
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07005032# Check whether --enable-abi-breaking-checks was given.
5033if test "${enable_abi_breaking_checks+set}" = set; then
5034 enableval=$enable_abi_breaking_checks;
5035else
5036 enableval="with-asserts"
5037fi
5038
5039case "$enableval" in
5040 with-asserts) if test ${assertions_enabled} = "yes" ; then
5041
5042cat >>confdefs.h <<\_ACEOF
5043#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5044_ACEOF
5045
Pirama Arumuga Nainar2c3e0052015-05-06 11:46:36 -07005046 ENABLE_ABI_BREAKING_CHECKS=1
5047
5048 else
5049 ENABLE_ABI_BREAKING_CHECKS=0
5050
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07005051 fi ;;
5052 yes)
Pirama Arumuga Nainar2c3e0052015-05-06 11:46:36 -07005053
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07005054cat >>confdefs.h <<\_ACEOF
5055#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5056_ACEOF
Pirama Arumuga Nainar2c3e0052015-05-06 11:46:36 -07005057
5058 ENABLE_ABI_BREAKING_CHECKS=1
5059
5060 ;;
5061 no)
5062 ENABLE_ABI_BREAKING_CHECKS=0
5063
5064 ;;
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07005065 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5066echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5067 { (exit 1); exit 1; }; }
5068esac
5069
Reid Spencer8b2e1412006-11-17 03:32:33 +00005070# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005071if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005072 enableval=$enable_debug_runtime;
5073else
5074 enableval=no
5075fi
5076
5077if test ${enableval} = "no" ; then
5078 DEBUG_RUNTIME=
5079
5080else
5081 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5082
5083fi
5084
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005085# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005086if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005087 enableval=$enable_debug_symbols;
5088else
5089 enableval=no
5090fi
5091
5092if test ${enableval} = "no" ; then
5093 DEBUG_SYMBOLS=
5094
5095else
5096 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5097
5098fi
5099
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005100# Check whether --enable-keep-symbols was given.
5101if test "${enable_keep_symbols+set}" = set; then
5102 enableval=$enable_keep_symbols;
5103else
5104 enableval=no
5105fi
5106
5107if test ${enableval} = "no" ; then
5108 KEEP_SYMBOLS=
5109
5110else
5111 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5112
5113fi
5114
Reid Spencera773bd52006-08-04 18:18:08 +00005115# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005116if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005117 enableval=$enable_jit;
5118else
5119 enableval=default
5120fi
5121
5122if test ${enableval} = "no"
5123then
5124 JIT=
5125
5126else
5127 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005128 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005129 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005130 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005131 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005132 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005133 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005134 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005135 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005136 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005137 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005138 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005139 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005140 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005141 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005142 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005143 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005144 Hexagon) TARGET_HAS_JIT=0
5145 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005146 NVPTX) TARGET_HAS_JIT=0
5147 ;;
Ulrich Weigand735ab832013-05-06 16:22:34 +00005148 SystemZ) TARGET_HAS_JIT=1
5149 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005150 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005151 ;;
5152 esac
5153fi
5154
Stephen Hinesdce4a402014-05-29 02:49:00 -07005155TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
Stephen Hines36b56882014-04-23 16:57:46 -07005156TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5157
5158
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005159# Check whether --enable-docs was given.
5160if test "${enable_docs+set}" = set; then
5161 enableval=$enable_docs;
5162else
5163 enableval=default
5164fi
5165
5166case "$enableval" in
5167 yes) ENABLE_DOCS=1
5168 ;;
5169 no) ENABLE_DOCS=0
5170 ;;
5171 default) ENABLE_DOCS=1
5172 ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5176esac
5177
Reid Spencera773bd52006-08-04 18:18:08 +00005178# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005179if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005180 enableval=$enable_doxygen;
5181else
5182 enableval=default
5183fi
5184
5185case "$enableval" in
5186 yes) ENABLE_DOXYGEN=1
5187 ;;
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07005188 no|default) ENABLE_DOXYGEN=0
Reid Spencera773bd52006-08-04 18:18:08 +00005189 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5191echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005193esac
5194
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -07005195# Check whether --enable-doxygen-search was given.
5196if test "${enable_doxygen_search+set}" = set; then
5197 enableval=$enable_doxygen_search;
5198else
5199 enableval=default
5200fi
5201
5202ENABLE_DOXYGEN_SEARCH="$enableval"
5203
5204case "$enableval" in
5205 yes|no|default) ;;
5206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5207echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5208 { (exit 1); exit 1; }; } ;;
5209esac
5210
5211# Check whether --enable-doxygen-external-search was given.
5212if test "${enable_doxygen_external_search+set}" = set; then
5213 enableval=$enable_doxygen_external_search;
5214else
5215 enableval=default
5216fi
5217
5218ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5219
5220case "$enableval" in
5221 yes)
5222 case "$ENABLE_DOXYGEN_SEARCH" in
5223 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5224 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5225echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5227 esac
5228 ;;
5229 no|default) ;;
5230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5231echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5232 { (exit 1); exit 1; }; } ;;
5233esac
5234
5235
5236# Check whether --with-doxygen-search-engine-url was given.
5237if test "${with_doxygen_search_engine_url+set}" = set; then
5238 withval=$with_doxygen_search_engine_url;
5239fi
5240
5241WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5242
5243
5244# Check whether --with-doxygen-search-mappings was given.
5245if test "${with_doxygen_search_mappings+set}" = set; then
5246 withval=$with_doxygen_search_mappings;
5247fi
5248
5249WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5250
5251case "$ENABLE_DOXYGEN_SEARCH" in
5252 yes)
5253 if test "$ENABLE_DOXYGEN" = "0" ; then
5254 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5255echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5256 { (exit 1); exit 1; }; }
5257 fi
5258
5259 enable_searchengine=YES
5260
5261
5262 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5263 yes)
5264 enable_external_search=YES
5265
5266 enable_server_based_search=YES
5267
5268 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5269
5270 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5271
5272 ;;
5273
5274 no|default)
5275 enable_external_search=NO
5276
5277 enable_server_based_search=NO
5278
5279
5280
5281 ;;
5282 esac
5283 ;;
5284
5285 no|default)
5286 enable_searchengine=NO
5287
5288
5289 enable_server_based_search=NO
5290
5291 enable_external_search=NO
5292
5293
5294 ;;
5295
5296 *)
5297 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5298echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5299 { (exit 1); exit 1; }; }
5300 ;;
5301esac
5302
5303# Check whether --enable-doxygen-qt-help was given.
5304if test "${enable_doxygen_qt_help+set}" = set; then
5305 enableval=$enable_doxygen_qt_help;
5306else
5307 enableval=default
5308fi
5309
5310case "$enableval" in
5311 yes)
5312 if test "$ENABLE_DOXYGEN" = "0" ; then
5313 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5314echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5315 { (exit 1); exit 1; }; }
5316 fi
5317
5318 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5319set dummy qhelpgenerator; ac_word=$2
5320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5322if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 case $QHELPGENERATOR in
5326 [\\/]* | ?:[\\/]*)
5327 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5328 ;;
5329 *)
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341done
5342done
5343IFS=$as_save_IFS
5344
5345 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5346 ;;
5347esac
5348fi
5349QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5350if test -n "$QHELPGENERATOR"; then
5351 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5352echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5353else
5354 { echo "$as_me:$LINENO: result: no" >&5
5355echo "${ECHO_T}no" >&6; }
5356fi
5357
5358
5359
5360 llvm_doxygen_generate_qhp=YES
5361
5362 llvm_doxygen_qch_filename=org.llvm.qch
5363
5364 llvm_doxygen_qhp_namespace=org.llvm
5365
5366 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5367
5368 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5369
5370 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5371
5372
5373 clang_doxygen_generate_qhp=YES
5374
5375 clang_doxygen_qch_filename=org.llvm.clang.qch
5376
5377 clang_doxygen_qhp_namespace=org.llvm.clang
5378
5379 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5380
5381 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5382
5383 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5384
5385 ;;
5386
5387 no|default)
5388 llvm_doxygen_generate_qhp=NO
5389
5390
5391
5392
5393
5394
5395
5396 clang_doxygen_generate_qhp=NO
5397
5398
5399
5400
5401 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5402
5403 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5404
5405 ;;
5406
5407 *)
5408 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5409echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5410 { (exit 1); exit 1; }; } ;;
5411esac
5412
Reid Spencera773bd52006-08-04 18:18:08 +00005413# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005415 enableval=$enable_threads;
5416else
Reid Spencer65c5d752006-11-05 17:08:18 +00005417 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005418fi
5419
5420case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005421 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005422 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005423 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005424 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005425 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005426 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005427 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5428echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5429 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005430esac
5431
Owen Andersona8603702009-05-19 22:18:56 +00005432cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005433#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005434_ACEOF
5435
5436
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005437# Check whether --enable-pthreads was given.
5438if test "${enable_pthreads+set}" = set; then
5439 enableval=$enable_pthreads;
5440else
5441 enableval=default
5442fi
5443
5444case "$enableval" in
5445 yes) ENABLE_PTHREADS=1
5446 ;;
5447 no) ENABLE_PTHREADS=0
5448 ;;
5449 default) ENABLE_PTHREADS=1
5450 ;;
5451 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5452echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5453 { (exit 1); exit 1; }; } ;;
5454esac
5455
Alexey Samsonovee03c942013-04-23 08:28:39 +00005456# Check whether --enable-zlib was given.
5457if test "${enable_zlib+set}" = set; then
5458 enableval=$enable_zlib;
5459else
5460 enableval=default
5461fi
5462
5463case "$enableval" in
5464 yes) LLVM_ENABLE_ZLIB=1
5465 ;;
5466 no) LLVM_ENABLE_ZLIB=0
5467 ;;
5468 default) LLVM_ENABLE_ZLIB=1
5469 ;;
5470 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5471echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5472 { (exit 1); exit 1; }; } ;;
5473esac
5474
5475cat >>confdefs.h <<_ACEOF
5476#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5477_ACEOF
5478
5479
Reid Spencer89b0d992006-12-16 22:07:52 +00005480# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005481if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005482 enableval=$enable_pic;
5483else
5484 enableval=default
5485fi
5486
5487case "$enableval" in
5488 yes) ENABLE_PIC=1
5489 ;;
5490 no) ENABLE_PIC=0
5491 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005492 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005493 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5495echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5496 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005497esac
5498
5499cat >>confdefs.h <<_ACEOF
5500#define ENABLE_PIC $ENABLE_PIC
5501_ACEOF
5502
5503
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005504# Check whether --enable-shared was given.
5505if test "${enable_shared+set}" = set; then
5506 enableval=$enable_shared;
5507else
5508 enableval=default
5509fi
5510
5511case "$enableval" in
5512 yes) ENABLE_SHARED=1
5513 ;;
5514 no) ENABLE_SHARED=0
5515 ;;
5516 default) ENABLE_SHARED=0
5517 ;;
5518 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5519echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5520 { (exit 1); exit 1; }; } ;;
5521esac
5522
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005523# Check whether --enable-embed-stdcxx was given.
5524if test "${enable_embed_stdcxx+set}" = set; then
5525 enableval=$enable_embed_stdcxx;
5526else
5527 enableval=default
5528fi
5529
5530case "$enableval" in
5531 yes) ENABLE_EMBED_STDCXX=1
5532 ;;
5533 no) ENABLE_EMBED_STDCXX=0
5534 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005535 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005536 ;;
5537 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5538echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5539 { (exit 1); exit 1; }; } ;;
5540esac
5541
Daniel Dunbardd464df2010-05-10 20:11:56 +00005542# Check whether --enable-timestamps was given.
5543if test "${enable_timestamps+set}" = set; then
5544 enableval=$enable_timestamps;
5545else
5546 enableval=default
5547fi
5548
5549case "$enableval" in
5550 yes) ENABLE_TIMESTAMPS=1
5551 ;;
5552 no) ENABLE_TIMESTAMPS=0
5553 ;;
5554 default) ENABLE_TIMESTAMPS=1
5555 ;;
5556 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5557echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5558 { (exit 1); exit 1; }; } ;;
5559esac
5560
5561cat >>confdefs.h <<_ACEOF
5562#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5563_ACEOF
5564
5565
Eric Christopherc69bdad2012-09-21 23:03:29 +00005566# Check whether --enable-backtraces was given.
5567if test "${enable_backtraces+set}" = set; then
Daniel Dunbare179b312013-08-30 20:39:21 +00005568 enableval=$enable_backtraces; case "$enableval" in
5569 yes) llvm_cv_enable_backtraces="yes" ;;
5570 no) llvm_cv_enable_backtraces="no" ;;
5571 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
Eric Christopherc69bdad2012-09-21 23:03:29 +00005572echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5573 { (exit 1); exit 1; }; } ;;
Daniel Dunbare179b312013-08-30 20:39:21 +00005574 esac
5575else
5576 llvm_cv_enable_backtraces="yes"
5577fi
Eric Christopherc69bdad2012-09-21 23:03:29 +00005578
Daniel Dunbare179b312013-08-30 20:39:21 +00005579if test "$llvm_cv_enable_backtraces" = "yes" ; then
5580
5581cat >>confdefs.h <<\_ACEOF
5582#define ENABLE_BACKTRACES 1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005583_ACEOF
5584
Daniel Dunbare179b312013-08-30 20:39:21 +00005585fi
5586
5587# Check whether --enable-crash-overrides was given.
5588if test "${enable_crash_overrides+set}" = set; then
5589 enableval=$enable_crash_overrides; case "$enableval" in
5590 yes) llvm_cv_enable_crash_overrides="yes" ;;
5591 no) llvm_cv_enable_crash_overrides="no" ;;
5592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5593echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5594 { (exit 1); exit 1; }; } ;;
5595 esac
5596else
5597 llvm_cv_enable_crash_overrides="yes"
5598fi
5599
5600if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5601
5602cat >>confdefs.h <<\_ACEOF
5603#define ENABLE_CRASH_OVERRIDES 1
5604_ACEOF
5605
5606fi
Eric Christopherc69bdad2012-09-21 23:03:29 +00005607
Stephen Hinesdce4a402014-05-29 02:49:00 -07005608ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
Stephen Hines36b56882014-04-23 16:57:46 -07005609ALL_TARGETS=$ALL_TARGETS
5610
5611
Reid Spencera773bd52006-08-04 18:18:08 +00005612TARGETS_TO_BUILD=""
5613# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005615 enableval=$enable_targets;
5616else
5617 enableval=all
5618fi
5619
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005620if test "$enableval" = host-only ; then
5621 enableval=host
5622fi
Reid Spencera773bd52006-08-04 18:18:08 +00005623case "$enableval" in
Stephen Hines36b56882014-04-23 16:57:46 -07005624 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005625 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5626 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005627 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5628 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5629 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5630 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Joerg Sonnenbergerf8410642013-02-03 17:06:49 +00005631 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Stephen Hinesdce4a402014-05-29 02:49:00 -07005632 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglund6c440fc2013-02-04 08:15:53 +00005633 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005634 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005635 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00005636 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5637 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005638 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5639 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005640 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005641 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005642 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand735ab832013-05-06 16:22:34 +00005643 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Rafael Espindola059d3602013-05-22 00:35:47 +00005644 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005645 host) case "$llvm_cv_target_arch" in
5646 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5647 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5648 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5649 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jia Liua626be32013-04-22 16:26:15 +00005650 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005651 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5652 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005653 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5654 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005655 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005656 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand735ab832013-05-06 16:22:34 +00005657 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005658 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5659echo "$as_me: error: Can not set target to build" >&2;}
5660 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005661 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005662 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5663echo "$as_me: error: Unrecognized target $a_target" >&2;}
5664 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005665 esac
5666 done
5667 ;;
5668esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005669
5670# Check whether --enable-experimental-targets was given.
5671if test "${enable_experimental_targets+set}" = set; then
5672 enableval=$enable_experimental_targets;
5673else
5674 enableval=disable
5675fi
5676
5677
5678if test ${enableval} != "disable"
5679then
5680 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5681fi
5682
Reid Spencera773bd52006-08-04 18:18:08 +00005683TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5684
5685
Douglas Gregor0711c302009-06-17 00:43:20 +00005686for a_target in $TARGETS_TO_BUILD; do
5687 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5688
5689cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005690#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5691_ACEOF
5692
5693 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5694 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005695 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005696 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005697 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5698 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5699 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005700 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5701 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5702 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005703
5704cat >>confdefs.h <<_ACEOF
5705#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005706_ACEOF
5707
5708
5709cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005710#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5711_ACEOF
5712
5713
5714cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005715#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005716_ACEOF
5717
5718
5719cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005720#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005721_ACEOF
5722
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005723 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005724
5725cat >>confdefs.h <<_ACEOF
5726#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5727_ACEOF
5728
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005729 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005730 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5731
5732cat >>confdefs.h <<_ACEOF
5733#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5734_ACEOF
5735
5736 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005737 fi
5738done
5739
Douglas Gregor1555a232009-06-16 20:12:29 +00005740LLVM_ENUM_TARGETS=""
5741LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005742LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005743LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005744for target_to_build in $TARGETS_TO_BUILD; do
5745 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005746 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005747 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5748 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005749 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5750 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5751 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005752 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5753 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5754 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005755done
5756
5757
5758
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005759
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005760
Reid Spencera773bd52006-08-04 18:18:08 +00005761
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005762# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005763if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005764 withval=$with_optimize_option;
5765else
5766 withval=default
5767fi
5768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769{ echo "$as_me:$LINENO: checking optimization flags" >&5
5770echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005771case "$withval" in
5772 default)
5773 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005774 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005775 MingW) optimize_option=-O2 ;;
5776 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005777 esac ;;
5778 *) optimize_option="$withval" ;;
5779esac
5780OPTIMIZE_OPTION=$optimize_option
5781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005782{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5783echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005784
5785
Reid Spencera773bd52006-08-04 18:18:08 +00005786# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005788 withval=$with_extra_options;
5789else
5790 withval=default
5791fi
5792
5793case "$withval" in
5794 default) EXTRA_OPTIONS= ;;
5795 *) EXTRA_OPTIONS=$withval ;;
5796esac
5797EXTRA_OPTIONS=$EXTRA_OPTIONS
5798
5799
Daniel Dunbared344d22011-06-16 22:30:41 +00005800
5801# Check whether --with-extra-ld-options was given.
5802if test "${with_extra_ld_options+set}" = set; then
5803 withval=$with_extra_ld_options;
5804else
5805 withval=default
5806fi
5807
5808case "$withval" in
5809 default) EXTRA_LD_OPTIONS= ;;
5810 *) EXTRA_LD_OPTIONS=$withval ;;
5811esac
5812EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5813
5814
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005815# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005817 enableval=$enable_bindings;
5818else
5819 enableval=default
5820fi
5821
5822BINDINGS_TO_BUILD=""
5823case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005824 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005825 all ) BINDINGS_TO_BUILD="ocaml" ;;
5826 none | no) BINDINGS_TO_BUILD="" ;;
5827 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5828 case "$a_binding" in
5829 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005830 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5831echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5832 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005833 esac
5834 done
5835 ;;
5836esac
5837
Reid Spencera773bd52006-08-04 18:18:08 +00005838
Gordon Henriksenf0915682007-10-02 16:42:22 +00005839# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005841 withval=$with_ocaml_libdir;
5842else
5843 withval=auto
5844fi
5845
5846case "$withval" in
5847 auto) with_ocaml_libdir="$withval" ;;
5848 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5850echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5851 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005852esac
5853
5854
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005855# Check whether --with-clang-srcdir was given.
5856if test "${with_clang_srcdir+set}" = set; then
5857 withval=$with_clang_srcdir;
5858else
5859 withval="-"
5860fi
5861
5862case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005863 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005864 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5865 *) clang_src_root="$ac_pwd/$withval" ;;
5866esac
5867CLANG_SRC_ROOT=$clang_src_root
5868
5869
5870
Chandler Carruth6b241162010-10-19 08:21:25 +00005871# Check whether --with-clang-resource-dir was given.
5872if test "${with_clang_resource_dir+set}" = set; then
5873 withval=$with_clang_resource_dir;
5874else
5875 withval=""
5876fi
5877
5878
5879cat >>confdefs.h <<_ACEOF
5880#define CLANG_RESOURCE_DIR "$withval"
5881_ACEOF
5882
5883
5884
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005885# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005887 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005888else
5889 withval=""
5890fi
5891
5892
5893cat >>confdefs.h <<_ACEOF
5894#define C_INCLUDE_DIRS "$withval"
5895_ACEOF
5896
5897
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005898# Clang normally uses the system c++ headers and libraries. With this option,
5899# clang will use the ones provided by a gcc installation instead. This option should
5900# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005901
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005902# Check whether --with-gcc-toolchain was given.
5903if test "${with_gcc_toolchain+set}" = set; then
5904 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005905else
5906 withval=""
5907fi
5908
5909
5910cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005911#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005912_ACEOF
5913
5914
5915
Sebastian Pope4f1b372012-04-30 20:06:58 +00005916# Check whether --with-default-sysroot was given.
5917if test "${with_default_sysroot+set}" = set; then
5918 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005919else
5920 withval=""
5921fi
5922
5923
5924cat >>confdefs.h <<_ACEOF
5925#define DEFAULT_SYSROOT "$withval"
5926_ACEOF
5927
5928
5929
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005930# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005931if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005932 withval=$with_binutils_include;
5933else
5934 withval=default
5935fi
5936
5937case "$withval" in
5938 default) WITH_BINUTILS_INCDIR=default ;;
5939 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5941echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5942 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005943esac
5944if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5945 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5946
5947 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5948 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5950echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5951 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005952 fi
5953fi
5954
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005955
5956# Check whether --with-bug-report-url was given.
5957if test "${with_bug_report_url+set}" = set; then
5958 withval=$with_bug_report_url;
5959else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005960 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005961fi
5962
5963
5964cat >>confdefs.h <<_ACEOF
5965#define BUG_REPORT_URL "$withval"
5966_ACEOF
5967
5968
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00005969# Check whether --enable-terminfo was given.
5970if test "${enable_terminfo+set}" = set; then
5971 enableval=$enable_terminfo; case "$enableval" in
5972 yes) llvm_cv_enable_terminfo="yes" ;;
5973 no) llvm_cv_enable_terminfo="no" ;;
5974 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5975echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
Chandler Carruthf7364d52013-08-07 08:47:36 +00005976 { (exit 1); exit 1; }; } ;;
5977 esac
5978else
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00005979 llvm_cv_enable_terminfo="yes"
Chandler Carruthf7364d52013-08-07 08:47:36 +00005980fi
5981
Stephen Hines36b56882014-04-23 16:57:46 -07005982case "$llvm_cv_enable_terminfo" in
5983 yes) ENABLE_TERMINFO=1
5984 ;;
5985 no) ENABLE_TERMINFO=0
5986 ;;
5987esac
5988
5989# Check whether --enable-libedit was given.
5990if test "${enable_libedit+set}" = set; then
5991 enableval=$enable_libedit; case "$enableval" in
5992 yes) llvm_cv_enable_libedit="yes" ;;
5993 no) llvm_cv_enable_libedit="no" ;;
5994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5995echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5996 { (exit 1); exit 1; }; } ;;
5997 esac
5998else
5999 llvm_cv_enable_libedit="yes"
6000fi
6001
Chandler Carruthf7364d52013-08-07 08:47:36 +00006002
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00006003# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00006005 enableval=$enable_libffi; case "$enableval" in
6006 yes) llvm_cv_enable_libffi="yes" ;;
6007 no) llvm_cv_enable_libffi="no" ;;
6008 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6010 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00006011 esac
6012else
6013 llvm_cv_enable_libffi=no
6014fi
6015
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00006016
Nick Lewyckye792b1d2009-02-03 07:10:30 +00006017
Bob Wilsonae7e2a42011-11-28 07:59:52 +00006018# Check whether --with-internal-prefix was given.
6019if test "${with_internal_prefix+set}" = set; then
6020 withval=$with_internal_prefix;
6021else
6022 withval=""
6023fi
6024
6025INTERNAL_PREFIX=$withval
6026
6027
6028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029{ echo "$as_me:$LINENO: checking for GNU make" >&5
6030echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6031if test "${llvm_cv_gnu_make_command+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006033else
6034 llvm_cv_gnu_make_command=''
6035 for a in "$MAKE" make gmake gnumake ; do
6036 if test -z "$a" ; then continue ; fi ;
6037 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6038 then
6039 llvm_cv_gnu_make_command=$a ;
6040 break;
6041 fi
6042 done
6043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6045echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006046 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6047 ifGNUmake='' ;
6048 else
6049 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6051echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006052 fi
6053
6054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006055{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6056echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006057LN_S=$as_ln_s
6058if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059 { echo "$as_me:$LINENO: result: yes" >&5
6060echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006061else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6063echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006064fi
6065
Stephen Hines36b56882014-04-23 16:57:46 -07006066# Extract the first word of "nm", so it can be a program name with args.
6067set dummy nm; ac_word=$2
6068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070if test "${ac_cv_path_NM+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073 case $NM in
6074 [\\/]* | ?:[\\/]*)
6075 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6076 ;;
6077 *)
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089done
6090done
6091IFS=$as_save_IFS
6092
6093 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6094 ;;
6095esac
6096fi
6097NM=$ac_cv_path_NM
6098if test -n "$NM"; then
6099 { echo "$as_me:$LINENO: result: $NM" >&5
6100echo "${ECHO_T}$NM" >&6; }
6101else
6102 { echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6; }
6104fi
6105
6106
Reid Spencera773bd52006-08-04 18:18:08 +00006107# Extract the first word of "cmp", so it can be a program name with args.
6108set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111if test "${ac_cv_path_CMP+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006113else
6114 case $CMP in
6115 [\\/]* | ?:[\\/]*)
6116 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6117 ;;
6118 *)
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006126 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006128 break 2
6129 fi
6130done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006131done
Reid Spencera773bd52006-08-04 18:18:08 +00006132IFS=$as_save_IFS
6133
6134 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6135 ;;
6136esac
6137fi
6138CMP=$ac_cv_path_CMP
6139if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140 { echo "$as_me:$LINENO: result: $CMP" >&5
6141echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006143 { echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006145fi
6146
6147
6148# Extract the first word of "cp", so it can be a program name with args.
6149set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152if test "${ac_cv_path_CP+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006154else
6155 case $CP in
6156 [\\/]* | ?:[\\/]*)
6157 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6158 ;;
6159 *)
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006167 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006169 break 2
6170 fi
6171done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172done
Reid Spencera773bd52006-08-04 18:18:08 +00006173IFS=$as_save_IFS
6174
6175 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6176 ;;
6177esac
6178fi
6179CP=$ac_cv_path_CP
6180if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006181 { echo "$as_me:$LINENO: result: $CP" >&5
6182echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184 { echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006186fi
6187
6188
6189# Extract the first word of "date", so it can be a program name with args.
6190set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_path_DATE+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006195else
6196 case $DATE in
6197 [\\/]* | ?:[\\/]*)
6198 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6199 ;;
6200 *)
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006208 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006210 break 2
6211 fi
6212done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213done
Reid Spencera773bd52006-08-04 18:18:08 +00006214IFS=$as_save_IFS
6215
6216 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6217 ;;
6218esac
6219fi
6220DATE=$ac_cv_path_DATE
6221if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222 { echo "$as_me:$LINENO: result: $DATE" >&5
6223echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006225 { echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006227fi
6228
6229
6230# Extract the first word of "find", so it can be a program name with args.
6231set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234if test "${ac_cv_path_FIND+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006236else
6237 case $FIND in
6238 [\\/]* | ?:[\\/]*)
6239 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6240 ;;
6241 *)
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006249 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006251 break 2
6252 fi
6253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254done
Reid Spencera773bd52006-08-04 18:18:08 +00006255IFS=$as_save_IFS
6256
6257 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6258 ;;
6259esac
6260fi
6261FIND=$ac_cv_path_FIND
6262if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006263 { echo "$as_me:$LINENO: result: $FIND" >&5
6264echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266 { echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006268fi
6269
6270
6271# Extract the first word of "grep", so it can be a program name with args.
6272set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_path_GREP+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006277else
6278 case $GREP in
6279 [\\/]* | ?:[\\/]*)
6280 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6281 ;;
6282 *)
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006290 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006292 break 2
6293 fi
6294done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295done
Reid Spencera773bd52006-08-04 18:18:08 +00006296IFS=$as_save_IFS
6297
6298 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6299 ;;
6300esac
6301fi
6302GREP=$ac_cv_path_GREP
6303if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006304 { echo "$as_me:$LINENO: result: $GREP" >&5
6305echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006309fi
6310
6311
6312# Extract the first word of "mkdir", so it can be a program name with args.
6313set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316if test "${ac_cv_path_MKDIR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006318else
6319 case $MKDIR in
6320 [\\/]* | ?:[\\/]*)
6321 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6322 ;;
6323 *)
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006331 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006333 break 2
6334 fi
6335done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006336done
Reid Spencera773bd52006-08-04 18:18:08 +00006337IFS=$as_save_IFS
6338
6339 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6340 ;;
6341esac
6342fi
6343MKDIR=$ac_cv_path_MKDIR
6344if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006345 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6346echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348 { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006350fi
6351
6352
6353# Extract the first word of "mv", so it can be a program name with args.
6354set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_path_MV+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006359else
6360 case $MV in
6361 [\\/]* | ?:[\\/]*)
6362 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6363 ;;
6364 *)
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006372 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006374 break 2
6375 fi
6376done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377done
Reid Spencera773bd52006-08-04 18:18:08 +00006378IFS=$as_save_IFS
6379
6380 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6381 ;;
6382esac
6383fi
6384MV=$ac_cv_path_MV
6385if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386 { echo "$as_me:$LINENO: result: $MV" >&5
6387echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389 { echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006391fi
6392
6393
6394if test -n "$ac_tool_prefix"; then
6395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6396set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399if test "${ac_cv_prog_RANLIB+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006401else
6402 if test -n "$RANLIB"; then
6403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006412 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006414 break 2
6415 fi
6416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417done
Reid Spencera773bd52006-08-04 18:18:08 +00006418IFS=$as_save_IFS
6419
6420fi
6421fi
6422RANLIB=$ac_cv_prog_RANLIB
6423if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6425echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427 { echo "$as_me:$LINENO: result: no" >&5
6428echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006429fi
6430
6431
6432fi
6433if test -z "$ac_cv_prog_RANLIB"; then
6434 ac_ct_RANLIB=$RANLIB
6435 # Extract the first word of "ranlib", so it can be a program name with args.
6436set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006441else
6442 if test -n "$ac_ct_RANLIB"; then
6443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6444else
6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006452 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006454 break 2
6455 fi
6456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457done
Reid Spencera773bd52006-08-04 18:18:08 +00006458IFS=$as_save_IFS
6459
6460fi
6461fi
6462ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6463if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6465echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006469fi
6470
6471 if test "x$ac_ct_RANLIB" = x; then
6472 RANLIB=":"
6473 else
6474 case $cross_compiling:$ac_tool_warned in
6475yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6477whose name does not start with the host triplet. If you think this
6478configuration is useful to you, please write to autoconf@gnu.org." >&5
6479echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6480whose name does not start with the host triplet. If you think this
6481configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006482ac_tool_warned=yes ;;
6483esac
6484 RANLIB=$ac_ct_RANLIB
6485 fi
6486else
6487 RANLIB="$ac_cv_prog_RANLIB"
6488fi
6489
Torok Edwin871384f2010-01-26 08:50:50 +00006490if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6492set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6495if test "${ac_cv_prog_AR+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006497else
6498 if test -n "$AR"; then
6499 ac_cv_prog_AR="$AR" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006508 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006510 break 2
6511 fi
6512done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006513done
Torok Edwin871384f2010-01-26 08:50:50 +00006514IFS=$as_save_IFS
6515
6516fi
6517fi
6518AR=$ac_cv_prog_AR
6519if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520 { echo "$as_me:$LINENO: result: $AR" >&5
6521echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523 { echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006525fi
6526
6527
6528fi
6529if test -z "$ac_cv_prog_AR"; then
6530 ac_ct_AR=$AR
6531 # Extract the first word of "ar", so it can be a program name with args.
6532set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006537else
6538 if test -n "$ac_ct_AR"; then
6539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006548 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006550 break 2
6551 fi
6552done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553done
Torok Edwin871384f2010-01-26 08:50:50 +00006554IFS=$as_save_IFS
6555
6556fi
6557fi
6558ac_ct_AR=$ac_cv_prog_ac_ct_AR
6559if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6561echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563 { echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006565fi
6566
6567 if test "x$ac_ct_AR" = x; then
6568 AR="false"
6569 else
6570 case $cross_compiling:$ac_tool_warned in
6571yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006572{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6573whose name does not start with the host triplet. If you think this
6574configuration is useful to you, please write to autoconf@gnu.org." >&5
6575echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6576whose name does not start with the host triplet. If you think this
6577configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006578ac_tool_warned=yes ;;
6579esac
6580 AR=$ac_ct_AR
6581 fi
6582else
6583 AR="$ac_cv_prog_AR"
6584fi
6585
Reid Spencera773bd52006-08-04 18:18:08 +00006586# Extract the first word of "rm", so it can be a program name with args.
6587set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590if test "${ac_cv_path_RM+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006592else
6593 case $RM in
6594 [\\/]* | ?:[\\/]*)
6595 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6596 ;;
6597 *)
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006605 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006607 break 2
6608 fi
6609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006610done
Reid Spencera773bd52006-08-04 18:18:08 +00006611IFS=$as_save_IFS
6612
6613 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6614 ;;
6615esac
6616fi
6617RM=$ac_cv_path_RM
6618if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619 { echo "$as_me:$LINENO: result: $RM" >&5
6620echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006622 { echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006624fi
6625
6626
6627# Extract the first word of "sed", so it can be a program name with args.
6628set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631if test "${ac_cv_path_SED+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006633else
6634 case $SED in
6635 [\\/]* | ?:[\\/]*)
6636 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6637 ;;
6638 *)
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006646 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006648 break 2
6649 fi
6650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006651done
Reid Spencera773bd52006-08-04 18:18:08 +00006652IFS=$as_save_IFS
6653
6654 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6655 ;;
6656esac
6657fi
6658SED=$ac_cv_path_SED
6659if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006660 { echo "$as_me:$LINENO: result: $SED" >&5
6661echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006663 { echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006665fi
6666
6667
6668# Extract the first word of "tar", so it can be a program name with args.
6669set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672if test "${ac_cv_path_TAR+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006674else
6675 case $TAR in
6676 [\\/]* | ?:[\\/]*)
6677 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6678 ;;
6679 *)
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006687 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006689 break 2
6690 fi
6691done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692done
Reid Spencera773bd52006-08-04 18:18:08 +00006693IFS=$as_save_IFS
6694
6695 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6696 ;;
6697esac
6698fi
6699TAR=$ac_cv_path_TAR
6700if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006701 { echo "$as_me:$LINENO: result: $TAR" >&5
6702echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704 { echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006706fi
6707
6708
6709# Extract the first word of "pwd", so it can be a program name with args.
6710set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713if test "${ac_cv_path_BINPWD+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006715else
6716 case $BINPWD in
6717 [\\/]* | ?:[\\/]*)
6718 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6719 ;;
6720 *)
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006728 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006730 break 2
6731 fi
6732done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733done
Reid Spencera773bd52006-08-04 18:18:08 +00006734IFS=$as_save_IFS
6735
6736 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6737 ;;
6738esac
6739fi
6740BINPWD=$ac_cv_path_BINPWD
6741if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6743echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745 { echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006747fi
6748
6749
6750
Reid Spencera773bd52006-08-04 18:18:08 +00006751# Extract the first word of "dot", so it can be a program name with args.
6752set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755if test "${ac_cv_path_DOT+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006757else
6758 case $DOT in
6759 [\\/]* | ?:[\\/]*)
6760 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6761 ;;
6762 *)
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006770 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006772 break 2
6773 fi
6774done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006775done
Reid Spencera773bd52006-08-04 18:18:08 +00006776IFS=$as_save_IFS
6777
6778 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6779 ;;
6780esac
6781fi
6782DOT=$ac_cv_path_DOT
6783if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 { echo "$as_me:$LINENO: result: $DOT" >&5
6785echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787 { echo "$as_me:$LINENO: result: no" >&5
6788echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006789fi
6790
6791
6792if test "$DOT" != "echo dot" ; then
6793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794cat >>confdefs.h <<\_ACEOF
6795#define HAVE_DOT 1
6796_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006797
Jeff Cohen28783c32007-01-12 18:22:38 +00006798 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006799 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800 fi
6801
6802cat >>confdefs.h <<_ACEOF
6803#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6804_ACEOF
6805
6806fi
Reid Spencera773bd52006-08-04 18:18:08 +00006807
Reid Spencera773bd52006-08-04 18:18:08 +00006808# Find a good install program. We prefer a C program (faster),
6809# so one script is as good as another. But avoid the broken or
6810# incompatible versions:
6811# SysV /etc/install, /usr/sbin/install
6812# SunOS /usr/etc/install
6813# IRIX /sbin/install
6814# AIX /bin/install
6815# AmigaOS /C/install, which installs bootblocks on floppy discs
6816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6819# OS/2's system install, which has a completely different semantic
6820# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006821{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6822echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006823if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824if test "${ac_cv_path_install+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006826else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006832 # Account for people who put trailing slashes in PATH elements.
6833case $as_dir/ in
6834 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006837 /usr/ucb/* ) ;;
6838 *)
6839 # OSF1 and SCO ODT 3.0 have their own names for install.
6840 # Don't use installbsd from OSF since it installs stuff as root
6841 # by default.
6842 for ac_prog in ginstall scoinst install; do
6843 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006845 if test $ac_prog = install &&
6846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6847 # AIX install. It has an incompatible calling convention.
6848 :
6849 elif test $ac_prog = install &&
6850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6851 # program-specific install script used by HP pwplus--don't use.
6852 :
6853 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6855 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006856 fi
6857 fi
6858 done
6859 done
6860 ;;
6861esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862done
Reid Spencera773bd52006-08-04 18:18:08 +00006863IFS=$as_save_IFS
6864
6865
6866fi
6867 if test "${ac_cv_path_install+set}" = set; then
6868 INSTALL=$ac_cv_path_install
6869 else
6870 # As a last resort, use the slow shell script. Don't cache a
6871 # value for INSTALL within a source directory, because that will
6872 # break other packages using the cache if that directory is
6873 # removed, or if the value is a relative name.
6874 INSTALL=$ac_install_sh
6875 fi
6876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006877{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6878echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006879
6880# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6881# It thinks the first close brace ends the variable substitution.
6882test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6883
6884test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6885
6886test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6887
Eric Christopher2a1a44f2010-07-22 21:13:48 +00006888case "$INSTALL" in
6889 [\\/$]* | ?:[\\/]* ) ;;
6890 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6891esac
Reid Spencera773bd52006-08-04 18:18:08 +00006892
6893# Extract the first word of "bzip2", so it can be a program name with args.
6894set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897if test "${ac_cv_path_BZIP2+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006899else
6900 case $BZIP2 in
6901 [\\/]* | ?:[\\/]*)
6902 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6903 ;;
6904 *)
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006912 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006914 break 2
6915 fi
6916done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006917done
Reid Spencera773bd52006-08-04 18:18:08 +00006918IFS=$as_save_IFS
6919
Reid Spencera773bd52006-08-04 18:18:08 +00006920 ;;
6921esac
6922fi
6923BZIP2=$ac_cv_path_BZIP2
6924if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6926echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 { echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006930fi
6931
6932
mike-m68cb3192010-05-06 23:45:43 +00006933# Extract the first word of "cat", so it can be a program name with args.
6934set dummy cat; ac_word=$2
6935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_CAT+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940 case $CAT in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956done
6957done
6958IFS=$as_save_IFS
6959
6960 ;;
6961esac
6962fi
6963CAT=$ac_cv_path_CAT
6964if test -n "$CAT"; then
6965 { echo "$as_me:$LINENO: result: $CAT" >&5
6966echo "${ECHO_T}$CAT" >&6; }
6967else
6968 { echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6; }
6970fi
6971
6972
Reid Spencera773bd52006-08-04 18:18:08 +00006973# Extract the first word of "doxygen", so it can be a program name with args.
6974set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977if test "${ac_cv_path_DOXYGEN+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006979else
6980 case $DOXYGEN in
6981 [\\/]* | ?:[\\/]*)
6982 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6983 ;;
6984 *)
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006992 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006994 break 2
6995 fi
6996done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006997done
Reid Spencera773bd52006-08-04 18:18:08 +00006998IFS=$as_save_IFS
6999
Reid Spencera773bd52006-08-04 18:18:08 +00007000 ;;
7001esac
7002fi
7003DOXYGEN=$ac_cv_path_DOXYGEN
7004if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7006echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007007else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007008 { echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007010fi
7011
7012
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007013# Extract the first word of "groff", so it can be a program name with args.
7014set dummy groff; ac_word=$2
7015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017if test "${ac_cv_path_GROFF+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020 case $GROFF in
7021 [\\/]* | ?:[\\/]*)
7022 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7023 ;;
7024 *)
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036done
7037done
7038IFS=$as_save_IFS
7039
7040 ;;
7041esac
7042fi
7043GROFF=$ac_cv_path_GROFF
7044if test -n "$GROFF"; then
7045 { echo "$as_me:$LINENO: result: $GROFF" >&5
7046echo "${ECHO_T}$GROFF" >&6; }
7047else
7048 { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
7050fi
7051
7052
Reid Spencera773bd52006-08-04 18:18:08 +00007053# Extract the first word of "gzip", so it can be a program name with args.
7054set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007057if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007059else
Eric Christopher031d3072010-12-10 01:31:51 +00007060 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007061 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007062 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007063 ;;
7064 *)
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007072 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007074 break 2
7075 fi
7076done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077done
Reid Spencera773bd52006-08-04 18:18:08 +00007078IFS=$as_save_IFS
7079
Reid Spencera773bd52006-08-04 18:18:08 +00007080 ;;
7081esac
7082fi
Eric Christopher031d3072010-12-10 01:31:51 +00007083GZIPBIN=$ac_cv_path_GZIPBIN
7084if test -n "$GZIPBIN"; then
7085 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7086echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007088 { echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007090fi
7091
7092
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007093# Extract the first word of "pdfroff", so it can be a program name with args.
7094set dummy pdfroff; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_PDFROFF+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 case $PDFROFF in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120 ;;
7121esac
7122fi
7123PDFROFF=$ac_cv_path_PDFROFF
7124if test -n "$PDFROFF"; then
7125 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7126echo "${ECHO_T}$PDFROFF" >&6; }
7127else
7128 { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
7130fi
7131
7132
Reid Spencera773bd52006-08-04 18:18:08 +00007133# Extract the first word of "zip", so it can be a program name with args.
7134set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137if test "${ac_cv_path_ZIP+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007139else
7140 case $ZIP in
7141 [\\/]* | ?:[\\/]*)
7142 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7143 ;;
7144 *)
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007152 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007154 break 2
7155 fi
7156done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157done
Reid Spencera773bd52006-08-04 18:18:08 +00007158IFS=$as_save_IFS
7159
Reid Spencera773bd52006-08-04 18:18:08 +00007160 ;;
7161esac
7162fi
7163ZIP=$ac_cv_path_ZIP
7164if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 { echo "$as_me:$LINENO: result: $ZIP" >&5
7166echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 { echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007170fi
7171
7172
Stephen Hines37ed9c12014-12-01 14:51:49 -08007173# Extract the first word of "go", so it can be a program name with args.
7174set dummy go; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Stephen Hines37ed9c12014-12-01 14:51:49 -08007177if test "${ac_cv_path_GO+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007179else
Stephen Hines37ed9c12014-12-01 14:51:49 -08007180 case $GO in
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007181 [\\/]* | ?:[\\/]*)
Stephen Hines37ed9c12014-12-01 14:51:49 -08007182 ac_cv_path_GO="$GO" # Let the user override the test with a path.
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007183 ;;
7184 *)
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Stephen Hines37ed9c12014-12-01 14:51:49 -08007192 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007194 break 2
7195 fi
7196done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007198IFS=$as_save_IFS
7199
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007200 ;;
7201esac
7202fi
Stephen Hines37ed9c12014-12-01 14:51:49 -08007203GO=$ac_cv_path_GO
7204if test -n "$GO"; then
7205 { echo "$as_me:$LINENO: result: $GO" >&5
7206echo "${ECHO_T}$GO" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 { echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007210fi
7211
7212
Stephen Hines37ed9c12014-12-01 14:51:49 -08007213for ac_prog in ocamlfind
Gordon Henriksene7072162008-03-07 18:20:01 +00007214do
7215 # Extract the first word of "$ac_prog", so it can be a program name with args.
7216set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Stephen Hines37ed9c12014-12-01 14:51:49 -08007219if test "${ac_cv_path_OCAMLFIND+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007221else
Stephen Hines37ed9c12014-12-01 14:51:49 -08007222 case $OCAMLFIND in
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007223 [\\/]* | ?:[\\/]*)
Stephen Hines37ed9c12014-12-01 14:51:49 -08007224 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007225 ;;
7226 *)
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Stephen Hines37ed9c12014-12-01 14:51:49 -08007234 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007236 break 2
7237 fi
7238done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007240IFS=$as_save_IFS
7241
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007242 ;;
7243esac
7244fi
Stephen Hines37ed9c12014-12-01 14:51:49 -08007245OCAMLFIND=$ac_cv_path_OCAMLFIND
7246if test -n "$OCAMLFIND"; then
7247 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7248echo "${ECHO_T}$OCAMLFIND" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 { echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007252fi
7253
7254
Stephen Hines37ed9c12014-12-01 14:51:49 -08007255 test -n "$OCAMLFIND" && break
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007256done
7257
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007258for ac_prog in gas as
7259do
7260 # Extract the first word of "$ac_prog", so it can be a program name with args.
7261set dummy $ac_prog; ac_word=$2
7262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_GAS+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 case $GAS in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283done
7284done
7285IFS=$as_save_IFS
7286
7287 ;;
7288esac
7289fi
7290GAS=$ac_cv_path_GAS
7291if test -n "$GAS"; then
7292 { echo "$as_me:$LINENO: result: $GAS" >&5
7293echo "${ECHO_T}$GAS" >&6; }
7294else
7295 { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
7297fi
7298
7299
7300 test -n "$GAS" && break
7301done
7302
Reid Spencera773bd52006-08-04 18:18:08 +00007303
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007304{ echo "$as_me:$LINENO: checking for linker version" >&5
7305echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7306if test "${llvm_cv_link_version+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308else
7309
Stephen Hinesc6a4f5e2014-07-21 00:45:20 -07007310 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007311
7312 # Check for ld64.
7313 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007314 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007315 else
7316 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7317 fi
7318
7319fi
7320{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7321echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7322
7323cat >>confdefs.h <<_ACEOF
7324#define HOST_LINK_VERSION "$llvm_cv_link_version"
7325_ACEOF
7326
7327
7328
Stephen Hines36b56882014-04-23 16:57:46 -07007329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7331echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7332if test "${llvm_cv_link_use_r+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007334else
7335 ac_ext=c
7336ac_cpp='$CPP $CPPFLAGS'
7337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340
7341 oldcflags="$CFLAGS"
7342 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h. */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007348/* end confdefs.h. */
7349
7350int
7351main ()
7352{
Dan Gohman39ed6782010-04-25 00:12:20 +00007353
Reid Spencera773bd52006-08-04 18:18:08 +00007354 ;
7355 return 0;
7356}
7357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358rm -f conftest.$ac_objext conftest$ac_exeext
7359if { (ac_try="$ac_link"
7360case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363esac
7364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_link") 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7373 { (case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7376esac
7377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_try") 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest$ac_exeext'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386esac
7387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_try") 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007392 llvm_cv_link_use_r=yes
7393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399
Bill Wendlingebcceee2009-04-18 11:20:33 +00007400rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007402 CFLAGS="$oldcflags"
7403 ac_ext=c
7404ac_cpp='$CPP $CPPFLAGS'
7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409
7410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7412echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007413if test "$llvm_cv_link_use_r" = yes ; then
7414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415cat >>confdefs.h <<\_ACEOF
7416#define HAVE_LINK_R 1
7417_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007418
7419 fi
7420
7421
Bob Wilsonf3289e72013-08-02 22:51:11 +00007422{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7423echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007426else
7427 ac_ext=c
7428ac_cpp='$CPP $CPPFLAGS'
7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432
7433 oldcflags="$CFLAGS"
Bob Wilsonf3289e72013-08-02 22:51:11 +00007434 CFLAGS="$CFLAGS -rdynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435 cat >conftest.$ac_ext <<_ACEOF
7436/* confdefs.h. */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007440/* end confdefs.h. */
7441
7442int
7443main ()
7444{
Dan Gohman39ed6782010-04-25 00:12:20 +00007445
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007446 ;
7447 return 0;
7448}
7449_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450rm -f conftest.$ac_objext conftest$ac_exeext
7451if { (ac_try="$ac_link"
7452case "(($ac_try" in
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7455esac
7456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_link") 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465 { (case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7468esac
7469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_try") 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest$ac_exeext'
7475 { (case "(($ac_try" in
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7478esac
7479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_try") 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007484 llvm_cv_link_use_export_dynamic=yes
7485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
7489 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007491
Bill Wendlingebcceee2009-04-18 11:20:33 +00007492rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007494 CFLAGS="$oldcflags"
7495 ac_ext=c
7496ac_cpp='$CPP $CPPFLAGS'
7497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501
7502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007503{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7504echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007505if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007507cat >>confdefs.h <<\_ACEOF
7508#define HAVE_LINK_EXPORT_DYNAMIC 1
7509_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007510
7511 fi
7512
7513
Dan Gohmanda612d62010-06-01 14:56:56 +00007514{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7515echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7516if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519 ac_ext=c
7520ac_cpp='$CPP $CPPFLAGS'
7521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524
7525 oldcflags="$CFLAGS"
7526
7527 # The following code is from the autoconf manual,
7528 # "11.13: Limitations of Usual Tools".
7529 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7530 # Use mktemp if possible; otherwise fall back on mkdir,
7531 # with $RANDOM to make collisions less likely.
7532 : ${TMPDIR=/tmp}
7533 {
7534 tmp=`
7535 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7536 ` &&
7537 test -n "$tmp" && test -d "$tmp"
7538 } || {
7539 tmp=$TMPDIR/foo$$-$RANDOM
7540 (umask 077 && mkdir "$tmp")
7541 } || exit $?
7542
Dan Gohmanda612d62010-06-01 14:56:56 +00007543 echo "{" > "$tmp/export.map"
7544 echo " global: main;" >> "$tmp/export.map"
7545 echo " local: *;" >> "$tmp/export.map"
7546 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007547
Dan Gohmanda612d62010-06-01 14:56:56 +00007548 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007549 cat >conftest.$ac_ext <<_ACEOF
7550/* confdefs.h. */
7551_ACEOF
7552cat confdefs.h >>conftest.$ac_ext
7553cat >>conftest.$ac_ext <<_ACEOF
7554/* end confdefs.h. */
7555
7556int
7557main ()
7558{
Dan Gohman39ed6782010-04-25 00:12:20 +00007559
Dan Gohman391569c2010-04-16 22:59:06 +00007560 ;
7561 return 0;
7562}
7563_ACEOF
7564rm -f conftest.$ac_objext conftest$ac_exeext
7565if { (ac_try="$ac_link"
7566case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569esac
7570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_link") 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7579 { (case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582esac
7583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_try") 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7592esac
7593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_try") 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007598 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007599else
7600 echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
Dan Gohman943005e2010-06-01 16:22:27 +00007603 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007604fi
7605
7606rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007608 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007609 rmdir "$tmp"
7610 CFLAGS="$oldcflags"
7611 ac_ext=c
7612ac_cpp='$CPP $CPPFLAGS'
7613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617
7618fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007619{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7620echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7621if test "$llvm_cv_link_use_version_script" = yes ; then
7622 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007623
7624 fi
7625
7626
Reid Spencera773bd52006-08-04 18:18:08 +00007627
Stephen Hines36b56882014-04-23 16:57:46 -07007628{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7629echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7630if test "${ac_cv_path_GREP+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633 # Extract the first word of "grep ggrep" to use in msg output
7634if test -z "$GREP"; then
7635set dummy grep ggrep; ac_prog_name=$2
7636if test "${ac_cv_path_GREP+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639 ac_path_GREP_found=false
7640# Loop through the user's path and test for each of PROGNAME-LIST
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_prog in grep ggrep; do
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7649 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7650 # Check for GNU ac_path_GREP and select it if it is found.
7651 # Check for GNU $ac_path_GREP
7652case `"$ac_path_GREP" --version 2>&1` in
7653*GNU*)
7654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7655*)
7656 ac_count=0
7657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7658 while :
7659 do
7660 cat "conftest.in" "conftest.in" >"conftest.tmp"
7661 mv "conftest.tmp" "conftest.in"
7662 cp "conftest.in" "conftest.nl"
7663 echo 'GREP' >> "conftest.nl"
7664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7666 ac_count=`expr $ac_count + 1`
7667 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7668 # Best one so far, save it but keep looking for a better one
7669 ac_cv_path_GREP="$ac_path_GREP"
7670 ac_path_GREP_max=$ac_count
7671 fi
7672 # 10*(2^10) chars as input seems more than enough
7673 test $ac_count -gt 10 && break
7674 done
7675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7676esac
Reid Spencera773bd52006-08-04 18:18:08 +00007677
Stephen Hines36b56882014-04-23 16:57:46 -07007678
7679 $ac_path_GREP_found && break 3
7680 done
7681done
7682
7683done
7684IFS=$as_save_IFS
7685
7686
7687fi
7688
7689GREP="$ac_cv_path_GREP"
7690if test -z "$GREP"; then
7691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7692echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7693 { (exit 1); exit 1; }; }
7694fi
7695
7696else
7697 ac_cv_path_GREP=$GREP
7698fi
7699
7700
7701fi
7702{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7703echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7704 GREP="$ac_cv_path_GREP"
7705
7706
7707{ echo "$as_me:$LINENO: checking for egrep" >&5
7708echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7709if test "${ac_cv_path_EGREP+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7713 then ac_cv_path_EGREP="$GREP -E"
7714 else
7715 # Extract the first word of "egrep" to use in msg output
7716if test -z "$EGREP"; then
7717set dummy egrep; ac_prog_name=$2
7718if test "${ac_cv_path_EGREP+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721 ac_path_EGREP_found=false
7722# Loop through the user's path and test for each of PROGNAME-LIST
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7725do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_prog in egrep; do
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7731 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7732 # Check for GNU ac_path_EGREP and select it if it is found.
7733 # Check for GNU $ac_path_EGREP
7734case `"$ac_path_EGREP" --version 2>&1` in
7735*GNU*)
7736 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7737*)
7738 ac_count=0
7739 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7740 while :
7741 do
7742 cat "conftest.in" "conftest.in" >"conftest.tmp"
7743 mv "conftest.tmp" "conftest.in"
7744 cp "conftest.in" "conftest.nl"
7745 echo 'EGREP' >> "conftest.nl"
7746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7748 ac_count=`expr $ac_count + 1`
7749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7750 # Best one so far, save it but keep looking for a better one
7751 ac_cv_path_EGREP="$ac_path_EGREP"
7752 ac_path_EGREP_max=$ac_count
7753 fi
7754 # 10*(2^10) chars as input seems more than enough
7755 test $ac_count -gt 10 && break
7756 done
7757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7758esac
7759
7760
7761 $ac_path_EGREP_found && break 3
7762 done
7763done
7764
7765done
7766IFS=$as_save_IFS
7767
7768
7769fi
7770
7771EGREP="$ac_cv_path_EGREP"
7772if test -z "$EGREP"; then
7773 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7774echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7775 { (exit 1); exit 1; }; }
7776fi
7777
7778else
7779 ac_cv_path_EGREP=$EGREP
7780fi
7781
7782
7783 fi
7784fi
7785{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7786echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7787 EGREP="$ac_cv_path_EGREP"
7788
7789
7790{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7791echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7792if test "${ac_cv_header_stdc+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007795 cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007800/* end confdefs.h. */
Stephen Hines36b56882014-04-23 16:57:46 -07007801#include <stdlib.h>
7802#include <stdarg.h>
7803#include <string.h>
7804#include <float.h>
Reid Spencera773bd52006-08-04 18:18:08 +00007805
7806int
7807main ()
7808{
Reid Spencera773bd52006-08-04 18:18:08 +00007809
7810 ;
7811 return 0;
7812}
7813_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814rm -f conftest.$ac_objext
7815if { (ac_try="$ac_compile"
7816case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819esac
7820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_compile") 2>conftest.er1
7822 ac_status=$?
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829 { (case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832esac
7833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_try") 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest.$ac_objext'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842esac
7843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
Stephen Hines36b56882014-04-23 16:57:46 -07007848 ac_cv_header_stdc=yes
Reid Spencera773bd52006-08-04 18:18:08 +00007849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850 echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
Stephen Hines36b56882014-04-23 16:57:46 -07007853 ac_cv_header_stdc=no
Reid Spencera773bd52006-08-04 18:18:08 +00007854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007855
Reid Spencera773bd52006-08-04 18:18:08 +00007856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Stephen Hines36b56882014-04-23 16:57:46 -07007857
7858if test $ac_cv_header_stdc = yes; then
7859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7860 cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h. */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h. */
7866#include <string.h>
7867
7868_ACEOF
7869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7870 $EGREP "memchr" >/dev/null 2>&1; then
7871 :
7872else
7873 ac_cv_header_stdc=no
Reid Spencera773bd52006-08-04 18:18:08 +00007874fi
Stephen Hines36b56882014-04-23 16:57:46 -07007875rm -f conftest*
7876
7877fi
7878
7879if test $ac_cv_header_stdc = yes; then
7880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7881 cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h. */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h. */
7887#include <stdlib.h>
7888
7889_ACEOF
7890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891 $EGREP "free" >/dev/null 2>&1; then
7892 :
7893else
7894 ac_cv_header_stdc=no
7895fi
7896rm -f conftest*
7897
7898fi
7899
7900if test $ac_cv_header_stdc = yes; then
7901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7902 if test "$cross_compiling" = yes; then
7903 :
7904else
7905 cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
7911#include <ctype.h>
7912#include <stdlib.h>
7913#if ((' ' & 0x0FF) == 0x020)
7914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7916#else
7917# define ISLOWER(c) \
7918 (('a' <= (c) && (c) <= 'i') \
7919 || ('j' <= (c) && (c) <= 'r') \
7920 || ('s' <= (c) && (c) <= 'z'))
7921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7922#endif
7923
7924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7925int
7926main ()
7927{
7928 int i;
7929 for (i = 0; i < 256; i++)
7930 if (XOR (islower (i), ISLOWER (i))
7931 || toupper (i) != TOUPPER (i))
7932 return 2;
7933 return 0;
7934}
7935_ACEOF
7936rm -f conftest$ac_exeext
7937if { (ac_try="$ac_link"
7938case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_link") 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7947 { (case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950esac
7951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_try") 2>&5
7953 ac_status=$?
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
7956 :
7957else
7958 echo "$as_me: program exited with status $ac_status" >&5
7959echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
7962( exit $ac_status )
7963ac_cv_header_stdc=no
7964fi
7965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7966fi
7967
7968
7969fi
7970fi
7971{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7972echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7973if test $ac_cv_header_stdc = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00007974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007975cat >>confdefs.h <<\_ACEOF
Stephen Hines36b56882014-04-23 16:57:46 -07007976#define STDC_HEADERS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007977_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007978
7979fi
7980
Stephen Hines36b56882014-04-23 16:57:46 -07007981# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007982
7983
7984
7985
7986
Stephen Hines36b56882014-04-23 16:57:46 -07007987
7988
7989
7990
7991for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7992 inttypes.h stdint.h unistd.h
7993do
7994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000 cat >conftest.$ac_ext <<_ACEOF
8001/* confdefs.h. */
8002_ACEOF
8003cat confdefs.h >>conftest.$ac_ext
8004cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008005/* end confdefs.h. */
Stephen Hines36b56882014-04-23 16:57:46 -07008006$ac_includes_default
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008007
Stephen Hines36b56882014-04-23 16:57:46 -07008008#include <$ac_header>
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008009_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010rm -f conftest.$ac_objext
8011if { (ac_try="$ac_compile"
8012case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015esac
8016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_try") 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038esac
8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008044 eval "$as_ac_Header=yes"
8045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051
Reid Spencera773bd52006-08-04 18:18:08 +00008052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008054ac_res=`eval echo '${'$as_ac_Header'}'`
8055 { echo "$as_me:$LINENO: result: $ac_res" >&5
8056echo "${ECHO_T}$ac_res" >&6; }
8057if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008058 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008060_ACEOF
8061
8062fi
8063
8064done
8065
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008066
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008067
Stephen Hines36b56882014-04-23 16:57:46 -07008068for ac_header in errno.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069do
8070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076fi
8077ac_res=`eval echo '${'$as_ac_Header'}'`
8078 { echo "$as_me:$LINENO: result: $ac_res" >&5
8079echo "${ECHO_T}$ac_res" >&6; }
8080else
8081 # Is the header compilable?
8082{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8084cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
8090$ac_includes_default
8091#include <$ac_header>
8092_ACEOF
8093rm -f conftest.$ac_objext
8094if { (ac_try="$ac_compile"
8095case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098esac
8099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108 { (case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111esac
8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_try") 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121esac
8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_header_compiler=yes
8128else
8129 echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 ac_header_compiler=no
8133fi
8134
8135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8137echo "${ECHO_T}$ac_header_compiler" >&6; }
8138
8139# Is the header present?
8140{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8141echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8142cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h. */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h. */
8148#include <$ac_header>
8149_ACEOF
8150if { (ac_try="$ac_cpp conftest.$ac_ext"
8151case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154esac
8155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8166 else
8167 ac_cpp_err=
8168 fi
8169else
8170 ac_cpp_err=yes
8171fi
8172if test -z "$ac_cpp_err"; then
8173 ac_header_preproc=yes
8174else
8175 echo "$as_me: failed program was:" >&5
8176sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 ac_header_preproc=no
8179fi
8180
8181rm -f conftest.err conftest.$ac_ext
8182{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183echo "${ECHO_T}$ac_header_preproc" >&6; }
8184
8185# So? What about this header?
8186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8187 yes:no: )
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8192 ac_header_preproc=yes
8193 ;;
8194 no:yes:* )
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8207 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008208## ------------------------------------ ##
8209## Report this to http://llvm.org/bugs/ ##
8210## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008211_ASBOX
8212 ) | sed "s/^/$as_me: WARNING: /" >&2
8213 ;;
8214esac
8215{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220 eval "$as_ac_Header=\$ac_header_preproc"
8221fi
8222ac_res=`eval echo '${'$as_ac_Header'}'`
8223 { echo "$as_me:$LINENO: result: $ac_res" >&5
8224echo "${ECHO_T}$ac_res" >&6; }
8225
8226fi
8227if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008228 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008230_ACEOF
8231
8232fi
8233
8234done
8235
8236
Stephen Hines36b56882014-04-23 16:57:46 -07008237case "$llvm_cv_os_type" in
8238 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8239 Darwin) llvm_shlib_ext=.dylib ;;
8240 *) llvm_shlib_ext=.so ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008243
8244cat >>confdefs.h <<_ACEOF
Stephen Hines36b56882014-04-23 16:57:46 -07008245#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008246_ACEOF
8247
8248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249{ echo "$as_me:$LINENO: checking tool compatibility" >&5
8250echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00008251
Reid Spencer86901802004-12-08 23:07:27 +00008252ICC=no
8253IXX=no
8254case $CC in
8255 icc*|icpc*)
8256 ICC=yes
8257 IXX=yes
8258 ;;
8259 *)
8260 ;;
8261esac
8262
Duraid Madina937c60a2006-02-15 07:57:42 +00008263if test "$GCC" != "yes" && test "$ICC" != "yes"
8264then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8266echo "$as_me: error: gcc|icc required but not found" >&2;}
8267 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +00008268fi
8269
8270if test "$GXX" != "yes" && test "$IXX" != "yes"
8271then
Eric Christopher73e36da2010-12-08 02:02:14 +00008272 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8273echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008274 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +00008275fi
8276
Reid Spencer86901802004-12-08 23:07:27 +00008277if test "$GCC" = "yes"
8278then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +00008280
8281 /* confdefs.h. */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h. */
8286
8287 #if !defined(__GNUC__) || __GNUC__ < 3
8288 #error Unsupported GCC version
8289 #endif
8290
Chris Lattner399c7c72008-02-05 19:43:53 +00008291
8292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008293rm -f conftest.$ac_objext
8294if { (ac_try="$ac_compile"
8295case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311esac
8312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest.$ac_objext'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8327 :
Chris Lattner399c7c72008-02-05 19:43:53 +00008328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 echo "$as_me: failed program was:" >&5
8330sed 's/^/| /' conftest.$ac_ext >&5
8331
8332 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8333echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8334 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +00008335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336
Chris Lattner399c7c72008-02-05 19:43:53 +00008337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00008338fi
8339
8340if test -z "$llvm_cv_gnu_make_command"
8341then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8343echo "$as_me: error: GNU Make required but not found" >&2;}
8344 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00008345fi
8346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347{ echo "$as_me:$LINENO: result: ok" >&5
8348echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00008349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
8351echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithd31bd242013-02-08 22:55:10 +00008352NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +00008353
Richard Smithd31bd242013-02-08 22:55:10 +00008354NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +00008355
Rafael Espindola9993a3a2012-02-28 23:32:06 +00008356COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8357
Dmitri Gribenko7c627012013-02-13 21:19:39 +00008358
8359NO_UNINITIALIZED=
8360NO_MAYBE_UNINITIALIZED=
David Greened2f82162013-01-09 22:11:13 +00008361if test "$GXX" = "yes"
8362then
Richard Smithd31bd242013-02-08 22:55:10 +00008363 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
David Greened2f82162013-01-09 22:11:13 +00008364
Dmitri Gribenko7c627012013-02-13 21:19:39 +00008365 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greened2f82162013-01-09 22:11:13 +00008366 then
Richard Smithd31bd242013-02-08 22:55:10 +00008367 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greened2f82162013-01-09 22:11:13 +00008368
David Greened2f82162013-01-09 22:11:13 +00008369 fi
David Greened2f82162013-01-09 22:11:13 +00008370fi
Stephen Hines37ed9c12014-12-01 14:51:49 -08008371
8372no_comment=
8373llvm_cv_old_cxxflags="$CXXFLAGS"
8374CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8375cat >conftest.$ac_ext <<_ACEOF
8376
8377 /* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382// Comment \o\
8383// Another comment
8384int main() { return 0; }
8385
8386
8387_ACEOF
8388rm -f conftest.$ac_objext
8389if { (ac_try="$ac_compile"
8390case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393esac
8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422
8423 no_comment=-Wno-comment
8424
8425else
8426 echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429
8430fi
8431
8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433NO_COMMENT=$no_comment
8434
8435CXXFLAGS="$llvm_cv_old_cxxflags"
8436
8437{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8438echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
David Greened2f82162013-01-09 22:11:13 +00008439
Julien Lerouge3a96a4d2009-10-26 20:00:35 +00008440
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00008441# Check whether --with-python was given.
8442if test "${with_python+set}" = set; then
8443 withval=$with_python; PYTHON="$withval"
8444fi
8445
8446
8447if test -n "$PYTHON" && test -x "$PYTHON" ; then
8448 { echo "$as_me:$LINENO: checking for python" >&5
8449echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8450 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8451echo "${ECHO_T}user defined: $with_python" >&6; }
8452else
8453 if test -n "$PYTHON" ; then
8454 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8455echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8456 fi
8457
Rafael Espindolab3f52a22014-12-12 15:29:31 +00008458 # Extract the first word of "python python2 python27", so it can be a program name with args.
8459set dummy python python2 python27; ac_word=$2
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00008460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462if test "${ac_cv_path_PYTHON+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465 case $PYTHON in
8466 [\\/]* | ?:[\\/]*)
8467 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8468 ;;
8469 *)
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482done
8483IFS=$as_save_IFS
8484
8485 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8486echo "${ECHO_T}not found" >&6; }
Rafael Espindolab3f52a22014-12-12 15:29:31 +00008487 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8488echo "$as_me: error: could not find python 2.7 or higher" >&2;}
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00008489 { (exit 1); exit 1; }; }"
8490 ;;
8491esac
8492fi
8493PYTHON=$ac_cv_path_PYTHON
8494if test -n "$PYTHON"; then
8495 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8496echo "${ECHO_T}$PYTHON" >&6; }
8497else
8498 { echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6; }
8500fi
8501
8502
8503fi
8504
Rafael Espindolab3f52a22014-12-12 15:29:31 +00008505{ echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8506echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
Bill Wendlingd36e6442013-10-12 08:42:59 +00008507ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00008508ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8509ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8510ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
Bill Wendlingd36e6442013-10-12 08:42:59 +00008511if test "$ac_python_version_major" -gt "2" || \
8512 (test "$ac_python_version_major" -eq "2" && \
Rafael Espindolab3f52a22014-12-12 15:29:31 +00008513 test "$ac_python_version_minor" -ge "7") ; then
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00008514 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8515echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8516else
8517 { echo "$as_me:$LINENO: result: not found" >&5
8518echo "${ECHO_T}not found" >&6; }
Rafael Espindolab3f52a22014-12-12 15:29:31 +00008519 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00008520See \`config.log' for more details." >&5
Rafael Espindolab3f52a22014-12-12 15:29:31 +00008521echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00008522See \`config.log' for more details." >&2;}
8523 { (exit 1); exit 1; }; }
8524fi
8525
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00008526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008527
8528{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
8529echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8530if test "${ac_cv_lib_m_sin+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +00008532else
8533 ac_check_lib_save_LIBS=$LIBS
8534LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535cat >conftest.$ac_ext <<_ACEOF
8536/* confdefs.h. */
8537_ACEOF
8538cat confdefs.h >>conftest.$ac_ext
8539cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +00008540/* end confdefs.h. */
8541
Reid Spencera773bd52006-08-04 18:18:08 +00008542/* Override any GCC internal prototype to avoid an error.
8543 Use char because int might match the return type of a GCC
8544 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +00008545#ifdef __cplusplus
8546extern "C"
8547#endif
Reid Spencer3484a992006-01-19 08:31:08 +00008548char sin ();
8549int
8550main ()
8551{
Reid Spencera773bd52006-08-04 18:18:08 +00008552return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +00008553 ;
8554 return 0;
8555}
8556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008557rm -f conftest.$ac_objext conftest$ac_exeext
8558if { (ac_try="$ac_link"
8559case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562esac
8563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_link") 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8572 { (case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575esac
8576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_try") 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_try") 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +00008591 ac_cv_lib_m_sin=yes
8592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008593 echo "$as_me: failed program was:" >&5
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
8596 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +00008597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008598
Bill Wendlingebcceee2009-04-18 11:20:33 +00008599rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008600 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +00008601LIBS=$ac_check_lib_save_LIBS
8602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008603{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8604echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8605if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +00008606 cat >>confdefs.h <<_ACEOF
8607#define HAVE_LIBM 1
8608_ACEOF
8609
8610 LIBS="-lm $LIBS"
8611
8612fi
8613
Jeff Cohen28783c32007-01-12 18:22:38 +00008614if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008615
8616{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8617echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8618if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +00008620else
8621 ac_check_lib_save_LIBS=$LIBS
8622LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008623cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h. */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +00008628/* end confdefs.h. */
8629
Reid Spencer48fdf912006-06-01 19:03:21 +00008630
Reid Spencer484fc8e2006-06-01 16:55:59 +00008631int
8632main ()
8633{
Reid Spencera773bd52006-08-04 18:18:08 +00008634return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +00008635 ;
8636 return 0;
8637}
8638_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008639rm -f conftest.$ac_objext conftest$ac_exeext
8640if { (ac_try="$ac_link"
8641case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644esac
8645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_link") 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_try") 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8667esac
8668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669 (eval "$ac_try") 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +00008673 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +00008674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675 echo "$as_me: failed program was:" >&5
8676sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +00008679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680
Bill Wendlingebcceee2009-04-18 11:20:33 +00008681rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008682 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +00008683LIBS=$ac_check_lib_save_LIBS
8684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008685{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8686echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8687if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +00008688 cat >>confdefs.h <<_ACEOF
8689#define HAVE_LIBIMAGEHLP 1
8690_ACEOF
8691
8692 LIBS="-limagehlp $LIBS"
8693
8694fi
8695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696
8697{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8698echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8699if test "${ac_cv_lib_psapi_main+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +00008701else
8702 ac_check_lib_save_LIBS=$LIBS
8703LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008704cat >conftest.$ac_ext <<_ACEOF
8705/* confdefs.h. */
8706_ACEOF
8707cat confdefs.h >>conftest.$ac_ext
8708cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +00008709/* end confdefs.h. */
8710
Reid Spencer48fdf912006-06-01 19:03:21 +00008711
Reid Spencer484fc8e2006-06-01 16:55:59 +00008712int
8713main ()
8714{
Reid Spencera773bd52006-08-04 18:18:08 +00008715return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +00008716 ;
8717 return 0;
8718}
8719_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008720rm -f conftest.$ac_objext conftest$ac_exeext
8721if { (ac_try="$ac_link"
8722case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725esac
8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_link") 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8735 { (case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_try") 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest$ac_exeext'
8745 { (case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8748esac
8749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_try") 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +00008754 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +00008755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756 echo "$as_me: failed program was:" >&5
8757sed 's/^/| /' conftest.$ac_ext >&5
8758
8759 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +00008760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008761
Bill Wendlingebcceee2009-04-18 11:20:33 +00008762rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008763 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +00008764LIBS=$ac_check_lib_save_LIBS
8765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008766{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8767echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8768if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +00008769 cat >>confdefs.h <<_ACEOF
8770#define HAVE_LIBPSAPI 1
8771_ACEOF
8772
8773 LIBS="-lpsapi $LIBS"
8774
8775fi
8776
David Majnemer6a971bb2013-10-07 01:00:07 +00008777
8778{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8779echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8780if test "${ac_cv_lib_shell32_main+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782else
8783 ac_check_lib_save_LIBS=$LIBS
8784LIBS="-lshell32 $LIBS"
8785cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h. */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h. */
8791
8792
8793int
8794main ()
8795{
8796return main ();
8797 ;
8798 return 0;
8799}
8800_ACEOF
8801rm -f conftest.$ac_objext conftest$ac_exeext
8802if { (ac_try="$ac_link"
8803case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806esac
8807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_link") 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819esac
8820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; } &&
8825 { ac_try='test -s conftest$ac_exeext'
8826 { (case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829esac
8830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_try") 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_cv_lib_shell32_main=yes
8836else
8837 echo "$as_me: failed program was:" >&5
8838sed 's/^/| /' conftest.$ac_ext >&5
8839
8840 ac_cv_lib_shell32_main=no
8841fi
8842
8843rm -f core conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845LIBS=$ac_check_lib_save_LIBS
8846fi
8847{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8848echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8849if test $ac_cv_lib_shell32_main = yes; then
8850 cat >>confdefs.h <<_ACEOF
8851#define HAVE_LIBSHELL32 1
8852_ACEOF
8853
8854 LIBS="-lshell32 $LIBS"
8855
8856fi
8857
Reid Spencer484fc8e2006-06-01 16:55:59 +00008858fi
Reid Spencer22177fe2005-07-12 15:24:20 +00008859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008860{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8861echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8862if test "${ac_cv_search_dlopen+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008864else
8865 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008866cat >conftest.$ac_ext <<_ACEOF
8867/* confdefs.h. */
8868_ACEOF
8869cat confdefs.h >>conftest.$ac_ext
8870cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008872
Reid Spencera773bd52006-08-04 18:18:08 +00008873/* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +00008876#ifdef __cplusplus
8877extern "C"
8878#endif
John Criswell7a73b802003-06-30 21:59:07 +00008879char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008880int
8881main ()
8882{
Reid Spencera773bd52006-08-04 18:18:08 +00008883return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008884 ;
8885 return 0;
8886}
8887_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008888for ac_lib in '' dl; do
8889 if test -z "$ac_lib"; then
8890 ac_res="none required"
8891 else
8892 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +00008893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008894 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008895 rm -f conftest.$ac_objext conftest$ac_exeext
8896if { (ac_try="$ac_link"
8897case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900esac
8901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_link") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913esac
8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest$ac_exeext'
8920 { (case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923esac
8924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_try") 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008929 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008930else
8931 echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8933
8934
John Criswell7a73b802003-06-30 21:59:07 +00008935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008936
Bill Wendlingebcceee2009-04-18 11:20:33 +00008937rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008938 conftest$ac_exeext
8939 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008940 break
John Criswell7a73b802003-06-30 21:59:07 +00008941fi
Reid Spencera773bd52006-08-04 18:18:08 +00008942done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008943if test "${ac_cv_search_dlopen+set}" = set; then
8944 :
Reid Spencera773bd52006-08-04 18:18:08 +00008945else
8946 ac_cv_search_dlopen=no
8947fi
8948rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008949LIBS=$ac_func_search_save_LIBS
8950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008951{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8952echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008953ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008954if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +00008956
Stephen Hines36b56882014-04-23 16:57:46 -07008957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008958cat >>confdefs.h <<\_ACEOF
8959#define HAVE_DLOPEN 1
8960_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00008961
Stephen Hines36b56882014-04-23 16:57:46 -07008962HAVE_DLOPEN='1'
8963
8964
John Criswell7a73b802003-06-30 21:59:07 +00008965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008966 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8967echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00008968fi
8969
8970
Chandler Carruth73c35d82013-01-04 23:19:55 +00008971{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8972echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8973if test "${ac_cv_search_clock_gettime+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975else
8976 ac_func_search_save_LIBS=$LIBS
8977cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h. */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h. */
8983
8984/* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8987#ifdef __cplusplus
8988extern "C"
8989#endif
8990char clock_gettime ();
8991int
8992main ()
8993{
8994return clock_gettime ();
8995 ;
8996 return 0;
8997}
8998_ACEOF
8999for ac_lib in '' rt; do
9000 if test -z "$ac_lib"; then
9001 ac_res="none required"
9002 else
9003 ac_res=-l$ac_lib
9004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9005 fi
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007if { (ac_try="$ac_link"
9008case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_link") 2>conftest.er1
9014 ac_status=$?
9015 grep -v '^ *+' conftest.er1 >conftest.err
9016 rm -f conftest.er1
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9021 { (case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024esac
9025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_try") 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; } &&
9030 { ac_try='test -s conftest$ac_exeext'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9034esac
9035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_cv_search_clock_gettime=$ac_res
9041else
9042 echo "$as_me: failed program was:" >&5
9043sed 's/^/| /' conftest.$ac_ext >&5
9044
9045
9046fi
9047
9048rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext
9050 if test "${ac_cv_search_clock_gettime+set}" = set; then
9051 break
9052fi
9053done
9054if test "${ac_cv_search_clock_gettime+set}" = set; then
9055 :
9056else
9057 ac_cv_search_clock_gettime=no
9058fi
9059rm conftest.$ac_ext
9060LIBS=$ac_func_search_save_LIBS
9061fi
9062{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9063echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9064ac_res=$ac_cv_search_clock_gettime
9065if test "$ac_res" != no; then
9066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9067
Chandler Carruth73c35d82013-01-04 23:19:55 +00009068fi
9069
9070
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009071if test "$llvm_cv_enable_terminfo" = "yes" ; then
9072 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9073echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9074if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthf7364d52013-08-07 08:47:36 +00009075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076else
9077 ac_func_search_save_LIBS=$LIBS
9078cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h. */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h. */
9084
9085/* Override any GCC internal prototype to avoid an error.
9086 Use char because int might match the return type of a GCC
9087 builtin and then its argument prototype would still apply. */
9088#ifdef __cplusplus
9089extern "C"
9090#endif
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009091char setupterm ();
Chandler Carruthf7364d52013-08-07 08:47:36 +00009092int
9093main ()
9094{
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009095return setupterm ();
Chandler Carruthf7364d52013-08-07 08:47:36 +00009096 ;
9097 return 0;
9098}
9099_ACEOF
Joerg Sonnenbergera915b412013-08-17 11:06:00 +00009100for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
Chandler Carruthf7364d52013-08-07 08:47:36 +00009101 if test -z "$ac_lib"; then
9102 ac_res="none required"
9103 else
9104 ac_res=-l$ac_lib
9105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9106 fi
9107 rm -f conftest.$ac_objext conftest$ac_exeext
9108if { (ac_try="$ac_link"
9109case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112esac
9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_link") 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9135esac
9136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009141 ac_cv_search_setupterm=$ac_res
Chandler Carruthf7364d52013-08-07 08:47:36 +00009142else
9143 echo "$as_me: failed program was:" >&5
9144sed 's/^/| /' conftest.$ac_ext >&5
9145
9146
9147fi
9148
9149rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009151 if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthf7364d52013-08-07 08:47:36 +00009152 break
9153fi
9154done
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009155if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthf7364d52013-08-07 08:47:36 +00009156 :
9157else
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009158 ac_cv_search_setupterm=no
Chandler Carruthf7364d52013-08-07 08:47:36 +00009159fi
9160rm conftest.$ac_ext
9161LIBS=$ac_func_search_save_LIBS
9162fi
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009163{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9164echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9165ac_res=$ac_cv_search_setupterm
Chandler Carruthf7364d52013-08-07 08:47:36 +00009166if test "$ac_res" != no; then
9167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9168
Stephen Hines36b56882014-04-23 16:57:46 -07009169
Chandler Carruthf7364d52013-08-07 08:47:36 +00009170cat >>confdefs.h <<\_ACEOF
Chandler Carruth8d8bdff2013-08-12 09:49:17 +00009171#define HAVE_TERMINFO 1
Chandler Carruthf7364d52013-08-07 08:47:36 +00009172_ACEOF
9173
Stephen Hines36b56882014-04-23 16:57:46 -07009174HAVE_TERMINFO='1'
9175
9176
9177fi
9178
9179fi
9180
9181if test "$llvm_cv_enable_libedit" = "yes" ; then
9182 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9183echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9184if test "${ac_cv_search_el_init+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186else
9187 ac_func_search_save_LIBS=$LIBS
9188cat >conftest.$ac_ext <<_ACEOF
9189/* confdefs.h. */
9190_ACEOF
9191cat confdefs.h >>conftest.$ac_ext
9192cat >>conftest.$ac_ext <<_ACEOF
9193/* end confdefs.h. */
9194
9195/* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9198#ifdef __cplusplus
9199extern "C"
9200#endif
9201char el_init ();
9202int
9203main ()
9204{
9205return el_init ();
9206 ;
9207 return 0;
9208}
9209_ACEOF
9210for ac_lib in '' edit; do
9211 if test -z "$ac_lib"; then
9212 ac_res="none required"
9213 else
9214 ac_res=-l$ac_lib
9215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9216 fi
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218if { (ac_try="$ac_link"
9219case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9222esac
9223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_link") 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9232 { (case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9235esac
9236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_try") 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; } &&
9241 { ac_try='test -s conftest$ac_exeext'
9242 { (case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
9246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_try") 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_cv_search_el_init=$ac_res
9252else
9253 echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256
9257fi
9258
9259rm -f core conftest.err conftest.$ac_objext \
9260 conftest$ac_exeext
9261 if test "${ac_cv_search_el_init+set}" = set; then
9262 break
9263fi
9264done
9265if test "${ac_cv_search_el_init+set}" = set; then
9266 :
9267else
9268 ac_cv_search_el_init=no
9269fi
9270rm conftest.$ac_ext
9271LIBS=$ac_func_search_save_LIBS
9272fi
9273{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9274echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9275ac_res=$ac_cv_search_el_init
9276if test "$ac_res" != no; then
9277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9278
9279cat >>confdefs.h <<\_ACEOF
9280#define HAVE_LIBEDIT 1
9281_ACEOF
9282
Chandler Carruthf7364d52013-08-07 08:47:36 +00009283fi
9284
9285fi
9286
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00009287if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009288 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9289echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9290if test "${ac_cv_search_ffi_call+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +00009292else
Nick Lewycky267fddb2009-04-13 04:26:27 +00009293 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009294cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +00009299/* end confdefs.h. */
9300
9301/* Override any GCC internal prototype to avoid an error.
9302 Use char because int might match the return type of a GCC
9303 builtin and then its argument prototype would still apply. */
9304#ifdef __cplusplus
9305extern "C"
9306#endif
9307char ffi_call ();
9308int
9309main ()
9310{
9311return ffi_call ();
9312 ;
9313 return 0;
9314}
9315_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +00009316for ac_lib in '' ffi; do
9317 if test -z "$ac_lib"; then
9318 ac_res="none required"
9319 else
9320 ac_res=-l$ac_lib
9321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9322 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009323 rm -f conftest.$ac_objext conftest$ac_exeext
9324if { (ac_try="$ac_link"
9325case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9328esac
9329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_link") 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338 { (case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341esac
9342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_try") 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; } &&
9347 { ac_try='test -s conftest$ac_exeext'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9351esac
9352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +00009357 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009358else
9359 echo "$as_me: failed program was:" >&5
9360sed 's/^/| /' conftest.$ac_ext >&5
9361
9362
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +00009363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009364
Bill Wendlingebcceee2009-04-18 11:20:33 +00009365rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009366 conftest$ac_exeext
9367 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +00009368 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +00009369fi
Nick Lewycky267fddb2009-04-13 04:26:27 +00009370done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009371if test "${ac_cv_search_ffi_call+set}" = set; then
9372 :
Nick Lewycky267fddb2009-04-13 04:26:27 +00009373else
9374 ac_cv_search_ffi_call=no
9375fi
9376rm conftest.$ac_ext
9377LIBS=$ac_func_search_save_LIBS
9378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009379{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9380echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +00009381ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009382if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +00009383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009385cat >>confdefs.h <<\_ACEOF
9386#define HAVE_FFI_CALL 1
9387_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +00009388
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +00009389else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00009390 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9391echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9392 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +00009393fi
9394
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00009395fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +00009396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009397{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9398echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9399if test "${ac_cv_search_mallinfo+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00009401else
9402 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009403cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h. */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009409
Reid Spencera773bd52006-08-04 18:18:08 +00009410/* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +00009413#ifdef __cplusplus
9414extern "C"
9415#endif
John Criswell7a73b802003-06-30 21:59:07 +00009416char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +00009417int
9418main ()
9419{
Reid Spencera773bd52006-08-04 18:18:08 +00009420return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +00009421 ;
9422 return 0;
9423}
9424_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009425for ac_lib in '' malloc; do
9426 if test -z "$ac_lib"; then
9427 ac_res="none required"
9428 else
9429 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +00009430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009431 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009432 rm -f conftest.$ac_objext conftest$ac_exeext
9433if { (ac_try="$ac_link"
9434case "(($ac_try" in
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9437esac
9438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439 (eval "$ac_link") 2>conftest.er1
9440 ac_status=$?
9441 grep -v '^ *+' conftest.er1 >conftest.err
9442 rm -f conftest.er1
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447 { (case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450esac
9451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_try") 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest$ac_exeext'
9457 { (case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9460esac
9461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_try") 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009466 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009467else
9468 echo "$as_me: failed program was:" >&5
9469sed 's/^/| /' conftest.$ac_ext >&5
9470
9471
John Criswell7a73b802003-06-30 21:59:07 +00009472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009473
Bill Wendlingebcceee2009-04-18 11:20:33 +00009474rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009475 conftest$ac_exeext
9476 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009477 break
John Criswell7a73b802003-06-30 21:59:07 +00009478fi
Reid Spencera773bd52006-08-04 18:18:08 +00009479done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009480if test "${ac_cv_search_mallinfo+set}" = set; then
9481 :
Reid Spencera773bd52006-08-04 18:18:08 +00009482else
9483 ac_cv_search_mallinfo=no
9484fi
9485rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009486LIBS=$ac_func_search_save_LIBS
9487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009488{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9489echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009490ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009491if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +00009493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009494cat >>confdefs.h <<\_ACEOF
9495#define HAVE_MALLINFO 1
9496_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00009497
9498fi
9499
9500
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00009501if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009502
9503{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9504echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9505if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +00009507else
Edward O'Callaghan5da60462009-10-14 11:12:33 +00009508 ac_check_lib_save_LIBS=$LIBS
9509LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009510cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h. */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +00009515/* end confdefs.h. */
9516
Reid Spencera773bd52006-08-04 18:18:08 +00009517/* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +00009520#ifdef __cplusplus
9521extern "C"
9522#endif
Reid Spencer22177fe2005-07-12 15:24:20 +00009523char pthread_mutex_init ();
9524int
9525main ()
9526{
Reid Spencera773bd52006-08-04 18:18:08 +00009527return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +00009528 ;
9529 return 0;
9530}
9531_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009532rm -f conftest.$ac_objext conftest$ac_exeext
9533if { (ac_try="$ac_link"
9534case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537esac
9538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9547 { (case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_try") 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560esac
9561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_try") 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +00009566 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +00009567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009568 echo "$as_me: failed program was:" >&5
9569sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +00009572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009573
Bill Wendlingebcceee2009-04-18 11:20:33 +00009574rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009575 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +00009576LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +00009577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009578{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9579echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9580if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +00009581 cat >>confdefs.h <<_ACEOF
9582#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00009583_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +00009584
Edward O'Callaghan5da60462009-10-14 11:12:33 +00009585 LIBS="-lpthread $LIBS"
9586
Reid Spencer22177fe2005-07-12 15:24:20 +00009587fi
9588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009589 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9590echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9591if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +00009593else
9594 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +00009600/* end confdefs.h. */
9601
Reid Spencera773bd52006-08-04 18:18:08 +00009602/* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +00009605#ifdef __cplusplus
9606extern "C"
9607#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +00009608char pthread_mutex_lock ();
9609int
9610main ()
9611{
Reid Spencera773bd52006-08-04 18:18:08 +00009612return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +00009613 ;
9614 return 0;
9615}
9616_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009617for ac_lib in '' pthread; do
9618 if test -z "$ac_lib"; then
9619 ac_res="none required"
9620 else
9621 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +00009622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009623 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009624 rm -f conftest.$ac_objext conftest$ac_exeext
9625if { (ac_try="$ac_link"
9626case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9639 { (case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; } &&
9648 { ac_try='test -s conftest$ac_exeext'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652esac
9653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009658 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009659else
9660 echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663
Brian Gaeke5f268f72003-12-05 19:29:01 +00009664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009665
Bill Wendlingebcceee2009-04-18 11:20:33 +00009666rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009667 conftest$ac_exeext
9668 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009669 break
Brian Gaeke5f268f72003-12-05 19:29:01 +00009670fi
Reid Spencera773bd52006-08-04 18:18:08 +00009671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009672if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9673 :
Reid Spencera773bd52006-08-04 18:18:08 +00009674else
9675 ac_cv_search_pthread_mutex_lock=no
9676fi
9677rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +00009678LIBS=$ac_func_search_save_LIBS
9679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009680{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9681echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009682ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009683if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +00009685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009686cat >>confdefs.h <<\_ACEOF
9687#define HAVE_PTHREAD_MUTEX_LOCK 1
9688_ACEOF
John Criswell40468462004-09-24 21:19:06 +00009689
9690fi
Brian Gaeke5f268f72003-12-05 19:29:01 +00009691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009692 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9693echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9694if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +00009696else
9697 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009698cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +00009703/* end confdefs.h. */
9704
9705/* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
9708#ifdef __cplusplus
9709extern "C"
9710#endif
9711char pthread_rwlock_init ();
9712int
9713main ()
9714{
9715return pthread_rwlock_init ();
9716 ;
9717 return 0;
9718}
9719_ACEOF
9720for ac_lib in '' pthread; do
9721 if test -z "$ac_lib"; then
9722 ac_res="none required"
9723 else
9724 ac_res=-l$ac_lib
9725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9726 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009727 rm -f conftest.$ac_objext conftest$ac_exeext
9728if { (ac_try="$ac_link"
9729case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732esac
9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745esac
9746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +00009761 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009762else
9763 echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766
Owen Andersonde8aed22009-06-16 18:20:20 +00009767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009768
Owen Andersonde8aed22009-06-16 18:20:20 +00009769rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009770 conftest$ac_exeext
9771 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +00009772 break
9773fi
9774done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009775if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9776 :
Owen Andersonde8aed22009-06-16 18:20:20 +00009777else
9778 ac_cv_search_pthread_rwlock_init=no
9779fi
9780rm conftest.$ac_ext
9781LIBS=$ac_func_search_save_LIBS
9782fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009783{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9784echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +00009785ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009786if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +00009787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009789cat >>confdefs.h <<\_ACEOF
9790#define HAVE_PTHREAD_RWLOCK_INIT 1
9791_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +00009792
9793fi
9794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009795 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9796echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9797if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +00009799else
9800 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009801cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h. */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +00009806/* end confdefs.h. */
9807
9808/* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811#ifdef __cplusplus
9812extern "C"
9813#endif
9814char pthread_getspecific ();
9815int
9816main ()
9817{
9818return pthread_getspecific ();
9819 ;
9820 return 0;
9821}
9822_ACEOF
9823for ac_lib in '' pthread; do
9824 if test -z "$ac_lib"; then
9825 ac_res="none required"
9826 else
9827 ac_res=-l$ac_lib
9828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9829 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009830 rm -f conftest.$ac_objext conftest$ac_exeext
9831if { (ac_try="$ac_link"
9832case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +00009864 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009865else
9866 echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869
Owen Anderson27fcfe12009-06-25 23:10:26 +00009870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009871
Owen Anderson27fcfe12009-06-25 23:10:26 +00009872rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009873 conftest$ac_exeext
9874 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +00009875 break
9876fi
9877done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009878if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9879 :
Owen Anderson27fcfe12009-06-25 23:10:26 +00009880else
9881 ac_cv_search_pthread_getspecific=no
9882fi
9883rm conftest.$ac_ext
9884LIBS=$ac_func_search_save_LIBS
9885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009886{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9887echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +00009888ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009889if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +00009890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009892cat >>confdefs.h <<\_ACEOF
9893#define HAVE_PTHREAD_GETSPECIFIC 1
9894_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +00009895
9896fi
9897
Reid Spencer0a262ba2005-08-24 10:07:20 +00009898fi
Brian Gaekec9a410c2004-02-23 21:30:37 +00009899
Alexey Samsonovee03c942013-04-23 08:28:39 +00009900if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9901
9902{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9903echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9904if test "${ac_cv_lib_z_compress2+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906else
9907 ac_check_lib_save_LIBS=$LIBS
9908LIBS="-lz $LIBS"
9909cat >conftest.$ac_ext <<_ACEOF
9910/* confdefs.h. */
9911_ACEOF
9912cat confdefs.h >>conftest.$ac_ext
9913cat >>conftest.$ac_ext <<_ACEOF
9914/* end confdefs.h. */
9915
9916/* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919#ifdef __cplusplus
9920extern "C"
9921#endif
9922char compress2 ();
9923int
9924main ()
9925{
9926return compress2 ();
9927 ;
9928 return 0;
9929}
9930_ACEOF
9931rm -f conftest.$ac_objext conftest$ac_exeext
9932if { (ac_try="$ac_link"
9933case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9936esac
9937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_link") 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946 { (case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9949esac
9950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_try") 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest$ac_exeext'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_lib_z_compress2=yes
9966else
9967 echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970 ac_cv_lib_z_compress2=no
9971fi
9972
9973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975LIBS=$ac_check_lib_save_LIBS
9976fi
9977{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9978echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9979if test $ac_cv_lib_z_compress2 = yes; then
9980 cat >>confdefs.h <<_ACEOF
9981#define HAVE_LIBZ 1
9982_ACEOF
9983
9984 LIBS="-lz $LIBS"
9985
9986fi
9987
9988fi
9989
Reid Spencer5e1d9a52004-11-25 04:51:04 +00009990
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00009991# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009992if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00009993 withval=$with_oprofile;
9994 USE_OPROFILE=1
9995
9996 case "$withval" in
9997 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +00009998 no) llvm_cv_oppath=
9999 USE_OPROFILE=0
10000 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010001 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000010002 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010003 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000010004 case $llvm_cv_os_type in
10005 Linux)
10006 if test -n "$llvm_cv_oppath" ; then
10007 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10008 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010009echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10010if test "${ac_cv_search_bfd_init+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010012else
10013 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010014cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010019/* end confdefs.h. */
10020
10021/* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10024#ifdef __cplusplus
10025extern "C"
10026#endif
10027char bfd_init ();
10028int
10029main ()
10030{
10031return bfd_init ();
10032 ;
10033 return 0;
10034}
10035_ACEOF
10036for ac_lib in '' bfd; do
10037 if test -z "$ac_lib"; then
10038 ac_res="none required"
10039 else
10040 ac_res=-l$ac_lib
10041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10042 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010043 rm -f conftest.$ac_objext conftest$ac_exeext
10044if { (ac_try="$ac_link"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061esac
10062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010077 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010078else
10079 echo "$as_me: failed program was:" >&5
10080sed 's/^/| /' conftest.$ac_ext >&5
10081
10082
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010084
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010085rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010086 conftest$ac_exeext
10087 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010088 break
10089fi
10090done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010091if test "${ac_cv_search_bfd_init+set}" = set; then
10092 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010093else
10094 ac_cv_search_bfd_init=no
10095fi
10096rm conftest.$ac_ext
10097LIBS=$ac_func_search_save_LIBS
10098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010099{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10100echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010101ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010102if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10104
10105fi
10106
Eli Bendersky61b18512012-03-13 08:33:15 +000010107 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010108echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10109if test "${ac_cv_search_op_open_agent+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010111else
10112 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010113cat >conftest.$ac_ext <<_ACEOF
10114/* confdefs.h. */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010118/* end confdefs.h. */
10119
10120/* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10123#ifdef __cplusplus
10124extern "C"
10125#endif
10126char op_open_agent ();
10127int
10128main ()
10129{
10130return op_open_agent ();
10131 ;
10132 return 0;
10133}
10134_ACEOF
10135for ac_lib in '' opagent; do
10136 if test -z "$ac_lib"; then
10137 ac_res="none required"
10138 else
10139 ac_res=-l$ac_lib
10140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10141 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010142 rm -f conftest.$ac_objext conftest$ac_exeext
10143if { (ac_try="$ac_link"
10144case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>conftest.er1
10150 ac_status=$?
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170esac
10171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010176 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010177else
10178 echo "$as_me: failed program was:" >&5
10179sed 's/^/| /' conftest.$ac_ext >&5
10180
10181
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010183
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010184rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010185 conftest$ac_exeext
10186 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010187 break
10188fi
10189done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010190if test "${ac_cv_search_op_open_agent+set}" = set; then
10191 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010192else
10193 ac_cv_search_op_open_agent=no
10194fi
10195rm conftest.$ac_ext
10196LIBS=$ac_func_search_save_LIBS
10197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010198{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10199echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010200ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010201if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10203
10204else
10205
Eli Bendersky61b18512012-03-13 08:33:15 +000010206 echo "Error! You need to have libopagent around."
Stephen Hinesebe69fe2015-03-23 12:10:34 -070010207 exit 1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010208
10209fi
10210
Eli Bendersky61b18512012-03-13 08:33:15 +000010211 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010212 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10213echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10214if test "${ac_cv_header_opagent_h+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216fi
10217{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10218echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10219else
10220 # Is the header compilable?
10221{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
10222echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10223cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
10229$ac_includes_default
10230#include <opagent.h>
10231_ACEOF
10232rm -f conftest.$ac_objext
10233if { (ac_try="$ac_compile"
10234case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237esac
10238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_compile") 2>conftest.er1
10240 ac_status=$?
10241 grep -v '^ *+' conftest.er1 >conftest.err
10242 rm -f conftest.er1
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10247 { (case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250esac
10251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_try") 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260esac
10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_try") 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_header_compiler=yes
10267else
10268 echo "$as_me: failed program was:" >&5
10269sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010271 ac_header_compiler=no
10272fi
10273
10274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10276echo "${ECHO_T}$ac_header_compiler" >&6; }
10277
10278# Is the header present?
10279{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
10280echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10281cat >conftest.$ac_ext <<_ACEOF
10282/* confdefs.h. */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h. */
10287#include <opagent.h>
10288_ACEOF
10289if { (ac_try="$ac_cpp conftest.$ac_ext"
10290case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293esac
10294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } >/dev/null; then
10302 if test -s conftest.err; then
10303 ac_cpp_err=$ac_c_preproc_warn_flag
10304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10305 else
10306 ac_cpp_err=
10307 fi
10308else
10309 ac_cpp_err=yes
10310fi
10311if test -z "$ac_cpp_err"; then
10312 ac_header_preproc=yes
10313else
10314 echo "$as_me: failed program was:" >&5
10315sed 's/^/| /' conftest.$ac_ext >&5
10316
10317 ac_header_preproc=no
10318fi
10319
10320rm -f conftest.err conftest.$ac_ext
10321{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322echo "${ECHO_T}$ac_header_preproc" >&6; }
10323
10324# So? What about this header?
10325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326 yes:no: )
10327 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10328echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10330echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10331 ac_header_preproc=yes
10332 ;;
10333 no:yes:* )
10334 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10335echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10337echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10339echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10341echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10343echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10345echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10346 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010347## ------------------------------------ ##
10348## Report this to http://llvm.org/bugs/ ##
10349## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010350_ASBOX
10351 ) | sed "s/^/$as_me: WARNING: /" >&2
10352 ;;
10353esac
10354{ echo "$as_me:$LINENO: checking for opagent.h" >&5
10355echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10356if test "${ac_cv_header_opagent_h+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359 ac_cv_header_opagent_h=$ac_header_preproc
10360fi
10361{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10362echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10363
10364fi
10365if test $ac_cv_header_opagent_h = yes; then
10366 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010367else
10368
Eli Bendersky61b18512012-03-13 08:33:15 +000010369 echo "Error! You need to have opagent.h around."
Stephen Hinesebe69fe2015-03-23 12:10:34 -070010370 exit 1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010371
10372fi
10373
10374
Eli Bendersky61b18512012-03-13 08:33:15 +000010375 fi ;;
10376 *)
10377 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10378echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10379 { (exit 1); exit 1; }; } ;;
10380 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010381
10382else
10383
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010384 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010385
10386
10387fi
10388
10389
10390cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000010391#define LLVM_USE_OPROFILE $USE_OPROFILE
10392_ACEOF
10393
10394
10395
10396# Check whether --with-intel-jitevents was given.
10397if test "${with_intel_jitevents+set}" = set; then
10398 withval=$with_intel_jitevents;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000010399 case "$withval" in
10400 yes) USE_INTEL_JITEVENTS=1
10401;;
10402 no) USE_INTEL_JITEVENTS=0
10403;;
10404 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10405echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10406 { (exit 1); exit 1; }; };;
10407 esac
10408
Eli Bendersky61b18512012-03-13 08:33:15 +000010409 case $llvm_cv_os_type in
10410 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000010411 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10412echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10413 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000010414 esac
10415
Eli Bendersky61b18512012-03-13 08:33:15 +000010416 case "$llvm_cv_target_arch" in
Andrew Kaylor770b97b2012-09-28 17:35:20 +000010417 x86|x86_64) ;;
10418 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10419echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10420 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000010421 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000010422
10423else
10424
10425 USE_INTEL_JITEVENTS=0
10426
10427
10428fi
10429
10430
10431cat >>confdefs.h <<_ACEOF
10432#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010433_ACEOF
10434
10435
Eric Christopher46e6bcf2012-08-03 19:47:19 +000010436for ac_prog in xml2-config
10437do
10438 # Extract the first word of "$ac_prog", so it can be a program name with args.
10439set dummy $ac_prog; ac_word=$2
10440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10442if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445 if test -n "$XML2CONFIG"; then
10446 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10447else
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10455 ac_cv_prog_XML2CONFIG="$ac_prog"
10456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10458 fi
10459done
10460done
10461IFS=$as_save_IFS
10462
10463fi
10464fi
10465XML2CONFIG=$ac_cv_prog_XML2CONFIG
10466if test -n "$XML2CONFIG"; then
10467 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10468echo "${ECHO_T}$XML2CONFIG" >&6; }
10469else
10470 { echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6; }
10472fi
10473
10474
10475 test -n "$XML2CONFIG" && break
10476done
10477
10478
10479{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10480echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10481if test "x$XML2CONFIG" = "x"; then
10482 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10483echo "${ECHO_T}xml2-config not found" >&6; }
10484else
10485 LIBXML2_INC=`$XML2CONFIG --cflags`
10486 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10487echo "${ECHO_T}$LIBXML2_INC" >&6; }
10488 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10489echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10490if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493 ac_check_lib_save_LIBS=$LIBS
10494LIBS="-lxml2 $LIBS"
10495cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h. */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h. */
10501
10502/* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10505#ifdef __cplusplus
10506extern "C"
10507#endif
10508char xmlReadFile ();
10509int
10510main ()
10511{
10512return xmlReadFile ();
10513 ;
10514 return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext conftest$ac_exeext
10518if { (ac_try="$ac_link"
10519case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_lib_xml2_xmlReadFile=yes
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 ac_cv_lib_xml2_xmlReadFile=no
10557fi
10558
10559rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561LIBS=$ac_check_lib_save_LIBS
10562fi
10563{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10564echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10565if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10566
10567cat >>confdefs.h <<\_ACEOF
10568#define CLANG_HAVE_LIBXML 1
10569_ACEOF
10570
10571 LIBXML2_LIBS="-lxml2"
10572fi
10573
10574fi
10575
10576
10577
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010579
10580
10581
10582
10583
Reid Spencer59473af2004-12-25 07:31:29 +000010584ac_header_dirent=no
10585for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010586 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10587{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10588echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010592 cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000010597/* end confdefs.h. */
10598#include <sys/types.h>
10599#include <$ac_hdr>
10600
10601int
10602main ()
10603{
10604if ((DIR *) 0)
10605return 0;
10606 ;
10607 return 0;
10608}
10609_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010610rm -f conftest.$ac_objext
10611if { (ac_try="$ac_compile"
10612case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_compile") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638esac
10639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000010644 eval "$as_ac_Header=yes"
10645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010646 echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000010650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010651
Reid Spencera773bd52006-08-04 18:18:08 +000010652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010654ac_res=`eval echo '${'$as_ac_Header'}'`
10655 { echo "$as_me:$LINENO: result: $ac_res" >&5
10656echo "${ECHO_T}$ac_res" >&6; }
10657if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000010658 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010659#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000010660_ACEOF
10661
10662ac_header_dirent=$ac_hdr; break
10663fi
10664
10665done
10666# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10667if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010668 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10669echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10670if test "${ac_cv_search_opendir+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010672else
10673 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000010679/* end confdefs.h. */
10680
Reid Spencera773bd52006-08-04 18:18:08 +000010681/* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000010684#ifdef __cplusplus
10685extern "C"
10686#endif
Reid Spencer59473af2004-12-25 07:31:29 +000010687char opendir ();
10688int
10689main ()
10690{
Reid Spencera773bd52006-08-04 18:18:08 +000010691return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000010692 ;
10693 return 0;
10694}
10695_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010696for ac_lib in '' dir; do
10697 if test -z "$ac_lib"; then
10698 ac_res="none required"
10699 else
10700 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000010701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000010702 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010703 rm -f conftest.$ac_objext conftest$ac_exeext
10704if { (ac_try="$ac_link"
10705case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
10709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_link") 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718 { (case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_try") 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; } &&
10727 { ac_try='test -s conftest$ac_exeext'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731esac
10732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000010737 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010738else
10739 echo "$as_me: failed program was:" >&5
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
10742
Reid Spencer59473af2004-12-25 07:31:29 +000010743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010744
Bill Wendlingebcceee2009-04-18 11:20:33 +000010745rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746 conftest$ac_exeext
10747 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000010748 break
Reid Spencer59473af2004-12-25 07:31:29 +000010749fi
Reid Spencera773bd52006-08-04 18:18:08 +000010750done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010751if test "${ac_cv_search_opendir+set}" = set; then
10752 :
Reid Spencera773bd52006-08-04 18:18:08 +000010753else
10754 ac_cv_search_opendir=no
10755fi
10756rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010757LIBS=$ac_func_search_save_LIBS
10758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010759{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10760echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000010761ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010762if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000010763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000010764
10765fi
10766
10767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10769echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10770if test "${ac_cv_search_opendir+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010772else
10773 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010774cat >conftest.$ac_ext <<_ACEOF
10775/* confdefs.h. */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000010779/* end confdefs.h. */
10780
Reid Spencera773bd52006-08-04 18:18:08 +000010781/* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000010784#ifdef __cplusplus
10785extern "C"
10786#endif
Reid Spencer59473af2004-12-25 07:31:29 +000010787char opendir ();
10788int
10789main ()
10790{
Reid Spencera773bd52006-08-04 18:18:08 +000010791return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000010792 ;
10793 return 0;
10794}
10795_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010796for ac_lib in '' x; do
10797 if test -z "$ac_lib"; then
10798 ac_res="none required"
10799 else
10800 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000010801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000010802 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010803 rm -f conftest.$ac_objext conftest$ac_exeext
10804if { (ac_try="$ac_link"
10805case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808esac
10809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_link") 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818 { (case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821esac
10822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_try") 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831esac
10832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_try") 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000010837 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010838else
10839 echo "$as_me: failed program was:" >&5
10840sed 's/^/| /' conftest.$ac_ext >&5
10841
10842
Reid Spencer59473af2004-12-25 07:31:29 +000010843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010844
Bill Wendlingebcceee2009-04-18 11:20:33 +000010845rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010846 conftest$ac_exeext
10847 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000010848 break
Reid Spencer59473af2004-12-25 07:31:29 +000010849fi
Reid Spencera773bd52006-08-04 18:18:08 +000010850done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010851if test "${ac_cv_search_opendir+set}" = set; then
10852 :
Reid Spencera773bd52006-08-04 18:18:08 +000010853else
10854 ac_cv_search_opendir=no
10855fi
10856rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010857LIBS=$ac_func_search_save_LIBS
10858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010859{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10860echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000010861ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010862if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000010863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000010864
10865fi
10866
10867fi
10868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010869{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10870echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10871if test "${ac_cv_header_mmap_anon+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010873else
10874 ac_ext=c
10875ac_cpp='$CPP $CPPFLAGS'
10876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10878ac_compiler_gnu=$ac_cv_c_compiler_gnu
10879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010880 cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h. */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000010885/* end confdefs.h. */
10886#include <sys/mman.h>
10887#include <unistd.h>
10888#include <fcntl.h>
10889int
10890main ()
10891{
10892mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10893 ;
10894 return 0;
10895}
10896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010897rm -f conftest.$ac_objext
10898if { (ac_try="$ac_compile"
10899case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902esac
10903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_compile") 2>conftest.er1
10905 ac_status=$?
10906 grep -v '^ *+' conftest.er1 >conftest.err
10907 rm -f conftest.er1
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; } &&
10921 { ac_try='test -s conftest.$ac_objext'
10922 { (case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_try") 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000010931 ac_cv_header_mmap_anon=yes
10932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010933 echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
10936 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000010937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010938
Reid Spencera773bd52006-08-04 18:18:08 +000010939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010940 ac_ext=c
10941ac_cpp='$CPP $CPPFLAGS'
10942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944ac_compiler_gnu=$ac_cv_c_compiler_gnu
10945
10946
10947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010948{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10949echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000010950if test "$ac_cv_header_mmap_anon" = yes; then
10951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010952cat >>confdefs.h <<\_ACEOF
10953#define HAVE_MMAP_ANONYMOUS 1
10954_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000010955
10956fi
10957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010958{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10959echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10960if test "${ac_cv_header_stat_broken+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010963 cat >conftest.$ac_ext <<_ACEOF
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000010968/* end confdefs.h. */
10969#include <sys/types.h>
10970#include <sys/stat.h>
10971
Reid Spencera773bd52006-08-04 18:18:08 +000010972#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010973# if S_ISBLK (S_IFDIR)
10974You lose.
10975# endif
Reid Spencer59473af2004-12-25 07:31:29 +000010976#endif
10977
Reid Spencera773bd52006-08-04 18:18:08 +000010978#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010979# if S_ISBLK (S_IFCHR)
10980You lose.
10981# endif
Reid Spencer59473af2004-12-25 07:31:29 +000010982#endif
10983
Reid Spencera773bd52006-08-04 18:18:08 +000010984#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010985# if S_ISLNK (S_IFREG)
10986You lose.
10987# endif
Reid Spencer59473af2004-12-25 07:31:29 +000010988#endif
10989
Reid Spencera773bd52006-08-04 18:18:08 +000010990#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010991# if S_ISSOCK (S_IFREG)
10992You lose.
10993# endif
Reid Spencer59473af2004-12-25 07:31:29 +000010994#endif
10995
10996_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10998 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000010999 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011000else
11001 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000011002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011003rm -f conftest*
11004
Reid Spencer59473af2004-12-25 07:31:29 +000011005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011006{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11007echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000011008if test $ac_cv_header_stat_broken = yes; then
11009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011010cat >>confdefs.h <<\_ACEOF
11011#define STAT_MACROS_BROKEN 1
11012_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000011013
11014fi
11015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011016{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11017echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11018if test "${ac_cv_header_sys_wait_h+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011021 cat >conftest.$ac_ext <<_ACEOF
11022/* confdefs.h. */
11023_ACEOF
11024cat confdefs.h >>conftest.$ac_ext
11025cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000011027#include <sys/types.h>
11028#include <sys/wait.h>
11029#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000011030# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000011031#endif
11032#ifndef WIFEXITED
11033# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11034#endif
11035
John Criswell7a73b802003-06-30 21:59:07 +000011036int
11037main ()
11038{
11039 int s;
11040 wait (&s);
11041 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11042 ;
11043 return 0;
11044}
11045_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011046rm -f conftest.$ac_objext
11047if { (ac_try="$ac_compile"
11048case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051esac
11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000011080 ac_cv_header_sys_wait_h=yes
11081else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011082 echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000011086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011087
Reid Spencera773bd52006-08-04 18:18:08 +000011088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000011089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011090{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11091echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000011092if test $ac_cv_header_sys_wait_h = yes; then
11093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011094cat >>confdefs.h <<\_ACEOF
11095#define HAVE_SYS_WAIT_H 1
11096_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000011097
11098fi
11099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011100{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11101echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11102if test "${ac_cv_header_time+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011105 cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011110/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011111#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011112#include <sys/time.h>
11113#include <time.h>
11114
11115int
11116main ()
11117{
11118if ((struct tm *) 0)
11119return 0;
11120 ;
11121 return 0;
11122}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011124rm -f conftest.$ac_objext
11125if { (ac_try="$ac_compile"
11126case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129esac
11130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_compile") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11139 { (case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11142esac
11143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_try") 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; } &&
11148 { ac_try='test -s conftest.$ac_objext'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152esac
11153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011158 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011160 echo "$as_me: failed program was:" >&5
11161sed 's/^/| /' conftest.$ac_ext >&5
11162
11163 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011165
Reid Spencera773bd52006-08-04 18:18:08 +000011166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011168{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11169echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011170if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011172cat >>confdefs.h <<\_ACEOF
11173#define TIME_WITH_SYS_TIME 1
11174_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011175
11176fi
11177
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011178
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011179ac_ext=cpp
11180ac_cpp='$CXXCPP $CPPFLAGS'
11181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11184
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011185
11186for ac_header in cxxabi.h
11187do
11188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Stephen Hines37ed9c12014-12-01 14:51:49 -080011189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011193else
Stephen Hines37ed9c12014-12-01 14:51:49 -080011194 cat >conftest.$ac_ext <<_ACEOF
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
Stephen Hines37ed9c12014-12-01 14:51:49 -080011200#include <stddef.h>
11201
11202
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011203#include <$ac_header>
11204_ACEOF
11205rm -f conftest.$ac_objext
11206if { (ac_try="$ac_compile"
11207case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210esac
11211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_compile") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest.$ac_objext'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
Stephen Hines37ed9c12014-12-01 14:51:49 -080011239 eval "$as_ac_Header=yes"
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011240else
11241 echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
Stephen Hines37ed9c12014-12-01 14:51:49 -080011244 eval "$as_ac_Header=no"
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011245fi
11246
11247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011248fi
11249ac_res=`eval echo '${'$as_ac_Header'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251echo "${ECHO_T}$ac_res" >&6; }
Benjamin Kramer5212b4e2013-05-03 15:55:06 +000011252if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255_ACEOF
11256
11257fi
11258
11259done
11260
11261ac_ext=c
11262ac_cpp='$CPP $CPPFLAGS'
11263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11265ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011266
11267
11268
11269
11270
11271
Stephen Hines37ed9c12014-12-01 14:51:49 -080011272
Eric Christopherd23cd022013-07-26 17:13:47 +000011273for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011274do
11275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281fi
11282ac_res=`eval echo '${'$as_ac_Header'}'`
11283 { echo "$as_me:$LINENO: result: $ac_res" >&5
11284echo "${ECHO_T}$ac_res" >&6; }
11285else
11286 # Is the header compilable?
11287{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11289cat >conftest.$ac_ext <<_ACEOF
11290/* confdefs.h. */
11291_ACEOF
11292cat confdefs.h >>conftest.$ac_ext
11293cat >>conftest.$ac_ext <<_ACEOF
11294/* end confdefs.h. */
11295$ac_includes_default
11296#include <$ac_header>
11297_ACEOF
11298rm -f conftest.$ac_objext
11299if { (ac_try="$ac_compile"
11300case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest.$ac_objext'
11323 { (case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326esac
11327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_try") 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_header_compiler=yes
11333else
11334 echo "$as_me: failed program was:" >&5
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_header_compiler=no
11338fi
11339
11340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11341{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342echo "${ECHO_T}$ac_header_compiler" >&6; }
11343
11344# Is the header present?
11345{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
11353#include <$ac_header>
11354_ACEOF
11355if { (ac_try="$ac_cpp conftest.$ac_ext"
11356case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359esac
11360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } >/dev/null; then
11368 if test -s conftest.err; then
11369 ac_cpp_err=$ac_c_preproc_warn_flag
11370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11371 else
11372 ac_cpp_err=
11373 fi
11374else
11375 ac_cpp_err=yes
11376fi
11377if test -z "$ac_cpp_err"; then
11378 ac_header_preproc=yes
11379else
11380 echo "$as_me: failed program was:" >&5
11381sed 's/^/| /' conftest.$ac_ext >&5
11382
11383 ac_header_preproc=no
11384fi
11385
11386rm -f conftest.err conftest.$ac_ext
11387{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388echo "${ECHO_T}$ac_header_preproc" >&6; }
11389
11390# So? What about this header?
11391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11392 yes:no: )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11397 ac_header_preproc=yes
11398 ;;
11399 no:yes:* )
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11403echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11407echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11412 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011413## ------------------------------------ ##
11414## Report this to http://llvm.org/bugs/ ##
11415## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011416_ASBOX
11417 ) | sed "s/^/$as_me: WARNING: /" >&2
11418 ;;
11419esac
11420{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424else
11425 eval "$as_ac_Header=\$ac_header_preproc"
11426fi
11427ac_res=`eval echo '${'$as_ac_Header'}'`
11428 { echo "$as_me:$LINENO: result: $ac_res" >&5
11429echo "${ECHO_T}$ac_res" >&6; }
11430
11431fi
11432if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000011433 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011434#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011435_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011436
11437fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011438
Reid Spencer59473af2004-12-25 07:31:29 +000011439done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011441
11442
11443
11444
11445
11446
Douglas Gregor071d73d2009-05-18 17:21:34 +000011447for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011448do
11449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455fi
11456ac_res=`eval echo '${'$as_ac_Header'}'`
11457 { echo "$as_me:$LINENO: result: $ac_res" >&5
11458echo "${ECHO_T}$ac_res" >&6; }
11459else
11460 # Is the header compilable?
11461{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11463cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
11469$ac_includes_default
11470#include <$ac_header>
11471_ACEOF
11472rm -f conftest.$ac_objext
11473if { (ac_try="$ac_compile"
11474case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490esac
11491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest.$ac_objext'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500esac
11501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_header_compiler=yes
11507else
11508 echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 ac_header_compiler=no
11512fi
11513
11514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11516echo "${ECHO_T}$ac_header_compiler" >&6; }
11517
11518# Is the header present?
11519{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11521cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527#include <$ac_header>
11528_ACEOF
11529if { (ac_try="$ac_cpp conftest.$ac_ext"
11530case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533esac
11534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } >/dev/null; then
11542 if test -s conftest.err; then
11543 ac_cpp_err=$ac_c_preproc_warn_flag
11544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11545 else
11546 ac_cpp_err=
11547 fi
11548else
11549 ac_cpp_err=yes
11550fi
11551if test -z "$ac_cpp_err"; then
11552 ac_header_preproc=yes
11553else
11554 echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
11557 ac_header_preproc=no
11558fi
11559
11560rm -f conftest.err conftest.$ac_ext
11561{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11562echo "${ECHO_T}$ac_header_preproc" >&6; }
11563
11564# So? What about this header?
11565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11566 yes:no: )
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11571 ac_header_preproc=yes
11572 ;;
11573 no:yes:* )
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11586 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011587## ------------------------------------ ##
11588## Report this to http://llvm.org/bugs/ ##
11589## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011590_ASBOX
11591 ) | sed "s/^/$as_me: WARNING: /" >&2
11592 ;;
11593esac
11594{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598else
11599 eval "$as_ac_Header=\$ac_header_preproc"
11600fi
11601ac_res=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603echo "${ECHO_T}$ac_res" >&6; }
11604
11605fi
11606if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000011607 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000011609_ACEOF
11610
11611fi
11612
11613done
11614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011615
Eric Christopherd23cd022013-07-26 17:13:47 +000011616for ac_header in utime.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011617do
11618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624fi
11625ac_res=`eval echo '${'$as_ac_Header'}'`
11626 { echo "$as_me:$LINENO: result: $ac_res" >&5
11627echo "${ECHO_T}$ac_res" >&6; }
11628else
11629 # Is the header compilable?
11630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11632cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
11638$ac_includes_default
11639#include <$ac_header>
11640_ACEOF
11641rm -f conftest.$ac_objext
11642if { (ac_try="$ac_compile"
11643case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11646esac
11647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_compile") 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11656 { (case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659esac
11660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_try") 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try='test -s conftest.$ac_objext'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_header_compiler=yes
11676else
11677 echo "$as_me: failed program was:" >&5
11678sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 ac_header_compiler=no
11681fi
11682
11683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11685echo "${ECHO_T}$ac_header_compiler" >&6; }
11686
11687# Is the header present?
11688{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11690cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696#include <$ac_header>
11697_ACEOF
11698if { (ac_try="$ac_cpp conftest.$ac_ext"
11699case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11702esac
11703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } >/dev/null; then
11711 if test -s conftest.err; then
11712 ac_cpp_err=$ac_c_preproc_warn_flag
11713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11714 else
11715 ac_cpp_err=
11716 fi
11717else
11718 ac_cpp_err=yes
11719fi
11720if test -z "$ac_cpp_err"; then
11721 ac_header_preproc=yes
11722else
11723 echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_header_preproc=no
11727fi
11728
11729rm -f conftest.err conftest.$ac_ext
11730{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11731echo "${ECHO_T}$ac_header_preproc" >&6; }
11732
11733# So? What about this header?
11734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11735 yes:no: )
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11740 ac_header_preproc=yes
11741 ;;
11742 no:yes:* )
11743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11755 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011756## ------------------------------------ ##
11757## Report this to http://llvm.org/bugs/ ##
11758## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011759_ASBOX
11760 ) | sed "s/^/$as_me: WARNING: /" >&2
11761 ;;
11762esac
11763{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767else
11768 eval "$as_ac_Header=\$ac_header_preproc"
11769fi
11770ac_res=`eval echo '${'$as_ac_Header'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772echo "${ECHO_T}$ac_res" >&6; }
11773
11774fi
11775if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000011776 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000011778_ACEOF
11779
11780fi
11781
11782done
Reid Spencer59473af2004-12-25 07:31:29 +000011783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011784
11785
11786
11787
Daniel Dunbar3e462932011-02-03 02:40:02 +000011788
11789for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011790do
11791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797fi
11798ac_res=`eval echo '${'$as_ac_Header'}'`
11799 { echo "$as_me:$LINENO: result: $ac_res" >&5
11800echo "${ECHO_T}$ac_res" >&6; }
11801else
11802 # Is the header compilable?
11803{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11805cat >conftest.$ac_ext <<_ACEOF
11806/* confdefs.h. */
11807_ACEOF
11808cat confdefs.h >>conftest.$ac_ext
11809cat >>conftest.$ac_ext <<_ACEOF
11810/* end confdefs.h. */
11811$ac_includes_default
11812#include <$ac_header>
11813_ACEOF
11814rm -f conftest.$ac_objext
11815if { (ac_try="$ac_compile"
11816case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 { (case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832esac
11833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_try") 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest.$ac_objext'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842esac
11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_header_compiler=yes
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 ac_header_compiler=no
11854fi
11855
11856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11858echo "${ECHO_T}$ac_header_compiler" >&6; }
11859
11860# Is the header present?
11861{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11863cat >conftest.$ac_ext <<_ACEOF
11864/* confdefs.h. */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h. */
11869#include <$ac_header>
11870_ACEOF
11871if { (ac_try="$ac_cpp conftest.$ac_ext"
11872case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875esac
11876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } >/dev/null; then
11884 if test -s conftest.err; then
11885 ac_cpp_err=$ac_c_preproc_warn_flag
11886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11887 else
11888 ac_cpp_err=
11889 fi
11890else
11891 ac_cpp_err=yes
11892fi
11893if test -z "$ac_cpp_err"; then
11894 ac_header_preproc=yes
11895else
11896 echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 ac_header_preproc=no
11900fi
11901
11902rm -f conftest.err conftest.$ac_ext
11903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11904echo "${ECHO_T}$ac_header_preproc" >&6; }
11905
11906# So? What about this header?
11907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11908 yes:no: )
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11913 ac_header_preproc=yes
11914 ;;
11915 no:yes:* )
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11928 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011929## ------------------------------------ ##
11930## Report this to http://llvm.org/bugs/ ##
11931## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011932_ASBOX
11933 ) | sed "s/^/$as_me: WARNING: /" >&2
11934 ;;
11935esac
11936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940else
11941 eval "$as_ac_Header=\$ac_header_preproc"
11942fi
11943ac_res=`eval echo '${'$as_ac_Header'}'`
11944 { echo "$as_me:$LINENO: result: $ac_res" >&5
11945echo "${ECHO_T}$ac_res" >&6; }
11946
11947fi
11948if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011949 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000011951_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000011952
11953fi
John Criswell7ed43ad2004-07-19 16:12:29 +000011954
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011955done
11956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011957
11958
11959
Eric Christopherd23cd022013-07-26 17:13:47 +000011960for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011961do
11962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968fi
11969ac_res=`eval echo '${'$as_ac_Header'}'`
11970 { echo "$as_me:$LINENO: result: $ac_res" >&5
11971echo "${ECHO_T}$ac_res" >&6; }
11972else
11973 # Is the header compilable?
11974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11976cat >conftest.$ac_ext <<_ACEOF
11977/* confdefs.h. */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h. */
11982$ac_includes_default
11983#include <$ac_header>
11984_ACEOF
11985rm -f conftest.$ac_objext
11986if { (ac_try="$ac_compile"
11987case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990esac
11991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_compile") 2>conftest.er1
11993 ac_status=$?
11994 grep -v '^ *+' conftest.er1 >conftest.err
11995 rm -f conftest.er1
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12000 { (case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003esac
12004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_try") 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; } &&
12009 { ac_try='test -s conftest.$ac_objext'
12010 { (case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_try") 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12019 ac_header_compiler=yes
12020else
12021 echo "$as_me: failed program was:" >&5
12022sed 's/^/| /' conftest.$ac_ext >&5
12023
12024 ac_header_compiler=no
12025fi
12026
12027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12029echo "${ECHO_T}$ac_header_compiler" >&6; }
12030
12031# Is the header present?
12032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12034cat >conftest.$ac_ext <<_ACEOF
12035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
12040#include <$ac_header>
12041_ACEOF
12042if { (ac_try="$ac_cpp conftest.$ac_ext"
12043case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046esac
12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } >/dev/null; then
12055 if test -s conftest.err; then
12056 ac_cpp_err=$ac_c_preproc_warn_flag
12057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12058 else
12059 ac_cpp_err=
12060 fi
12061else
12062 ac_cpp_err=yes
12063fi
12064if test -z "$ac_cpp_err"; then
12065 ac_header_preproc=yes
12066else
12067 echo "$as_me: failed program was:" >&5
12068sed 's/^/| /' conftest.$ac_ext >&5
12069
12070 ac_header_preproc=no
12071fi
12072
12073rm -f conftest.err conftest.$ac_ext
12074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075echo "${ECHO_T}$ac_header_preproc" >&6; }
12076
12077# So? What about this header?
12078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079 yes:no: )
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12085 ;;
12086 no:yes:* )
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12099 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000012100## ------------------------------------ ##
12101## Report this to http://llvm.org/bugs/ ##
12102## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012103_ASBOX
12104 ) | sed "s/^/$as_me: WARNING: /" >&2
12105 ;;
12106esac
12107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111else
12112 eval "$as_ac_Header=\$ac_header_preproc"
12113fi
12114ac_res=`eval echo '${'$as_ac_Header'}'`
12115 { echo "$as_me:$LINENO: result: $ac_res" >&5
12116echo "${ECHO_T}$ac_res" >&6; }
12117
12118fi
12119if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000012120 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000012122_ACEOF
12123
12124fi
12125
12126done
12127
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000012128
12129for ac_header in valgrind/valgrind.h
12130do
12131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137fi
12138ac_res=`eval echo '${'$as_ac_Header'}'`
12139 { echo "$as_me:$LINENO: result: $ac_res" >&5
12140echo "${ECHO_T}$ac_res" >&6; }
12141else
12142 # Is the header compilable?
12143{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12145cat >conftest.$ac_ext <<_ACEOF
12146/* confdefs.h. */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h. */
12151$ac_includes_default
12152#include <$ac_header>
12153_ACEOF
12154rm -f conftest.$ac_objext
12155if { (ac_try="$ac_compile"
12156case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_compile") 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12172esac
12173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_header_compiler=yes
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193 ac_header_compiler=no
12194fi
12195
12196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12198echo "${ECHO_T}$ac_header_compiler" >&6; }
12199
12200# Is the header present?
12201{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12203cat >conftest.$ac_ext <<_ACEOF
12204/* confdefs.h. */
12205_ACEOF
12206cat confdefs.h >>conftest.$ac_ext
12207cat >>conftest.$ac_ext <<_ACEOF
12208/* end confdefs.h. */
12209#include <$ac_header>
12210_ACEOF
12211if { (ac_try="$ac_cpp conftest.$ac_ext"
12212case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12215esac
12216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } >/dev/null; then
12224 if test -s conftest.err; then
12225 ac_cpp_err=$ac_c_preproc_warn_flag
12226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12227 else
12228 ac_cpp_err=
12229 fi
12230else
12231 ac_cpp_err=yes
12232fi
12233if test -z "$ac_cpp_err"; then
12234 ac_header_preproc=yes
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_header_preproc=no
12240fi
12241
12242rm -f conftest.err conftest.$ac_ext
12243{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12244echo "${ECHO_T}$ac_header_preproc" >&6; }
12245
12246# So? What about this header?
12247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12248 yes:no: )
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12250echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12252echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12253 ac_header_preproc=yes
12254 ;;
12255 no:yes:* )
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12257echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12259echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12261echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12263echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12267echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12268 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000012269## ------------------------------------ ##
12270## Report this to http://llvm.org/bugs/ ##
12271## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000012272_ASBOX
12273 ) | sed "s/^/$as_me: WARNING: /" >&2
12274 ;;
12275esac
12276{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280else
12281 eval "$as_ac_Header=\$ac_header_preproc"
12282fi
12283ac_res=`eval echo '${'$as_ac_Header'}'`
12284 { echo "$as_me:$LINENO: result: $ac_res" >&5
12285echo "${ECHO_T}$ac_res" >&6; }
12286
12287fi
12288if test `eval echo '${'$as_ac_Header'}'` = yes; then
12289 cat >>confdefs.h <<_ACEOF
12290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12291_ACEOF
12292
12293fi
12294
12295done
12296
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000012297
12298for ac_header in fenv.h
12299do
12300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306fi
12307ac_res=`eval echo '${'$as_ac_Header'}'`
12308 { echo "$as_me:$LINENO: result: $ac_res" >&5
12309echo "${ECHO_T}$ac_res" >&6; }
12310else
12311 # Is the header compilable?
12312{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12314cat >conftest.$ac_ext <<_ACEOF
12315/* confdefs.h. */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */
12320$ac_includes_default
12321#include <$ac_header>
12322_ACEOF
12323rm -f conftest.$ac_objext
12324if { (ac_try="$ac_compile"
12325case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_compile") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest.$ac_objext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351esac
12352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_header_compiler=yes
12358else
12359 echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 ac_header_compiler=no
12363fi
12364
12365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12367echo "${ECHO_T}$ac_header_compiler" >&6; }
12368
12369# Is the header present?
12370{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12372cat >conftest.$ac_ext <<_ACEOF
12373/* confdefs.h. */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h. */
12378#include <$ac_header>
12379_ACEOF
12380if { (ac_try="$ac_cpp conftest.$ac_ext"
12381case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384esac
12385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } >/dev/null; then
12393 if test -s conftest.err; then
12394 ac_cpp_err=$ac_c_preproc_warn_flag
12395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12396 else
12397 ac_cpp_err=
12398 fi
12399else
12400 ac_cpp_err=yes
12401fi
12402if test -z "$ac_cpp_err"; then
12403 ac_header_preproc=yes
12404else
12405 echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 ac_header_preproc=no
12409fi
12410
12411rm -f conftest.err conftest.$ac_ext
12412{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12413echo "${ECHO_T}$ac_header_preproc" >&6; }
12414
12415# So? What about this header?
12416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12417 yes:no: )
12418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12422 ac_header_preproc=yes
12423 ;;
12424 no:yes:* )
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12437 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000012438## ------------------------------------ ##
12439## Report this to http://llvm.org/bugs/ ##
12440## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000012441_ASBOX
12442 ) | sed "s/^/$as_me: WARNING: /" >&2
12443 ;;
12444esac
12445{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449else
12450 eval "$as_ac_Header=\$ac_header_preproc"
12451fi
12452ac_res=`eval echo '${'$as_ac_Header'}'`
12453 { echo "$as_me:$LINENO: result: $ac_res" >&5
12454echo "${ECHO_T}$ac_res" >&6; }
12455
12456fi
12457if test `eval echo '${'$as_ac_Header'}'` = yes; then
12458 cat >>confdefs.h <<_ACEOF
12459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12460_ACEOF
12461
12462fi
12463
12464done
12465
Joerg Sonnenbergerf9a71322013-03-25 13:13:33 +000012466{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12467echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12468if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h. */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h. */
12477#include <fenv.h>
12478
12479int
12480main ()
12481{
12482#ifndef FE_ALL_EXCEPT
12483 char *p = (char *) FE_ALL_EXCEPT;
12484 return !p;
12485#endif
12486
12487 ;
12488 return 0;
12489}
12490_ACEOF
12491rm -f conftest.$ac_objext
12492if { (ac_try="$ac_compile"
12493case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496esac
12497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_compile") 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12506 { (case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509esac
12510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_try") 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest.$ac_objext'
12516 { (case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12519esac
12520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_try") 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12526else
12527 echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 ac_cv_have_decl_FE_ALL_EXCEPT=no
12531fi
12532
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534fi
12535{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12536echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12537if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12538
12539cat >>confdefs.h <<_ACEOF
12540#define HAVE_DECL_FE_ALL_EXCEPT 1
12541_ACEOF
12542
12543
12544else
12545 cat >>confdefs.h <<_ACEOF
12546#define HAVE_DECL_FE_ALL_EXCEPT 0
12547_ACEOF
12548
12549
12550fi
12551{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12552echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12553if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12555else
12556 cat >conftest.$ac_ext <<_ACEOF
12557/* confdefs.h. */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h. */
12562#include <fenv.h>
12563
12564int
12565main ()
12566{
12567#ifndef FE_INEXACT
12568 char *p = (char *) FE_INEXACT;
12569 return !p;
12570#endif
12571
12572 ;
12573 return 0;
12574}
12575_ACEOF
12576rm -f conftest.$ac_objext
12577if { (ac_try="$ac_compile"
12578case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_compile") 2>conftest.er1
12584 ac_status=$?
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594esac
12595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_cv_have_decl_FE_INEXACT=yes
12611else
12612 echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615 ac_cv_have_decl_FE_INEXACT=no
12616fi
12617
12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619fi
12620{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12621echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12622if test $ac_cv_have_decl_FE_INEXACT = yes; then
12623
12624cat >>confdefs.h <<_ACEOF
12625#define HAVE_DECL_FE_INEXACT 1
12626_ACEOF
12627
12628
12629else
12630 cat >>confdefs.h <<_ACEOF
12631#define HAVE_DECL_FE_INEXACT 0
12632_ACEOF
12633
12634
12635fi
12636
12637
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012638if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012639
12640for ac_header in pthread.h
12641do
12642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648fi
12649ac_res=`eval echo '${'$as_ac_Header'}'`
12650 { echo "$as_me:$LINENO: result: $ac_res" >&5
12651echo "${ECHO_T}$ac_res" >&6; }
12652else
12653 # Is the header compilable?
12654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12656cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
12662$ac_includes_default
12663#include <$ac_header>
12664_ACEOF
12665rm -f conftest.$ac_objext
12666if { (ac_try="$ac_compile"
12667case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670esac
12671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_compile") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683esac
12684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693esac
12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 ac_header_compiler=yes
12700else
12701 echo "$as_me: failed program was:" >&5
12702sed 's/^/| /' conftest.$ac_ext >&5
12703
12704 ac_header_compiler=no
12705fi
12706
12707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12709echo "${ECHO_T}$ac_header_compiler" >&6; }
12710
12711# Is the header present?
12712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12714cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
12720#include <$ac_header>
12721_ACEOF
12722if { (ac_try="$ac_cpp conftest.$ac_ext"
12723case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } >/dev/null; then
12735 if test -s conftest.err; then
12736 ac_cpp_err=$ac_c_preproc_warn_flag
12737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12738 else
12739 ac_cpp_err=
12740 fi
12741else
12742 ac_cpp_err=yes
12743fi
12744if test -z "$ac_cpp_err"; then
12745 ac_header_preproc=yes
12746else
12747 echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
12750 ac_header_preproc=no
12751fi
12752
12753rm -f conftest.err conftest.$ac_ext
12754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12755echo "${ECHO_T}$ac_header_preproc" >&6; }
12756
12757# So? What about this header?
12758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12759 yes:no: )
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12764 ac_header_preproc=yes
12765 ;;
12766 no:yes:* )
12767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12779 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000012780## ------------------------------------ ##
12781## Report this to http://llvm.org/bugs/ ##
12782## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012783_ASBOX
12784 ) | sed "s/^/$as_me: WARNING: /" >&2
12785 ;;
12786esac
12787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791else
12792 eval "$as_ac_Header=\$ac_header_preproc"
12793fi
12794ac_res=`eval echo '${'$as_ac_Header'}'`
12795 { echo "$as_me:$LINENO: result: $ac_res" >&5
12796echo "${ECHO_T}$ac_res" >&6; }
12797
12798fi
12799if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000012800 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000012802_ACEOF
12803 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000012804
12805else
12806 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000012807
12808fi
12809
Reid Spencerbe3e4192007-08-17 05:45:26 +000012810done
Reid Spencer1000b732006-12-01 00:37:14 +000012811
12812else
12813 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000012814
12815fi
Alexey Samsonovee03c942013-04-23 08:28:39 +000012816if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12817
12818for ac_header in zlib.h
12819do
12820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826fi
12827ac_res=`eval echo '${'$as_ac_Header'}'`
12828 { echo "$as_me:$LINENO: result: $ac_res" >&5
12829echo "${ECHO_T}$ac_res" >&6; }
12830else
12831 # Is the header compilable?
12832{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12834cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
12840$ac_includes_default
12841#include <$ac_header>
12842_ACEOF
12843rm -f conftest.$ac_objext
12844if { (ac_try="$ac_compile"
12845case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848esac
12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_compile") 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871esac
12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_try") 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 ac_header_compiler=yes
12878else
12879 echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882 ac_header_compiler=no
12883fi
12884
12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12887echo "${ECHO_T}$ac_header_compiler" >&6; }
12888
12889# Is the header present?
12890{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12892cat >conftest.$ac_ext <<_ACEOF
12893/* confdefs.h. */
12894_ACEOF
12895cat confdefs.h >>conftest.$ac_ext
12896cat >>conftest.$ac_ext <<_ACEOF
12897/* end confdefs.h. */
12898#include <$ac_header>
12899_ACEOF
12900if { (ac_try="$ac_cpp conftest.$ac_ext"
12901case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } >/dev/null; then
12913 if test -s conftest.err; then
12914 ac_cpp_err=$ac_c_preproc_warn_flag
12915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12916 else
12917 ac_cpp_err=
12918 fi
12919else
12920 ac_cpp_err=yes
12921fi
12922if test -z "$ac_cpp_err"; then
12923 ac_header_preproc=yes
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 ac_header_preproc=no
12929fi
12930
12931rm -f conftest.err conftest.$ac_ext
12932{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12933echo "${ECHO_T}$ac_header_preproc" >&6; }
12934
12935# So? What about this header?
12936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12937 yes:no: )
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12942 ac_header_preproc=yes
12943 ;;
12944 no:yes:* )
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12948echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12952echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12957 ( cat <<\_ASBOX
12958## ------------------------------------ ##
12959## Report this to http://llvm.org/bugs/ ##
12960## ------------------------------------ ##
12961_ASBOX
12962 ) | sed "s/^/$as_me: WARNING: /" >&2
12963 ;;
12964esac
12965{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969else
12970 eval "$as_ac_Header=\$ac_header_preproc"
12971fi
12972ac_res=`eval echo '${'$as_ac_Header'}'`
12973 { echo "$as_me:$LINENO: result: $ac_res" >&5
12974echo "${ECHO_T}$ac_res" >&6; }
12975
12976fi
12977if test `eval echo '${'$as_ac_Header'}'` = yes; then
12978 cat >>confdefs.h <<_ACEOF
12979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12980_ACEOF
12981 HAVE_LIBZ=1
12982
12983else
12984 HAVE_LIBZ=0
12985
12986fi
12987
12988done
12989
12990else
12991 HAVE_LIBZ=0
12992
12993fi
Reid Spencer8085cff2005-01-16 02:58:39 +000012994
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012995if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012996
12997
12998for ac_header in ffi.h ffi/ffi.h
12999do
13000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006fi
13007ac_res=`eval echo '${'$as_ac_Header'}'`
13008 { echo "$as_me:$LINENO: result: $ac_res" >&5
13009echo "${ECHO_T}$ac_res" >&6; }
13010else
13011 # Is the header compilable?
13012{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13014cat >conftest.$ac_ext <<_ACEOF
13015/* confdefs.h. */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h. */
13020$ac_includes_default
13021#include <$ac_header>
13022_ACEOF
13023rm -f conftest.$ac_objext
13024if { (ac_try="$ac_compile"
13025case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_compile") 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13041esac
13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest.$ac_objext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_header_compiler=yes
13058else
13059 echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062 ac_header_compiler=no
13063fi
13064
13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067echo "${ECHO_T}$ac_header_compiler" >&6; }
13068
13069# Is the header present?
13070{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13072cat >conftest.$ac_ext <<_ACEOF
13073/* confdefs.h. */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h. */
13078#include <$ac_header>
13079_ACEOF
13080if { (ac_try="$ac_cpp conftest.$ac_ext"
13081case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13084esac
13085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } >/dev/null; then
13093 if test -s conftest.err; then
13094 ac_cpp_err=$ac_c_preproc_warn_flag
13095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13096 else
13097 ac_cpp_err=
13098 fi
13099else
13100 ac_cpp_err=yes
13101fi
13102if test -z "$ac_cpp_err"; then
13103 ac_header_preproc=yes
13104else
13105 echo "$as_me: failed program was:" >&5
13106sed 's/^/| /' conftest.$ac_ext >&5
13107
13108 ac_header_preproc=no
13109fi
13110
13111rm -f conftest.err conftest.$ac_ext
13112{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13113echo "${ECHO_T}$ac_header_preproc" >&6; }
13114
13115# So? What about this header?
13116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13117 yes:no: )
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13122 ac_header_preproc=yes
13123 ;;
13124 no:yes:* )
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13128echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13132echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13137 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013138## ------------------------------------ ##
13139## Report this to http://llvm.org/bugs/ ##
13140## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141_ASBOX
13142 ) | sed "s/^/$as_me: WARNING: /" >&2
13143 ;;
13144esac
13145{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150 eval "$as_ac_Header=\$ac_header_preproc"
13151fi
13152ac_res=`eval echo '${'$as_ac_Header'}'`
13153 { echo "$as_me:$LINENO: result: $ac_res" >&5
13154echo "${ECHO_T}$ac_res" >&6; }
13155
13156fi
13157if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013158 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013160_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013161
13162fi
13163
13164done
13165
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013166fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013167
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013168
Eric Christopher654dee42010-06-22 21:01:04 +000013169for ac_header in CrashReporterClient.h
13170do
13171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177fi
13178ac_res=`eval echo '${'$as_ac_Header'}'`
13179 { echo "$as_me:$LINENO: result: $ac_res" >&5
13180echo "${ECHO_T}$ac_res" >&6; }
13181else
13182 # Is the header compilable?
13183{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13185cat >conftest.$ac_ext <<_ACEOF
13186/* confdefs.h. */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h. */
13191$ac_includes_default
13192#include <$ac_header>
13193_ACEOF
13194rm -f conftest.$ac_objext
13195if { (ac_try="$ac_compile"
13196case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199esac
13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_compile") 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13209 { (case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212esac
13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_try") 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_try") 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_header_compiler=yes
13229else
13230 echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 ac_header_compiler=no
13234fi
13235
13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238echo "${ECHO_T}$ac_header_compiler" >&6; }
13239
13240# Is the header present?
13241{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13243cat >conftest.$ac_ext <<_ACEOF
13244/* confdefs.h. */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h. */
13249#include <$ac_header>
13250_ACEOF
13251if { (ac_try="$ac_cpp conftest.$ac_ext"
13252case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255esac
13256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } >/dev/null; then
13264 if test -s conftest.err; then
13265 ac_cpp_err=$ac_c_preproc_warn_flag
13266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13267 else
13268 ac_cpp_err=
13269 fi
13270else
13271 ac_cpp_err=yes
13272fi
13273if test -z "$ac_cpp_err"; then
13274 ac_header_preproc=yes
13275else
13276 echo "$as_me: failed program was:" >&5
13277sed 's/^/| /' conftest.$ac_ext >&5
13278
13279 ac_header_preproc=no
13280fi
13281
13282rm -f conftest.err conftest.$ac_ext
13283{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13284echo "${ECHO_T}$ac_header_preproc" >&6; }
13285
13286# So? What about this header?
13287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13288 yes:no: )
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13293 ac_header_preproc=yes
13294 ;;
13295 no:yes:* )
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13299echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13303echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13308 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013309## ------------------------------------ ##
13310## Report this to http://llvm.org/bugs/ ##
13311## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000013312_ASBOX
13313 ) | sed "s/^/$as_me: WARNING: /" >&2
13314 ;;
13315esac
13316{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13320else
13321 eval "$as_ac_Header=\$ac_header_preproc"
13322fi
13323ac_res=`eval echo '${'$as_ac_Header'}'`
13324 { echo "$as_me:$LINENO: result: $ac_res" >&5
13325echo "${ECHO_T}$ac_res" >&6; }
13326
13327fi
13328if test `eval echo '${'$as_ac_Header'}'` = yes; then
13329 cat >>confdefs.h <<_ACEOF
13330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13331_ACEOF
13332
13333fi
13334
13335done
13336
13337
Eric Christopher51e57132010-12-07 02:05:42 +000013338{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13339echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000013340cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000013341
13342 /* confdefs.h. */
Eric Christopher481d4022010-12-03 07:45:22 +000013343_ACEOF
13344cat confdefs.h >>conftest.$ac_ext
13345cat >>conftest.$ac_ext <<_ACEOF
13346/* end confdefs.h. */
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000013347
13348 extern const char *__crashreporter_info__;
13349 int main() {
13350 __crashreporter_info__ = "test";
13351 return 0;
13352 }
13353
Eric Christopher481d4022010-12-03 07:45:22 +000013354
Eric Christopher481d4022010-12-03 07:45:22 +000013355_ACEOF
13356rm -f conftest.$ac_objext conftest$ac_exeext
13357if { (ac_try="$ac_link"
13358case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000013390
Eric Christopher51e57132010-12-07 02:05:42 +000013391 { echo "$as_me:$LINENO: result: yes" >&5
13392echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000013393
13394cat >>confdefs.h <<\_ACEOF
13395#define HAVE_CRASHREPORTER_INFO 1
13396_ACEOF
13397
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000013398
Eric Christopher51e57132010-12-07 02:05:42 +000013399else
13400 echo "$as_me: failed program was:" >&5
13401sed 's/^/| /' conftest.$ac_ext >&5
13402
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000013403
13404 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopher51e57132010-12-07 02:05:42 +000013405echo "${ECHO_T}no" >&6; }
13406
13407cat >>confdefs.h <<\_ACEOF
13408#define HAVE_CRASHREPORTER_INFO 0
13409_ACEOF
13410
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000013411
Eric Christopher481d4022010-12-03 07:45:22 +000013412fi
Eric Christopher654dee42010-06-22 21:01:04 +000013413
Eric Christopher51e57132010-12-07 02:05:42 +000013414rm -f core conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13416
13417
Reid Spencer8085cff2005-01-16 02:58:39 +000013418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013419 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13420echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13421if test "${ac_cv_huge_val_sanity+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000013423else
13424
Reid Spencer6a7c0b72006-11-03 19:49:16 +000013425 ac_ext=cpp
13426ac_cpp='$CXXCPP $CPPFLAGS'
13427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000013430
Eric Christopherc7718502010-03-02 05:06:54 +000013431 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000013432 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000013434 ac_cv_huge_val_sanity=yes
13435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436 cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h. */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000013441/* end confdefs.h. */
13442#include <math.h>
13443int
13444main ()
13445{
13446double x = HUGE_VAL; return x != x;
13447 ;
13448 return 0;
13449}
13450_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451rm -f conftest$ac_exeext
13452if { (ac_try="$ac_link"
13453case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456esac
13457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_link") 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000013471 ac_cv_huge_val_sanity=yes
13472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013473 echo "$as_me: program exited with status $ac_status" >&5
13474echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477( exit $ac_status )
13478ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000013479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencerb2ed05262006-11-03 18:04:08 +000013481fi
13482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013483
Eric Christopherc7718502010-03-02 05:06:54 +000013484 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000013485 ac_ext=c
13486ac_cpp='$CPP $CPPFLAGS'
13487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489ac_compiler_gnu=$ac_cv_c_compiler_gnu
13490
13491
13492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13494echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000013495 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13496
13497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013498{ echo "$as_me:$LINENO: checking for pid_t" >&5
13499echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13500if test "${ac_cv_type_pid_t+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502else
13503 cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h. */
13509$ac_includes_default
13510typedef pid_t ac__type_new_;
13511int
13512main ()
13513{
13514if ((ac__type_new_ *) 0)
13515 return 0;
13516if (sizeof (ac__type_new_))
13517 return 0;
13518 ;
13519 return 0;
13520}
13521_ACEOF
13522rm -f conftest.$ac_objext
13523if { (ac_try="$ac_compile"
13524case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527esac
13528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_compile") 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540esac
13541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest.$ac_objext'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_cv_type_pid_t=yes
13557else
13558 echo "$as_me: failed program was:" >&5
13559sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013561 ac_cv_type_pid_t=no
13562fi
13563
13564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565fi
13566{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13567echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13568if test $ac_cv_type_pid_t = yes; then
13569 :
John Criswell7a73b802003-06-30 21:59:07 +000013570else
13571
13572cat >>confdefs.h <<_ACEOF
13573#define pid_t int
13574_ACEOF
13575
13576fi
13577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013578{ echo "$as_me:$LINENO: checking for size_t" >&5
13579echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13580if test "${ac_cv_type_size_t+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582else
13583 cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h. */
13589$ac_includes_default
13590typedef size_t ac__type_new_;
13591int
13592main ()
13593{
13594if ((ac__type_new_ *) 0)
13595 return 0;
13596if (sizeof (ac__type_new_))
13597 return 0;
13598 ;
13599 return 0;
13600}
13601_ACEOF
13602rm -f conftest.$ac_objext
13603if { (ac_try="$ac_compile"
13604case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_compile") 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13630esac
13631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_try") 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_type_size_t=yes
13637else
13638 echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013641 ac_cv_type_size_t=no
13642fi
13643
13644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645fi
13646{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13647echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13648if test $ac_cv_type_size_t = yes; then
13649 :
John Criswell7a73b802003-06-30 21:59:07 +000013650else
13651
13652cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013653#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000013654_ACEOF
13655
13656fi
13657
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013658
13659cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013660#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013661_ACEOF
13662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013663{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13664echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13665if test "${ac_cv_struct_tm+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013668 cat >conftest.$ac_ext <<_ACEOF
13669/* confdefs.h. */
13670_ACEOF
13671cat confdefs.h >>conftest.$ac_ext
13672cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013673/* end confdefs.h. */
13674#include <sys/types.h>
13675#include <time.h>
13676
13677int
13678main ()
13679{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013680struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013681 ;
13682 return 0;
13683}
13684_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013685rm -f conftest.$ac_objext
13686if { (ac_try="$ac_compile"
13687case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690esac
13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_compile") 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703esac
13704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest.$ac_objext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013719 ac_cv_struct_tm=time.h
13720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013721 echo "$as_me: failed program was:" >&5
13722sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013725fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013726
Reid Spencera773bd52006-08-04 18:18:08 +000013727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013729{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13730echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013731if test $ac_cv_struct_tm = sys/time.h; then
13732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013733cat >>confdefs.h <<\_ACEOF
13734#define TM_IN_SYS_TIME 1
13735_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013736
13737fi
13738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013739{ echo "$as_me:$LINENO: checking for int64_t" >&5
13740echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13741if test "${ac_cv_type_int64_t+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743else
13744 cat >conftest.$ac_ext <<_ACEOF
13745/* confdefs.h. */
13746_ACEOF
13747cat confdefs.h >>conftest.$ac_ext
13748cat >>conftest.$ac_ext <<_ACEOF
13749/* end confdefs.h. */
13750$ac_includes_default
13751typedef int64_t ac__type_new_;
13752int
13753main ()
13754{
13755if ((ac__type_new_ *) 0)
13756 return 0;
13757if (sizeof (ac__type_new_))
13758 return 0;
13759 ;
13760 return 0;
13761}
13762_ACEOF
13763rm -f conftest.$ac_objext
13764if { (ac_try="$ac_compile"
13765case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13768esac
13769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_compile") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781esac
13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest.$ac_objext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791esac
13792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_cv_type_int64_t=yes
13798else
13799 echo "$as_me: failed program was:" >&5
13800sed 's/^/| /' conftest.$ac_ext >&5
13801
13802 ac_cv_type_int64_t=no
13803fi
13804
13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806fi
13807{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13808echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13809if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000013810
13811cat >>confdefs.h <<_ACEOF
13812#define HAVE_INT64_T 1
13813_ACEOF
13814
13815
13816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013817 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13818echo "$as_me: error: Type int64_t required but not found" >&2;}
13819 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000013820fi
13821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013822{ echo "$as_me:$LINENO: checking for uint64_t" >&5
13823echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13824if test "${ac_cv_type_uint64_t+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13826else
13827 cat >conftest.$ac_ext <<_ACEOF
13828/* confdefs.h. */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h. */
13833$ac_includes_default
13834typedef uint64_t ac__type_new_;
13835int
13836main ()
13837{
13838if ((ac__type_new_ *) 0)
13839 return 0;
13840if (sizeof (ac__type_new_))
13841 return 0;
13842 ;
13843 return 0;
13844}
13845_ACEOF
13846rm -f conftest.$ac_objext
13847if { (ac_try="$ac_compile"
13848case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851esac
13852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_compile") 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864esac
13865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest.$ac_objext'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874esac
13875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_cv_type_uint64_t=yes
13881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_cv_type_uint64_t=no
13886fi
13887
13888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889fi
13890{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13891echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13892if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000013893
13894cat >>confdefs.h <<_ACEOF
13895#define HAVE_UINT64_T 1
13896_ACEOF
13897
13898
13899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013900 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13901echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13902if test "${ac_cv_type_u_int64_t+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 cat >conftest.$ac_ext <<_ACEOF
13906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
13911$ac_includes_default
13912typedef u_int64_t ac__type_new_;
13913int
13914main ()
13915{
13916if ((ac__type_new_ *) 0)
13917 return 0;
13918if (sizeof (ac__type_new_))
13919 return 0;
13920 ;
13921 return 0;
13922}
13923_ACEOF
13924rm -f conftest.$ac_objext
13925if { (ac_try="$ac_compile"
13926case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929esac
13930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_compile") 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942esac
13943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952esac
13953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_type_u_int64_t=yes
13959else
13960 echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963 ac_cv_type_u_int64_t=no
13964fi
13965
13966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967fi
13968{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13969echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13970if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000013971
13972cat >>confdefs.h <<_ACEOF
13973#define HAVE_U_INT64_T 1
13974_ACEOF
13975
13976
Misha Brukmanceca9042004-09-02 23:02:30 +000013977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13979echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13980 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000013981fi
13982
John Criswell679ff312004-09-02 18:44:44 +000013983fi
13984
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013985
13986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987
13988
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070013989for ac_func in backtrace getcwd
Owen Andersonec643ab2013-02-07 00:21:34 +000013990do
13991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13992{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13994if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996else
13997 cat >conftest.$ac_ext <<_ACEOF
13998/* confdefs.h. */
13999_ACEOF
14000cat confdefs.h >>conftest.$ac_ext
14001cat >>conftest.$ac_ext <<_ACEOF
14002/* end confdefs.h. */
14003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14005#define $ac_func innocuous_$ac_func
14006
14007/* System header to define __stub macros and hopefully few prototypes,
14008 which can conflict with char $ac_func (); below.
14009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14010 <limits.h> exists even on freestanding compilers. */
14011
14012#ifdef __STDC__
14013# include <limits.h>
14014#else
14015# include <assert.h>
14016#endif
14017
14018#undef $ac_func
14019
14020/* Override any GCC internal prototype to avoid an error.
14021 Use char because int might match the return type of a GCC
14022 builtin and then its argument prototype would still apply. */
14023#ifdef __cplusplus
14024extern "C"
14025#endif
14026char $ac_func ();
14027/* The GNU C library defines this for functions which it implements
14028 to always fail with ENOSYS. Some functions are actually named
14029 something starting with __ and the normal name is an alias. */
14030#if defined __stub_$ac_func || defined __stub___$ac_func
14031choke me
14032#endif
14033
14034int
14035main ()
14036{
14037return $ac_func ();
14038 ;
14039 return 0;
14040}
14041_ACEOF
14042rm -f conftest.$ac_objext conftest$ac_exeext
14043if { (ac_try="$ac_link"
14044case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14047esac
14048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_link") 2>conftest.er1
14050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060esac
14061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest$ac_exeext'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14070esac
14071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 eval "$as_ac_var=yes"
14077else
14078 echo "$as_me: failed program was:" >&5
14079sed 's/^/| /' conftest.$ac_ext >&5
14080
14081 eval "$as_ac_var=no"
14082fi
14083
14084rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086fi
14087ac_res=`eval echo '${'$as_ac_var'}'`
14088 { echo "$as_me:$LINENO: result: $ac_res" >&5
14089echo "${ECHO_T}$ac_res" >&6; }
14090if test `eval echo '${'$as_ac_var'}'` = yes; then
14091 cat >>confdefs.h <<_ACEOF
14092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093_ACEOF
14094
14095fi
14096done
14097
14098
14099
14100
14101
14102
Reid Spencerb90645c2007-02-16 19:17:20 +000014103for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014104do
14105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14108if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111 cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
14116/* end confdefs.h. */
14117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14119#define $ac_func innocuous_$ac_func
14120
14121/* System header to define __stub macros and hopefully few prototypes,
14122 which can conflict with char $ac_func (); below.
14123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14124 <limits.h> exists even on freestanding compilers. */
14125
14126#ifdef __STDC__
14127# include <limits.h>
14128#else
14129# include <assert.h>
14130#endif
14131
14132#undef $ac_func
14133
14134/* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14137#ifdef __cplusplus
14138extern "C"
14139#endif
14140char $ac_func ();
14141/* The GNU C library defines this for functions which it implements
14142 to always fail with ENOSYS. Some functions are actually named
14143 something starting with __ and the normal name is an alias. */
14144#if defined __stub_$ac_func || defined __stub___$ac_func
14145choke me
14146#endif
14147
14148int
14149main ()
14150{
14151return $ac_func ();
14152 ;
14153 return 0;
14154}
14155_ACEOF
14156rm -f conftest.$ac_objext conftest$ac_exeext
14157if { (ac_try="$ac_link"
14158case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14161esac
14162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_link") 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174esac
14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184esac
14185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 eval "$as_ac_var=yes"
14191else
14192 echo "$as_me: failed program was:" >&5
14193sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 eval "$as_ac_var=no"
14196fi
14197
14198rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext conftest.$ac_ext
14200fi
14201ac_res=`eval echo '${'$as_ac_var'}'`
14202 { echo "$as_me:$LINENO: result: $ac_res" >&5
14203echo "${ECHO_T}$ac_res" >&6; }
14204if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000014205 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000014207_ACEOF
14208
14209fi
14210done
14211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212
14213
14214
Reid Spencerb90645c2007-02-16 19:17:20 +000014215for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014216do
14217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14222else
14223 cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h. */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
14228/* end confdefs.h. */
14229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14231#define $ac_func innocuous_$ac_func
14232
14233/* System header to define __stub macros and hopefully few prototypes,
14234 which can conflict with char $ac_func (); below.
14235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236 <limits.h> exists even on freestanding compilers. */
14237
14238#ifdef __STDC__
14239# include <limits.h>
14240#else
14241# include <assert.h>
14242#endif
14243
14244#undef $ac_func
14245
14246/* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249#ifdef __cplusplus
14250extern "C"
14251#endif
14252char $ac_func ();
14253/* The GNU C library defines this for functions which it implements
14254 to always fail with ENOSYS. Some functions are actually named
14255 something starting with __ and the normal name is an alias. */
14256#if defined __stub_$ac_func || defined __stub___$ac_func
14257choke me
14258#endif
14259
14260int
14261main ()
14262{
14263return $ac_func ();
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268rm -f conftest.$ac_objext conftest$ac_exeext
14269if { (ac_try="$ac_link"
14270case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14273esac
14274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_link") 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14283 { (case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286esac
14287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_try") 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; } &&
14292 { ac_try='test -s conftest$ac_exeext'
14293 { (case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14296esac
14297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_try") 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 eval "$as_ac_var=yes"
14303else
14304 echo "$as_me: failed program was:" >&5
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
14307 eval "$as_ac_var=no"
14308fi
14309
14310rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14312fi
14313ac_res=`eval echo '${'$as_ac_var'}'`
14314 { echo "$as_me:$LINENO: result: $ac_res" >&5
14315echo "${ECHO_T}$ac_res" >&6; }
14316if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000014317 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000014319_ACEOF
14320
14321fi
14322done
14323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014324
14325
14326
14327
14328
Eric Christophere4291822010-04-16 05:14:21 +000014329
Eric Christopherd23cd022013-07-26 17:13:47 +000014330for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331do
14332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337else
14338 cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
14344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14346#define $ac_func innocuous_$ac_func
14347
14348/* System header to define __stub macros and hopefully few prototypes,
14349 which can conflict with char $ac_func (); below.
14350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351 <limits.h> exists even on freestanding compilers. */
14352
14353#ifdef __STDC__
14354# include <limits.h>
14355#else
14356# include <assert.h>
14357#endif
14358
14359#undef $ac_func
14360
14361/* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14364#ifdef __cplusplus
14365extern "C"
14366#endif
14367char $ac_func ();
14368/* The GNU C library defines this for functions which it implements
14369 to always fail with ENOSYS. Some functions are actually named
14370 something starting with __ and the normal name is an alias. */
14371#if defined __stub_$ac_func || defined __stub___$ac_func
14372choke me
14373#endif
14374
14375int
14376main ()
14377{
14378return $ac_func ();
14379 ;
14380 return 0;
14381}
14382_ACEOF
14383rm -f conftest.$ac_objext conftest$ac_exeext
14384if { (ac_try="$ac_link"
14385case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388esac
14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_link") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411esac
14412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 eval "$as_ac_var=yes"
14418else
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 eval "$as_ac_var=no"
14423fi
14424
14425rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14427fi
14428ac_res=`eval echo '${'$as_ac_var'}'`
14429 { echo "$as_me:$LINENO: result: $ac_res" >&5
14430echo "${ECHO_T}$ac_res" >&6; }
14431if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000014432 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000014434_ACEOF
14435
14436fi
14437done
Reid Spencerdf3be822006-01-23 08:15:53 +000014438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014439
14440
14441
Stephen Hines36b56882014-04-23 16:57:46 -070014442for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014443do
14444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14445{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449else
14450 cat >conftest.$ac_ext <<_ACEOF
14451/* confdefs.h. */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
14455/* end confdefs.h. */
14456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14458#define $ac_func innocuous_$ac_func
14459
14460/* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char $ac_func (); below.
14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463 <limits.h> exists even on freestanding compilers. */
14464
14465#ifdef __STDC__
14466# include <limits.h>
14467#else
14468# include <assert.h>
14469#endif
14470
14471#undef $ac_func
14472
14473/* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14476#ifdef __cplusplus
14477extern "C"
14478#endif
14479char $ac_func ();
14480/* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483#if defined __stub_$ac_func || defined __stub___$ac_func
14484choke me
14485#endif
14486
14487int
14488main ()
14489{
14490return $ac_func ();
14491 ;
14492 return 0;
14493}
14494_ACEOF
14495rm -f conftest.$ac_objext conftest$ac_exeext
14496if { (ac_try="$ac_link"
14497case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14500esac
14501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_link") 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510 { (case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513esac
14514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_try") 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest$ac_exeext'
14520 { (case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523esac
14524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_try") 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 eval "$as_ac_var=yes"
14530else
14531 echo "$as_me: failed program was:" >&5
14532sed 's/^/| /' conftest.$ac_ext >&5
14533
14534 eval "$as_ac_var=no"
14535fi
14536
14537rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539fi
14540ac_res=`eval echo '${'$as_ac_var'}'`
14541 { echo "$as_me:$LINENO: result: $ac_res" >&5
14542echo "${ECHO_T}$ac_res" >&6; }
14543if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000014544 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000014546_ACEOF
14547
14548fi
14549done
14550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014551
14552
14553
14554
Chris Lattner511f11d2005-11-14 07:25:50 +000014555for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014556do
14557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14558{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562else
14563 cat >conftest.$ac_ext <<_ACEOF
14564/* confdefs.h. */
14565_ACEOF
14566cat confdefs.h >>conftest.$ac_ext
14567cat >>conftest.$ac_ext <<_ACEOF
14568/* end confdefs.h. */
14569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14571#define $ac_func innocuous_$ac_func
14572
14573/* System header to define __stub macros and hopefully few prototypes,
14574 which can conflict with char $ac_func (); below.
14575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14576 <limits.h> exists even on freestanding compilers. */
14577
14578#ifdef __STDC__
14579# include <limits.h>
14580#else
14581# include <assert.h>
14582#endif
14583
14584#undef $ac_func
14585
14586/* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14589#ifdef __cplusplus
14590extern "C"
14591#endif
14592char $ac_func ();
14593/* The GNU C library defines this for functions which it implements
14594 to always fail with ENOSYS. Some functions are actually named
14595 something starting with __ and the normal name is an alias. */
14596#if defined __stub_$ac_func || defined __stub___$ac_func
14597choke me
14598#endif
14599
14600int
14601main ()
14602{
14603return $ac_func ();
14604 ;
14605 return 0;
14606}
14607_ACEOF
14608rm -f conftest.$ac_objext conftest$ac_exeext
14609if { (ac_try="$ac_link"
14610case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613esac
14614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_link") 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14623 { (case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626esac
14627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_try") 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest$ac_exeext'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636esac
14637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 eval "$as_ac_var=yes"
14643else
14644 echo "$as_me: failed program was:" >&5
14645sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 eval "$as_ac_var=no"
14648fi
14649
14650rm -f core conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14652fi
14653ac_res=`eval echo '${'$as_ac_var'}'`
14654 { echo "$as_me:$LINENO: result: $ac_res" >&5
14655echo "${ECHO_T}$ac_res" >&6; }
14656if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014657 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000014659_ACEOF
14660
14661fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014662done
John Criswell7a73b802003-06-30 21:59:07 +000014663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014664
14665
14666
14667
Daniel Dunbar3e462932011-02-03 02:40:02 +000014668
14669for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014670do
14671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14672{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14676else
14677 cat >conftest.$ac_ext <<_ACEOF
14678/* confdefs.h. */
14679_ACEOF
14680cat confdefs.h >>conftest.$ac_ext
14681cat >>conftest.$ac_ext <<_ACEOF
14682/* end confdefs.h. */
14683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14685#define $ac_func innocuous_$ac_func
14686
14687/* System header to define __stub macros and hopefully few prototypes,
14688 which can conflict with char $ac_func (); below.
14689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14690 <limits.h> exists even on freestanding compilers. */
14691
14692#ifdef __STDC__
14693# include <limits.h>
14694#else
14695# include <assert.h>
14696#endif
14697
14698#undef $ac_func
14699
14700/* Override any GCC internal prototype to avoid an error.
14701 Use char because int might match the return type of a GCC
14702 builtin and then its argument prototype would still apply. */
14703#ifdef __cplusplus
14704extern "C"
14705#endif
14706char $ac_func ();
14707/* The GNU C library defines this for functions which it implements
14708 to always fail with ENOSYS. Some functions are actually named
14709 something starting with __ and the normal name is an alias. */
14710#if defined __stub_$ac_func || defined __stub___$ac_func
14711choke me
14712#endif
14713
14714int
14715main ()
14716{
14717return $ac_func ();
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722rm -f conftest.$ac_objext conftest$ac_exeext
14723if { (ac_try="$ac_link"
14724case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727esac
14728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_link") 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740esac
14741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 eval "$as_ac_var=yes"
14757else
14758 echo "$as_me: failed program was:" >&5
14759sed 's/^/| /' conftest.$ac_ext >&5
14760
14761 eval "$as_ac_var=no"
14762fi
14763
14764rm -f core conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14766fi
14767ac_res=`eval echo '${'$as_ac_var'}'`
14768 { echo "$as_me:$LINENO: result: $ac_res" >&5
14769echo "${ECHO_T}$ac_res" >&6; }
14770if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000014771 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000014773_ACEOF
14774
14775fi
14776done
14777
Eric Christopherc589a5f2013-07-04 01:10:38 +000014778
14779
14780for ac_func in futimes futimens
14781do
14782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787else
14788 cat >conftest.$ac_ext <<_ACEOF
14789/* confdefs.h. */
14790_ACEOF
14791cat confdefs.h >>conftest.$ac_ext
14792cat >>conftest.$ac_ext <<_ACEOF
14793/* end confdefs.h. */
14794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14796#define $ac_func innocuous_$ac_func
14797
14798/* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char $ac_func (); below.
14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801 <limits.h> exists even on freestanding compilers. */
14802
14803#ifdef __STDC__
14804# include <limits.h>
14805#else
14806# include <assert.h>
14807#endif
14808
14809#undef $ac_func
14810
14811/* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14814#ifdef __cplusplus
14815extern "C"
14816#endif
14817char $ac_func ();
14818/* The GNU C library defines this for functions which it implements
14819 to always fail with ENOSYS. Some functions are actually named
14820 something starting with __ and the normal name is an alias. */
14821#if defined __stub_$ac_func || defined __stub___$ac_func
14822choke me
14823#endif
14824
14825int
14826main ()
14827{
14828return $ac_func ();
14829 ;
14830 return 0;
14831}
14832_ACEOF
14833rm -f conftest.$ac_objext conftest$ac_exeext
14834if { (ac_try="$ac_link"
14835case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838esac
14839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848 { (case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851esac
14852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_try") 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest$ac_exeext'
14858 { (case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14861esac
14862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_try") 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 eval "$as_ac_var=yes"
14868else
14869 echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872 eval "$as_ac_var=no"
14873fi
14874
14875rm -f core conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
14877fi
14878ac_res=`eval echo '${'$as_ac_var'}'`
14879 { echo "$as_me:$LINENO: result: $ac_res" >&5
14880echo "${ECHO_T}$ac_res" >&6; }
14881if test `eval echo '${'$as_ac_var'}'` = yes; then
14882 cat >>confdefs.h <<_ACEOF
14883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14884_ACEOF
14885
14886fi
14887done
14888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014889{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14890echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14891if test "${llvm_cv_c_printf_a+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014893else
Reid Spencer2706f8c2004-09-19 23:53:36 +000014894 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000014895ac_cpp='$CPP $CPPFLAGS'
14896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014900 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000014901 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000014902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014903 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000014904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014905 /* confdefs.h. */
14906_ACEOF
14907cat confdefs.h >>conftest.$ac_ext
14908cat >>conftest.$ac_ext <<_ACEOF
14909/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000014910
John Criswella0137d32003-10-13 16:22:01 +000014911#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000014912#include <stdlib.h>
14913
John Criswella0137d32003-10-13 16:22:01 +000014914int
14915main ()
14916{
14917
Reid Spencer2706f8c2004-09-19 23:53:36 +000014918volatile double A, B;
14919char Buffer[100];
14920A = 1;
14921A /= 10.0;
14922sprintf(Buffer, "%a", A);
14923B = atof(Buffer);
14924if (A != B)
14925 return (1);
14926if (A != 0x1.999999999999ap-4)
14927 return (1);
14928return (0);
John Criswella0137d32003-10-13 16:22:01 +000014929 ;
14930 return 0;
14931}
14932_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933rm -f conftest$ac_exeext
14934if { (ac_try="$ac_link"
14935case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938esac
14939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_link") 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14944 { (case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947esac
14948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_try") 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000014953 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000014954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014955 echo "$as_me: program exited with status $ac_status" >&5
14956echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
14959( exit $ac_status )
14960llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000014961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000014963fi
Reid Spencera773bd52006-08-04 18:18:08 +000014964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965
Reid Spencer2706f8c2004-09-19 23:53:36 +000014966 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000014967ac_cpp='$CPP $CPPFLAGS'
14968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014973{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14974echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000014975 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000014976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014977cat >>confdefs.h <<\_ACEOF
14978#define HAVE_PRINTF_A 1
14979_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000014980
Reid Spencer2706f8c2004-09-19 23:53:36 +000014981 fi
John Criswella0137d32003-10-13 16:22:01 +000014982
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014983
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000014984
14985 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014986echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14987if test "${ac_cv_func_rand48+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014989else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000014990
14991 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014992ac_cpp='$CXXCPP $CPPFLAGS'
14993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14996
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000014997 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014998/* confdefs.h. */
14999_ACEOF
15000cat confdefs.h >>conftest.$ac_ext
15001cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015002/* end confdefs.h. */
15003#include <stdlib.h>
15004int
15005main ()
15006{
15007srand48(0);lrand48();drand48();
15008 ;
15009 return 0;
15010}
15011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015012rm -f conftest.$ac_objext
15013if { (ac_try="$ac_compile"
15014case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017esac
15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030esac
15031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040esac
15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_try") 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015046 ac_cv_func_rand48=yes
15047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015048 echo "$as_me: failed program was:" >&5
15049sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015053
Reid Spencera773bd52006-08-04 18:18:08 +000015054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000015055 ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015056ac_cpp='$CPP $CPPFLAGS'
15057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059ac_compiler_gnu=$ac_cv_c_compiler_gnu
15060
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000015061
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015063{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15064echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015065
15066if test "$ac_cv_func_rand48" = "yes" ; then
15067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015068cat >>confdefs.h <<\_ACEOF
15069#define HAVE_RAND48 1
15070_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015071
15072fi
John Criswell0021c312004-02-13 21:57:29 +000015073
15074
Stephen Hines36b56882014-04-23 16:57:46 -070015075{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15076echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15077if test "${ac_cv_have_decl_arc4random+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079else
15080 cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087int
15088main ()
15089{
15090#ifndef arc4random
15091 char *p = (char *) arc4random;
15092 return !p;
15093#endif
15094
15095 ;
15096 return 0;
15097}
15098_ACEOF
15099rm -f conftest.$ac_objext
15100if { (ac_try="$ac_compile"
15101case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_compile") 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15114 { (case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_try") 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127esac
15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_try") 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_have_decl_arc4random=yes
15134else
15135 echo "$as_me: failed program was:" >&5
15136sed 's/^/| /' conftest.$ac_ext >&5
15137
15138 ac_cv_have_decl_arc4random=no
15139fi
15140
15141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142fi
15143{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15144echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15145if test $ac_cv_have_decl_arc4random = yes; then
15146
15147cat >>confdefs.h <<_ACEOF
15148#define HAVE_DECL_ARC4RANDOM 1
15149_ACEOF
15150
15151
15152else
15153 cat >>confdefs.h <<_ACEOF
15154#define HAVE_DECL_ARC4RANDOM 0
15155_ACEOF
15156
15157
15158fi
15159
15160
15161
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000015162{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15163echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15164if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else
15167 cat >conftest.$ac_ext <<_ACEOF
15168/* confdefs.h. */
15169_ACEOF
15170cat confdefs.h >>conftest.$ac_ext
15171cat >>conftest.$ac_ext <<_ACEOF
15172/* end confdefs.h. */
15173$ac_includes_default
15174int
15175main ()
15176{
15177#ifndef strerror_s
15178 char *p = (char *) strerror_s;
15179 return !p;
15180#endif
15181
15182 ;
15183 return 0;
15184}
15185_ACEOF
15186rm -f conftest.$ac_objext
15187if { (ac_try="$ac_compile"
15188case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15191esac
15192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_compile") 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest.$ac_objext'
15211 { (case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214esac
15215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_try") 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_have_decl_strerror_s=yes
15221else
15222 echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 ac_cv_have_decl_strerror_s=no
15226fi
15227
15228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229fi
15230{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15231echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15232if test $ac_cv_have_decl_strerror_s = yes; then
15233
15234cat >>confdefs.h <<_ACEOF
15235#define HAVE_DECL_STRERROR_S 1
15236_ACEOF
15237
15238
15239else
15240 cat >>confdefs.h <<_ACEOF
15241#define HAVE_DECL_STRERROR_S 0
15242_ACEOF
15243
15244
15245fi
15246
15247
15248
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000015249if test "$llvm_cv_os_type" = "MingW" ; then
15250 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15251echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15252if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254else
15255 ac_check_lib_save_LIBS=$LIBS
15256LIBS="-lgcc $LIBS"
15257cat >conftest.$ac_ext <<_ACEOF
15258/* confdefs.h. */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h. */
15263
15264/* Override any GCC internal prototype to avoid an error.
15265 Use char because int might match the return type of a GCC
15266 builtin and then its argument prototype would still apply. */
15267#ifdef __cplusplus
15268extern "C"
15269#endif
15270char _alloca ();
15271int
15272main ()
15273{
15274return _alloca ();
15275 ;
15276 return 0;
15277}
15278_ACEOF
15279rm -f conftest.$ac_objext conftest$ac_exeext
15280if { (ac_try="$ac_link"
15281case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15284esac
15285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_link") 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297esac
15298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest$ac_exeext'
15304 { (case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307esac
15308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_try") 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_cv_lib_gcc__alloca=yes
15314else
15315 echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 ac_cv_lib_gcc__alloca=no
15319fi
15320
15321rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323LIBS=$ac_check_lib_save_LIBS
15324fi
15325{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15326echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15327if test $ac_cv_lib_gcc__alloca = yes; then
15328
15329cat >>confdefs.h <<\_ACEOF
15330#define HAVE__ALLOCA 1
15331_ACEOF
15332
15333fi
15334
15335 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15336echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15337if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339else
15340 ac_check_lib_save_LIBS=$LIBS
15341LIBS="-lgcc $LIBS"
15342cat >conftest.$ac_ext <<_ACEOF
15343/* confdefs.h. */
15344_ACEOF
15345cat confdefs.h >>conftest.$ac_ext
15346cat >>conftest.$ac_ext <<_ACEOF
15347/* end confdefs.h. */
15348
15349/* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15352#ifdef __cplusplus
15353extern "C"
15354#endif
15355char __alloca ();
15356int
15357main ()
15358{
15359return __alloca ();
15360 ;
15361 return 0;
15362}
15363_ACEOF
15364rm -f conftest.$ac_objext conftest$ac_exeext
15365if { (ac_try="$ac_link"
15366case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369esac
15370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382esac
15383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest$ac_exeext'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392esac
15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_lib_gcc___alloca=yes
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 ac_cv_lib_gcc___alloca=no
15404fi
15405
15406rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408LIBS=$ac_check_lib_save_LIBS
15409fi
15410{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15411echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15412if test $ac_cv_lib_gcc___alloca = yes; then
15413
15414cat >>confdefs.h <<\_ACEOF
15415#define HAVE___ALLOCA 1
15416_ACEOF
15417
15418fi
15419
15420 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15421echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15422if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15424else
15425 ac_check_lib_save_LIBS=$LIBS
15426LIBS="-lgcc $LIBS"
15427cat >conftest.$ac_ext <<_ACEOF
15428/* confdefs.h. */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h. */
15433
15434/* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15437#ifdef __cplusplus
15438extern "C"
15439#endif
15440char __chkstk ();
15441int
15442main ()
15443{
15444return __chkstk ();
15445 ;
15446 return 0;
15447}
15448_ACEOF
15449rm -f conftest.$ac_objext conftest$ac_exeext
15450if { (ac_try="$ac_link"
15451case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454esac
15455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_link") 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464 { (case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15467esac
15468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_try") 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest$ac_exeext'
15474 { (case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477esac
15478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_try") 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_lib_gcc___chkstk=yes
15484else
15485 echo "$as_me: failed program was:" >&5
15486sed 's/^/| /' conftest.$ac_ext >&5
15487
15488 ac_cv_lib_gcc___chkstk=no
15489fi
15490
15491rm -f core conftest.err conftest.$ac_objext \
15492 conftest$ac_exeext conftest.$ac_ext
15493LIBS=$ac_check_lib_save_LIBS
15494fi
15495{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15496echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15497if test $ac_cv_lib_gcc___chkstk = yes; then
15498
15499cat >>confdefs.h <<\_ACEOF
15500#define HAVE___CHKSTK 1
15501_ACEOF
15502
15503fi
15504
Stephen Hinesebe69fe2015-03-23 12:10:34 -070015505 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15506echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15507if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509else
15510 ac_check_lib_save_LIBS=$LIBS
15511LIBS="-lgcc $LIBS"
15512cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h. */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h. */
15518
15519/* Override any GCC internal prototype to avoid an error.
15520 Use char because int might match the return type of a GCC
15521 builtin and then its argument prototype would still apply. */
15522#ifdef __cplusplus
15523extern "C"
15524#endif
15525char __chkstk_ms ();
15526int
15527main ()
15528{
15529return __chkstk_ms ();
15530 ;
15531 return 0;
15532}
15533_ACEOF
15534rm -f conftest.$ac_objext conftest$ac_exeext
15535if { (ac_try="$ac_link"
15536case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15539esac
15540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_link") 2>conftest.er1
15542 ac_status=$?
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552esac
15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest$ac_exeext'
15559 { (case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15562esac
15563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_try") 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_cv_lib_gcc___chkstk_ms=yes
15569else
15570 echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ac_cv_lib_gcc___chkstk_ms=no
15574fi
15575
15576rm -f core conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15578LIBS=$ac_check_lib_save_LIBS
15579fi
15580{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15581echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15582if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15583
15584cat >>confdefs.h <<\_ACEOF
15585#define HAVE___CHKSTK_MS 1
15586_ACEOF
15587
15588fi
15589
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000015590 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15591echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15592if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595 ac_check_lib_save_LIBS=$LIBS
15596LIBS="-lgcc $LIBS"
15597cat >conftest.$ac_ext <<_ACEOF
15598/* confdefs.h. */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h. */
15603
15604/* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply. */
15607#ifdef __cplusplus
15608extern "C"
15609#endif
15610char ___chkstk ();
15611int
15612main ()
15613{
15614return ___chkstk ();
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext conftest$ac_exeext
15620if { (ac_try="$ac_link"
15621case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624esac
15625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_link") 2>conftest.er1
15627 ac_status=$?
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15634 { (case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15637esac
15638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_try") 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest$ac_exeext'
15644 { (case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647esac
15648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_try") 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_cv_lib_gcc____chkstk=yes
15654else
15655 echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658 ac_cv_lib_gcc____chkstk=no
15659fi
15660
15661rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15663LIBS=$ac_check_lib_save_LIBS
15664fi
15665{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15666echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15667if test $ac_cv_lib_gcc____chkstk = yes; then
15668
15669cat >>confdefs.h <<\_ACEOF
15670#define HAVE____CHKSTK 1
15671_ACEOF
15672
15673fi
15674
Stephen Hinesebe69fe2015-03-23 12:10:34 -070015675 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15676echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15677if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679else
15680 ac_check_lib_save_LIBS=$LIBS
15681LIBS="-lgcc $LIBS"
15682cat >conftest.$ac_ext <<_ACEOF
15683/* confdefs.h. */
15684_ACEOF
15685cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h. */
15688
15689/* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15692#ifdef __cplusplus
15693extern "C"
15694#endif
15695char ___chkstk_ms ();
15696int
15697main ()
15698{
15699return ___chkstk_ms ();
15700 ;
15701 return 0;
15702}
15703_ACEOF
15704rm -f conftest.$ac_objext conftest$ac_exeext
15705if { (ac_try="$ac_link"
15706case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_link") 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15719 { (case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722esac
15723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_try") 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; } &&
15728 { ac_try='test -s conftest$ac_exeext'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732esac
15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_lib_gcc____chkstk_ms=yes
15739else
15740 echo "$as_me: failed program was:" >&5
15741sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 ac_cv_lib_gcc____chkstk_ms=no
15744fi
15745
15746rm -f core conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext conftest.$ac_ext
15748LIBS=$ac_check_lib_save_LIBS
15749fi
15750{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15751echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15752if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15753
15754cat >>confdefs.h <<\_ACEOF
15755#define HAVE____CHKSTK_MS 1
15756_ACEOF
15757
15758fi
15759
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000015760
15761 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15762echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15763if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765else
15766 ac_check_lib_save_LIBS=$LIBS
15767LIBS="-lgcc $LIBS"
15768cat >conftest.$ac_ext <<_ACEOF
15769/* confdefs.h. */
15770_ACEOF
15771cat confdefs.h >>conftest.$ac_ext
15772cat >>conftest.$ac_ext <<_ACEOF
15773/* end confdefs.h. */
15774
15775/* Override any GCC internal prototype to avoid an error.
15776 Use char because int might match the return type of a GCC
15777 builtin and then its argument prototype would still apply. */
15778#ifdef __cplusplus
15779extern "C"
15780#endif
15781char __ashldi3 ();
15782int
15783main ()
15784{
15785return __ashldi3 ();
15786 ;
15787 return 0;
15788}
15789_ACEOF
15790rm -f conftest.$ac_objext conftest$ac_exeext
15791if { (ac_try="$ac_link"
15792case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15795esac
15796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_link") 2>conftest.er1
15798 ac_status=$?
15799 grep -v '^ *+' conftest.er1 >conftest.err
15800 rm -f conftest.er1
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808esac
15809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest$ac_exeext'
15815 { (case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15818esac
15819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_try") 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_lib_gcc___ashldi3=yes
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_cv_lib_gcc___ashldi3=no
15830fi
15831
15832rm -f core conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834LIBS=$ac_check_lib_save_LIBS
15835fi
15836{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15837echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15838if test $ac_cv_lib_gcc___ashldi3 = yes; then
15839
15840cat >>confdefs.h <<\_ACEOF
15841#define HAVE___ASHLDI3 1
15842_ACEOF
15843
15844fi
15845
15846 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15847echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15848if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15850else
15851 ac_check_lib_save_LIBS=$LIBS
15852LIBS="-lgcc $LIBS"
15853cat >conftest.$ac_ext <<_ACEOF
15854/* confdefs.h. */
15855_ACEOF
15856cat confdefs.h >>conftest.$ac_ext
15857cat >>conftest.$ac_ext <<_ACEOF
15858/* end confdefs.h. */
15859
15860/* Override any GCC internal prototype to avoid an error.
15861 Use char because int might match the return type of a GCC
15862 builtin and then its argument prototype would still apply. */
15863#ifdef __cplusplus
15864extern "C"
15865#endif
15866char __ashrdi3 ();
15867int
15868main ()
15869{
15870return __ashrdi3 ();
15871 ;
15872 return 0;
15873}
15874_ACEOF
15875rm -f conftest.$ac_objext conftest$ac_exeext
15876if { (ac_try="$ac_link"
15877case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15880esac
15881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_link") 2>conftest.er1
15883 ac_status=$?
15884 grep -v '^ *+' conftest.er1 >conftest.err
15885 rm -f conftest.er1
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15890 { (case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893esac
15894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_try") 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try='test -s conftest$ac_exeext'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903esac
15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_cv_lib_gcc___ashrdi3=yes
15910else
15911 echo "$as_me: failed program was:" >&5
15912sed 's/^/| /' conftest.$ac_ext >&5
15913
15914 ac_cv_lib_gcc___ashrdi3=no
15915fi
15916
15917rm -f core conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919LIBS=$ac_check_lib_save_LIBS
15920fi
15921{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15922echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15923if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15924
15925cat >>confdefs.h <<\_ACEOF
15926#define HAVE___ASHRDI3 1
15927_ACEOF
15928
15929fi
15930
15931 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15932echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15933if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15935else
15936 ac_check_lib_save_LIBS=$LIBS
15937LIBS="-lgcc $LIBS"
15938cat >conftest.$ac_ext <<_ACEOF
15939/* confdefs.h. */
15940_ACEOF
15941cat confdefs.h >>conftest.$ac_ext
15942cat >>conftest.$ac_ext <<_ACEOF
15943/* end confdefs.h. */
15944
15945/* Override any GCC internal prototype to avoid an error.
15946 Use char because int might match the return type of a GCC
15947 builtin and then its argument prototype would still apply. */
15948#ifdef __cplusplus
15949extern "C"
15950#endif
15951char __divdi3 ();
15952int
15953main ()
15954{
15955return __divdi3 ();
15956 ;
15957 return 0;
15958}
15959_ACEOF
15960rm -f conftest.$ac_objext conftest$ac_exeext
15961if { (ac_try="$ac_link"
15962case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965esac
15966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_link") 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15975 { (case "(($ac_try" in
15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977 *) ac_try_echo=$ac_try;;
15978esac
15979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980 (eval "$ac_try") 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try='test -s conftest$ac_exeext'
15985 { (case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_try") 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; }; then
15994 ac_cv_lib_gcc___divdi3=yes
15995else
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 ac_cv_lib_gcc___divdi3=no
16000fi
16001
16002rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004LIBS=$ac_check_lib_save_LIBS
16005fi
16006{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16007echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16008if test $ac_cv_lib_gcc___divdi3 = yes; then
16009
16010cat >>confdefs.h <<\_ACEOF
16011#define HAVE___DIVDI3 1
16012_ACEOF
16013
16014fi
16015
16016 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16017echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16018if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020else
16021 ac_check_lib_save_LIBS=$LIBS
16022LIBS="-lgcc $LIBS"
16023cat >conftest.$ac_ext <<_ACEOF
16024/* confdefs.h. */
16025_ACEOF
16026cat confdefs.h >>conftest.$ac_ext
16027cat >>conftest.$ac_ext <<_ACEOF
16028/* end confdefs.h. */
16029
16030/* Override any GCC internal prototype to avoid an error.
16031 Use char because int might match the return type of a GCC
16032 builtin and then its argument prototype would still apply. */
16033#ifdef __cplusplus
16034extern "C"
16035#endif
16036char __fixdfdi ();
16037int
16038main ()
16039{
16040return __fixdfdi ();
16041 ;
16042 return 0;
16043}
16044_ACEOF
16045rm -f conftest.$ac_objext conftest$ac_exeext
16046if { (ac_try="$ac_link"
16047case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050esac
16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_link") 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
16066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest$ac_exeext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_cv_lib_gcc___fixdfdi=yes
16080else
16081 echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 ac_cv_lib_gcc___fixdfdi=no
16085fi
16086
16087rm -f core conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16089LIBS=$ac_check_lib_save_LIBS
16090fi
16091{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16092echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16093if test $ac_cv_lib_gcc___fixdfdi = yes; then
16094
16095cat >>confdefs.h <<\_ACEOF
16096#define HAVE___FIXDFDI 1
16097_ACEOF
16098
16099fi
16100
16101 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16102echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16103if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16105else
16106 ac_check_lib_save_LIBS=$LIBS
16107LIBS="-lgcc $LIBS"
16108cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h. */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h. */
16114
16115/* Override any GCC internal prototype to avoid an error.
16116 Use char because int might match the return type of a GCC
16117 builtin and then its argument prototype would still apply. */
16118#ifdef __cplusplus
16119extern "C"
16120#endif
16121char __fixsfdi ();
16122int
16123main ()
16124{
16125return __fixsfdi ();
16126 ;
16127 return 0;
16128}
16129_ACEOF
16130rm -f conftest.$ac_objext conftest$ac_exeext
16131if { (ac_try="$ac_link"
16132case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_link") 2>conftest.er1
16138 ac_status=$?
16139 grep -v '^ *+' conftest.er1 >conftest.err
16140 rm -f conftest.er1
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16148esac
16149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest$ac_exeext'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158esac
16159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 ac_cv_lib_gcc___fixsfdi=yes
16165else
16166 echo "$as_me: failed program was:" >&5
16167sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 ac_cv_lib_gcc___fixsfdi=no
16170fi
16171
16172rm -f core conftest.err conftest.$ac_objext \
16173 conftest$ac_exeext conftest.$ac_ext
16174LIBS=$ac_check_lib_save_LIBS
16175fi
16176{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16177echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16178if test $ac_cv_lib_gcc___fixsfdi = yes; then
16179
16180cat >>confdefs.h <<\_ACEOF
16181#define HAVE___FIXSFDI 1
16182_ACEOF
16183
16184fi
16185
16186 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16187echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16188if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16190else
16191 ac_check_lib_save_LIBS=$LIBS
16192LIBS="-lgcc $LIBS"
16193cat >conftest.$ac_ext <<_ACEOF
16194/* confdefs.h. */
16195_ACEOF
16196cat confdefs.h >>conftest.$ac_ext
16197cat >>conftest.$ac_ext <<_ACEOF
16198/* end confdefs.h. */
16199
16200/* Override any GCC internal prototype to avoid an error.
16201 Use char because int might match the return type of a GCC
16202 builtin and then its argument prototype would still apply. */
16203#ifdef __cplusplus
16204extern "C"
16205#endif
16206char __floatdidf ();
16207int
16208main ()
16209{
16210return __floatdidf ();
16211 ;
16212 return 0;
16213}
16214_ACEOF
16215rm -f conftest.$ac_objext conftest$ac_exeext
16216if { (ac_try="$ac_link"
16217case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16220esac
16221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_link") 2>conftest.er1
16223 ac_status=$?
16224 grep -v '^ *+' conftest.er1 >conftest.err
16225 rm -f conftest.er1
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest$ac_exeext'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16243esac
16244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_cv_lib_gcc___floatdidf=yes
16250else
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254 ac_cv_lib_gcc___floatdidf=no
16255fi
16256
16257rm -f core conftest.err conftest.$ac_objext \
16258 conftest$ac_exeext conftest.$ac_ext
16259LIBS=$ac_check_lib_save_LIBS
16260fi
16261{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16262echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16263if test $ac_cv_lib_gcc___floatdidf = yes; then
16264
16265cat >>confdefs.h <<\_ACEOF
16266#define HAVE___FLOATDIDF 1
16267_ACEOF
16268
16269fi
16270
16271 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16272echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16273if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275else
16276 ac_check_lib_save_LIBS=$LIBS
16277LIBS="-lgcc $LIBS"
16278cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h. */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h. */
16284
16285/* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16288#ifdef __cplusplus
16289extern "C"
16290#endif
16291char __lshrdi3 ();
16292int
16293main ()
16294{
16295return __lshrdi3 ();
16296 ;
16297 return 0;
16298}
16299_ACEOF
16300rm -f conftest.$ac_objext conftest$ac_exeext
16301if { (ac_try="$ac_link"
16302case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305esac
16306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16308 ac_status=$?
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318esac
16319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest$ac_exeext'
16325 { (case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16328esac
16329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_try") 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_lib_gcc___lshrdi3=yes
16335else
16336 echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339 ac_cv_lib_gcc___lshrdi3=no
16340fi
16341
16342rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344LIBS=$ac_check_lib_save_LIBS
16345fi
16346{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16347echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16348if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16349
16350cat >>confdefs.h <<\_ACEOF
16351#define HAVE___LSHRDI3 1
16352_ACEOF
16353
16354fi
16355
16356 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16357echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16358if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360else
16361 ac_check_lib_save_LIBS=$LIBS
16362LIBS="-lgcc $LIBS"
16363cat >conftest.$ac_ext <<_ACEOF
16364/* confdefs.h. */
16365_ACEOF
16366cat confdefs.h >>conftest.$ac_ext
16367cat >>conftest.$ac_ext <<_ACEOF
16368/* end confdefs.h. */
16369
16370/* Override any GCC internal prototype to avoid an error.
16371 Use char because int might match the return type of a GCC
16372 builtin and then its argument prototype would still apply. */
16373#ifdef __cplusplus
16374extern "C"
16375#endif
16376char __moddi3 ();
16377int
16378main ()
16379{
16380return __moddi3 ();
16381 ;
16382 return 0;
16383}
16384_ACEOF
16385rm -f conftest.$ac_objext conftest$ac_exeext
16386if { (ac_try="$ac_link"
16387case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390esac
16391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest$ac_exeext'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413esac
16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_cv_lib_gcc___moddi3=yes
16420else
16421 echo "$as_me: failed program was:" >&5
16422sed 's/^/| /' conftest.$ac_ext >&5
16423
16424 ac_cv_lib_gcc___moddi3=no
16425fi
16426
16427rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16429LIBS=$ac_check_lib_save_LIBS
16430fi
16431{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16432echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16433if test $ac_cv_lib_gcc___moddi3 = yes; then
16434
16435cat >>confdefs.h <<\_ACEOF
16436#define HAVE___MODDI3 1
16437_ACEOF
16438
16439fi
16440
16441 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16442echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16443if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16445else
16446 ac_check_lib_save_LIBS=$LIBS
16447LIBS="-lgcc $LIBS"
16448cat >conftest.$ac_ext <<_ACEOF
16449/* confdefs.h. */
16450_ACEOF
16451cat confdefs.h >>conftest.$ac_ext
16452cat >>conftest.$ac_ext <<_ACEOF
16453/* end confdefs.h. */
16454
16455/* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16458#ifdef __cplusplus
16459extern "C"
16460#endif
16461char __udivdi3 ();
16462int
16463main ()
16464{
16465return __udivdi3 ();
16466 ;
16467 return 0;
16468}
16469_ACEOF
16470rm -f conftest.$ac_objext conftest$ac_exeext
16471if { (ac_try="$ac_link"
16472case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475esac
16476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_link") 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485 { (case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16488esac
16489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_try") 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try='test -s conftest$ac_exeext'
16495 { (case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16498esac
16499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_try") 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_lib_gcc___udivdi3=yes
16505else
16506 echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509 ac_cv_lib_gcc___udivdi3=no
16510fi
16511
16512rm -f core conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16514LIBS=$ac_check_lib_save_LIBS
16515fi
16516{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16517echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16518if test $ac_cv_lib_gcc___udivdi3 = yes; then
16519
16520cat >>confdefs.h <<\_ACEOF
16521#define HAVE___UDIVDI3 1
16522_ACEOF
16523
16524fi
16525
16526 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16527echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16528if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530else
16531 ac_check_lib_save_LIBS=$LIBS
16532LIBS="-lgcc $LIBS"
16533cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h. */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h. */
16539
16540/* Override any GCC internal prototype to avoid an error.
16541 Use char because int might match the return type of a GCC
16542 builtin and then its argument prototype would still apply. */
16543#ifdef __cplusplus
16544extern "C"
16545#endif
16546char __umoddi3 ();
16547int
16548main ()
16549{
16550return __umoddi3 ();
16551 ;
16552 return 0;
16553}
16554_ACEOF
16555rm -f conftest.$ac_objext conftest$ac_exeext
16556if { (ac_try="$ac_link"
16557case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560esac
16561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_link") 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
16569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16570 { (case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16573esac
16574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_try") 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; } &&
16579 { ac_try='test -s conftest$ac_exeext'
16580 { (case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16583esac
16584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_try") 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 ac_cv_lib_gcc___umoddi3=yes
16590else
16591 echo "$as_me: failed program was:" >&5
16592sed 's/^/| /' conftest.$ac_ext >&5
16593
16594 ac_cv_lib_gcc___umoddi3=no
16595fi
16596
16597rm -f core conftest.err conftest.$ac_objext \
16598 conftest$ac_exeext conftest.$ac_ext
16599LIBS=$ac_check_lib_save_LIBS
16600fi
16601{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16602echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16603if test $ac_cv_lib_gcc___umoddi3 = yes; then
16604
16605cat >>confdefs.h <<\_ACEOF
16606#define HAVE___UMODDI3 1
16607_ACEOF
16608
16609fi
16610
16611
16612 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16613echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16614if test "${ac_cv_lib_gcc___main+set}" = set; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16616else
16617 ac_check_lib_save_LIBS=$LIBS
16618LIBS="-lgcc $LIBS"
16619cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h. */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h. */
16625
16626/* Override any GCC internal prototype to avoid an error.
16627 Use char because int might match the return type of a GCC
16628 builtin and then its argument prototype would still apply. */
16629#ifdef __cplusplus
16630extern "C"
16631#endif
16632char __main ();
16633int
16634main ()
16635{
16636return __main ();
16637 ;
16638 return 0;
16639}
16640_ACEOF
16641rm -f conftest.$ac_objext conftest$ac_exeext
16642if { (ac_try="$ac_link"
16643case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16646esac
16647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_link") 2>conftest.er1
16649 ac_status=$?
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659esac
16660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16669esac
16670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_try") 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_cv_lib_gcc___main=yes
16676else
16677 echo "$as_me: failed program was:" >&5
16678sed 's/^/| /' conftest.$ac_ext >&5
16679
16680 ac_cv_lib_gcc___main=no
16681fi
16682
16683rm -f core conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16685LIBS=$ac_check_lib_save_LIBS
16686fi
16687{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16688echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16689if test $ac_cv_lib_gcc___main = yes; then
16690
16691cat >>confdefs.h <<\_ACEOF
16692#define HAVE___MAIN 1
16693_ACEOF
16694
16695fi
16696
16697 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16698echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16699if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701else
16702 ac_check_lib_save_LIBS=$LIBS
16703LIBS="-lgcc $LIBS"
16704cat >conftest.$ac_ext <<_ACEOF
16705/* confdefs.h. */
16706_ACEOF
16707cat confdefs.h >>conftest.$ac_ext
16708cat >>conftest.$ac_ext <<_ACEOF
16709/* end confdefs.h. */
16710
16711/* Override any GCC internal prototype to avoid an error.
16712 Use char because int might match the return type of a GCC
16713 builtin and then its argument prototype would still apply. */
16714#ifdef __cplusplus
16715extern "C"
16716#endif
16717char __cmpdi2 ();
16718int
16719main ()
16720{
16721return __cmpdi2 ();
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext conftest$ac_exeext
16727if { (ac_try="$ac_link"
16728case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16731esac
16732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_link") 2>conftest.er1
16734 ac_status=$?
16735 grep -v '^ *+' conftest.er1 >conftest.err
16736 rm -f conftest.er1
16737 cat conftest.err >&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest$ac_exeext'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754esac
16755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_lib_gcc___cmpdi2=yes
16761else
16762 echo "$as_me: failed program was:" >&5
16763sed 's/^/| /' conftest.$ac_ext >&5
16764
16765 ac_cv_lib_gcc___cmpdi2=no
16766fi
16767
16768rm -f core conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16770LIBS=$ac_check_lib_save_LIBS
16771fi
16772{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16773echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16774if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16775
16776cat >>confdefs.h <<\_ACEOF
16777#define HAVE___CMPDI2 1
16778_ACEOF
16779
16780fi
16781
16782fi
16783
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000016784if test "$llvm_cv_os_type" = "MingW" ; then
16785 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16786echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16787 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000016788
16789 /* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794
16795 #include <windows.h>
16796 #include <imagehlp.h>
16797 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16798 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16799
16800
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000016801_ACEOF
16802rm -f conftest.$ac_objext
16803if { (ac_try="$ac_compile"
16804case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807esac
16808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_compile") 2>conftest.er1
16810 ac_status=$?
16811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817 { (case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820esac
16821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_try") 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest.$ac_objext'
16827 { (case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830esac
16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_try") 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836
16837 { echo "$as_me:$LINENO: result: yes" >&5
16838echo "${ECHO_T}yes" >&6; }
16839 llvm_cv_win32_elmcb_pcstr="PCSTR"
16840
16841else
16842 echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845
16846 { echo "$as_me:$LINENO: result: no" >&5
16847echo "${ECHO_T}no" >&6; }
16848 llvm_cv_win32_elmcb_pcstr="PSTR"
16849
16850fi
16851
16852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853
16854cat >>confdefs.h <<_ACEOF
16855#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16856_ACEOF
16857
16858fi
16859
Reid Spencer30fe5262007-01-20 07:48:49 +000016860if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000016861
16862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016863for ac_header in stdlib.h unistd.h
16864do
16865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871fi
16872ac_res=`eval echo '${'$as_ac_Header'}'`
16873 { echo "$as_me:$LINENO: result: $ac_res" >&5
16874echo "${ECHO_T}$ac_res" >&6; }
16875else
16876 # Is the header compilable?
16877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16879cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885$ac_includes_default
16886#include <$ac_header>
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (ac_try="$ac_compile"
16890case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893esac
16894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_compile") 2>conftest.er1
16896 ac_status=$?
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16906esac
16907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16916esac
16917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_header_compiler=yes
16923else
16924 echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016927 ac_header_compiler=no
16928fi
16929
16930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16932echo "${ECHO_T}$ac_header_compiler" >&6; }
16933
16934# Is the header present?
16935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16937cat >conftest.$ac_ext <<_ACEOF
16938/* confdefs.h. */
16939_ACEOF
16940cat confdefs.h >>conftest.$ac_ext
16941cat >>conftest.$ac_ext <<_ACEOF
16942/* end confdefs.h. */
16943#include <$ac_header>
16944_ACEOF
16945if { (ac_try="$ac_cpp conftest.$ac_ext"
16946case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16952 ac_status=$?
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } >/dev/null; then
16958 if test -s conftest.err; then
16959 ac_cpp_err=$ac_c_preproc_warn_flag
16960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16961 else
16962 ac_cpp_err=
16963 fi
16964else
16965 ac_cpp_err=yes
16966fi
16967if test -z "$ac_cpp_err"; then
16968 ac_header_preproc=yes
16969else
16970 echo "$as_me: failed program was:" >&5
16971sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 ac_header_preproc=no
16974fi
16975
16976rm -f conftest.err conftest.$ac_ext
16977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16978echo "${ECHO_T}$ac_header_preproc" >&6; }
16979
16980# So? What about this header?
16981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16982 yes:no: )
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16987 ac_header_preproc=yes
16988 ;;
16989 no:yes:* )
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17002 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000017003## ------------------------------------ ##
17004## Report this to http://llvm.org/bugs/ ##
17005## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017006_ASBOX
17007 ) | sed "s/^/$as_me: WARNING: /" >&2
17008 ;;
17009esac
17010{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014else
17015 eval "$as_ac_Header=\$ac_header_preproc"
17016fi
17017ac_res=`eval echo '${'$as_ac_Header'}'`
17018 { echo "$as_me:$LINENO: result: $ac_res" >&5
17019echo "${ECHO_T}$ac_res" >&6; }
17020
17021fi
17022if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017023 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017025_ACEOF
17026
17027fi
17028
17029done
17030
17031
17032for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017033do
17034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17035{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17037if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040 cat >conftest.$ac_ext <<_ACEOF
17041/* confdefs.h. */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h. */
17046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17048#define $ac_func innocuous_$ac_func
17049
17050/* System header to define __stub macros and hopefully few prototypes,
17051 which can conflict with char $ac_func (); below.
17052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17053 <limits.h> exists even on freestanding compilers. */
17054
17055#ifdef __STDC__
17056# include <limits.h>
17057#else
17058# include <assert.h>
17059#endif
17060
17061#undef $ac_func
17062
17063/* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17066#ifdef __cplusplus
17067extern "C"
17068#endif
17069char $ac_func ();
17070/* The GNU C library defines this for functions which it implements
17071 to always fail with ENOSYS. Some functions are actually named
17072 something starting with __ and the normal name is an alias. */
17073#if defined __stub_$ac_func || defined __stub___$ac_func
17074choke me
17075#endif
17076
17077int
17078main ()
17079{
17080return $ac_func ();
17081 ;
17082 return 0;
17083}
17084_ACEOF
17085rm -f conftest.$ac_objext conftest$ac_exeext
17086if { (ac_try="$ac_link"
17087case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_link") 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103esac
17104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try='test -s conftest$ac_exeext'
17110 { (case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113esac
17114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_try") 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 eval "$as_ac_var=yes"
17120else
17121 echo "$as_me: failed program was:" >&5
17122sed 's/^/| /' conftest.$ac_ext >&5
17123
17124 eval "$as_ac_var=no"
17125fi
17126
17127rm -f core conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
17129fi
17130ac_res=`eval echo '${'$as_ac_var'}'`
17131 { echo "$as_me:$LINENO: result: $ac_res" >&5
17132echo "${ECHO_T}$ac_res" >&6; }
17133if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017134 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017135#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017136_ACEOF
17137
17138fi
17139done
17140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017141{ echo "$as_me:$LINENO: checking for working mmap" >&5
17142echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17143if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000017145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017146 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017147 ac_cv_func_mmap_fixed_mapped=no
17148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017149 cat >conftest.$ac_ext <<_ACEOF
17150/* confdefs.h. */
17151_ACEOF
17152cat confdefs.h >>conftest.$ac_ext
17153cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017155$ac_includes_default
17156/* malloc might have been renamed as rpl_malloc. */
17157#undef malloc
17158
17159/* Thanks to Mike Haertel and Jim Avera for this test.
17160 Here is a matrix of mmap possibilities:
17161 mmap private not fixed
17162 mmap private fixed at somewhere currently unmapped
17163 mmap private fixed at somewhere already mapped
17164 mmap shared not fixed
17165 mmap shared fixed at somewhere currently unmapped
17166 mmap shared fixed at somewhere already mapped
17167 For private mappings, we should verify that changes cannot be read()
17168 back from the file, nor mmap's back from the file at a different
17169 address. (There have been systems where private was not correctly
17170 implemented like the infamous i386 svr4.0, and systems where the
17171 VM page cache was not coherent with the file system buffer cache
17172 like early versions of FreeBSD and possibly contemporary NetBSD.)
17173 For shared mappings, we should conversely verify that changes get
17174 propagated back to all the places they're supposed to be.
17175
17176 Grep wants private fixed already mapped.
17177 The main things grep needs to know about mmap are:
17178 * does it exist and is it safe to write into the mmap'd area
17179 * how to use it (BSD variants) */
17180
17181#include <fcntl.h>
17182#include <sys/mman.h>
17183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017184#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000017185char *malloc ();
17186#endif
17187
17188/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017189#if !HAVE_GETPAGESIZE
17190/* Assume that all systems that can run configure have sys/param.h. */
17191# if !HAVE_SYS_PARAM_H
17192# define HAVE_SYS_PARAM_H 1
17193# endif
17194
John Criswell7a73b802003-06-30 21:59:07 +000017195# ifdef _SC_PAGESIZE
17196# define getpagesize() sysconf(_SC_PAGESIZE)
17197# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017198# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000017199# include <sys/param.h>
17200# ifdef EXEC_PAGESIZE
17201# define getpagesize() EXEC_PAGESIZE
17202# else /* no EXEC_PAGESIZE */
17203# ifdef NBPG
17204# define getpagesize() NBPG * CLSIZE
17205# ifndef CLSIZE
17206# define CLSIZE 1
17207# endif /* no CLSIZE */
17208# else /* no NBPG */
17209# ifdef NBPC
17210# define getpagesize() NBPC
17211# else /* no NBPC */
17212# ifdef PAGESIZE
17213# define getpagesize() PAGESIZE
17214# endif /* PAGESIZE */
17215# endif /* no NBPC */
17216# endif /* no NBPG */
17217# endif /* no EXEC_PAGESIZE */
17218# else /* no HAVE_SYS_PARAM_H */
17219# define getpagesize() 8192 /* punt totally */
17220# endif /* no HAVE_SYS_PARAM_H */
17221# endif /* no _SC_PAGESIZE */
17222
17223#endif /* no HAVE_GETPAGESIZE */
17224
17225int
17226main ()
17227{
17228 char *data, *data2, *data3;
17229 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017230 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000017231
17232 pagesize = getpagesize ();
17233
17234 /* First, make a file with some known garbage in it. */
17235 data = (char *) malloc (pagesize);
17236 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000017237 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000017238 for (i = 0; i < pagesize; ++i)
17239 *(data + i) = rand ();
17240 umask (0);
17241 fd = creat ("conftest.mmap", 0600);
17242 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017243 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000017244 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017245 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000017246 close (fd);
17247
17248 /* Next, try to mmap the file at a fixed address which already has
17249 something else allocated at it. If we can, also make sure that
17250 we see the same garbage. */
17251 fd = open ("conftest.mmap", O_RDWR);
17252 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017253 return 1;
17254 data2 = (char *) malloc (2 * pagesize);
17255 if (!data2)
17256 return 1;
17257 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000017258 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000017259 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017260 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000017261 for (i = 0; i < pagesize; ++i)
17262 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017263 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000017264
17265 /* Finally, make sure that changes to the mapped area do not
17266 percolate back to the file as seen by read(). (This is a bug on
17267 some variants of i386 svr4.0.) */
17268 for (i = 0; i < pagesize; ++i)
17269 *(data2 + i) = *(data2 + i) + 1;
17270 data3 = (char *) malloc (pagesize);
17271 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017272 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000017273 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017274 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000017275 for (i = 0; i < pagesize; ++i)
17276 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017277 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000017278 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000017279 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000017280}
17281_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017282rm -f conftest$ac_exeext
17283if { (ac_try="$ac_link"
17284case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287esac
17288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_link") 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_try") 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017302 ac_cv_func_mmap_fixed_mapped=yes
17303else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017304 echo "$as_me: program exited with status $ac_status" >&5
17305echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308( exit $ac_status )
17309ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000017310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017312fi
Reid Spencera773bd52006-08-04 18:18:08 +000017313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017314
John Criswell7a73b802003-06-30 21:59:07 +000017315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017316{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17317echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017318if test $ac_cv_func_mmap_fixed_mapped = yes; then
17319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017320cat >>confdefs.h <<\_ACEOF
17321#define HAVE_MMAP 1
17322_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000017323
17324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017325rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000017326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017327 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17328echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17329if test "${ac_cv_func_mmap_file+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000017331else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017332 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000017333ac_cpp='$CPP $CPPFLAGS'
17334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17336ac_compiler_gnu=$ac_cv_c_compiler_gnu
17337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017338 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000017339 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000017340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017341 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000017342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017343 /* confdefs.h. */
17344_ACEOF
17345cat confdefs.h >>conftest.$ac_ext
17346cat >>conftest.$ac_ext <<_ACEOF
17347/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017348
John Criswell7a73b802003-06-30 21:59:07 +000017349#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000017350#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000017351#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000017352
17353int
17354main ()
17355{
John Criswell7a73b802003-06-30 21:59:07 +000017356
17357 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000017358 fd = creat ("foo",0777);
17359 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17360 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000017361 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000017362 ;
17363 return 0;
17364}
John Criswell7a73b802003-06-30 21:59:07 +000017365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017366rm -f conftest$ac_exeext
17367if { (ac_try="$ac_link"
17368case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17371esac
17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_link") 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017386 ac_cv_func_mmap_file=yes
17387else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017388 echo "$as_me: program exited with status $ac_status" >&5
17389echo "$as_me: failed program was:" >&5
17390sed 's/^/| /' conftest.$ac_ext >&5
17391
17392( exit $ac_status )
17393ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000017394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017396fi
Reid Spencera773bd52006-08-04 18:18:08 +000017397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017398
John Criswell7a73b802003-06-30 21:59:07 +000017399 ac_ext=c
17400ac_cpp='$CPP $CPPFLAGS'
17401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17403ac_compiler_gnu=$ac_cv_c_compiler_gnu
17404
17405
17406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017407{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17408echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017409if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000017410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017411cat >>confdefs.h <<\_ACEOF
17412#define HAVE_MMAP_FILE
17413_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000017414
17415 MMAP_FILE=yes
17416
17417fi
17418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017419 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17420echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17421if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000017423else
Reid Spencer582a23c2004-12-29 07:07:57 +000017424 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000017425 ac_cv_need_dev_zero_for_mmap=yes
17426 else
17427 ac_cv_need_dev_zero_for_mmap=no
17428 fi
17429
17430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017431{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17432echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000017433if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017435cat >>confdefs.h <<\_ACEOF
17436#define NEED_DEV_ZERO_FOR_MMAP 1
17437_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000017438
17439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017440
Reid Spencer30fe5262007-01-20 07:48:49 +000017441 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17442 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017443 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17444echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000017445 fi
17446 if test "$ac_cv_func_mmap_file" = "no"
17447 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017448 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17449echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000017450 fi
John Criswellb13092b2003-07-22 21:00:24 +000017451fi
John Criswell7a73b802003-06-30 21:59:07 +000017452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017453{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17454echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000017455ac_ext=cpp
17456ac_cpp='$CXXCPP $CPPFLAGS'
17457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017461cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000017462
17463 /* confdefs.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017464_ACEOF
17465cat confdefs.h >>conftest.$ac_ext
17466cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000017467/* end confdefs.h. */
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000017468
17469 int main() {
17470 volatile unsigned long val = 1;
17471 __sync_synchronize();
17472 __sync_val_compare_and_swap(&val, 1, 0);
17473 __sync_add_and_fetch(&val, 1);
17474 __sync_sub_and_fetch(&val, 1);
17475 return 0;
17476 }
17477
Owen Andersond4b272b2009-05-18 23:58:51 +000017478
17479_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017480rm -f conftest.$ac_objext conftest$ac_exeext
17481if { (ac_try="$ac_link"
17482case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000017494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000017514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017515 { echo "$as_me:$LINENO: result: yes" >&5
17516echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000017517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017518cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000017519#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017520_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000017521
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000017522
Owen Andersond4b272b2009-05-18 23:58:51 +000017523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017524 echo "$as_me: failed program was:" >&5
17525sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000017526
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000017527
17528 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017529echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000017530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017531cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000017532#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017533_ACEOF
17534
17535 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17536echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000017537
Owen Andersond4b272b2009-05-18 23:58:51 +000017538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017539
Owen Andersond4b272b2009-05-18 23:58:51 +000017540rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017541 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000017542ac_ext=c
17543ac_cpp='$CPP $CPPFLAGS'
17544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17546ac_compiler_gnu=$ac_cv_c_compiler_gnu
17547
Owen Andersond4b272b2009-05-18 23:58:51 +000017548
John Criswell7a73b802003-06-30 21:59:07 +000017549
Nick Lewycky4372e692009-09-29 06:18:23 +000017550if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017551 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17552echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17553if test "${llvm_cv_linux_mixed+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000017555else
17556 ac_ext=c
17557ac_cpp='$CPP $CPPFLAGS'
17558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17560ac_compiler_gnu=$ac_cv_c_compiler_gnu
17561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017562 cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000017567/* end confdefs.h. */
17568#ifndef __x86_64__
17569 error: Not x86-64 even if uname says so!
17570 #endif
17571
17572int
17573main ()
17574{
17575
17576 ;
17577 return 0;
17578}
17579_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017580rm -f conftest.$ac_objext
17581if { (ac_try="$ac_compile"
17582case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585esac
17586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_compile") 2>conftest.er1
17588 ac_status=$?
17589 grep -v '^ *+' conftest.er1 >conftest.err
17590 rm -f conftest.er1
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595 { (case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17598esac
17599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_try") 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; } &&
17604 { ac_try='test -s conftest.$ac_objext'
17605 { (case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17608esac
17609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_try") 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000017614 llvm_cv_linux_mixed=no
17615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017616 echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000017620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017621
Nick Lewycky4372e692009-09-29 06:18:23 +000017622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 ac_ext=c
17624ac_cpp='$CPP $CPPFLAGS'
17625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627ac_compiler_gnu=$ac_cv_c_compiler_gnu
17628
17629
17630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017631{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17632echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000017633
17634 if test "$llvm_cv_linux_mixed" = "yes"; then
17635 llvm_cv_target_arch="x86"
17636 ARCH="x86"
17637 fi
17638fi
17639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017640
Reid Spencer9372f152007-07-30 20:13:24 +000017641for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017642do
17643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17644{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17646if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648else
17649 cat >conftest.$ac_ext <<_ACEOF
17650/* confdefs.h. */
17651_ACEOF
17652cat confdefs.h >>conftest.$ac_ext
17653cat >>conftest.$ac_ext <<_ACEOF
17654/* end confdefs.h. */
17655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17657#define $ac_func innocuous_$ac_func
17658
17659/* System header to define __stub macros and hopefully few prototypes,
17660 which can conflict with char $ac_func (); below.
17661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17662 <limits.h> exists even on freestanding compilers. */
17663
17664#ifdef __STDC__
17665# include <limits.h>
17666#else
17667# include <assert.h>
17668#endif
17669
17670#undef $ac_func
17671
17672/* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
17675#ifdef __cplusplus
17676extern "C"
17677#endif
17678char $ac_func ();
17679/* The GNU C library defines this for functions which it implements
17680 to always fail with ENOSYS. Some functions are actually named
17681 something starting with __ and the normal name is an alias. */
17682#if defined __stub_$ac_func || defined __stub___$ac_func
17683choke me
17684#endif
17685
17686int
17687main ()
17688{
17689return $ac_func ();
17690 ;
17691 return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext conftest$ac_exeext
17695if { (ac_try="$ac_link"
17696case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17699esac
17700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_link") 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
17708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17709 { (case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17712esac
17713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_try") 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest$ac_exeext'
17719 { (case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17722esac
17723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_try") 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 eval "$as_ac_var=yes"
17729else
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 eval "$as_ac_var=no"
17734fi
17735
17736rm -f core conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
17738fi
17739ac_res=`eval echo '${'$as_ac_var'}'`
17740 { echo "$as_me:$LINENO: result: $ac_res" >&5
17741echo "${ECHO_T}$ac_res" >&6; }
17742if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000017743 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000017745_ACEOF
17746
17747fi
17748done
17749
17750
Stephen Hines36b56882014-04-23 16:57:46 -070017751SHLIBEXT=$llvm_shlib_ext
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000017752
17753
Jeff Cohen28783c32007-01-12 18:22:38 +000017754if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000017755 prefix="/usr/local"
17756fi
Reid Spencere9de0912004-08-20 09:03:57 +000017757eval LLVM_PREFIX="${prefix}";
17758eval LLVM_BINDIR="${prefix}/bin";
Reid Spencer1f319422004-11-29 04:56:35 +000017759eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000017760eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000017761eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000017762eval LLVM_INCLUDEDIR="${prefix}/include";
17763eval LLVM_INFODIR="${prefix}/info";
17764eval LLVM_MANDIR="${prefix}/man";
17765LLVM_CONFIGTIME=`date`
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000017776if test "${ENABLE_TIMESTAMPS}" = "0"; then
17777 LLVM_CONFIGTIME="(timestamp not enabled)"
17778fi
17779
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017780
Reid Spencere9de0912004-08-20 09:03:57 +000017781cat >>confdefs.h <<_ACEOF
17782#define LLVM_PREFIX "$LLVM_PREFIX"
17783_ACEOF
17784
17785
17786cat >>confdefs.h <<_ACEOF
17787#define LLVM_BINDIR "$LLVM_BINDIR"
17788_ACEOF
17789
17790
17791cat >>confdefs.h <<_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +000017792#define LLVM_DATADIR "$LLVM_DATADIR"
17793_ACEOF
17794
17795
17796cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000017797#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000017798_ACEOF
17799
17800
17801cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000017802#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000017803_ACEOF
17804
17805
17806cat >>confdefs.h <<_ACEOF
17807#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17808_ACEOF
17809
17810
17811cat >>confdefs.h <<_ACEOF
17812#define LLVM_INFODIR "$LLVM_INFODIR"
17813_ACEOF
17814
17815
17816cat >>confdefs.h <<_ACEOF
17817#define LLVM_MANDIR "$LLVM_MANDIR"
17818_ACEOF
17819
17820
17821cat >>confdefs.h <<_ACEOF
17822#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17823_ACEOF
17824
17825
Eric Christopher790e11c2007-12-01 00:34:39 +000017826cat >>confdefs.h <<_ACEOF
Tim Northoverd66ad6c2013-05-04 07:36:23 +000017827#define LLVM_HOST_TRIPLE "$host"
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000017828_ACEOF
17829
17830
17831cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000017832#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000017833_ACEOF
17834
17835
Gordon Henriksenc0efff82007-10-02 09:50:32 +000017836if test "$BINDINGS_TO_BUILD" = auto ; then
17837 BINDINGS_TO_BUILD=""
Stephen Hines37ed9c12014-12-01 14:51:49 -080017838 if test "x$OCAMLFIND" != x ; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +000017839 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17840 fi
Stephen Hines37ed9c12014-12-01 14:51:49 -080017841 if test "x$GO" != x ; then
17842 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17843 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17844 fi
17845 fi
Gordon Henriksenc0efff82007-10-02 09:50:32 +000017846fi
17847BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17848
17849
Gordon Henriksenf0915682007-10-02 16:42:22 +000017850binding_prereqs_failed=0
17851for a_binding in $BINDINGS_TO_BUILD ; do
17852 case "$a_binding" in
17853 ocaml)
Stephen Hines37ed9c12014-12-01 14:51:49 -080017854 if test "x$OCAMLFIND" = x ; then
17855 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17856echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000017857 binding_prereqs_failed=1
17858 fi
Stephen Hines37ed9c12014-12-01 14:51:49 -080017859
17860 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17861 HAVE_OCAMLOPT=1
17862 else
17863 HAVE_OCAMLOPT=0
17864 fi
17865
17866
17867 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17868 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17869echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000017870 binding_prereqs_failed=1
17871 fi
Stephen Hines37ed9c12014-12-01 14:51:49 -080017872
17873 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17874 HAVE_OCAML_OUNIT=1
17875 else
17876 HAVE_OCAML_OUNIT=0
17877 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17878echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000017879 fi
Stephen Hines37ed9c12014-12-01 14:51:49 -080017880
17881
Gordon Henriksenf0915682007-10-02 16:42:22 +000017882 if test "x$with_ocaml_libdir" != xauto ; then
17883 OCAML_LIBDIR=$with_ocaml_libdir
17884
17885 else
Stephen Hines37ed9c12014-12-01 14:51:49 -080017886 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
Gordon Henriksenf0915682007-10-02 16:42:22 +000017887 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17888 then
17889 # ocaml stdlib is beneath our prefix; use stdlib
17890 OCAML_LIBDIR=$ocaml_stdlib
17891
17892 else
17893 # ocaml stdlib is outside our prefix; use libdir/ocaml
Rafael Espindolaadd4c2f2013-06-11 18:52:11 +000017894 OCAML_LIBDIR=${prefix}/lib/ocaml
Gordon Henriksenf0915682007-10-02 16:42:22 +000017895
17896 fi
17897 fi
17898 ;;
Stephen Hines37ed9c12014-12-01 14:51:49 -080017899 go)
17900 if test "x$GO" = x ; then
17901 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17902echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17903 binding_prereqs_failed=1
17904 else
17905 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17906 :
17907 else
17908 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17909echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17910 binding_prereqs_failed=1
17911 fi
17912 fi
17913 ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +000017914 esac
17915done
17916if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017917 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17918echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17919 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000017920fi
17921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017922{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17923echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17924if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017926else
17927 ac_ext=cpp
17928ac_cpp='$CXXCPP $CPPFLAGS'
17929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17932
17933 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000017934 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017935 cat >conftest.$ac_ext <<_ACEOF
17936/* confdefs.h. */
17937_ACEOF
17938cat confdefs.h >>conftest.$ac_ext
17939cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017940/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000017941template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017942int
17943main ()
17944{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000017945X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017946 ;
17947 return 0;
17948}
17949_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017950rm -f conftest.$ac_objext
17951if { (ac_try="$ac_compile"
17952case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955esac
17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17965 { (case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17968esac
17969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_try") 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
17975 { (case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17978esac
17979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_try") 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017984 llvm_cv_cxx_visibility_inlines_hidden=yes
17985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017986 echo "$as_me: failed program was:" >&5
17987sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017991
Daniel Dunbardcf114e2008-08-30 01:16:19 +000017992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993 CXXFLAGS="$oldcxxflags"
17994 ac_ext=c
17995ac_cpp='$CPP $CPPFLAGS'
17996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17998ac_compiler_gnu=$ac_cv_c_compiler_gnu
17999
18000
18001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018002{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18003echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000018004if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18005 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18006
18007else
18008 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18009
18010fi
18011
Gordon Henriksenf0915682007-10-02 16:42:22 +000018012
Nick Lewycky731c6ab2009-03-05 08:20:44 +000018013if test "$llvm_cv_link_use_r" = "yes" ; then
18014 RPATH="-Wl,-R"
18015else
18016 RPATH="-Wl,-rpath"
18017fi
18018
18019
18020if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
Bob Wilsonf3289e72013-08-02 22:51:11 +000018021 RDYNAMIC="-rdynamic"
Nick Lewycky731c6ab2009-03-05 08:20:44 +000018022else
18023 RDYNAMIC=""
18024fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000018025
18026
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018027
Eric Christophera1cba682010-08-08 02:44:25 +000018028ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018029
Eric Christopher21d3eeb2010-08-08 09:20:39 +000018030
18031
18032
18033
18034
Douglas Gregor1555a232009-06-16 20:12:29 +000018035ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18036
18037ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18038
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000018039ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18040
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000018041ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18042
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000018043ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018044
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018045
Reid Spencera773bd52006-08-04 18:18:08 +000018046ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018047
Eric Christopher360fa9a2011-10-26 00:42:12 +000018048
Reid Spencerea949cf2006-08-16 00:45:38 +000018049ac_config_files="$ac_config_files llvm.spec"
18050
18051
Peter Collingbourne7be3a602011-05-13 03:27:56 +000018052ac_config_files="$ac_config_files docs/doxygen.cfg"
18053
Eric Christopher63c09512012-02-02 00:16:55 +000018054
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000018055if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000018056 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000018057fi
Eric Christopher63c09512012-02-02 00:16:55 +000018058if test -f ${clang_src_root}/README.txt; then
Stephen Hinesebe69fe2015-03-23 12:10:34 -070018059
18060cat >>confdefs.h <<_ACEOF
18061#define CLANG_LIBDIR_SUFFIX ""
18062_ACEOF
18063
18064
Dylan Noblesmith965a1662012-02-04 03:00:50 +000018065 configh="include/clang/Config/config.h"
18066 doxy="docs/doxygen.cfg"
18067 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000018068
Dylan Noblesmith965a1662012-02-04 03:00:50 +000018069 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000018070
18071fi
18072
Torok Edwin4c4b71c2011-10-14 20:38:02 +000018073ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000018074
Eric Christopher360fa9a2011-10-26 00:42:12 +000018075
Jordan Rose92080522012-10-01 18:40:32 +000018076test "x$program_prefix" = "xNONE" && program_prefix=""
18077
18078
18079
Reid Spencera773bd52006-08-04 18:18:08 +000018080ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000018081
Reid Spencera773bd52006-08-04 18:18:08 +000018082ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018083
18084
Reid Spencera773bd52006-08-04 18:18:08 +000018085ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018086
18087
Reid Spencera773bd52006-08-04 18:18:08 +000018088ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018089
18090
Reid Spencera773bd52006-08-04 18:18:08 +000018091ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018092
18093
Reid Spencera773bd52006-08-04 18:18:08 +000018094ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018095
18096
Reid Spencera773bd52006-08-04 18:18:08 +000018097ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018098
18099
Bill Wendlingf24eb392009-01-04 23:12:30 +000018100ac_config_commands="$ac_config_commands unittests/Makefile"
18101
18102
Reid Spencera773bd52006-08-04 18:18:08 +000018103ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018104
18105
Reid Spencera773bd52006-08-04 18:18:08 +000018106ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018107
18108
Reid Spencera773bd52006-08-04 18:18:08 +000018109ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018110
18111
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000018112ac_config_commands="$ac_config_commands bindings/Makefile"
18113
18114
18115ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18116
18117
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018118
John Criswell7a73b802003-06-30 21:59:07 +000018119cat >confcache <<\_ACEOF
18120# This file is a shell script that caches the results of configure
18121# tests run on this system so they can be shared between configure
18122# scripts and configure runs, see configure's option --config-cache.
18123# It is not useful on other systems. If it contains results you don't
18124# want to keep, you may remove or edit it.
18125#
18126# config.status only pays attention to the cache file if you give it
18127# the --recheck option to rerun configure.
18128#
John Criswell0c38eaf2003-09-10 15:17:25 +000018129# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000018130# loading this file, other *unset* `ac_cv_foo' will be assigned the
18131# following values.
18132
18133_ACEOF
18134
18135# The following way of writing the cache mishandles newlines in values,
18136# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000018137# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000018138# Ultrix sh set writes to stderr and can't be redirected directly,
18139# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000018140(
18141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18142 eval ac_val=\$$ac_var
18143 case $ac_val in #(
18144 *${as_nl}*)
18145 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018146 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18147echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018148 esac
18149 case $ac_var in #(
18150 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018151 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018152 esac ;;
18153 esac
18154 done
18155
John Criswell7a73b802003-06-30 21:59:07 +000018156 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000018157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18158 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018159 # `set' does not quote correctly, so add quotes (double-quote
18160 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000018161 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018162 "s/'/'\\\\''/g;
18163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000018164 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000018165 *)
18166 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000018167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000018168 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018169 esac |
18170 sort
18171) |
John Criswell7a73b802003-06-30 21:59:07 +000018172 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000018173 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000018174 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000018175 :clear
John Criswell7a73b802003-06-30 21:59:07 +000018176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18177 t end
Reid Spencera773bd52006-08-04 18:18:08 +000018178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18179 :end' >>confcache
18180if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18181 if test -w "$cache_file"; then
18182 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018183 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18184echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000018185 cat confcache >$cache_file
18186 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018187 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18188echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000018189 fi
18190fi
18191rm -f confcache
18192
18193test "x$prefix" = xNONE && prefix=$ac_default_prefix
18194# Let make expand exec_prefix.
18195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18196
John Criswell7a73b802003-06-30 21:59:07 +000018197DEFS=-DHAVE_CONFIG_H
18198
John Criswell0c38eaf2003-09-10 15:17:25 +000018199ac_libobjs=
18200ac_ltlibobjs=
18201for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18202 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000018203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018204 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000018205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18206 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018207 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18208 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000018209done
18210LIBOBJS=$ac_libobjs
18211
18212LTLIBOBJS=$ac_ltlibobjs
18213
18214
John Criswell7a73b802003-06-30 21:59:07 +000018215
18216: ${CONFIG_STATUS=./config.status}
18217ac_clean_files_save=$ac_clean_files
18218ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018219{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18220echo "$as_me: creating $CONFIG_STATUS" >&6;}
18221cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018222#! $SHELL
18223# Generated by $as_me.
18224# Run this file to recreate the current configuration.
18225# Compiler output produced by configure, useful for debugging
18226# configure, is in config.log if it exists.
18227
18228debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000018229ac_cs_recheck=false
18230ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000018231SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018232_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018234cat >>$CONFIG_STATUS <<\_ACEOF
18235## --------------------- ##
18236## M4sh Initialization. ##
18237## --------------------- ##
18238
18239# Be Bourne compatible
18240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018241 emulate sh
18242 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000018244 # is contrary to our usage. Disable this feature.
18245 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000018246 setopt NO_GLOB_SUBST
18247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000018249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018250BIN_SH=xpg4; export BIN_SH # for Tru64
18251DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000018252
John Criswell7a73b802003-06-30 21:59:07 +000018253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018254# PATH needs CR
18255# Avoid depending upon Character Ranges.
18256as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18257as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18258as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18259as_cr_digits='0123456789'
18260as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000018261
18262# The user is always right.
18263if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018264 echo "#! /bin/sh" >conf$$.sh
18265 echo "exit 0" >>conf$$.sh
18266 chmod +x conf$$.sh
18267 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18268 PATH_SEPARATOR=';'
18269 else
18270 PATH_SEPARATOR=:
18271 fi
18272 rm -f conf$$.sh
18273fi
18274
18275# Support unset when possible.
18276if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18277 as_unset=unset
18278else
18279 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000018280fi
John Criswell7a73b802003-06-30 21:59:07 +000018281
Reid Spencera773bd52006-08-04 18:18:08 +000018282
18283# IFS
18284# We need space, tab and new line, in precisely that order. Quoting is
18285# there to prevent editors from complaining about space-tab.
18286# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18287# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018288as_nl='
18289'
Reid Spencera773bd52006-08-04 18:18:08 +000018290IFS=" "" $as_nl"
18291
18292# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018293case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000018294 *[\\/]* ) as_myself=$0 ;;
18295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000018296for as_dir in $PATH
18297do
18298 IFS=$as_save_IFS
18299 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18301done
Reid Spencera773bd52006-08-04 18:18:08 +000018302IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000018303
Reid Spencera773bd52006-08-04 18:18:08 +000018304 ;;
18305esac
18306# We did not find ourselves, most probably we were run as `sh COMMAND'
18307# in which case we are not to be found in the path.
18308if test "x$as_myself" = x; then
18309 as_myself=$0
18310fi
18311if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018312 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18313 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000018314fi
18315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018316# Work around bugs in pre-3.0 UWIN ksh.
18317for as_var in ENV MAIL MAILPATH
18318do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000018319done
18320PS1='$ '
18321PS2='> '
18322PS4='+ '
18323
18324# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018325for as_var in \
18326 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18327 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18328 LC_TELEPHONE LC_TIME
18329do
18330 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18331 eval $as_var=C; export $as_var
18332 else
18333 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000018334 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018335done
Torok Edwin871384f2010-01-26 08:50:50 +000018336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018337# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000018338if expr a : '\(a\)' >/dev/null 2>&1 &&
18339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18340 as_expr=expr
18341else
18342 as_expr=false
18343fi
18344
18345if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18346 as_basename=basename
18347else
18348 as_basename=false
18349fi
18350
18351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018352# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000018353as_me=`$as_basename -- "$0" ||
18354$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18355 X"$0" : 'X\(//\)$' \| \
18356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018357echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000018358 sed '/^.*\/\([^/][^/]*\)\/*$/{
18359 s//\1/
18360 q
18361 }
18362 /^X\/\(\/\/\)$/{
18363 s//\1/
18364 q
18365 }
18366 /^X\/\(\/\).*/{
18367 s//\1/
18368 q
18369 }
18370 s/.*/./; q'`
18371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018372# CDPATH.
18373$as_unset CDPATH
18374
18375
18376
18377 as_lineno_1=$LINENO
18378 as_lineno_2=$LINENO
18379 test "x$as_lineno_1" != "x$as_lineno_2" &&
18380 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18381
18382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18383 # uniformly replaced by the line number. The first 'sed' inserts a
18384 # line-number line after each line using $LINENO; the second 'sed'
18385 # does the real work. The second script uses 'N' to pair each
18386 # line-number line with the line containing $LINENO, and appends
18387 # trailing '-' during substitution so that $LINENO is not a special
18388 # case at line end.
18389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18390 # scripts with optimization help from Paolo Bonzini. Blame Lee
18391 # E. McMahon (1931-1989) for sed's syntax. :-)
18392 sed -n '
18393 p
18394 /[$]LINENO/=
18395 ' <$as_myself |
18396 sed '
18397 s/[$]LINENO.*/&-/
18398 t lineno
18399 b
18400 :lineno
18401 N
18402 :loop
18403 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18404 t loop
18405 s/-\n.*//
18406 ' >$as_me.lineno &&
18407 chmod +x "$as_me.lineno" ||
18408 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18409 { (exit 1); exit 1; }; }
18410
18411 # Don't try to exec as it changes $[0], causing all sort of problems
18412 # (the dirname of $[0] is not the place where we might find the
18413 # original and so on. Autoconf is especially sensitive to this).
18414 . "./$as_me.lineno"
18415 # Exit status is that of the last command.
18416 exit
18417}
18418
18419
18420if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18421 as_dirname=dirname
18422else
18423 as_dirname=false
18424fi
Reid Spencera773bd52006-08-04 18:18:08 +000018425
18426ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018427case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000018428-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018429 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000018430 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018431 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000018432 esac;;
18433*)
18434 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000018435esac
18436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018437if expr a : '\(a\)' >/dev/null 2>&1 &&
18438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18439 as_expr=expr
18440else
18441 as_expr=false
18442fi
18443
John Criswell7a73b802003-06-30 21:59:07 +000018444rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000018445if test -d conf$$.dir; then
18446 rm -f conf$$.dir/conf$$.file
18447else
18448 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018449 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000018450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018451echo >conf$$.file
18452if ln -s conf$$.file conf$$ 2>/dev/null; then
18453 as_ln_s='ln -s'
18454 # ... but there are two gotchas:
18455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18457 # In both cases, we have to default to `cp -p'.
18458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000018459 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018460elif ln conf$$.file conf$$ 2>/dev/null; then
18461 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000018462else
18463 as_ln_s='cp -p'
18464fi
Reid Spencera773bd52006-08-04 18:18:08 +000018465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18466rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000018467
John Criswell0c38eaf2003-09-10 15:17:25 +000018468if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018469 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000018470else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018471 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000018472 as_mkdir_p=false
18473fi
18474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018475# Find out whether ``test -x'' works. Don't use a zero-byte file, as
18476# systems may use methods other than mode bits to determine executability.
18477cat >conf$$.file <<_ASEOF
18478#! /bin/sh
18479exit 0
18480_ASEOF
18481chmod +x conf$$.file
18482if test -x conf$$.file >/dev/null 2>&1; then
18483 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000018484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018485 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000018486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018487rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000018488
18489# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018490as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000018491
18492# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018493as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000018494
18495
John Criswell7a73b802003-06-30 21:59:07 +000018496exec 6>&1
18497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018498# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000018499# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000018500# values after options handling.
18501ac_log="
Stephen Hinesebe69fe2015-03-23 12:10:34 -070018502This file was extended by LLVM $as_me 3.7.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018503generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000018504
18505 CONFIG_FILES = $CONFIG_FILES
18506 CONFIG_HEADERS = $CONFIG_HEADERS
18507 CONFIG_LINKS = $CONFIG_LINKS
18508 CONFIG_COMMANDS = $CONFIG_COMMANDS
18509 $ $0 $@
18510
Reid Spencera773bd52006-08-04 18:18:08 +000018511on `(hostname || uname -n) 2>/dev/null | sed 1q`
18512"
18513
John Criswell7a73b802003-06-30 21:59:07 +000018514_ACEOF
18515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018516cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018517# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000018518config_files="$ac_config_files"
18519config_headers="$ac_config_headers"
18520config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000018521
Reid Spencera773bd52006-08-04 18:18:08 +000018522_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018524cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018525ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018526\`$as_me' instantiates files from templates according to the
18527current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000018528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018529Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000018530
18531 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018532 -V, --version print version number, then exit
18533 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000018534 -d, --debug don't remove temporary files
18535 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018536 --file=FILE[:TEMPLATE]
18537 instantiate the configuration file FILE
18538 --header=FILE[:TEMPLATE]
18539 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000018540
18541Configuration files:
18542$config_files
18543
18544Configuration headers:
18545$config_headers
18546
John Criswellc764fbc2003-09-06 15:17:13 +000018547Configuration commands:
18548$config_commands
18549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018550Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000018551
Reid Spencera773bd52006-08-04 18:18:08 +000018552_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018553cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018554ac_cs_version="\\
Stephen Hinesebe69fe2015-03-23 12:10:34 -070018555LLVM config.status 3.7.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018556configured by $0, generated by GNU Autoconf 2.60,
18557 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000018558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018559Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000018560This config.status script is free software; the Free Software Foundation
18561gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000018562
18563ac_pwd='$ac_pwd'
18564srcdir='$srcdir'
18565INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000018566_ACEOF
18567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018568cat >>$CONFIG_STATUS <<\_ACEOF
18569# If no file are specified by the user, then we need to provide default
18570# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000018571ac_need_defaults=:
18572while test $# != 0
18573do
18574 case $1 in
18575 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000018576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000018578 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000018579 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018580 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000018581 ac_option=$1
18582 ac_optarg=$2
18583 ac_shift=shift
18584 ;;
John Criswell7a73b802003-06-30 21:59:07 +000018585 esac
18586
John Criswell0c38eaf2003-09-10 15:17:25 +000018587 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000018588 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000018589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18590 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018592 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018593 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000018594 debug=: ;;
18595 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000018596 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000018598 ac_need_defaults=false;;
18599 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000018600 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000018602 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000018603 --he | --h)
18604 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018605 { echo "$as_me: error: ambiguous option: $1
18606Try \`$0 --help' for more information." >&2
18607 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000018608 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018609 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000018610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18612 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000018613
18614 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018615 -*) { echo "$as_me: error: unrecognized option: $1
18616Try \`$0 --help' for more information." >&2
18617 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000018618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018619 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000018620 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000018621
18622 esac
18623 shift
18624done
18625
John Criswell0c38eaf2003-09-10 15:17:25 +000018626ac_configure_extra_args=
18627
18628if $ac_cs_silent; then
18629 exec 6>/dev/null
18630 ac_configure_extra_args="$ac_configure_extra_args --silent"
18631fi
18632
18633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018634cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018635if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18637 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000018638 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000018640fi
18641
John Criswell7a73b802003-06-30 21:59:07 +000018642_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018643cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000018644exec 5>>config.log
18645{
18646 echo
18647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18648## Running $as_me. ##
18649_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018650 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000018651} >&5
John Criswell7a73b802003-06-30 21:59:07 +000018652
Reid Spencera773bd52006-08-04 18:18:08 +000018653_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018654cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000018655#
Reid Spencera773bd52006-08-04 18:18:08 +000018656# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000018657#
Reid Spencerc0682832005-02-24 19:05:19 +000018658llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000018659
18660_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018662cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000018663
18664# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000018665for ac_config_target in $ac_config_targets
18666do
Reid Spencera773bd52006-08-04 18:18:08 +000018667 case $ac_config_target in
18668 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000018669 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000018670 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18671 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000018672 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000018673 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000018674 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018675 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000018676 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000018677 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000018678 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18679 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000018680 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018681 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18682 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18683 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18684 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18685 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018686 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18687 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000018688 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018689 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18690 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18691 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000018692 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18693 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018695 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18696echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18697 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000018698 esac
18699done
18700
Reid Spencera773bd52006-08-04 18:18:08 +000018701
John Criswell7a73b802003-06-30 21:59:07 +000018702# If the user did not use the arguments to specify the items to instantiate,
18703# then the envvar interface is used. Set only those that are not.
18704# We use the long form for the default assignment because of an extremely
18705# bizarre bug on SunOS 4.1.3.
18706if $ac_need_defaults; then
18707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000018709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000018710fi
18711
John Criswell0c38eaf2003-09-10 15:17:25 +000018712# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000018713# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000018714# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000018715# Hook for its removal unless debugging.
18716# Note that there is a small window in which the directory will not be cleaned:
18717# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000018718$debug ||
18719{
Reid Spencera773bd52006-08-04 18:18:08 +000018720 tmp=
18721 trap 'exit_status=$?
18722 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18723' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018724 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000018725}
John Criswell7a73b802003-06-30 21:59:07 +000018726# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000018727
John Criswell7a73b802003-06-30 21:59:07 +000018728{
Reid Spencera773bd52006-08-04 18:18:08 +000018729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000018730 test -n "$tmp" && test -d "$tmp"
18731} ||
18732{
Reid Spencera773bd52006-08-04 18:18:08 +000018733 tmp=./conf$$-$RANDOM
18734 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018735} ||
18736{
18737 echo "$me: cannot create a temporary directory in ." >&2
18738 { (exit 1); exit 1; }
18739}
John Criswell7a73b802003-06-30 21:59:07 +000018740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018741#
18742# Set up the sed scripts for CONFIG_FILES section.
18743#
18744
18745# No need to generate the scripts if there are no CONFIG_FILES.
18746# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000018747if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000018748
18749_ACEOF
18750
Reid Spencera773bd52006-08-04 18:18:08 +000018751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018752
Reid Spencera773bd52006-08-04 18:18:08 +000018753ac_delim='%!_!# '
18754for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018755 cat >conf$$subs.sed <<_ACEOF
18756SHELL!$SHELL$ac_delim
18757PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18758PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18759PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18760PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18761PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18762PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18763exec_prefix!$exec_prefix$ac_delim
18764prefix!$prefix$ac_delim
18765program_transform_name!$program_transform_name$ac_delim
18766bindir!$bindir$ac_delim
18767sbindir!$sbindir$ac_delim
18768libexecdir!$libexecdir$ac_delim
18769datarootdir!$datarootdir$ac_delim
18770datadir!$datadir$ac_delim
18771sysconfdir!$sysconfdir$ac_delim
18772sharedstatedir!$sharedstatedir$ac_delim
18773localstatedir!$localstatedir$ac_delim
18774includedir!$includedir$ac_delim
18775oldincludedir!$oldincludedir$ac_delim
18776docdir!$docdir$ac_delim
18777infodir!$infodir$ac_delim
18778htmldir!$htmldir$ac_delim
18779dvidir!$dvidir$ac_delim
18780pdfdir!$pdfdir$ac_delim
18781psdir!$psdir$ac_delim
18782libdir!$libdir$ac_delim
18783localedir!$localedir$ac_delim
18784mandir!$mandir$ac_delim
18785DEFS!$DEFS$ac_delim
18786ECHO_C!$ECHO_C$ac_delim
18787ECHO_N!$ECHO_N$ac_delim
18788ECHO_T!$ECHO_T$ac_delim
18789LIBS!$LIBS$ac_delim
18790build_alias!$build_alias$ac_delim
18791host_alias!$host_alias$ac_delim
18792target_alias!$target_alias$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018793LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18794LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18795LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18796LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018797LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000018798CC!$CC$ac_delim
18799CFLAGS!$CFLAGS$ac_delim
18800LDFLAGS!$LDFLAGS$ac_delim
18801CPPFLAGS!$CPPFLAGS$ac_delim
18802ac_ct_CC!$ac_ct_CC$ac_delim
18803EXEEXT!$EXEEXT$ac_delim
18804OBJEXT!$OBJEXT$ac_delim
18805CXX!$CXX$ac_delim
18806CXXFLAGS!$CXXFLAGS$ac_delim
18807ac_ct_CXX!$ac_ct_CXX$ac_delim
18808CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018809subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000018810ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18811LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018812build!$build$ac_delim
18813build_cpu!$build_cpu$ac_delim
18814build_vendor!$build_vendor$ac_delim
18815build_os!$build_os$ac_delim
18816host!$host$ac_delim
18817host_cpu!$host_cpu$ac_delim
18818host_vendor!$host_vendor$ac_delim
18819host_os!$host_os$ac_delim
18820target!$target$ac_delim
18821target_cpu!$target_cpu$ac_delim
18822target_vendor!$target_vendor$ac_delim
18823target_os!$target_os$ac_delim
18824OS!$OS$ac_delim
18825HOST_OS!$HOST_OS$ac_delim
18826TARGET_OS!$TARGET_OS$ac_delim
18827LINKALL!$LINKALL$ac_delim
18828NOLINKALL!$NOLINKALL$ac_delim
18829LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18830LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18831ARCH!$ARCH$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018832LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000018833HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018834LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18835BUILD_CC!$BUILD_CC$ac_delim
18836BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18837BUILD_CXX!$BUILD_CXX$ac_delim
18838CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000018839ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018840ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
Eric Christopher1baa3812013-06-25 01:12:25 +000018841ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000018842ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018843CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000018844ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018845ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18846ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18847DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000018848ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018849ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18850EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Pirama Arumuga Nainar2c3e0052015-05-06 11:46:36 -070018851ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018852DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018853_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000018854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018855 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000018856 break
18857 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018858 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18859echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18860 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018861 else
18862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000018863 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018864done
18865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018866ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18867if test -n "$ac_eof"; then
18868 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18869 ac_eof=`expr $ac_eof + 1`
18870fi
18871
18872cat >>$CONFIG_STATUS <<_ACEOF
18873cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000018875_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018876sed '
18877s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18878s/^/s,@/; s/!/@,|#_!!_#|/
18879:n
18880t n
18881s/'"$ac_delim"'$/,g/; t
18882s/$/\\/; p
18883N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18884' >>$CONFIG_STATUS <conf$$subs.sed
18885rm -f conf$$subs.sed
18886cat >>$CONFIG_STATUS <<_ACEOF
18887CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000018888_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018889
18890
18891ac_delim='%!_!# '
18892for ac_last_try in false false false false false :; do
18893 cat >conf$$subs.sed <<_ACEOF
Pirama Arumuga Nainar2c3e0052015-05-06 11:46:36 -070018894DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018895KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18896JIT!$JIT$ac_delim
Eric Christopher1baa3812013-06-25 01:12:25 +000018897TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018898TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000018899ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18900ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070018901enable_searchengine!$enable_searchengine$ac_delim
18902enable_external_search!$enable_external_search$ac_delim
18903enable_server_based_search!$enable_server_based_search$ac_delim
18904searchengine_url!$searchengine_url$ac_delim
18905extra_search_mappings!$extra_search_mappings$ac_delim
18906QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18907llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18908llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18909llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18910llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18911llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18912llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18913clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18914clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18915clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18916clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18917clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18918clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000018919LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000018920ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Alexey Samsonovee03c942013-04-23 08:28:39 +000018921LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000018922ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000018923ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000018924ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000018925ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018926ALL_TARGETS!$ALL_TARGETS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000018927TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18928LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18929LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000018930LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000018931LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000018932OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000018933EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000018934EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000018935CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000018936BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018937ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000018938INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018939ifGNUmake!$ifGNUmake$ac_delim
18940LN_S!$LN_S$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018941NM!$NM$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018942CMP!$CMP$ac_delim
18943CP!$CP$ac_delim
18944DATE!$DATE$ac_delim
18945FIND!$FIND$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018946GREP!$GREP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018947MKDIR!$MKDIR$ac_delim
18948MV!$MV$ac_delim
18949RANLIB!$RANLIB$ac_delim
18950AR!$AR$ac_delim
18951RM!$RM$ac_delim
18952SED!$SED$ac_delim
18953TAR!$TAR$ac_delim
18954BINPWD!$BINPWD$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018955DOT!$DOT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018956INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18957INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18958INSTALL_DATA!$INSTALL_DATA$ac_delim
18959BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000018960CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018961DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000018962GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000018963GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000018964PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018965ZIP!$ZIP$ac_delim
Stephen Hines37ed9c12014-12-01 14:51:49 -080018966GO!$GO$ac_delim
18967OCAMLFIND!$OCAMLFIND$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000018968GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000018969HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018970EGREP!$EGREP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018971NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18972NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000018973COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greened2f82162013-01-09 22:11:13 +000018974NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18975NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Stephen Hines37ed9c12014-12-01 14:51:49 -080018976NO_COMMENT!$NO_COMMENT$ac_delim
Saleem Abdulrasool581126e2013-01-30 04:44:17 +000018977PYTHON!$PYTHON$ac_delim
Stephen Hines36b56882014-04-23 16:57:46 -070018978HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18979HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018980USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000018981USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000018982XML2CONFIG!$XML2CONFIG$ac_delim
18983LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18984LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018985HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Alexey Samsonovee03c942013-04-23 08:28:39 +000018986HAVE_LIBZ!$HAVE_LIBZ$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018987HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18988MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018989SHLIBEXT!$SHLIBEXT$ac_delim
18990LLVM_PREFIX!$LLVM_PREFIX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000018991_ACEOF
18992
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070018993 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018994 break
18995 elif $ac_last_try; then
18996 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18997echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18998 { (exit 1); exit 1; }; }
18999 else
19000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19001 fi
19002done
19003
19004ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19005if test -n "$ac_eof"; then
19006 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19007 ac_eof=`expr $ac_eof + 1`
19008fi
19009
19010cat >>$CONFIG_STATUS <<_ACEOF
19011cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyd14baf42012-12-13 16:07:19 +000019012/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19013_ACEOF
19014sed '
19015s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19016s/^/s,@/; s/!/@,|#_!!_#|/
19017:n
19018t n
19019s/'"$ac_delim"'$/,g/; t
19020s/$/\\/; p
19021N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19022' >>$CONFIG_STATUS <conf$$subs.sed
19023rm -f conf$$subs.sed
19024cat >>$CONFIG_STATUS <<_ACEOF
19025CEOF$ac_eof
19026_ACEOF
19027
19028
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070019029ac_delim='%!_!# '
19030for ac_last_try in false false false false false :; do
19031 cat >conf$$subs.sed <<_ACEOF
Pirama Arumuga Nainar2c3e0052015-05-06 11:46:36 -070019032LLVM_BINDIR!$LLVM_BINDIR$ac_delim
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070019033LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19034LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19035LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19036LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19037LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19038LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19039LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19040BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19041HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19042HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19043OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19044ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19045RPATH!$RPATH$ac_delim
19046RDYNAMIC!$RDYNAMIC$ac_delim
19047program_prefix!$program_prefix$ac_delim
19048LIBOBJS!$LIBOBJS$ac_delim
19049LTLIBOBJS!$LTLIBOBJS$ac_delim
19050_ACEOF
19051
Pirama Arumuga Nainar2c3e0052015-05-06 11:46:36 -070019052 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070019053 break
19054 elif $ac_last_try; then
19055 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19056echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19057 { (exit 1); exit 1; }; }
19058 else
19059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19060 fi
19061done
19062
19063ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19064if test -n "$ac_eof"; then
19065 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19066 ac_eof=`expr $ac_eof + 1`
19067fi
19068
19069cat >>$CONFIG_STATUS <<_ACEOF
19070cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19071/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19072_ACEOF
19073sed '
19074s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19075s/^/s,@/; s/!/@,|#_!!_#|/
19076:n
19077t n
19078s/'"$ac_delim"'$/,g/; t
19079s/$/\\/; p
19080N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19081' >>$CONFIG_STATUS <conf$$subs.sed
19082rm -f conf$$subs.sed
19083cat >>$CONFIG_STATUS <<_ACEOF
19084:end
19085s/|#_!!_#|//g
19086CEOF$ac_eof
19087_ACEOF
19088
19089
Reid Spencera773bd52006-08-04 18:18:08 +000019090# VPATH may cause trouble with some makes, so we remove $(srcdir),
19091# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19092# trailing colons and then remove the whole line if VPATH becomes empty
19093# (actually we leave an empty line to preserve line numbers).
19094if test "x$srcdir" = x.; then
19095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19096s/:*\$(srcdir):*/:/
19097s/:*\${srcdir}:*/:/
19098s/:*@srcdir@:*/:/
19099s/^\([^=]*=[ ]*\):*/\1/
19100s/:*$//
19101s/^[^=]*=[ ]*$//
19102}'
19103fi
19104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019105cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019106fi # test -n "$CONFIG_FILES"
19107
Reid Spencera773bd52006-08-04 18:18:08 +000019108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019109for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000019110do
19111 case $ac_tag in
19112 :[FHLC]) ac_mode=$ac_tag; continue;;
19113 esac
19114 case $ac_mode$ac_tag in
19115 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019116 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19117echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19118 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000019119 :[FH]-) ac_tag=-:-;;
19120 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19121 esac
19122 ac_save_IFS=$IFS
19123 IFS=:
19124 set x $ac_tag
19125 IFS=$ac_save_IFS
19126 shift
19127 ac_file=$1
19128 shift
19129
19130 case $ac_mode in
19131 :L) ac_source=$1;;
19132 :[FH])
19133 ac_file_inputs=
19134 for ac_f
19135 do
19136 case $ac_f in
19137 -) ac_f="$tmp/stdin";;
19138 *) # Look for the file first in the build tree, then in the source tree
19139 # (if the path is not absolute). The absolute path cannot be DOS-style,
19140 # because $ac_f cannot contain `:'.
19141 test -f "$ac_f" ||
19142 case $ac_f in
19143 [\\/$]*) false;;
19144 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19145 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019146 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19147echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19148 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000019149 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019150 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000019151 done
19152
19153 # Let's still pretend it is `configure' which instantiates (i.e., don't
19154 # use $as_me), people would be surprised to read:
19155 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019156 configure_input="Generated from "`IFS=:
19157 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000019158 if test x"$ac_file" != x-; then
19159 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019160 { echo "$as_me:$LINENO: creating $ac_file" >&5
19161echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000019162 fi
19163
19164 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019165 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000019166 esac
19167 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019168 esac
19169
Reid Spencera773bd52006-08-04 18:18:08 +000019170 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000019171$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019172 X"$ac_file" : 'X\(//\)[^/]' \| \
19173 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000019174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019175echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000019176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19177 s//\1/
19178 q
19179 }
19180 /^X\(\/\/\)[^/].*/{
19181 s//\1/
19182 q
19183 }
19184 /^X\(\/\/\)$/{
19185 s//\1/
19186 q
19187 }
19188 /^X\(\/\).*/{
19189 s//\1/
19190 q
19191 }
19192 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019193 { as_dir="$ac_dir"
19194 case $as_dir in #(
19195 -*) as_dir=./$as_dir;;
19196 esac
19197 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19198 as_dirs=
19199 while :; do
19200 case $as_dir in #(
19201 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19202 *) as_qdir=$as_dir;;
19203 esac
19204 as_dirs="'$as_qdir' $as_dirs"
19205 as_dir=`$as_dirname -- "$as_dir" ||
19206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19207 X"$as_dir" : 'X\(//\)[^/]' \| \
19208 X"$as_dir" : 'X\(//\)$' \| \
19209 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19210echo X"$as_dir" |
19211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19212 s//\1/
19213 q
19214 }
19215 /^X\(\/\/\)[^/].*/{
19216 s//\1/
19217 q
19218 }
19219 /^X\(\/\/\)$/{
19220 s//\1/
19221 q
19222 }
19223 /^X\(\/\).*/{
19224 s//\1/
19225 q
19226 }
19227 s/.*/./; q'`
19228 test -d "$as_dir" && break
19229 done
19230 test -z "$as_dirs" || eval "mkdir $as_dirs"
19231 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19232echo "$as_me: error: cannot create directory $as_dir" >&2;}
19233 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000019234 ac_builddir=.
19235
Reid Spencera773bd52006-08-04 18:18:08 +000019236case "$ac_dir" in
19237.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19238*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000019240 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019241 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000019242 case $ac_top_builddir_sub in
19243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19245 esac ;;
19246esac
19247ac_abs_top_builddir=$ac_pwd
19248ac_abs_builddir=$ac_pwd$ac_dir_suffix
19249# for backward compatibility:
19250ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000019251
19252case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000019253 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000019254 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000019255 ac_top_srcdir=$ac_top_builddir_sub
19256 ac_abs_top_srcdir=$ac_pwd ;;
19257 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000019258 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000019259 ac_top_srcdir=$srcdir
19260 ac_abs_top_srcdir=$srcdir ;;
19261 *) # Relative name.
19262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19263 ac_top_srcdir=$ac_top_build_prefix$srcdir
19264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000019265esac
Reid Spencera773bd52006-08-04 18:18:08 +000019266ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000019267
John Criswell7a73b802003-06-30 21:59:07 +000019268
Reid Spencera773bd52006-08-04 18:18:08 +000019269 case $ac_mode in
19270 :F)
19271 #
19272 # CONFIG_FILE
19273 #
John Criswell7a73b802003-06-30 21:59:07 +000019274
19275 case $INSTALL in
19276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000019278 esac
John Criswell7a73b802003-06-30 21:59:07 +000019279_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000019280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019281cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000019282# If the template does not know about datarootdir, expand it.
19283# FIXME: This hack should be removed a few years after 2.60.
19284ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019285
19286case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000019287 p
19288 q
19289}
19290/@datadir@/p
19291/@docdir@/p
19292/@infodir@/p
19293/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019294/@mandir@/p
19295' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000019296*datarootdir*) ac_datarootdir_seen=yes;;
19297*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019298 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19299echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000019300_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019301cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000019302 ac_datarootdir_hack='
19303 s&@datadir@&$datadir&g
19304 s&@docdir@&$docdir&g
19305 s&@infodir@&$infodir&g
19306 s&@localedir@&$localedir&g
19307 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019308 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019309esac
19310_ACEOF
19311
19312# Neutralize VPATH when `$srcdir' = `.'.
19313# Shell code in configure.ac might set extrasub.
19314# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019315cat >>$CONFIG_STATUS <<_ACEOF
19316 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000019317$extrasub
19318_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019319cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019320:t
19321/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019322s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000019323s&@top_builddir@&$ac_top_builddir_sub&;t t
19324s&@srcdir@&$ac_srcdir&;t t
19325s&@abs_srcdir@&$ac_abs_srcdir&;t t
19326s&@top_srcdir@&$ac_top_srcdir&;t t
19327s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19328s&@builddir@&$ac_builddir&;t t
19329s&@abs_builddir@&$ac_abs_builddir&;t t
19330s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19331s&@INSTALL@&$ac_INSTALL&;t t
19332$ac_datarootdir_hack
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070019333" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000019334
Reid Spencera773bd52006-08-04 18:18:08 +000019335test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19336 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019338 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000019339which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019340echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000019341which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019342
Reid Spencera773bd52006-08-04 18:18:08 +000019343 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000019344 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019345 -) cat "$tmp/out"; rm -f "$tmp/out";;
19346 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19347 esac
Reid Spencera773bd52006-08-04 18:18:08 +000019348 ;;
19349 :H)
19350 #
19351 # CONFIG_HEADER
19352 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019353_ACEOF
19354
19355# Transform confdefs.h into a sed script `conftest.defines', that
19356# substitutes the proper values into config.h.in to produce config.h.
19357rm -f conftest.defines conftest.tail
19358# First, append a space to every undef/define line, to ease matching.
19359echo 's/$/ /' >conftest.defines
19360# Then, protect against being on the right side of a sed subst, or in
19361# an unquoted here document, in config.status. If some macros were
19362# called several times there might be several #defines for the same
19363# symbol, which is useless. But do not sort them, since the last
19364# AC_DEFINE must be honored.
19365ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19366# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19367# NAME is the cpp macro being defined, VALUE is the value it is being given.
19368# PARAMS is the parameter list in the macro definition--in most cases, it's
19369# just an empty string.
19370ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19371ac_dB='\\)[ (].*,\\1define\\2'
19372ac_dC=' '
19373ac_dD=' ,'
19374
19375uniq confdefs.h |
19376 sed -n '
19377 t rset
19378 :rset
19379 s/^[ ]*#[ ]*define[ ][ ]*//
19380 t ok
19381 d
19382 :ok
19383 s/[\\&,]/\\&/g
19384 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19385 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19386 ' >>conftest.defines
19387
19388# Remove the space that was appended to ease matching.
19389# Then replace #undef with comments. This is necessary, for
19390# example, in the case of _POSIX_SOURCE, which is predefined and required
19391# on some systems where configure will not decide to define it.
19392# (The regexp can be short, since the line contains either #define or #undef.)
19393echo 's/ $//
19394s,^[ #]*u.*,/* & */,' >>conftest.defines
19395
19396# Break up conftest.defines:
19397ac_max_sed_lines=50
19398
19399# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19400# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19401# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19402# et cetera.
19403ac_in='$ac_file_inputs'
19404ac_out='"$tmp/out1"'
19405ac_nxt='"$tmp/out2"'
19406
19407while :
19408do
19409 # Write a here document:
19410 cat >>$CONFIG_STATUS <<_ACEOF
19411 # First, check the format of the line:
19412 cat >"\$tmp/defines.sed" <<\\CEOF
19413/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19414/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19415b
19416:def
19417_ACEOF
19418 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19419 echo 'CEOF
19420 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19421 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19422 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19423 grep . conftest.tail >/dev/null || break
19424 rm -f conftest.defines
19425 mv conftest.tail conftest.defines
19426done
19427rm -f conftest.defines conftest.tail
19428
19429echo "ac_result=$ac_in" >>$CONFIG_STATUS
19430cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019431 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019432 echo "/* $configure_input */" >"$tmp/config.h"
19433 cat "$ac_result" >>"$tmp/config.h"
19434 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19435 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19436echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000019437 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019438 rm -f $ac_file
19439 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000019440 fi
19441 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019442 echo "/* $configure_input */"
19443 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000019444 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019445 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000019446 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000019447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19449echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000019450 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000019451 esac
John Criswell7a73b802003-06-30 21:59:07 +000019452
Reid Spencera773bd52006-08-04 18:18:08 +000019453
19454 case $ac_file$ac_mode in
19455 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019457 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000019458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019459 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019461 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019462 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019463 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019464 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019465 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000019466 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000019467 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019468 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019469 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019470 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019471 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019472 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019473 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019474 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000019475 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000019476 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000019477 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000019478 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019479
19480 esac
19481done # for ac_tag
19482
John Criswell7a73b802003-06-30 21:59:07 +000019483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019484{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000019485_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019486chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000019487ac_clean_files=$ac_clean_files_save
19488
19489
19490# configure is writing to config.log, and then calls config.status.
19491# config.status does its own redirection, appending to config.log.
19492# Unfortunately, on DOS this fails, as config.log is still kept open
19493# by configure, so config.status won't be able to write to it; its
19494# output is simply discarded. So we exec the FD to /dev/null,
19495# effectively closing config.log, so it can be properly (re)opened and
19496# appended to by config.status. When coming back to configure, we
19497# need to make the FD available again.
19498if test "$no_create" != yes; then
19499 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000019500 ac_config_status_args=
19501 test "$silent" = yes &&
19502 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000019503 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000019504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000019505 exec 5>>config.log
19506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19507 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019508 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000019509fi
19510
John Criswell12399a12003-09-30 15:55:44 +000019511#
19512# CONFIG_SUBDIRS section.
19513#
19514if test "$no_recursion" != yes; then
19515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019516 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000019517 ac_sub_configure_args=
19518 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000019519 eval "set x $ac_configure_args"
19520 shift
19521 for ac_arg
19522 do
John Criswell12399a12003-09-30 15:55:44 +000019523 if test -n "$ac_prev"; then
19524 ac_prev=
19525 continue
19526 fi
19527 case $ac_arg in
19528 -cache-file | --cache-file | --cache-fil | --cache-fi \
19529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19530 ac_prev=cache_file ;;
19531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19533 | --c=*)
19534 ;;
19535 --config-cache | -C)
19536 ;;
19537 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19538 ac_prev=srcdir ;;
19539 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19540 ;;
19541 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19542 ac_prev=prefix ;;
19543 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19544 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019545 *)
19546 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019547 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019548 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019549 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000019550 esac
19551 done
19552
19553 # Always prepend --prefix to ensure using the same prefix
19554 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000019555 ac_arg="--prefix=$prefix"
19556 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019557 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019558 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019559 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000019560
19561 ac_popdir=`pwd`
19562 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19563
19564 # Do not complain, so a configure script can configure whichever
19565 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000019566 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000019567
Reid Spencera773bd52006-08-04 18:18:08 +000019568 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019569 echo "$as_me:$LINENO: $ac_msg" >&5
19570 echo "$ac_msg" >&6
19571 { as_dir="$ac_dir"
19572 case $as_dir in #(
19573 -*) as_dir=./$as_dir;;
19574 esac
19575 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19576 as_dirs=
19577 while :; do
19578 case $as_dir in #(
19579 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19580 *) as_qdir=$as_dir;;
19581 esac
19582 as_dirs="'$as_qdir' $as_dirs"
19583 as_dir=`$as_dirname -- "$as_dir" ||
19584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19585 X"$as_dir" : 'X\(//\)[^/]' \| \
19586 X"$as_dir" : 'X\(//\)$' \| \
19587 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19588echo X"$as_dir" |
19589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19590 s//\1/
19591 q
19592 }
19593 /^X\(\/\/\)[^/].*/{
19594 s//\1/
19595 q
19596 }
19597 /^X\(\/\/\)$/{
19598 s//\1/
19599 q
19600 }
19601 /^X\(\/\).*/{
19602 s//\1/
19603 q
19604 }
19605 s/.*/./; q'`
19606 test -d "$as_dir" && break
19607 done
19608 test -z "$as_dirs" || eval "mkdir $as_dirs"
19609 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19610echo "$as_me: error: cannot create directory $as_dir" >&2;}
19611 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000019612 ac_builddir=.
19613
Reid Spencera773bd52006-08-04 18:18:08 +000019614case "$ac_dir" in
19615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19616*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000019618 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000019620 case $ac_top_builddir_sub in
19621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19623 esac ;;
19624esac
19625ac_abs_top_builddir=$ac_pwd
19626ac_abs_builddir=$ac_pwd$ac_dir_suffix
19627# for backward compatibility:
19628ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000019629
19630case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000019631 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000019632 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000019633 ac_top_srcdir=$ac_top_builddir_sub
19634 ac_abs_top_srcdir=$ac_pwd ;;
19635 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000019636 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000019637 ac_top_srcdir=$srcdir
19638 ac_abs_top_srcdir=$srcdir ;;
19639 *) # Relative name.
19640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19641 ac_top_srcdir=$ac_top_build_prefix$srcdir
19642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000019643esac
Reid Spencera773bd52006-08-04 18:18:08 +000019644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000019645
19646
Reid Spencera773bd52006-08-04 18:18:08 +000019647 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000019648
19649 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000019650 if test -f "$ac_srcdir/configure.gnu"; then
19651 ac_sub_configure=$ac_srcdir/configure.gnu
19652 elif test -f "$ac_srcdir/configure"; then
19653 ac_sub_configure=$ac_srcdir/configure
19654 elif test -f "$ac_srcdir/configure.in"; then
19655 # This should be Cygnus configure.
19656 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000019657 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19659echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000019660 ac_sub_configure=
19661 fi
19662
19663 # The recursion is here.
19664 if test -n "$ac_sub_configure"; then
19665 # Make the cache file name correct relative to the subdirectory.
19666 case $cache_file in
19667 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019668 *) # Relative name.
19669 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000019670 esac
19671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019672 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19673echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000019674 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000019675 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19676 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019677 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19678echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19679 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000019680 fi
19681
Reid Spencera773bd52006-08-04 18:18:08 +000019682 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000019683 done
19684fi
19685