blob: 2166b691a592da7e119708db278bd1b21fef9a16 [file] [log] [blame]
John Criswell3ef61af2003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendling70d39e62013-11-20 10:10:50 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
John Criswell3ef61af2003-06-30 21:59:07 +00004#
Eric Christopherafbe7522011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00006#
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +000011#
NAKAMURA Takumid40d3872014-01-01 08:27:31 +000012# Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +000016
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3eaf0b42003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3eaf0b42003-09-10 15:17:25 +000027fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3eaf0b42003-09-10 15:17:25 +000030
John Criswell3eaf0b42003-09-10 15:17:25 +000031
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3eaf0b42003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000058fi
John Criswell3eaf0b42003-09-10 15:17:25 +000059
Reid Spencer0b52e2f2006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000071case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3eaf0b42003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell3eaf0b42003-09-10 15:17:25 +000081
Reid Spencer0b52e2f2006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwinaec06332010-01-26 08:50:50 +0000107do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwinaec06332010-01-26 08:50:50 +0000110 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000113done
Torok Edwinaec06332010-01-26 08:50:50 +0000114
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000152
153
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell3eaf0b42003-09-10 15:17:25 +0000440 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell3eaf0b42003-09-10 15:17:25 +0000445 N
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell3eaf0b42003-09-10 15:17:25 +0000448 t loop
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell3eaf0b42003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell3eaf0b42003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell3eaf0b42003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell3eaf0b42003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell3eaf0b42003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000494fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3eaf0b42003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell3eaf0b42003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +0000514else
Reid Spencerf184a862004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000528else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000530fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell3eaf0b42003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000538
539
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000542
John Criswell3ef61af2003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell3ef61af2003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell3eaf0b42003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell3ef61af2003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell3ef61af2003-06-30 21:59:07 +0000560
John Criswell3ef61af2003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherafbe7522011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Bill Wendling70d39e62013-11-20 10:10:50 +0000564PACKAGE_VERSION='3.5svn'
565PACKAGE_STRING='LLVM 3.5svn'
Eric Christopherafbe7522011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell3ef61af2003-06-30 21:59:07 +0000567
Chandler Carruthfbdae1f2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/Module.cpp"
John Criswell3ef61af2003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell3ef61af2003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell3ef61af2003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell3ef61af2003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell3ef61af2003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell3ef61af2003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell3ef61af2003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwinaec06332010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopher58839712011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserea9dca42010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshev7c5db452012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000678LLVM_CROSS_COMPILING
679BUILD_CC
680BUILD_EXEEXT
681BUILD_CXX
682CVSBUILD
Eric Christopher1094ded2011-11-11 22:51:42 +0000683ENABLE_LIBCPP
Eric Christopher04e35972012-08-03 19:47:14 +0000684ENABLE_CXX11
Eric Christopherf1bd7702013-06-25 01:12:25 +0000685ENABLE_SPLIT_DWARF
Roman Divackyf2bb66b2012-12-13 16:07:19 +0000686ENABLE_CLANG_ARCMT
687ENABLE_CLANG_STATIC_ANALYZER
688ENABLE_CLANG_REWRITER
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000689ENABLE_OPTIMIZED
690ENABLE_PROFILING
691DISABLE_ASSERTIONS
Eric Christopher84864012012-08-03 19:58:20 +0000692ENABLE_WERROR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000693ENABLE_EXPENSIVE_CHECKS
694EXPENSIVE_CHECKS
695DEBUG_RUNTIME
696DEBUG_SYMBOLS
Daniel Dunbar39c04622012-08-14 18:14:22 +0000697KEEP_SYMBOLS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000698JIT
699TARGET_HAS_JIT
Rafael Espindola7ac506d2010-11-12 19:24:06 +0000700ENABLE_DOCS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000701ENABLE_DOXYGEN
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +0000702LLVM_ENABLE_THREADS
NAKAMURA Takumic6fce172010-12-29 03:59:03 +0000703ENABLE_PTHREADS
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000704LLVM_ENABLE_ZLIB
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000705ENABLE_PIC
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000706ENABLE_SHARED
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +0000707ENABLE_EMBED_STDCXX
Daniel Dunbardac18242010-05-10 20:11:56 +0000708ENABLE_TIMESTAMPS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000709TARGETS_TO_BUILD
710LLVM_ENUM_TARGETS
711LLVM_ENUM_ASM_PRINTERS
712LLVM_ENUM_ASM_PARSERS
713LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000714OPTIMIZE_OPTION
715EXTRA_OPTIONS
Daniel Dunbar3b95df82011-06-16 22:30:41 +0000716EXTRA_LD_OPTIONS
NAKAMURA Takumi914f1922011-10-16 02:54:26 +0000717CLANG_SRC_ROOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000718BINUTILS_INCDIR
Bob Wilson3f354702011-11-28 07:59:52 +0000719INTERNAL_PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000720NM
721ifGNUmake
722LN_S
723CMP
724CP
725DATE
726FIND
Eric Christopherd7ed36b2014-01-09 01:09:57 +0000727GREP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000728MKDIR
729MV
730RANLIB
731AR
732RM
733SED
734TAR
735BINPWD
736GRAPHVIZ
737DOT
738FDP
739NEATO
740TWOPI
741CIRCO
742GV
743DOTTY
Matt Arsenaultfe56cc62013-07-08 20:24:54 +0000744XDOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000745INSTALL_PROGRAM
746INSTALL_SCRIPT
747INSTALL_DATA
748BZIP2
mike-me08af302010-05-06 23:45:43 +0000749CAT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000750DOXYGEN
Daniel Dunbard1888822012-05-08 18:26:07 +0000751GROFF
Eric Christopher77560892010-12-10 01:31:51 +0000752GZIPBIN
Daniel Dunbard1888822012-05-08 18:26:07 +0000753PDFROFF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
Daniel Dunbard1888822012-05-08 18:26:07 +0000759GAS
Dan Gohmanb7edb422010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Eric Christopherd7ed36b2014-01-09 01:09:57 +0000761EGREP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000762INSTALL_LTDL_TRUE
763INSTALL_LTDL_FALSE
764CONVENIENCE_LTDL_TRUE
765CONVENIENCE_LTDL_FALSE
766LIBADD_DL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000767NO_VARIADIC_MACROS
768NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola42e94d12012-02-28 23:32:06 +0000769COVERED_SWITCH_DEFAULT
David Greene9ff8d472013-01-09 22:11:13 +0000770NO_MAYBE_UNINITIALIZED
771NO_UNINITIALIZED
Saleem Abdulrasoola1665742013-01-30 04:44:17 +0000772PYTHON
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000773USE_UDIS86
774USE_OPROFILE
Eli Bendersky5262ad22012-03-13 08:33:15 +0000775USE_INTEL_JITEVENTS
Eric Christopherc807c532012-08-03 19:47:19 +0000776XML2CONFIG
777LIBXML2_LIBS
778LIBXML2_INC
Benjamin Kramer00622f72013-05-03 15:55:06 +0000779CXXCPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000780HAVE_PTHREAD
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000781HAVE_LIBZ
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000782HUGE_VAL_SANITY
783MMAP_FILE
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000784SHLIBEXT
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000785SHLIBPATH_VAR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000786LLVM_PREFIX
787LLVM_BINDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000788LLVM_DATADIR
789LLVM_DOCSDIR
790LLVM_ETCDIR
791LLVM_INCLUDEDIR
792LLVM_INFODIR
793LLVM_MANDIR
794LLVM_CONFIGTIME
795BINDINGS_TO_BUILD
796ALL_BINDINGS
797OCAML_LIBDIR
798ENABLE_VISIBILITY_INLINES_HIDDEN
799RPATH
800RDYNAMIC
Jordan Rose3c837ab2012-10-01 18:40:32 +0000801program_prefix
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000802LIBOBJS
803LTLIBOBJS'
John Criswell3eaf0b42003-09-10 15:17:25 +0000804ac_subst_files=''
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000805 ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811CPPFLAGS
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000812CXX
813CXXFLAGS
Eric Christopher58839712011-09-16 20:36:25 +0000814CCC
Benjamin Kramer00622f72013-05-03 15:55:06 +0000815CPP
816CXXCPP'
Chandler Carruthaf968ed2014-01-14 04:01:01 +0000817ac_subdirs_all='projects/test-suite
John Criswellf369e772010-03-19 21:31:39 +0000818projects/llvm-test
819projects/poolalloc
820projects/llvm-poolalloc
821projects/sample
John Criswell4d377d82010-02-25 22:57:19 +0000822projects/safecode
Tobias Grosserea9dca42010-10-30 00:54:26 +0000823tools/polly'
John Criswell3ef61af2003-06-30 21:59:07 +0000824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828# The variables have the same names as the options, with
829# dashes changed to underlines.
830cache_file=/dev/null
831exec_prefix=NONE
832no_create=
833no_recursion=
834prefix=NONE
835program_prefix=NONE
836program_suffix=NONE
837program_transform_name=s,x,x,
838silent=
839site=
840srcdir=
841verbose=
842x_includes=NONE
843x_libraries=NONE
844
845# Installation directory options.
846# These are left unexpanded so users can "make install exec_prefix=/foo"
847# and all the variables that are supposed to be based on exec_prefix
848# by default will actually change.
849# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000850# (The list follows the same order as the GNU Coding Standards.)
John Criswell3ef61af2003-06-30 21:59:07 +0000851bindir='${exec_prefix}/bin'
852sbindir='${exec_prefix}/sbin'
853libexecdir='${exec_prefix}/libexec'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000854datarootdir='${prefix}/share'
855datadir='${datarootdir}'
John Criswell3ef61af2003-06-30 21:59:07 +0000856sysconfdir='${prefix}/etc'
857sharedstatedir='${prefix}/com'
858localstatedir='${prefix}/var'
John Criswell3ef61af2003-06-30 21:59:07 +0000859includedir='${prefix}/include'
860oldincludedir='/usr/include'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
John Criswell3ef61af2003-06-30 21:59:07 +0000870
871ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000872ac_dashdash=
John Criswell3ef61af2003-06-30 21:59:07 +0000873for ac_option
874do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000877 eval $ac_prev=\$ac_option
John Criswell3ef61af2003-06-30 21:59:07 +0000878 ac_prev=
879 continue
880 fi
881
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000882 case $ac_option in
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *) ac_optarg=yes ;;
885 esac
John Criswell3ef61af2003-06-30 21:59:07 +0000886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000913 -datadir | --datadir | --datadi | --datad)
John Criswell3ef61af2003-06-30 21:59:07 +0000914 ac_prev=datadir ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell3ef61af2003-06-30 21:59:07 +0000916 datadir=$ac_optarg ;;
917
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
John Criswell3ef61af2003-06-30 21:59:07 +0000925 -disable-* | --disable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000927 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000943
944 -enable-* | --enable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000946 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
John Criswell3ef61af2003-06-30 21:59:07 +0000984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
John Criswell3ef61af2003-06-30 21:59:07 +00001013 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001014 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell3ef61af2003-06-30 21:59:07 +00001015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell3ef61af2003-06-30 21:59:07 +00001018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
John Criswell3ef61af2003-06-30 21:59:07 +00001092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001143 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001149
1150 -without-* | --without-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001152 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001158
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1162
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1169
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1176
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001188 eval $ac_envvar=\$ac_optarg
John Criswell3ef61af2003-06-30 21:59:07 +00001189 export $ac_envvar ;;
1190
1191 *)
1192 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 ;;
1198
1199 esac
1200done
1201
1202if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001206fi
1207
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001208# Be sure to have absolute directory names.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001209for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
John Criswell3ef61af2003-06-30 21:59:07 +00001213do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001214 eval ac_val=\$$ac_var
John Criswell3ef61af2003-06-30 21:59:07 +00001215 case $ac_val in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell3ef61af2003-06-30 21:59:07 +00001218 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell3ef61af2003-06-30 21:59:07 +00001235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001255
1256
John Criswell3ef61af2003-06-30 21:59:07 +00001257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001260 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001261 ac_confdir=`$as_dirname -- "$0" ||
1262$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266echo X"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
John Criswell3ef61af2003-06-30 21:59:07 +00001284 srcdir=$ac_confdir
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001285 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell3ef61af2003-06-30 21:59:07 +00001286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001295fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001300 pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
John Criswell3ef61af2003-06-30 21:59:07 +00001317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
Bill Wendling70d39e62013-11-20 10:10:50 +00001325\`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
John Criswell3ef61af2003-06-30 21:59:07 +00001326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
John Criswell3ef61af2003-06-30 21:59:07 +00001345Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001347 [$ac_default_prefix]
John Criswell3ef61af2003-06-30 21:59:07 +00001348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001349 [PREFIX]
John Criswell3ef61af2003-06-30 21:59:07 +00001350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherafbe7522011-12-21 00:52:44 +00001373 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
John Criswell3ef61af2003-06-30 21:59:07 +00001378_ACEOF
1379
1380 cat <<\_ACEOF
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390 case $ac_init_help in
Bill Wendling70d39e62013-11-20 10:10:50 +00001391 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
John Criswell3ef61af2003-06-30 21:59:07 +00001392 esac
1393 cat <<\_ACEOF
1394
1395Optional Features:
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chandler Carruth7206eae2014-01-15 19:19:13 +00001398 --enable-polly Use polly if available (default is YES)
1399 --enable-libcpp Use libc++ if available (default is NO)
Chandler Carruth75a65452014-01-14 05:02:38 +00001400 --enable-compiler-version-checks
1401 Check the version of the host compiler (default is
1402 YES)
Eric Christopher04e35972012-08-03 19:47:14 +00001403 --enable-cxx11 Use c++11 if available (default is NO)
Eric Christopherf1bd7702013-06-25 01:12:25 +00001404 --enable-split-dwarf Use split-dwarf if available (default is NO)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001405 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1406 --enable-clang-static-analyzer
1407 Enable building of clang Static Analyzer (default is
1408 YES)
1409 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewycky86679902009-06-06 06:25:09 +00001410 --enable-optimized Compile with optimizations enabled (default is NO)
1411 --enable-profiling Compile with profiling enabled (default is NO)
1412 --enable-assertions Compile with assertion checks enabled (default is
1413 YES)
Eric Christopher84864012012-08-03 19:58:20 +00001414 --enable-werror Compile with -Werror enabled (default is NO)
David Greenecbc8ddf2007-06-28 19:36:08 +00001415 --enable-expensive-checks
Nick Lewycky86679902009-06-06 06:25:09 +00001416 Compile with expensive debug checks enabled (default
1417 is NO)
1418 --enable-debug-runtime Build runtime libs with debug symbols (default is
1419 NO)
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00001420 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1421 optimization is on and YES if it's off)
Daniel Dunbar39c04622012-08-14 18:14:22 +00001422 --enable-keep-symbols Do not strip installed executables)
Reid Spencer0241e382004-11-25 04:51:04 +00001423 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola7ac506d2010-11-12 19:24:06 +00001424 --enable-docs Build documents (default is YES)
Reid Spencer0194c9a2004-11-29 04:56:35 +00001425 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencerf85fabeb2005-08-24 10:07:20 +00001426 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00001427 --enable-pthreads Use pthreads if available (default is YES)
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00001428 --enable-zlib Use zlib for compression/decompression if available
1429 (default is YES)
Reid Spencer05a1fe52006-12-16 22:07:52 +00001430 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky38525192009-02-19 06:18:56 +00001431 is YES)
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00001432 --enable-shared Build a shared library and link tools against it
1433 (default is NO)
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00001434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00001435 Win32 DLL (default is NO)
Daniel Dunbardac18242010-05-10 20:11:56 +00001436 --enable-timestamps Enable embedding timestamp information in build
1437 (default is YES)
Eric Christopher9fafe072012-09-21 23:03:29 +00001438 --enable-backtraces Enable embedding backtraces on crash (default is
1439 YES)
Daniel Dunbareb6c7082013-08-30 20:39:21 +00001440 --enable-crash-overrides
1441 Enable crash handling overrides (default is YES)
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00001442 --enable-targets Build specific host targets: all or
1443 target1,target2,... Valid targets are: host, x86,
Tim Northovere0e3aef2013-01-31 12:12:40 +00001444 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
Rafael Espindolaf6474d22013-05-22 00:35:47 +00001445 xcore, msp430, nvptx, systemz, r600, and cpp
1446 (default=all)
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00001447 --enable-experimental-targets
1448 Build experimental host targets: disable or
1449 target1,target2,... (default=disable)
Gordon Henriksene61dd672007-10-02 09:50:32 +00001450 --enable-bindings Build specific language bindings:
1451 all,auto,none,{binding-name} (default=auto)
Chandler Carruthf11f1e42013-08-12 09:49:17 +00001452 --enable-terminfo Query the terminfo database if available (default is
1453 YES)
Peter Collingbournec7d437c2014-01-31 23:46:14 +00001454 --enable-libedit Use libedit if available (default is YES)
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00001455 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencera40c6872004-11-29 12:29:58 +00001456 --enable-ltdl-install install libltdl
John Criswell3ef61af2003-06-30 21:59:07 +00001457
1458Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00001461 --with-optimize-option Select the compiler options to use for optimized
1462 builds
Duncan Sandsef8c8ec2009-05-13 13:13:18 +00001463 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbar3b95df82011-06-16 22:30:41 +00001464 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00001465 --with-ocaml-libdir Specify install location for ocaml bindings (default
1466 is stdlib)
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00001467 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruthffae4a62010-10-19 08:21:25 +00001468 --with-clang-resource-dir
1469 Relative directory from the Clang binary for
1470 resource files
Rafael Espindolad95960b2009-11-12 05:46:09 +00001471 --with-c-include-dirs Colon separated list of directories clang will
1472 search for headers
Rafael Espindolaec217f62012-02-03 00:59:30 +00001473 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop5c9e1842012-04-16 04:11:45 +00001474 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00001475 --with-binutils-include Specify path to binutils/include/ containing
1476 plugin-api.h file for gold plugin.
Eric Christopher65080cc2011-07-20 17:04:49 +00001477 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00001478 submitted (default=http://llvm.org/bugs/)
Bob Wilson3f354702011-11-28 07:59:52 +00001479 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00001480 --with-python path to python
Reid Spencere5f3de32007-01-19 17:41:47 +00001481 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00001482 --with-oprofile=<prefix>
1483 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor5808c7d2012-09-28 17:35:20 +00001484 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1485
John Criswell3ef61af2003-06-30 21:59:07 +00001486
1487Some influential environment variables:
Reid Spencer0241e382004-11-25 04:51:04 +00001488 CC C compiler command
1489 CFLAGS C compiler flags
John Criswell3ef61af2003-06-30 21:59:07 +00001490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001493 you have headers in a nonstandard directory <include dir>
Reid Spencer0241e382004-11-25 04:51:04 +00001494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
Eric Christopher58839712011-09-16 20:36:25 +00001496 CPP C preprocessor
Benjamin Kramer00622f72013-05-03 15:55:06 +00001497 CXXCPP C++ preprocessor
John Criswell3ef61af2003-06-30 21:59:07 +00001498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
Eric Christopherafbe7522011-12-21 00:52:44 +00001502Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00001503_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001504ac_status=$?
John Criswell3ef61af2003-06-30 21:59:07 +00001505fi
1506
1507if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
John Criswell3ef61af2003-06-30 21:59:07 +00001509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001510 test -d "$ac_dir" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00001511 ac_builddir=.
1512
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001513case "$ac_dir" in
1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001516 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001517 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001518 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523esac
1524ac_abs_top_builddir=$ac_pwd
1525ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526# for backward compatibility:
1527ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +00001528
1529case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001530 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +00001531 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +00001535 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001542esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +00001544
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell3ef61af2003-06-30 21:59:07 +00001553 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001554 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell3ef61af2003-06-30 21:59:07 +00001557 done
1558fi
1559
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001560test -n "$ac_init_help" && exit $ac_status
John Criswell3ef61af2003-06-30 21:59:07 +00001561if $ac_init_version; then
1562 cat <<\_ACEOF
Bill Wendling70d39e62013-11-20 10:10:50 +00001563LLVM configure 3.5svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001564generated by GNU Autoconf 2.60
John Criswell3ef61af2003-06-30 21:59:07 +00001565
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001566Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15672002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00001568This configure script is free software; the Free Software Foundation
1569gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +00001570
NAKAMURA Takumid40d3872014-01-01 08:27:31 +00001571Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
John Criswell3ef61af2003-06-30 21:59:07 +00001572_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001573 exit
John Criswell3ef61af2003-06-30 21:59:07 +00001574fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001575cat >config.log <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00001576This file contains any messages produced by compilers while
1577running configure, to aid debugging if configure makes a mistake.
1578
Bill Wendling70d39e62013-11-20 10:10:50 +00001579It was created by LLVM $as_me 3.5svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001580generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +00001581
1582 $ $0 $@
1583
1584_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001585exec 5>>config.log
John Criswell3ef61af2003-06-30 21:59:07 +00001586{
1587cat <<_ASUNAME
1588## --------- ##
1589## Platform. ##
1590## --------- ##
1591
1592hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597
1598/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1600
1601/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1602/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1603/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001604/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell3ef61af2003-06-30 21:59:07 +00001605/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1606/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1607/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1608
1609_ASUNAME
1610
1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001616 echo "PATH: $as_dir"
1617done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001618IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00001619
1620} >&5
1621
1622cat >&5 <<_ACEOF
1623
1624
1625## ----------- ##
1626## Core tests. ##
1627## ----------- ##
1628
1629_ACEOF
1630
1631
1632# Keep a trace of the command line.
1633# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell3eaf0b42003-09-10 15:17:25 +00001634# Strip out --silent because we don't want to record it for future runs.
John Criswell3ef61af2003-06-30 21:59:07 +00001635# Also quote any args containing shell meta-characters.
John Criswell3eaf0b42003-09-10 15:17:25 +00001636# Make two passes to allow for proper duplicate-argument suppression.
John Criswell3ef61af2003-06-30 21:59:07 +00001637ac_configure_args=
John Criswell3eaf0b42003-09-10 15:17:25 +00001638ac_configure_args0=
1639ac_configure_args1=
John Criswell3eaf0b42003-09-10 15:17:25 +00001640ac_must_keep_next=false
1641for ac_pass in 1 2
John Criswell3ef61af2003-06-30 21:59:07 +00001642do
John Criswell3eaf0b42003-09-10 15:17:25 +00001643 for ac_arg
1644 do
1645 case $ac_arg in
1646 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648 | -silent | --silent | --silen | --sile | --sil)
1649 continue ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001650 *\'*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001651 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001652 esac
1653 case $ac_pass in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001654 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001655 2)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001656 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001657 if test $ac_must_keep_next = true; then
Reid Spencerf184a862004-09-19 23:53:36 +00001658 ac_must_keep_next=false # Got value, back to normal.
John Criswell3eaf0b42003-09-10 15:17:25 +00001659 else
Reid Spencerf184a862004-09-19 23:53:36 +00001660 case $ac_arg in
1661 *=* | --config-cache | -C | -disable-* | --disable-* \
1662 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664 | -with-* | --with-* | -without-* | --without-* | --x)
1665 case "$ac_configure_args0 " in
1666 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1667 esac
1668 ;;
1669 -* ) ac_must_keep_next=true ;;
1670 esac
John Criswell3eaf0b42003-09-10 15:17:25 +00001671 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001672 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001673 ;;
1674 esac
1675 done
John Criswell3ef61af2003-06-30 21:59:07 +00001676done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001677$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell3ef61af2003-06-30 21:59:07 +00001679
1680# When interrupted or exit'd, cleanup temporary files, and complete
1681# config.log. We remove comments because anyway the quotes in there
1682# would cause problems or look ugly.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001683# WARNING: Use '\'' to represent an apostrophe within the trap.
1684# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell3ef61af2003-06-30 21:59:07 +00001685trap 'exit_status=$?
1686 # Save into config.log some information that might help in debugging.
1687 {
1688 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001689
John Criswell3ef61af2003-06-30 21:59:07 +00001690 cat <<\_ASBOX
1691## ---------------- ##
1692## Cache variables. ##
1693## ---------------- ##
1694_ASBOX
1695 echo
1696 # The following way of writing the cache mishandles newlines in values,
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001697(
1698 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699 eval ac_val=\$$ac_var
1700 case $ac_val in #(
1701 *${as_nl}*)
1702 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001705 esac
1706 case $ac_var in #(
1707 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001708 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001709 esac ;;
1710 esac
1711 done
John Criswell3ef61af2003-06-30 21:59:07 +00001712 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001713 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714 *${as_nl}ac_space=\ *)
John Criswell3ef61af2003-06-30 21:59:07 +00001715 sed -n \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001716 "s/'\''/'\''\\\\'\'''\''/g;
1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +00001719 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +00001721 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001722 esac |
1723 sort
1724)
John Criswell3ef61af2003-06-30 21:59:07 +00001725 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001726
1727 cat <<\_ASBOX
1728## ----------------- ##
1729## Output variables. ##
1730## ----------------- ##
1731_ASBOX
1732 echo
1733 for ac_var in $ac_subst_vars
1734 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001735 eval ac_val=\$$ac_var
1736 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001738 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001739 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001740 done | sort
1741 echo
1742
1743 if test -n "$ac_subst_files"; then
1744 cat <<\_ASBOX
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001745## ------------------- ##
1746## File substitutions. ##
1747## ------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +00001748_ASBOX
1749 echo
1750 for ac_var in $ac_subst_files
1751 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001752 eval ac_val=\$$ac_var
1753 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001755 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001756 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001757 done | sort
1758 echo
1759 fi
1760
John Criswell3ef61af2003-06-30 21:59:07 +00001761 if test -s confdefs.h; then
1762 cat <<\_ASBOX
1763## ----------- ##
1764## confdefs.h. ##
1765## ----------- ##
1766_ASBOX
1767 echo
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001768 cat confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001769 echo
1770 fi
1771 test "$ac_signal" != 0 &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001772 echo "$as_me: caught signal $ac_signal"
1773 echo "$as_me: exit $exit_status"
John Criswell3ef61af2003-06-30 21:59:07 +00001774 } >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001775 rm -f core *.core core.conftest.* &&
1776 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell3ef61af2003-06-30 21:59:07 +00001777 exit $exit_status
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001778' 0
John Criswell3ef61af2003-06-30 21:59:07 +00001779for ac_signal in 1 2 13 15; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001780 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell3ef61af2003-06-30 21:59:07 +00001781done
1782ac_signal=0
1783
1784# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001785rm -f -r conftest* confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001786
1787# Predefined preprocessor variables.
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_NAME "$PACKAGE_NAME"
1791_ACEOF
1792
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001793
John Criswell3ef61af2003-06-30 21:59:07 +00001794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796_ACEOF
1797
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001798
John Criswell3ef61af2003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_VERSION "$PACKAGE_VERSION"
1801_ACEOF
1802
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001803
John Criswell3ef61af2003-06-30 21:59:07 +00001804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_STRING "$PACKAGE_STRING"
1806_ACEOF
1807
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001808
John Criswell3ef61af2003-06-30 21:59:07 +00001809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811_ACEOF
1812
1813
1814# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001815# Prefer explicitly selected file to automatically selected ones.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001816if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001817 set x "$CONFIG_SITE"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001818elif test "x$prefix" != xNONE; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001819 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001820else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001821 set x "$ac_default_prefix/share/config.site" \
1822 "$ac_default_prefix/etc/config.site"
John Criswell3ef61af2003-06-30 21:59:07 +00001823fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001824shift
1825for ac_site_file
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001826do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001827 if test -r "$ac_site_file"; then
1828 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001830 sed 's/^/| /' "$ac_site_file" >&5
1831 . "$ac_site_file"
1832 fi
1833done
1834
1835if test -r "$cache_file"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001836 # Some versions of bash will fail to source /dev/null (special
1837 # files actually), so we avoid doing that.
1838 if test -f "$cache_file"; then
1839 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840echo "$as_me: loading cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001841 case $cache_file in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
John Criswell3ef61af2003-06-30 21:59:07 +00001844 esac
1845 fi
1846else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001847 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848echo "$as_me: creating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001849 >$cache_file
1850fi
1851
1852# Check that the precious variables saved in the cache have kept the same
1853# value.
1854ac_cache_corrupted=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001855for ac_var in $ac_precious_vars; do
John Criswell3ef61af2003-06-30 21:59:07 +00001856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell3ef61af2003-06-30 21:59:07 +00001860 case $ac_old_set,$ac_new_set in
1861 set,)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001864 ac_cache_corrupted=: ;;
1865 ,set)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001866 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001868 ac_cache_corrupted=: ;;
1869 ,);;
1870 *)
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001872 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1875echo "$as_me: former value: $ac_old_val" >&2;}
1876 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1877echo "$as_me: current value: $ac_new_val" >&2;}
1878 ac_cache_corrupted=:
John Criswell3ef61af2003-06-30 21:59:07 +00001879 fi;;
1880 esac
1881 # Pass precious variables to config.status.
1882 if test "$ac_new_set" = set; then
1883 case $ac_new_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001884 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001885 *) ac_arg=$ac_var=$ac_new_val ;;
1886 esac
1887 case " $ac_configure_args " in
1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001890 esac
1891 fi
1892done
1893if $ac_cache_corrupted; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001894 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001899fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001924
John Criswell3ef61af2003-06-30 21:59:07 +00001925ac_ext=c
1926ac_cpp='$CPP $CPPFLAGS'
1927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930
1931
1932
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001933cat >>confdefs.h <<\_ACEOF
1934#define LLVM_VERSION_MAJOR 3
1935_ACEOF
1936
1937
1938cat >>confdefs.h <<\_ACEOF
Bill Wendling70d39e62013-11-20 10:10:50 +00001939#define LLVM_VERSION_MINOR 5
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001940_ACEOF
1941
1942
NAKAMURA Takumid40d3872014-01-01 08:27:31 +00001943LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
Reid Spencer0241e382004-11-25 04:51:04 +00001944
1945
1946
1947
1948
1949
1950
John Criswell3ef61af2003-06-30 21:59:07 +00001951ac_aux_dir=
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001952for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001953 if test -f "$ac_dir/install-sh"; then
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 break
1957 elif test -f "$ac_dir/install.sh"; then
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 break
1961 elif test -f "$ac_dir/shtool"; then
1962 ac_aux_dir=$ac_dir
1963 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 break
1965 fi
John Criswell3ef61af2003-06-30 21:59:07 +00001966done
1967if test -z "$ac_aux_dir"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001968 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1969echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1970 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001971fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001972
1973# These three variables are undocumented and unsupported,
1974# and are intended to be withdrawn in a future Autoconf release.
1975# They can cause serious problems if a builder's source tree is in a directory
1976# whose full name contains unusual characters.
1977ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1978ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1979ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1980
John Criswell3ef61af2003-06-30 21:59:07 +00001981
John Criswellc933eeb2003-07-22 19:18:09 +00001982
Reid Spencerf184a862004-09-19 23:53:36 +00001983if test ${srcdir} != "." ; then
Reid Spencer0241e382004-11-25 04:51:04 +00001984 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001985 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1986echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1987 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00001988 fi
John Criswell22107a72003-09-15 17:04:06 +00001989fi
1990
Patrik Hagglund98578472013-09-24 11:38:45 +00001991: ${CFLAGS=}
1992: ${CXXFLAGS=}
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00001993
Nick Lewyckyc5975fc2009-09-29 05:48:51 +00001994ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +00001995ac_cpp='$CPP $CPPFLAGS'
1996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00001999if test -n "$ac_tool_prefix"; then
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002000 for ac_prog in clang gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002001 do
2002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002008else
Reid Spencer0241e382004-11-25 04:51:04 +00002009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002011else
2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013for as_dir in $PATH
2014do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002021 break 2
2022 fi
2023done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002024done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002025IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002026
2027fi
2028fi
Reid Spencer0241e382004-11-25 04:51:04 +00002029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002031 { echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002033else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002034 { echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002036fi
2037
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002038
Reid Spencer0241e382004-11-25 04:51:04 +00002039 test -n "$CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002040 done
2041fi
Reid Spencer0241e382004-11-25 04:51:04 +00002042if test -z "$CC"; then
2043 ac_ct_CC=$CC
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002044 for ac_prog in clang gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002045do
2046 # Extract the first word of "$ac_prog", so it can be a program name with args.
2047set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002052else
Reid Spencer0241e382004-11-25 04:51:04 +00002053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002063 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002065 break 2
2066 fi
2067done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002068done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002069IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002070
2071fi
2072fi
Reid Spencer0241e382004-11-25 04:51:04 +00002073ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074if test -n "$ac_ct_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002075 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002077else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002078 { echo "$as_me:$LINENO: result: no" >&5
2079echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002080fi
2081
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002082
Reid Spencer0241e382004-11-25 04:51:04 +00002083 test -n "$ac_ct_CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002084done
John Criswell3ef61af2003-06-30 21:59:07 +00002085
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002086 if test "x$ac_ct_CC" = x; then
2087 CC=""
2088 else
2089 case $cross_compiling:$ac_tool_warned in
2090yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002091{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2092whose name does not start with the host triplet. If you think this
2093configuration is useful to you, please write to autoconf@gnu.org." >&5
2094echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2095whose name does not start with the host triplet. If you think this
2096configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002097ac_tool_warned=yes ;;
2098esac
2099 CC=$ac_ct_CC
2100 fi
Reid Spencer0241e382004-11-25 04:51:04 +00002101fi
2102
John Criswell3ef61af2003-06-30 21:59:07 +00002103
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002104test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105See \`config.log' for more details." >&5
2106echo "$as_me: error: no acceptable C compiler found in \$PATH
2107See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002109
John Criswell3ef61af2003-06-30 21:59:07 +00002110# Provide some information about the compiler.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002111echo "$as_me:$LINENO: checking for C compiler version" >&5
2112ac_compiler=`set X $ac_compile; echo $2`
2113{ (ac_try="$ac_compiler --version >&5"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler --version >&5") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002120 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123{ (ac_try="$ac_compiler -v >&5"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129 (eval "$ac_compiler -v >&5") 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133{ (ac_try="$ac_compiler -V >&5"
2134case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137esac
2138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler -V >&5") 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
John Criswell3ef61af2003-06-30 21:59:07 +00002143
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002144cat >conftest.$ac_ext <<_ACEOF
2145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002149/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002150
John Criswell3ef61af2003-06-30 21:59:07 +00002151int
2152main ()
2153{
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002160ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell3ef61af2003-06-30 21:59:07 +00002161# Try to create an executable without -o first, disregard a.out.
2162# It will help us diagnose broken compilers, and finding out an intuition
2163# of exeext.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002164{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167#
2168# List of possible output files, starting from the most likely.
2169# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170# only as a last resort. b.out is created by i960 compilers.
2171ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172#
2173# The IRIX 6 linker writes into existing files which may not be
2174# executable, retaining their permissions. Remove them first so a
2175# subsequent execution test works.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002176ac_rmfiles=
2177for ac_file in $ac_files
2178do
2179 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2182 esac
2183done
2184rm -f $ac_rmfiles
2185
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002186if { (ac_try="$ac_link_default"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002187case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002192 (eval "$ac_link_default") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002193 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198# in a Makefile. We should not override ac_cv_exeext if it was cached,
2199# so that the user can short-circuit this test for compilers unknown to
2200# Autoconf.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002201for ac_file in $ac_files
John Criswell3eaf0b42003-09-10 15:17:25 +00002202do
2203 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002204 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencerf184a862004-09-19 23:53:36 +00002206 ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002207 [ab].out )
Reid Spencerf184a862004-09-19 23:53:36 +00002208 # We found the default executable, but exeext='' is most
2209 # certainly right.
2210 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002211 *.* )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002213 then :; else
2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 fi
2216 # We set ac_cv_exeext here because the later test for it is not
2217 # safe: cross compilers may not add the suffix if given an `-o'
2218 # argument, so we may need to know it at that point already.
2219 # Even if this section looks crufty: it has the advantage of
2220 # actually working.
Reid Spencerf184a862004-09-19 23:53:36 +00002221 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002222 * )
Reid Spencerf184a862004-09-19 23:53:36 +00002223 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002224 esac
2225done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002226test "$ac_cv_exeext" = no && ac_cv_exeext=
2227
John Criswell3ef61af2003-06-30 21:59:07 +00002228else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002229 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002230sed 's/^/| /' conftest.$ac_ext >&5
2231
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002232{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: C compiler cannot create executables
2235See \`config.log' for more details." >&2;}
2236 { (exit 77); exit 77; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002237fi
John Criswell3ef61af2003-06-30 21:59:07 +00002238
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002239ac_exeext=$ac_cv_exeext
2240{ echo "$as_me:$LINENO: result: $ac_file" >&5
2241echo "${ECHO_T}$ac_file" >&6; }
2242
2243# Check that the compiler produces executables we can run. If not, either
2244# the compiler is broken, or we cross compile.
2245{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248# If not cross compiling, check that we can run a simple program.
2249if test "$cross_compiling" != yes; then
2250 if { ac_try='./$ac_file'
2251 { (case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254esac
2255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256 (eval "$ac_try") 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2260 cross_compiling=no
2261 else
2262 if test "$cross_compiling" = maybe; then
2263 cross_compiling=yes
2264 else
2265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266If you meant to cross compile, use \`--host'.
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: cannot run C compiled programs.
2269If you meant to cross compile, use \`--host'.
2270See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2272 fi
2273 fi
2274fi
2275{ echo "$as_me:$LINENO: result: yes" >&5
2276echo "${ECHO_T}yes" >&6; }
2277
2278rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell3ef61af2003-06-30 21:59:07 +00002279ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002280# Check that the compiler produces executables we can run. If not, either
2281# the compiler is broken, or we cross compile.
2282{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285echo "${ECHO_T}$cross_compiling" >&6; }
2286
2287{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289if { (ac_try="$ac_link"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002290case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002295 (eval "$ac_link") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002296 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2301# work properly (i.e., refer to `conftest.exe'), while it won't with
2302# `rm'.
John Criswell3eaf0b42003-09-10 15:17:25 +00002303for ac_file in conftest.exe conftest conftest.*; do
2304 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002305 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencerf184a862004-09-19 23:53:36 +00002308 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002309 * ) break;;
2310 esac
2311done
2312else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314See \`config.log' for more details." >&5
2315echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002318fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002319
2320rm -f conftest$ac_cv_exeext
2321{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002323
2324rm -f conftest.$ac_ext
2325EXEEXT=$ac_cv_exeext
2326ac_exeext=$EXEEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002327{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00002331else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002332 cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002337/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002338
John Criswell3ef61af2003-06-30 21:59:07 +00002339int
2340main ()
2341{
2342
2343 ;
2344 return 0;
2345}
2346_ACEOF
2347rm -f conftest.o conftest.obj
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002348if { (ac_try="$ac_compile"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002349case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002354 (eval "$ac_compile") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002355 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002358 for ac_file in conftest.o conftest.obj conftest.*; do
2359 test -f "$ac_file" || continue;
John Criswell3ef61af2003-06-30 21:59:07 +00002360 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2363 break;;
2364 esac
2365done
2366else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002367 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002368sed 's/^/| /' conftest.$ac_ext >&5
2369
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002370{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371See \`config.log' for more details." >&5
2372echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002375fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002376
John Criswell3ef61af2003-06-30 21:59:07 +00002377rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002379{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002381OBJEXT=$ac_cv_objext
2382ac_objext=$OBJEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002383{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002387else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002388 cat >conftest.$ac_ext <<_ACEOF
2389/* confdefs.h. */
2390_ACEOF
2391cat confdefs.h >>conftest.$ac_ext
2392cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002393/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002394
John Criswell3ef61af2003-06-30 21:59:07 +00002395int
2396main ()
2397{
2398#ifndef __GNUC__
2399 choke me
2400#endif
2401
2402 ;
2403 return 0;
2404}
2405_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002406rm -f conftest.$ac_objext
2407if { (ac_try="$ac_compile"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_compile") 2>conftest.er1
2414 ac_status=$?
2415 grep -v '^ *+' conftest.er1 >conftest.err
2416 rm -f conftest.er1
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2421 { (case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424esac
2425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_try") 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434esac
2435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_try") 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002440 ac_compiler_gnu=yes
2441else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002442 echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 ac_compiler_gnu=no
John Criswell3ef61af2003-06-30 21:59:07 +00002446fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002447
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002449ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002450
2451fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002452{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer0241e382004-11-25 04:51:04 +00002455ac_test_CFLAGS=${CFLAGS+set}
2456ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002457{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459if test "${ac_cv_prog_cc_g+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002461else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002462 ac_save_c_werror_flag=$ac_c_werror_flag
2463 ac_c_werror_flag=yes
2464 ac_cv_prog_cc_g=no
2465 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002466 cat >conftest.$ac_ext <<_ACEOF
2467/* confdefs.h. */
2468_ACEOF
2469cat confdefs.h >>conftest.$ac_ext
2470cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002471/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002472
John Criswell3ef61af2003-06-30 21:59:07 +00002473int
2474main ()
2475{
2476
2477 ;
2478 return 0;
2479}
2480_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002481rm -f conftest.$ac_objext
2482if { (ac_try="$ac_compile"
2483case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486esac
2487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_compile") 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
2500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509esac
2510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_try") 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002515 ac_cv_prog_cc_g=yes
John Criswell3ef61af2003-06-30 21:59:07 +00002516else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 CFLAGS=""
2521 cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002526/* end confdefs.h. */
2527
2528int
2529main ()
2530{
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002536rm -f conftest.$ac_objext
2537if { (ac_try="$ac_compile"
2538case "(($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_compile") 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551 { (case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554esac
2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2564esac
2565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 :
Torok Edwinaec06332010-01-26 08:50:50 +00002571else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002572 echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002576 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002577 cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h. */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002582/* end confdefs.h. */
2583
2584int
2585main ()
2586{
2587
2588 ;
2589 return 0;
2590}
2591_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002592rm -f conftest.$ac_objext
2593if { (ac_try="$ac_compile"
2594case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2610esac
2611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_try") 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620esac
2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_try") 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002626 ac_cv_prog_cc_g=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002627else
2628 echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631
John Criswell3ef61af2003-06-30 21:59:07 +00002632fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002633
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00002635fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002636
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002639
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_c_werror_flag=$ac_save_c_werror_flag
2642fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002643{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00002645if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2649 CFLAGS="-g -O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002650 else
Reid Spencer0241e382004-11-25 04:51:04 +00002651 CFLAGS="-g"
John Criswell3ef61af2003-06-30 21:59:07 +00002652 fi
2653else
Reid Spencer0241e382004-11-25 04:51:04 +00002654 if test "$GCC" = yes; then
2655 CFLAGS="-O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002656 else
Reid Spencer0241e382004-11-25 04:51:04 +00002657 CFLAGS=
John Criswell3ef61af2003-06-30 21:59:07 +00002658 fi
2659fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002660{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662if test "${ac_cv_prog_cc_c89+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00002664else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002665 ac_cv_prog_cc_c89=no
Reid Spencer0241e382004-11-25 04:51:04 +00002666ac_save_CC=$CC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002667cat >conftest.$ac_ext <<_ACEOF
2668/* confdefs.h. */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00002672/* end confdefs.h. */
2673#include <stdarg.h>
2674#include <stdio.h>
2675#include <sys/types.h>
2676#include <sys/stat.h>
2677/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678struct buf { int x; };
2679FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680static char *e (p, i)
2681 char **p;
2682 int i;
2683{
2684 return p[i];
2685}
2686static char *f (char * (*g) (char **, int), char **p, ...)
2687{
2688 char *s;
2689 va_list v;
2690 va_start (v,p);
2691 s = g (p, va_arg (v,int));
2692 va_end (v);
2693 return s;
2694}
2695
2696/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002699 as 'x'. The following induces an error, until -std is added to get
Reid Spencer0241e382004-11-25 04:51:04 +00002700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002702 that's true only with -std. */
Reid Spencer0241e382004-11-25 04:51:04 +00002703int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002705/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706 inside strings and character constants. */
2707#define FOO(x) 'x'
2708int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709
Reid Spencer0241e382004-11-25 04:51:04 +00002710int test (int i, double x);
2711struct s1 {int (*f) (int a);};
2712struct s2 {int (*f) (double a);};
2713int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714int argc;
2715char **argv;
2716int
2717main ()
2718{
2719return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2720 ;
2721 return 0;
2722}
2723_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002724for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer0241e382004-11-25 04:51:04 +00002726do
2727 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002728 rm -f conftest.$ac_objext
2729if { (ac_try="$ac_compile"
2730case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2743 { (case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_try") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_try") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002762 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002763else
2764 echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
2767
Reid Spencer0241e382004-11-25 04:51:04 +00002768fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002769
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002770rm -f core conftest.err conftest.$ac_objext
2771 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer0241e382004-11-25 04:51:04 +00002772done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002773rm -f conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002774CC=$ac_save_CC
2775
2776fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002777# AC_CACHE_VAL
2778case "x$ac_cv_prog_cc_c89" in
2779 x)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002780 { echo "$as_me:$LINENO: result: none needed" >&5
2781echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002782 xno)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002783 { echo "$as_me:$LINENO: result: unsupported" >&5
2784echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002785 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002786 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002787 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002789esac
2790
John Criswell3eaf0b42003-09-10 15:17:25 +00002791
Reid Spencer0241e382004-11-25 04:51:04 +00002792ac_ext=c
2793ac_cpp='$CPP $CPPFLAGS'
2794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
Eric Christopher58839712011-09-16 20:36:25 +00002798ac_ext=cpp
2799ac_cpp='$CXXCPP $CPPFLAGS'
2800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2803if test -z "$CXX"; then
2804 if test -n "$CCC"; then
2805 CXX=$CCC
2806 else
2807 if test -n "$ac_tool_prefix"; then
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002808 for ac_prog in clang++ g++
Eric Christopher58839712011-09-16 20:36:25 +00002809 do
2810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814if test "${ac_cv_prog_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817 if test -n "$CXX"; then
2818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831done
2832done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837CXX=$ac_cv_prog_CXX
2838if test -n "$CXX"; then
2839 { echo "$as_me:$LINENO: result: $CXX" >&5
2840echo "${ECHO_T}$CXX" >&6; }
2841else
2842 { echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6; }
2844fi
2845
2846
2847 test -n "$CXX" && break
2848 done
2849fi
2850if test -z "$CXX"; then
2851 ac_ct_CXX=$CXX
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002852 for ac_prog in clang++ g++
Eric Christopher58839712011-09-16 20:36:25 +00002853do
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855set dummy $ac_prog; ac_word=$2
2856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2858if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861 if test -n "$ac_ct_CXX"; then
2862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_ac_ct_CXX="$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875done
2876done
2877IFS=$as_save_IFS
2878
2879fi
2880fi
2881ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2882if test -n "$ac_ct_CXX"; then
2883 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2884echo "${ECHO_T}$ac_ct_CXX" >&6; }
2885else
2886 { echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6; }
2888fi
2889
2890
2891 test -n "$ac_ct_CXX" && break
2892done
2893
2894 if test "x$ac_ct_CXX" = x; then
2895 CXX="g++"
2896 else
2897 case $cross_compiling:$ac_tool_warned in
2898yes:)
2899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2900whose name does not start with the host triplet. If you think this
2901configuration is useful to you, please write to autoconf@gnu.org." >&5
2902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2903whose name does not start with the host triplet. If you think this
2904configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2905ac_tool_warned=yes ;;
2906esac
2907 CXX=$ac_ct_CXX
2908 fi
2909fi
2910
2911 fi
2912fi
2913# Provide some information about the compiler.
2914echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2915ac_compiler=`set X $ac_compile; echo $2`
2916{ (ac_try="$ac_compiler --version >&5"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler --version >&5") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926{ (ac_try="$ac_compiler -v >&5"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -v >&5") 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936{ (ac_try="$ac_compiler -V >&5"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compiler -V >&5") 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2946
2947{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2948echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2949if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951else
2952 cat >conftest.$ac_ext <<_ACEOF
2953/* confdefs.h. */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h. */
2958
2959int
2960main ()
2961{
2962#ifndef __GNUC__
2963 choke me
2964#endif
2965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext
2971if { (ac_try="$ac_compile"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_try") 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 ac_compiler_gnu=yes
3005else
3006 echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
3008
3009 ac_compiler_gnu=no
3010fi
3011
3012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3014
3015fi
3016{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3017echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3018GXX=`test $ac_compiler_gnu = yes && echo yes`
3019ac_test_CXXFLAGS=${CXXFLAGS+set}
3020ac_save_CXXFLAGS=$CXXFLAGS
3021{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3022echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3023if test "${ac_cv_prog_cxx_g+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3027 ac_cxx_werror_flag=yes
3028 ac_cv_prog_cxx_g=no
3029 CXXFLAGS="-g"
3030 cat >conftest.$ac_ext <<_ACEOF
3031/* confdefs.h. */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h. */
3036
3037int
3038main ()
3039{
3040
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext
3046if { (ac_try="$ac_compile"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3053 ac_status=$?
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
3064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_try") 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 ac_cv_prog_cxx_g=yes
3080else
3081 echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 CXXFLAGS=""
3085 cat >conftest.$ac_ext <<_ACEOF
3086/* confdefs.h. */
3087_ACEOF
3088cat confdefs.h >>conftest.$ac_ext
3089cat >>conftest.$ac_ext <<_ACEOF
3090/* end confdefs.h. */
3091
3092int
3093main ()
3094{
3095
3096 ;
3097 return 0;
3098}
3099_ACEOF
3100rm -f conftest.$ac_objext
3101if { (ac_try="$ac_compile"
3102case "(($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_compile") 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 :
3135else
3136 echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140 CXXFLAGS="-g"
3141 cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext
3157if { (ac_try="$ac_compile"
3158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
3175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_try") 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_prog_cxx_g=yes
3191else
3192 echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195
3196fi
3197
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199fi
3200
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202fi
3203
3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206fi
3207{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3209if test "$ac_test_CXXFLAGS" = set; then
3210 CXXFLAGS=$ac_save_CXXFLAGS
3211elif test $ac_cv_prog_cxx_g = yes; then
3212 if test "$GXX" = yes; then
3213 CXXFLAGS="-g -O2"
3214 else
3215 CXXFLAGS="-g"
3216 fi
3217else
3218 if test "$GXX" = yes; then
3219 CXXFLAGS="-O2"
3220 else
3221 CXXFLAGS=
3222 fi
3223fi
3224ac_ext=c
3225ac_cpp='$CPP $CPPFLAGS'
3226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer0241e382004-11-25 04:51:04 +00003229
Reid Spencer0241e382004-11-25 04:51:04 +00003230ac_ext=c
3231ac_cpp='$CPP $CPPFLAGS'
3232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003235{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003237# On Suns, sometimes $CPP names a directory.
3238if test -n "$CPP" && test -d "$CPP"; then
3239 CPP=
3240fi
3241if test -z "$CPP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003242 if test "${ac_cv_prog_CPP+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00003244else
3245 # Double quotes because CPP needs to be expanded
3246 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3247 do
3248 ac_preproc_ok=false
3249for ac_c_preproc_warn_flag in '' yes
3250do
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003257 cat >conftest.$ac_ext <<_ACEOF
3258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003262/* end confdefs.h. */
3263#ifdef __STDC__
3264# include <limits.h>
3265#else
3266# include <assert.h>
3267#endif
3268 Syntax error
3269_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003270if { (ac_try="$ac_cpp conftest.$ac_ext"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286 else
3287 ac_cpp_err=
3288 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003289else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003290 ac_cpp_err=yes
3291fi
3292if test -z "$ac_cpp_err"; then
3293 :
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
Reid Spencer0241e382004-11-25 04:51:04 +00003298 # Broken: fails on valid input.
3299continue
3300fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003301
Reid Spencer0241e382004-11-25 04:51:04 +00003302rm -f conftest.err conftest.$ac_ext
3303
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003304 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003305 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003306 cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003311/* end confdefs.h. */
3312#include <ac_nonexistent.h>
3313_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003314if { (ac_try="$ac_cpp conftest.$ac_ext"
3315case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } >/dev/null; then
3327 if test -s conftest.err; then
3328 ac_cpp_err=$ac_c_preproc_warn_flag
3329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3330 else
3331 ac_cpp_err=
3332 fi
3333else
3334 ac_cpp_err=yes
3335fi
3336if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003337 # Broken: success on invalid input.
3338continue
3339else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
Reid Spencer0241e382004-11-25 04:51:04 +00003343 # Passes both tests.
3344ac_preproc_ok=:
3345break
3346fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003347
Reid Spencer0241e382004-11-25 04:51:04 +00003348rm -f conftest.err conftest.$ac_ext
3349
3350done
3351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003353if $ac_preproc_ok; then
Reid Spencer0241e382004-11-25 04:51:04 +00003354 break
3355fi
3356
3357 done
3358 ac_cv_prog_CPP=$CPP
3359
3360fi
3361 CPP=$ac_cv_prog_CPP
3362else
3363 ac_cv_prog_CPP=$CPP
3364fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003365{ echo "$as_me:$LINENO: result: $CPP" >&5
3366echo "${ECHO_T}$CPP" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003367ac_preproc_ok=false
3368for ac_c_preproc_warn_flag in '' yes
3369do
3370 # Use a header file that comes with gcc, so configuring glibc
3371 # with a fresh cross-compiler works.
3372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373 # <limits.h> exists even on freestanding compilers.
3374 # On the NeXT, cc -E runs the code through the compiler's parser,
3375 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003376 cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h. */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003381/* end confdefs.h. */
3382#ifdef __STDC__
3383# include <limits.h>
3384#else
3385# include <assert.h>
3386#endif
3387 Syntax error
3388_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003389if { (ac_try="$ac_cpp conftest.$ac_ext"
3390case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405 else
3406 ac_cpp_err=
3407 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003408else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003409 ac_cpp_err=yes
3410fi
3411if test -z "$ac_cpp_err"; then
3412 :
3413else
3414 echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
Reid Spencer0241e382004-11-25 04:51:04 +00003417 # Broken: fails on valid input.
3418continue
3419fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003420
Reid Spencer0241e382004-11-25 04:51:04 +00003421rm -f conftest.err conftest.$ac_ext
3422
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003423 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003424 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003425 cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003430/* end confdefs.h. */
3431#include <ac_nonexistent.h>
3432_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003433if { (ac_try="$ac_cpp conftest.$ac_ext"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003456 # Broken: success on invalid input.
3457continue
3458else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
Reid Spencer0241e382004-11-25 04:51:04 +00003462 # Passes both tests.
3463ac_preproc_ok=:
3464break
3465fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003466
Reid Spencer0241e382004-11-25 04:51:04 +00003467rm -f conftest.err conftest.$ac_ext
3468
3469done
3470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003472if $ac_preproc_ok; then
3473 :
Reid Spencer0241e382004-11-25 04:51:04 +00003474else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003475 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3476See \`config.log' for more details." >&5
3477echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3478See \`config.log' for more details." >&2;}
3479 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00003480fi
3481
John Criswell3ef61af2003-06-30 21:59:07 +00003482ac_ext=c
3483ac_cpp='$CPP $CPPFLAGS'
3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487
John Criswell3ef61af2003-06-30 21:59:07 +00003488
Dmitri Gribenko06358bd2013-01-09 15:25:30 +00003489if test "$CXX" = "clang++" ; then
3490 { echo "$as_me:$LINENO: checking whether clang works" >&5
3491echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3492 ac_ext=cpp
3493ac_cpp='$CXXCPP $CPPFLAGS'
3494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3497
3498
3499cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */
3505#include <limits>
3506#if __has_include (<cxxabi.h>)
3507#include <cxxabi.h>
3508#endif
3509#if __has_include (<unwind.h>)
3510#include <unwind.h>
3511#endif
3512
3513int
3514main ()
3515{
3516
3517 ;
3518 return 0;
3519}
3520_ACEOF
3521rm -f conftest.$ac_objext
3522if { (ac_try="$ac_compile"
3523case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526esac
3527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compile") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3536 { (case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539esac
3540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_try") 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
3550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_try") 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555
3556 { echo "$as_me:$LINENO: result: yes" >&5
3557echo "${ECHO_T}yes" >&6; }
3558
3559else
3560 echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563
3564 { echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6; }
3566 { { 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
3567echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3568 { (exit 1); exit 1; }; }
3569
3570fi
3571
3572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_ext=c
3574ac_cpp='$CPP $CPPFLAGS'
3575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578
3579fi
3580
Chandler Carruth75a65452014-01-14 05:02:38 +00003581{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3582echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3583ac_ext=cpp
3584ac_cpp='$CXXCPP $CPPFLAGS'
3585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3588
3589llvm_cv_cxx_compiler=unknown
3590cat >conftest.$ac_ext <<_ACEOF
3591/* confdefs.h. */
3592_ACEOF
3593cat confdefs.h >>conftest.$ac_ext
3594cat >>conftest.$ac_ext <<_ACEOF
3595/* end confdefs.h. */
3596#if ! __clang__
Chandler Carruthf8c6ccf2014-01-15 10:31:15 +00003597 #error
3598 #endif
Chandler Carruth75a65452014-01-14 05:02:38 +00003599
Chandler Carruth75a65452014-01-14 05:02:38 +00003600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (ac_try="$ac_compile"
3603case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3616 { (case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619esac
3620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; } &&
3625 { ac_try='test -s conftest.$ac_objext'
3626 { (case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629esac
3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_try") 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 llvm_cv_cxx_compiler=clang
3636else
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646#if ! __GNUC__
Chandler Carruthf8c6ccf2014-01-15 10:31:15 +00003647 #error
3648 #endif
Chandler Carruth75a65452014-01-14 05:02:38 +00003649
Chandler Carruth75a65452014-01-14 05:02:38 +00003650_ACEOF
3651rm -f conftest.$ac_objext
3652if { (ac_try="$ac_compile"
3653case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656esac
3657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666 { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_try") 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 llvm_cv_cxx_compiler=gcc
3686else
3687 echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690
3691fi
3692
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694fi
3695
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697ac_ext=c
3698ac_cpp='$CPP $CPPFLAGS'
3699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702
3703{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3704echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3705
Eric Christopher58839712011-09-16 20:36:25 +00003706
3707
Eric Christopher58839712011-09-16 20:36:25 +00003708if test -d ${srcdir}/projects/test-suite ; then
3709 subdirs="$subdirs projects/test-suite"
3710
3711fi
3712
3713if test -d ${srcdir}/projects/llvm-test ; then
3714 subdirs="$subdirs projects/llvm-test"
3715
3716fi
3717
3718if test -d ${srcdir}/projects/poolalloc ; then
3719 subdirs="$subdirs projects/poolalloc"
3720
3721fi
3722
3723if test -d ${srcdir}/projects/llvm-poolalloc ; then
3724 subdirs="$subdirs projects/llvm-poolalloc"
3725
3726fi
3727
3728for i in `ls ${srcdir}/projects`
3729do
3730 if test -d ${srcdir}/projects/${i} ; then
3731 case ${i} in
3732 sample) subdirs="$subdirs projects/sample"
3733 ;;
Eric Christopher58839712011-09-16 20:36:25 +00003734 safecode) subdirs="$subdirs projects/safecode"
3735 ;;
Daniel Dunbar7ce849d2011-12-07 22:07:03 +00003736 compiler-rt) ;;
Eric Christopher58839712011-09-16 20:36:25 +00003737 test-suite) ;;
3738 llvm-test) ;;
3739 poolalloc) ;;
3740 llvm-poolalloc) ;;
3741 *)
3742 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3743echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3744 ;;
3745 esac
3746 fi
3747done
3748
3749# Check whether --enable-polly was given.
3750if test "${enable_polly+set}" = set; then
3751 enableval=$enable_polly;
3752else
3753 enableval=default
3754fi
3755
3756case "$enableval" in
3757 yes) ENABLE_POLLY=1
3758 ;;
3759 no) ENABLE_POLLY=0
3760 ;;
3761 default) ENABLE_POLLY=1
3762 ;;
3763 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3764echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3765 { (exit 1); exit 1; }; } ;;
3766esac
3767
3768
3769if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3770 LLVM_HAS_POLLY=1
3771
3772 subdirs="$subdirs tools/polly"
3773
3774fi
3775
3776
3777# Make sure we can run config.sub.
3778$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3780echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3781 { (exit 1); exit 1; }; }
3782
3783{ echo "$as_me:$LINENO: checking build system type" >&5
3784echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3785if test "${ac_cv_build+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787else
3788 ac_build_alias=$build_alias
3789test "x$ac_build_alias" = x &&
3790 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3791test "x$ac_build_alias" = x &&
3792 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3793echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3794 { (exit 1); exit 1; }; }
3795ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3796 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3797echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3798 { (exit 1); exit 1; }; }
3799
3800fi
3801{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3802echo "${ECHO_T}$ac_cv_build" >&6; }
3803case $ac_cv_build in
3804*-*-*) ;;
3805*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3806echo "$as_me: error: invalid value of canonical build" >&2;}
3807 { (exit 1); exit 1; }; };;
3808esac
3809build=$ac_cv_build
3810ac_save_IFS=$IFS; IFS='-'
3811set x $ac_cv_build
3812shift
3813build_cpu=$1
3814build_vendor=$2
3815shift; shift
3816# Remember, the first character of IFS is used to create $*,
3817# except with old shells:
3818build_os=$*
3819IFS=$ac_save_IFS
3820case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3821
3822
3823{ echo "$as_me:$LINENO: checking host system type" >&5
3824echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3825if test "${ac_cv_host+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828 if test "x$host_alias" = x; then
3829 ac_cv_host=$ac_cv_build
3830else
3831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3832 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3833echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3834 { (exit 1); exit 1; }; }
3835fi
3836
3837fi
3838{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839echo "${ECHO_T}$ac_cv_host" >&6; }
3840case $ac_cv_host in
3841*-*-*) ;;
3842*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3843echo "$as_me: error: invalid value of canonical host" >&2;}
3844 { (exit 1); exit 1; }; };;
3845esac
3846host=$ac_cv_host
3847ac_save_IFS=$IFS; IFS='-'
3848set x $ac_cv_host
3849shift
3850host_cpu=$1
3851host_vendor=$2
3852shift; shift
3853# Remember, the first character of IFS is used to create $*,
3854# except with old shells:
3855host_os=$*
3856IFS=$ac_save_IFS
3857case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3858
3859
3860{ echo "$as_me:$LINENO: checking target system type" >&5
3861echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3862if test "${ac_cv_target+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865 if test "x$target_alias" = x; then
3866 ac_cv_target=$ac_cv_host
3867else
3868 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3869 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3870echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3871 { (exit 1); exit 1; }; }
3872fi
3873
3874fi
3875{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3876echo "${ECHO_T}$ac_cv_target" >&6; }
3877case $ac_cv_target in
3878*-*-*) ;;
3879*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3880echo "$as_me: error: invalid value of canonical target" >&2;}
3881 { (exit 1); exit 1; }; };;
3882esac
3883target=$ac_cv_target
3884ac_save_IFS=$IFS; IFS='-'
3885set x $ac_cv_target
3886shift
3887target_cpu=$1
3888target_vendor=$2
3889shift; shift
3890# Remember, the first character of IFS is used to create $*,
3891# except with old shells:
3892target_os=$*
3893IFS=$ac_save_IFS
3894case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3895
3896
3897# The aliases save the names the user supplied, while $host etc.
3898# will get canonicalized.
3899test -n "$target_alias" &&
3900 test "$program_prefix$program_suffix$program_transform_name" = \
3901 NONENONEs,x,x, &&
3902 program_prefix=${target_alias}-
3903
3904{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3905echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3906if test "${llvm_cv_os_type+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 case $host in
3910 *-*-aix*)
3911 llvm_cv_link_all_option="-Wl,--whole-archive"
3912 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3913 llvm_cv_os_type="AIX"
3914 llvm_cv_platform_type="Unix" ;;
3915 *-*-irix*)
3916 llvm_cv_link_all_option="-Wl,--whole-archive"
3917 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3918 llvm_cv_os_type="IRIX"
3919 llvm_cv_platform_type="Unix" ;;
3920 *-*-cygwin*)
3921 llvm_cv_link_all_option="-Wl,--whole-archive"
3922 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3923 llvm_cv_os_type="Cygwin"
3924 llvm_cv_platform_type="Unix" ;;
3925 *-*-darwin*)
3926 llvm_cv_link_all_option="-Wl,-all_load"
3927 llvm_cv_no_link_all_option="-Wl,-noall_load"
3928 llvm_cv_os_type="Darwin"
3929 llvm_cv_platform_type="Unix" ;;
3930 *-*-minix*)
3931 llvm_cv_link_all_option="-Wl,-all_load"
3932 llvm_cv_no_link_all_option="-Wl,-noall_load"
3933 llvm_cv_os_type="Minix"
3934 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00003935 *-*-freebsd*)
Eric Christopher58839712011-09-16 20:36:25 +00003936 llvm_cv_link_all_option="-Wl,--whole-archive"
3937 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3938 llvm_cv_os_type="FreeBSD"
3939 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00003940 *-*-kfreebsd-gnu)
3941 llvm_cv_link_all_option="-Wl,--whole-archive"
3942 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3943 llvm_cv_os_type="GNU/kFreeBSD"
3944 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003945 *-*-openbsd*)
3946 llvm_cv_link_all_option="-Wl,--whole-archive"
3947 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3948 llvm_cv_os_type="OpenBSD"
3949 llvm_cv_platform_type="Unix" ;;
3950 *-*-netbsd*)
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="NetBSD"
3954 llvm_cv_platform_type="Unix" ;;
3955 *-*-dragonfly*)
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="DragonFly"
3959 llvm_cv_platform_type="Unix" ;;
3960 *-*-hpux*)
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="HP-UX"
3964 llvm_cv_platform_type="Unix" ;;
3965 *-*-interix*)
3966 llvm_cv_link_all_option="-Wl,--whole-archive"
3967 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3968 llvm_cv_os_type="Interix"
3969 llvm_cv_platform_type="Unix" ;;
3970 *-*-linux*)
3971 llvm_cv_link_all_option="-Wl,--whole-archive"
3972 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3973 llvm_cv_os_type="Linux"
3974 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003975 *-*-gnu*)
3976 llvm_cv_link_all_option="-Wl,--whole-archive"
3977 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978 llvm_cv_os_type="GNU"
3979 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003980 *-*-solaris*)
3981 llvm_cv_link_all_option="-Wl,-z,allextract"
3982 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3983 llvm_cv_os_type="SunOS"
3984 llvm_cv_platform_type="Unix" ;;
3985 *-*-auroraux*)
3986 llvm_cv_link_all_option="-Wl,-z,allextract"
3987 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3988 llvm_cv_os_type="AuroraUX"
3989 llvm_cv_platform_type="Unix" ;;
3990 *-*-win32*)
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="Win32"
3994 llvm_cv_platform_type="Win32" ;;
3995 *-*-mingw*)
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="MingW"
3999 llvm_cv_platform_type="Win32" ;;
4000 *-*-haiku*)
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="Haiku"
4004 llvm_cv_platform_type="Unix" ;;
4005 *-unknown-eabi*)
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="Freestanding"
4009 llvm_cv_platform_type="Unix" ;;
4010 *-unknown-elf*)
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="Freestanding"
4014 llvm_cv_platform_type="Unix" ;;
4015 *)
4016 llvm_cv_link_all_option=""
4017 llvm_cv_no_link_all_option=""
4018 llvm_cv_os_type="Unknown"
4019 llvm_cv_platform_type="Unknown" ;;
4020esac
4021fi
4022{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4023echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4024
4025{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4026echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4027if test "${llvm_cv_target_os_type+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 case $target in
4031 *-*-aix*)
4032 llvm_cv_target_os_type="AIX" ;;
4033 *-*-irix*)
4034 llvm_cv_target_os_type="IRIX" ;;
4035 *-*-cygwin*)
4036 llvm_cv_target_os_type="Cygwin" ;;
4037 *-*-darwin*)
4038 llvm_cv_target_os_type="Darwin" ;;
4039 *-*-minix*)
4040 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00004041 *-*-freebsd*)
Eric Christopher58839712011-09-16 20:36:25 +00004042 llvm_cv_target_os_type="FreeBSD" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00004043 *-*-kfreebsd-gnu)
4044 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004045 *-*-openbsd*)
4046 llvm_cv_target_os_type="OpenBSD" ;;
4047 *-*-netbsd*)
4048 llvm_cv_target_os_type="NetBSD" ;;
4049 *-*-dragonfly*)
4050 llvm_cv_target_os_type="DragonFly" ;;
4051 *-*-hpux*)
4052 llvm_cv_target_os_type="HP-UX" ;;
4053 *-*-interix*)
4054 llvm_cv_target_os_type="Interix" ;;
4055 *-*-linux*)
4056 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledrue8235fe2012-04-05 19:34:15 +00004057 *-*-gnu*)
4058 llvm_cv_target_os_type="GNU" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004059 *-*-solaris*)
4060 llvm_cv_target_os_type="SunOS" ;;
4061 *-*-auroraux*)
4062 llvm_cv_target_os_type="AuroraUX" ;;
4063 *-*-win32*)
4064 llvm_cv_target_os_type="Win32" ;;
4065 *-*-mingw*)
4066 llvm_cv_target_os_type="MingW" ;;
4067 *-*-haiku*)
4068 llvm_cv_target_os_type="Haiku" ;;
4069 *-*-rtems*)
4070 llvm_cv_target_os_type="RTEMS" ;;
4071 *-*-nacl*)
4072 llvm_cv_target_os_type="NativeClient" ;;
4073 *-unknown-eabi*)
4074 llvm_cv_target_os_type="Freestanding" ;;
4075 *)
4076 llvm_cv_target_os_type="Unknown" ;;
4077esac
4078fi
4079{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4080echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4081
4082if test "$llvm_cv_os_type" = "Unknown" ; then
4083 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4084echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4085 { (exit 1); exit 1; }; }
4086fi
4087
4088OS=$llvm_cv_os_type
4089
4090HOST_OS=$llvm_cv_os_type
4091
4092TARGET_OS=$llvm_cv_target_os_type
4093
4094
4095LINKALL=$llvm_cv_link_all_option
4096
4097NOLINKALL=$llvm_cv_no_link_all_option
4098
4099
4100case $llvm_cv_platform_type in
4101 Unix)
4102
4103cat >>confdefs.h <<\_ACEOF
4104#define LLVM_ON_UNIX 1
4105_ACEOF
4106
4107 LLVM_ON_UNIX=1
4108
4109 LLVM_ON_WIN32=0
4110
4111 ;;
4112 Win32)
4113
4114cat >>confdefs.h <<\_ACEOF
4115#define LLVM_ON_WIN32 1
4116_ACEOF
4117
4118 LLVM_ON_UNIX=0
4119
4120 LLVM_ON_WIN32=1
4121
4122 ;;
4123esac
4124
4125{ echo "$as_me:$LINENO: checking target architecture" >&5
4126echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4127if test "${llvm_cv_target_arch+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129else
4130 case $target in
4131 i?86-*) llvm_cv_target_arch="x86" ;;
4132 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4133 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4134 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004135 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004136 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004137 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4138 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004139 xcore-*) llvm_cv_target_arch="XCore" ;;
4140 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004141 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00004142 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004143 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004144 *) llvm_cv_target_arch="Unknown" ;;
4145esac
4146fi
4147{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4148echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4149
4150if test "$llvm_cv_target_arch" = "Unknown" ; then
4151 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4152echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4153fi
4154
Eric Christopher58839712011-09-16 20:36:25 +00004155case "$llvm_cv_target_arch" in
4156 x86) LLVM_NATIVE_ARCH="X86" ;;
4157 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4158 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4159esac
4160
4161ARCH=$llvm_cv_target_arch
4162
4163
Danil Malyshev7c5db452012-05-17 21:07:47 +00004164case $host in
4165 i?86-*) host_arch="x86" ;;
4166 amd64-* | x86_64-*) host_arch="x86_64" ;;
4167 sparc*-*) host_arch="Sparc" ;;
4168 powerpc*-*) host_arch="PowerPC" ;;
4169 arm*-*) host_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004170 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004171 mips-* | mips64-*) host_arch="Mips" ;;
4172 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004173 xcore-*) host_arch="XCore" ;;
4174 msp430-*) host_arch="MSP430" ;;
4175 hexagon-*) host_arch="Hexagon" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004176 s390x-*) host_arch="SystemZ" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004177 *) host_arch="Unknown" ;;
4178esac
4179
4180if test "$host_arch" = "Unknown" ; then
4181 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4182echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4183fi
4184
4185HOST_ARCH=$host_arch
4186
4187
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004188if test "$cross_compiling" = yes; then
4189 LLVM_CROSS_COMPILING=1
4190
4191
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004192{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4193echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4194if test "${ac_cv_build_exeext+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004196else
4197 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4198 ac_cv_build_exeext=.exe
4199else
4200 ac_build_prefix=${build_alias}-
4201
4202 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4203set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004208else
4209 if test -n "$BUILD_CC"; then
4210 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004219 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004221 break 2
4222 fi
4223done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004224done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004225IFS=$as_save_IFS
4226
4227fi
4228fi
4229BUILD_CC=$ac_cv_prog_BUILD_CC
4230if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004231 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4232echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004233else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004234 { echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004236fi
4237
4238
4239 if test -z "$BUILD_CC"; then
4240 # Extract the first word of "gcc", so it can be a program name with args.
4241set dummy gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004246else
4247 if test -n "$BUILD_CC"; then
4248 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004257 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004259 break 2
4260 fi
4261done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004262done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004263IFS=$as_save_IFS
4264
4265fi
4266fi
4267BUILD_CC=$ac_cv_prog_BUILD_CC
4268if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004269 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4270echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004271else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004272 { echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004274fi
4275
4276
4277 if test -z "$BUILD_CC"; then
4278 # Extract the first word of "cc", so it can be a program name with args.
4279set dummy cc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4282if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004284else
4285 if test -n "$BUILD_CC"; then
4286 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4287else
4288 ac_prog_rejected=no
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4297 ac_prog_rejected=yes
4298 continue
4299 fi
4300 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004302 break 2
4303 fi
4304done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004305done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004306IFS=$as_save_IFS
4307
4308if test $ac_prog_rejected = yes; then
4309 # We found a bogon in the path, so make sure we never use it.
4310 set dummy $ac_cv_prog_BUILD_CC
4311 shift
4312 if test $# != 0; then
4313 # We chose a different compiler from the bogus one.
4314 # However, it has the same basename, so the bogon will be chosen
4315 # first if we set BUILD_CC to just the basename; use the full file name.
4316 shift
4317 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4318 fi
4319fi
4320fi
4321fi
4322BUILD_CC=$ac_cv_prog_BUILD_CC
4323if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004324 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4325echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004326else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004327 { echo "$as_me:$LINENO: result: no" >&5
4328echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004329fi
4330
4331
4332 fi
4333 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004334 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4335echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4336 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004337 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4338 rm -f conftest*
4339 echo 'int main () { return 0; }' > conftest.$ac_ext
4340 ac_cv_build_exeext=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004341 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004342 (eval $ac_build_link) 2>&5
4343 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004346 for file in conftest.*; do
4347 case $file in
Jim Grosbachbfc70b02008-09-26 17:27:58 +00004348 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004349 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4350 esac
4351 done
4352 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004353 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4354echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4355 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004356 fi
4357 rm -f conftest*
4358 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4359fi
4360fi
4361
4362BUILD_EXEEXT=""
4363test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004364{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4365echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004366ac_build_exeext=$BUILD_EXEEXT
4367
Jim Grosbach009db892008-10-02 22:56:44 +00004368 ac_build_prefix=${build_alias}-
4369 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4370set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004375else
4376 if test -n "$BUILD_CXX"; then
4377 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4378else
4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00004386 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004388 break 2
4389 fi
4390done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004391done
Jim Grosbach009db892008-10-02 22:56:44 +00004392IFS=$as_save_IFS
4393
4394fi
4395fi
4396BUILD_CXX=$ac_cv_prog_BUILD_CXX
4397if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004398 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4399echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004400else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004401 { echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004403fi
4404
4405
4406 if test -z "$BUILD_CXX"; then
4407 # Extract the first word of "g++", so it can be a program name with args.
4408set dummy g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004413else
4414 if test -n "$BUILD_CXX"; then
4415 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4416else
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00004424 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004426 break 2
4427 fi
4428done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004429done
Jim Grosbach009db892008-10-02 22:56:44 +00004430IFS=$as_save_IFS
4431
4432fi
4433fi
4434BUILD_CXX=$ac_cv_prog_BUILD_CXX
4435if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004436 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4437echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004438else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004439 { echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004441fi
4442
4443
4444 if test -z "$BUILD_CXX"; then
4445 # Extract the first word of "c++", so it can be a program name with args.
4446set dummy c++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004451else
4452 if test -n "$BUILD_CXX"; then
4453 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4454else
4455 ac_prog_rejected=no
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00004463 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4464 ac_prog_rejected=yes
4465 continue
4466 fi
4467 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004469 break 2
4470 fi
4471done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004472done
Jim Grosbach009db892008-10-02 22:56:44 +00004473IFS=$as_save_IFS
4474
4475if test $ac_prog_rejected = yes; then
4476 # We found a bogon in the path, so make sure we never use it.
4477 set dummy $ac_cv_prog_BUILD_CXX
4478 shift
4479 if test $# != 0; then
4480 # We chose a different compiler from the bogus one.
4481 # However, it has the same basename, so the bogon will be chosen
4482 # first if we set BUILD_CXX to just the basename; use the full file name.
4483 shift
4484 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4485 fi
4486fi
4487fi
4488fi
4489BUILD_CXX=$ac_cv_prog_BUILD_CXX
4490if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004491 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4492echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004493else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004494 { echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004496fi
4497
4498
4499 fi
4500 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004501else
4502 LLVM_CROSS_COMPILING=0
4503
4504fi
4505
Dan Gohmande75469c2010-08-04 16:25:01 +00004506if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004507 cvsbuild="yes"
4508 optimize="no"
4509 CVSBUILD=CVSBUILD=1
4510
4511else
4512 cvsbuild="no"
4513 optimize="yes"
4514fi
4515
4516
Eric Christopher1094ded2011-11-11 22:51:42 +00004517# Check whether --enable-libcpp was given.
4518if test "${enable_libcpp+set}" = set; then
4519 enableval=$enable_libcpp;
4520else
4521 enableval=default
4522fi
4523
4524case "$enableval" in
4525 yes) ENABLE_LIBCPP=1
4526 ;;
4527 no) ENABLE_LIBCPP=0
4528 ;;
4529 default) ENABLE_LIBCPP=0
4530;;
4531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4532echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4533 { (exit 1); exit 1; }; } ;;
4534esac
4535
Chandler Carruth7206eae2014-01-15 19:19:13 +00004536# Check whether --enable-compiler-version-checks was given.
4537if test "${enable_compiler_version_checks+set}" = set; then
4538 enableval=$enable_compiler_version_checks;
4539else
4540 enableval=default
4541fi
4542
4543case "$enableval" in
4544 no)
4545 ;;
4546 yes|default)
4547 ac_ext=cpp
4548ac_cpp='$CXXCPP $CPPFLAGS'
4549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552
4553 case "$llvm_cv_cxx_compiler" in
4554 clang)
4555 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4556echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4557 cat >conftest.$ac_ext <<_ACEOF
4558/* confdefs.h. */
4559_ACEOF
4560cat confdefs.h >>conftest.$ac_ext
4561cat >>conftest.$ac_ext <<_ACEOF
4562/* end confdefs.h. */
4563
4564#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4565#error This version of Clang is too old to build LLVM
4566#endif
4567
4568_ACEOF
4569rm -f conftest.$ac_objext
4570if { (ac_try="$ac_compile"
4571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
4575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
4588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_try") 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 { echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6; }
4605else
4606 echo "$as_me: failed program was:" >&5
4607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 { echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6; }
4611 { { echo "$as_me:$LINENO: error:
4612The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4613Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4614bypass these sanity checks." >&5
4615echo "$as_me: error:
4616The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4617Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4618bypass these sanity checks." >&2;}
4619 { (exit 1); exit 1; }; }
4620fi
4621
4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004624 if test "$ENABLE_LIBCPP" -eq 0 ; then
4625 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
Chandler Carruth7206eae2014-01-15 19:19:13 +00004626echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004627 llvm_cv_old_cxxflags="$CXXFLAGS"
4628 CXXFLAGS="$CXXFLAGS -std=c++0x"
4629 cat >conftest.$ac_ext <<_ACEOF
Chandler Carruth7206eae2014-01-15 19:19:13 +00004630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
4635
4636#include <atomic>
4637std::atomic<float> x(0.0f);
4638int main() { return (float)x; }
4639
4640_ACEOF
4641rm -f conftest.$ac_objext conftest$ac_exeext
4642if { (ac_try="$ac_link"
4643case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646esac
4647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4656 { (case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659esac
4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_try") 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_try") 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 { echo "$as_me:$LINENO: result: yes" >&5
4676echo "${ECHO_T}yes" >&6; }
4677else
4678 echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004683 { { echo "$as_me:$LINENO: error:
Chandler Carruth7206eae2014-01-15 19:19:13 +00004684We detected a missing feature in the standard C++ library that was known to be
4685missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4686C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4687than 4.7. You will need to update your system and ensure Clang uses the newer
4688standard library.
4689
4690If this error is incorrect or you need to force things to work, you may pass
4691'--disable-compiler-version-checks' to configure to bypass this test." >&5
4692echo "$as_me: error:
4693We detected a missing feature in the standard C++ library that was known to be
4694missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4695C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4696than 4.7. You will need to update your system and ensure Clang uses the newer
4697standard library.
4698
4699If this error is incorrect or you need to force things to work, you may pass
4700'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4701 { (exit 1); exit 1; }; }
4702fi
4703
4704rm -f core conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004706 CXXFLAGS="$llvm_cv_old_cxxflags"
4707 fi
Chandler Carruth7206eae2014-01-15 19:19:13 +00004708 ;;
4709 gcc)
4710 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4711echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4712 cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h. */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h. */
4718
4719#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4720#error This version of GCC is too old to build LLVM
4721#endif
4722
4723_ACEOF
4724rm -f conftest.$ac_objext
4725if { (ac_try="$ac_compile"
4726case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729esac
4730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4739 { (case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742esac
4743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_try") 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752esac
4753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_try") 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 { echo "$as_me:$LINENO: result: yes" >&5
4759echo "${ECHO_T}yes" >&6; }
4760else
4761 echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 { echo "$as_me:$LINENO: result: no" >&5
4765echo "${ECHO_T}no" >&6; }
4766 { { echo "$as_me:$LINENO: error:
4767The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4768to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4769bypass these sanity checks." >&5
4770echo "$as_me: error:
4771The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4772to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4773bypass these sanity checks." >&2;}
4774 { (exit 1); exit 1; }; }
4775fi
4776
4777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 ;;
4779 unknown)
4780 ;;
4781 esac
4782 ac_ext=c
4783ac_cpp='$CPP $CPPFLAGS'
4784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788 ;;
4789 *)
4790 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4791echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4792 { (exit 1); exit 1; }; }
4793 ;;
4794esac
4795
Eric Christopher04e35972012-08-03 19:47:14 +00004796# Check whether --enable-cxx11 was given.
4797if test "${enable_cxx11+set}" = set; then
4798 enableval=$enable_cxx11;
4799else
4800 enableval=default
4801fi
4802
4803case "$enableval" in
4804 yes) ENABLE_CXX11=1
4805 ;;
4806 no) ENABLE_CXX11=0
4807 ;;
4808 default) ENABLE_CXX11=0
4809;;
4810 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4811echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4812 { (exit 1); exit 1; }; } ;;
4813esac
4814
Eric Christopherf1bd7702013-06-25 01:12:25 +00004815# Check whether --enable-split-dwarf was given.
4816if test "${enable_split_dwarf+set}" = set; then
4817 enableval=$enable_split_dwarf;
4818else
4819 enableval=default
4820fi
4821
4822case "$enableval" in
4823 yes) ENABLE_SPLIT_DWARF=1
4824 ;;
4825 no) ENABLE_SPLIT_DWARF=0
4826 ;;
4827 default) ENABLE_SPLIT_DWARF=0
4828;;
4829 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4830echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4831 { (exit 1); exit 1; }; } ;;
4832esac
4833
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004834clang_arcmt="yes"
4835# Check whether --enable-clang-arcmt was given.
4836if test "${enable_clang_arcmt+set}" = set; then
4837 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4838else
4839 enableval="yes"
4840fi
4841
4842case "$enableval" in
4843 yes) ENABLE_CLANG_ARCMT=1
4844 ;;
4845 no) ENABLE_CLANG_ARCMT=0
4846 ;;
4847 default) ENABLE_CLANG_ARCMT=1
4848;;
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4850echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4852esac
4853
4854clang_static_analyzer="yes"
4855# Check whether --enable-clang-static-analyzer was given.
4856if test "${enable_clang_static_analyzer+set}" = set; then
4857 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4858else
4859 enableval="yes"
4860fi
4861
4862case "$enableval" in
4863 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4864 ;;
Jordan Rose23fc6f32013-08-22 15:49:53 +00004865 no)
4866 if test ${clang_arcmt} != "no" ; then
4867 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4868echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4869 { (exit 1); exit 1; }; }
4870 fi
4871 ENABLE_CLANG_STATIC_ANALYZER=0
NAKAMURA Takumi4cfe5542013-08-22 16:31:34 +00004872
Jordan Rose23fc6f32013-08-22 15:49:53 +00004873 ;;
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004874 default) ENABLE_CLANG_STATIC_ANALYZER=1
4875;;
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4877echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4879esac
4880
4881# Check whether --enable-clang-rewriter was given.
4882if test "${enable_clang_rewriter+set}" = set; then
4883 enableval=$enable_clang_rewriter;
4884else
4885 enableval="yes"
4886fi
4887
4888case "$enableval" in
4889 yes) ENABLE_CLANG_REWRITER=1
4890 ;;
4891 no)
Benjamin Kramerd14720d2012-12-26 10:48:49 +00004892 if test ${clang_arcmt} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004893 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4894echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4895 { (exit 1); exit 1; }; }
4896 fi
Benjamin Kramerd14720d2012-12-26 10:48:49 +00004897 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004898 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4899echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4900 { (exit 1); exit 1; }; }
4901 fi
4902 ENABLE_CLANG_REWRITER=0
4903
4904 ;;
4905 default) ENABLE_CLANG_REWRITER=1
4906;;
4907 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4908echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4910esac
4911
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004912# Check whether --enable-optimized was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004913if test "${enable_optimized+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004914 enableval=$enable_optimized;
4915else
4916 enableval=$optimize
4917fi
4918
4919if test ${enableval} = "no" ; then
4920 ENABLE_OPTIMIZED=
4921
4922else
4923 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4924
4925fi
4926
David Greenec0a34a072009-04-17 14:50:39 +00004927# Check whether --enable-profiling was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004928if test "${enable_profiling+set}" = set; then
David Greenec0a34a072009-04-17 14:50:39 +00004929 enableval=$enable_profiling;
4930else
4931 enableval="no"
4932fi
4933
4934if test ${enableval} = "no" ; then
4935 ENABLE_PROFILING=
4936
4937else
4938 ENABLE_PROFILING=ENABLE_PROFILING=1
4939
4940fi
4941
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004942# Check whether --enable-assertions was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004943if test "${enable_assertions+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004944 enableval=$enable_assertions;
4945else
4946 enableval="yes"
4947fi
4948
4949if test ${enableval} = "yes" ; then
4950 DISABLE_ASSERTIONS=
4951
4952else
4953 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4954
4955fi
4956
Eric Christopher84864012012-08-03 19:58:20 +00004957# Check whether --enable-werror was given.
4958if test "${enable_werror+set}" = set; then
4959 enableval=$enable_werror;
4960else
4961 enableval="no"
4962fi
4963
4964case "$enableval" in
4965 yes) ENABLE_WERROR=1
4966 ;;
4967 no) ENABLE_WERROR=0
4968 ;;
4969 default) ENABLE_WERROR=0
4970;;
4971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4972echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4974esac
4975
David Greenecbc8ddf2007-06-28 19:36:08 +00004976# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004977if test "${enable_expensive_checks+set}" = set; then
David Greenecbc8ddf2007-06-28 19:36:08 +00004978 enableval=$enable_expensive_checks;
4979else
4980 enableval="no"
4981fi
4982
4983if test ${enableval} = "yes" ; then
4984 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4985
4986 EXPENSIVE_CHECKS=yes
4987
4988else
4989 ENABLE_EXPENSIVE_CHECKS=
4990
4991 EXPENSIVE_CHECKS=no
4992
4993fi
4994
Reid Spencer4b8067f2006-11-17 03:32:33 +00004995# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004996if test "${enable_debug_runtime+set}" = set; then
Reid Spencer4b8067f2006-11-17 03:32:33 +00004997 enableval=$enable_debug_runtime;
4998else
4999 enableval=no
5000fi
5001
5002if test ${enableval} = "no" ; then
5003 DEBUG_RUNTIME=
5004
5005else
5006 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5007
5008fi
5009
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005010# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005011if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005012 enableval=$enable_debug_symbols;
5013else
5014 enableval=no
5015fi
5016
5017if test ${enableval} = "no" ; then
5018 DEBUG_SYMBOLS=
5019
5020else
5021 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5022
5023fi
5024
Daniel Dunbar39c04622012-08-14 18:14:22 +00005025# Check whether --enable-keep-symbols was given.
5026if test "${enable_keep_symbols+set}" = set; then
5027 enableval=$enable_keep_symbols;
5028else
5029 enableval=no
5030fi
5031
5032if test ${enableval} = "no" ; then
5033 KEEP_SYMBOLS=
5034
5035else
5036 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5037
5038fi
5039
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005040# Check whether --enable-jit was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005041if test "${enable_jit+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005042 enableval=$enable_jit;
5043else
5044 enableval=default
5045fi
5046
5047if test ${enableval} = "no"
5048then
5049 JIT=
5050
5051else
5052 case "$llvm_cv_target_arch" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005053 x86) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005054 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005055 Sparc) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005056 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005057 PowerPC) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005058 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005059 x86_64) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005060 ;;
Eric Christopherd8530f32009-09-14 16:38:49 +00005061 ARM) TARGET_HAS_JIT=1
Reid Spencerd7c8b3c2007-01-21 06:32:59 +00005062 ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00005063 AArch64) TARGET_HAS_JIT=0
5064 ;;
Bruno Cardoso Lopesd1d9c782011-07-21 16:28:51 +00005065 Mips) TARGET_HAS_JIT=1
Tanya Lattnerbca16c82007-08-29 16:38:16 +00005066 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005067 XCore) TARGET_HAS_JIT=0
Richard Osborneca08e062008-11-07 10:59:00 +00005068 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005069 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov9173b492009-05-03 13:42:23 +00005070 ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005071 Hexagon) TARGET_HAS_JIT=0
5072 ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005073 NVPTX) TARGET_HAS_JIT=0
5074 ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005075 SystemZ) TARGET_HAS_JIT=1
5076 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005077 *) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005078 ;;
5079 esac
5080fi
5081
Rafael Espindola7ac506d2010-11-12 19:24:06 +00005082# Check whether --enable-docs was given.
5083if test "${enable_docs+set}" = set; then
5084 enableval=$enable_docs;
5085else
5086 enableval=default
5087fi
5088
5089case "$enableval" in
5090 yes) ENABLE_DOCS=1
5091 ;;
5092 no) ENABLE_DOCS=0
5093 ;;
5094 default) ENABLE_DOCS=1
5095 ;;
5096 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5097echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5098 { (exit 1); exit 1; }; } ;;
5099esac
5100
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005101# Check whether --enable-doxygen was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005102if test "${enable_doxygen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005103 enableval=$enable_doxygen;
5104else
5105 enableval=default
5106fi
5107
5108case "$enableval" in
5109 yes) ENABLE_DOXYGEN=1
5110 ;;
5111 no) ENABLE_DOXYGEN=0
5112 ;;
5113 default) ENABLE_DOXYGEN=0
5114 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5116echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005118esac
5119
5120# Check whether --enable-threads was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005121if test "${enable_threads+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005122 enableval=$enable_threads;
5123else
Reid Spencerd549edc2006-11-05 17:08:18 +00005124 enableval=default
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005125fi
5126
5127case "$enableval" in
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005128 yes) LLVM_ENABLE_THREADS=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005129 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005130 no) LLVM_ENABLE_THREADS=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005131 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005132 default) LLVM_ENABLE_THREADS=1
Reid Spencerd549edc2006-11-05 17:08:18 +00005133 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005134 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5135echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5136 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005137esac
5138
Owen Andersonaf5db832009-05-19 22:18:56 +00005139cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005140#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersonaf5db832009-05-19 22:18:56 +00005141_ACEOF
5142
5143
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00005144# Check whether --enable-pthreads was given.
5145if test "${enable_pthreads+set}" = set; then
5146 enableval=$enable_pthreads;
5147else
5148 enableval=default
5149fi
5150
5151case "$enableval" in
5152 yes) ENABLE_PTHREADS=1
5153 ;;
5154 no) ENABLE_PTHREADS=0
5155 ;;
5156 default) ENABLE_PTHREADS=1
5157 ;;
5158 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5159echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5161esac
5162
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00005163# Check whether --enable-zlib was given.
5164if test "${enable_zlib+set}" = set; then
5165 enableval=$enable_zlib;
5166else
5167 enableval=default
5168fi
5169
5170case "$enableval" in
5171 yes) LLVM_ENABLE_ZLIB=1
5172 ;;
5173 no) LLVM_ENABLE_ZLIB=0
5174 ;;
5175 default) LLVM_ENABLE_ZLIB=1
5176 ;;
5177 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5178echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5179 { (exit 1); exit 1; }; } ;;
5180esac
5181
5182cat >>confdefs.h <<_ACEOF
5183#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5184_ACEOF
5185
5186
Reid Spencer05a1fe52006-12-16 22:07:52 +00005187# Check whether --enable-pic was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005188if test "${enable_pic+set}" = set; then
Reid Spencer05a1fe52006-12-16 22:07:52 +00005189 enableval=$enable_pic;
5190else
5191 enableval=default
5192fi
5193
5194case "$enableval" in
5195 yes) ENABLE_PIC=1
5196 ;;
5197 no) ENABLE_PIC=0
5198 ;;
Nick Lewycky38525192009-02-19 06:18:56 +00005199 default) ENABLE_PIC=1
Reid Spencer05a1fe52006-12-16 22:07:52 +00005200 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5202echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
Reid Spencer05a1fe52006-12-16 22:07:52 +00005204esac
5205
5206cat >>confdefs.h <<_ACEOF
5207#define ENABLE_PIC $ENABLE_PIC
5208_ACEOF
5209
5210
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00005211# Check whether --enable-shared was given.
5212if test "${enable_shared+set}" = set; then
5213 enableval=$enable_shared;
5214else
5215 enableval=default
5216fi
5217
5218case "$enableval" in
5219 yes) ENABLE_SHARED=1
5220 ;;
5221 no) ENABLE_SHARED=0
5222 ;;
5223 default) ENABLE_SHARED=0
5224 ;;
5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5226echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5227 { (exit 1); exit 1; }; } ;;
5228esac
5229
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005230# Check whether --enable-embed-stdcxx was given.
5231if test "${enable_embed_stdcxx+set}" = set; then
5232 enableval=$enable_embed_stdcxx;
5233else
5234 enableval=default
5235fi
5236
5237case "$enableval" in
5238 yes) ENABLE_EMBED_STDCXX=1
5239 ;;
5240 no) ENABLE_EMBED_STDCXX=0
5241 ;;
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00005242 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005243 ;;
5244 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5245echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5246 { (exit 1); exit 1; }; } ;;
5247esac
5248
Daniel Dunbardac18242010-05-10 20:11:56 +00005249# Check whether --enable-timestamps was given.
5250if test "${enable_timestamps+set}" = set; then
5251 enableval=$enable_timestamps;
5252else
5253 enableval=default
5254fi
5255
5256case "$enableval" in
5257 yes) ENABLE_TIMESTAMPS=1
5258 ;;
5259 no) ENABLE_TIMESTAMPS=0
5260 ;;
5261 default) ENABLE_TIMESTAMPS=1
5262 ;;
5263 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5264echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5265 { (exit 1); exit 1; }; } ;;
5266esac
5267
5268cat >>confdefs.h <<_ACEOF
5269#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5270_ACEOF
5271
5272
Eric Christopher9fafe072012-09-21 23:03:29 +00005273# Check whether --enable-backtraces was given.
5274if test "${enable_backtraces+set}" = set; then
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005275 enableval=$enable_backtraces; case "$enableval" in
5276 yes) llvm_cv_enable_backtraces="yes" ;;
5277 no) llvm_cv_enable_backtraces="no" ;;
5278 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
Eric Christopher9fafe072012-09-21 23:03:29 +00005279echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5280 { (exit 1); exit 1; }; } ;;
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005281 esac
5282else
5283 llvm_cv_enable_backtraces="yes"
5284fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005285
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005286if test "$llvm_cv_enable_backtraces" = "yes" ; then
5287
5288cat >>confdefs.h <<\_ACEOF
5289#define ENABLE_BACKTRACES 1
Eric Christopher9fafe072012-09-21 23:03:29 +00005290_ACEOF
5291
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005292fi
5293
5294# Check whether --enable-crash-overrides was given.
5295if test "${enable_crash_overrides+set}" = set; then
5296 enableval=$enable_crash_overrides; case "$enableval" in
5297 yes) llvm_cv_enable_crash_overrides="yes" ;;
5298 no) llvm_cv_enable_crash_overrides="no" ;;
5299 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5300echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5301 { (exit 1); exit 1; }; } ;;
5302 esac
5303else
5304 llvm_cv_enable_crash_overrides="yes"
5305fi
5306
5307if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5308
5309cat >>confdefs.h <<\_ACEOF
5310#define ENABLE_CRASH_OVERRIDES 1
5311_ACEOF
5312
5313fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005314
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005315TARGETS_TO_BUILD=""
5316# Check whether --enable-targets was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005317if test "${enable_targets+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005318 enableval=$enable_targets;
5319else
5320 enableval=all
5321fi
5322
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005323if test "$enableval" = host-only ; then
5324 enableval=host
5325fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005326case "$enableval" in
Rafael Espindola72986662013-07-25 18:55:05 +00005327 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005328 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5329 case "$a_target" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005330 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5333 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Joerg Sonnenberger981e99d2013-02-03 17:06:49 +00005334 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00005335 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005336 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindolae46f0962011-12-28 17:08:00 +00005337 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00005338 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005340 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005342 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005343 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005344 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005345 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Rafael Espindolaf6474d22013-05-22 00:35:47 +00005346 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005347 host) case "$llvm_cv_target_arch" in
5348 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5351 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jia Liu43eb48e2013-04-22 16:26:15 +00005352 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005353 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5354 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005355 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5356 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005357 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005358 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005359 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005360 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5361echo "$as_me: error: Can not set target to build" >&2;}
5362 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005363 esac ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005364 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5365echo "$as_me: error: Unrecognized target $a_target" >&2;}
5366 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005367 esac
5368 done
5369 ;;
5370esac
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00005371
5372# Check whether --enable-experimental-targets was given.
5373if test "${enable_experimental_targets+set}" = set; then
5374 enableval=$enable_experimental_targets;
5375else
5376 enableval=disable
5377fi
5378
5379
5380if test ${enableval} != "disable"
5381then
5382 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5383fi
5384
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005385TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5386
5387
Douglas Gregor43613a22009-06-17 00:43:20 +00005388for a_target in $TARGETS_TO_BUILD; do
5389 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5390
5391cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005392#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5393_ACEOF
5394
5395 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5396 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng8c886a42011-07-22 21:58:54 +00005397 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christophere7a9db12010-08-30 18:34:48 +00005398 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5401 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005402 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5404 fi
Eric Christophere7a9db12010-08-30 18:34:48 +00005405
5406cat >>confdefs.h <<_ACEOF
5407#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbaredf7b8b2010-08-03 14:26:17 +00005408_ACEOF
5409
5410
5411cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005412#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5413_ACEOF
5414
5415
5416cat >>confdefs.h <<_ACEOF
Evan Cheng8c886a42011-07-22 21:58:54 +00005417#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng2129f592011-07-19 06:37:02 +00005418_ACEOF
5419
5420
5421cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005422#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor43613a22009-06-17 00:43:20 +00005423_ACEOF
5424
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005425 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödin27e07c32011-03-09 17:25:46 +00005426
5427cat >>confdefs.h <<_ACEOF
5428#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5429_ACEOF
5430
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005431 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005432 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5433
5434cat >>confdefs.h <<_ACEOF
5435#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5436_ACEOF
5437
5438 fi
Douglas Gregor43613a22009-06-17 00:43:20 +00005439 fi
5440done
5441
Douglas Gregor1b731d52009-06-16 20:12:29 +00005442LLVM_ENUM_TARGETS=""
5443LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005444LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar32027202009-11-25 04:37:28 +00005445LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1b731d52009-06-16 20:12:29 +00005446for target_to_build in $TARGETS_TO_BUILD; do
5447 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattner28776602010-11-14 19:10:47 +00005448 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach0e854f32010-10-01 22:39:28 +00005449 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5450 fi
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005451 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5452 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5453 fi
Daniel Dunbar32027202009-11-25 04:37:28 +00005454 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5455 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5456 fi
Douglas Gregor1b731d52009-06-16 20:12:29 +00005457done
5458
5459
5460
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005461
Daniel Dunbar32027202009-11-25 04:37:28 +00005462
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005463
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005464# Check whether --with-optimize-option was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005465if test "${with_optimize_option+set}" = set; then
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005466 withval=$with_optimize_option;
5467else
5468 withval=default
5469fi
5470
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005471{ echo "$as_me:$LINENO: checking optimization flags" >&5
5472echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005473case "$withval" in
5474 default)
5475 case "$llvm_cv_os_type" in
Daniel Dunbard411fcb2010-04-30 17:12:26 +00005476 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +00005477 MingW) optimize_option=-O2 ;;
5478 *) optimize_option=-O3 ;;
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005479 esac ;;
5480 *) optimize_option="$withval" ;;
5481esac
5482OPTIMIZE_OPTION=$optimize_option
5483
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005484{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5485echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005486
5487
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005488# Check whether --with-extra-options was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005489if test "${with_extra_options+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005490 withval=$with_extra_options;
5491else
5492 withval=default
5493fi
5494
5495case "$withval" in
5496 default) EXTRA_OPTIONS= ;;
5497 *) EXTRA_OPTIONS=$withval ;;
5498esac
5499EXTRA_OPTIONS=$EXTRA_OPTIONS
5500
5501
Daniel Dunbar3b95df82011-06-16 22:30:41 +00005502
5503# Check whether --with-extra-ld-options was given.
5504if test "${with_extra_ld_options+set}" = set; then
5505 withval=$with_extra_ld_options;
5506else
5507 withval=default
5508fi
5509
5510case "$withval" in
5511 default) EXTRA_LD_OPTIONS= ;;
5512 *) EXTRA_LD_OPTIONS=$withval ;;
5513esac
5514EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5515
5516
Gordon Henriksene61dd672007-10-02 09:50:32 +00005517# Check whether --enable-bindings was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005518if test "${enable_bindings+set}" = set; then
Gordon Henriksene61dd672007-10-02 09:50:32 +00005519 enableval=$enable_bindings;
5520else
5521 enableval=default
5522fi
5523
5524BINDINGS_TO_BUILD=""
5525case "$enableval" in
Gordon Henriksenacc2a832007-10-02 10:14:42 +00005526 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005527 all ) BINDINGS_TO_BUILD="ocaml" ;;
5528 none | no) BINDINGS_TO_BUILD="" ;;
5529 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5530 case "$a_binding" in
5531 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005532 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5533echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5534 { (exit 1); exit 1; }; } ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005535 esac
5536 done
5537 ;;
5538esac
5539
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005540
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005541# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005542if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005543 withval=$with_ocaml_libdir;
5544else
5545 withval=auto
5546fi
5547
5548case "$withval" in
5549 auto) with_ocaml_libdir="$withval" ;;
5550 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005551 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5552echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5553 { (exit 1); exit 1; }; } ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005554esac
5555
5556
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005557# Check whether --with-clang-srcdir was given.
5558if test "${with_clang_srcdir+set}" = set; then
5559 withval=$with_clang_srcdir;
5560else
5561 withval="-"
5562fi
5563
5564case "$withval" in
Eric Christopher7f977de2012-02-02 00:19:05 +00005565 -) clang_src_root="" ;;
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005566 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5567 *) clang_src_root="$ac_pwd/$withval" ;;
5568esac
5569CLANG_SRC_ROOT=$clang_src_root
5570
5571
5572
Chandler Carruthffae4a62010-10-19 08:21:25 +00005573# Check whether --with-clang-resource-dir was given.
5574if test "${with_clang_resource_dir+set}" = set; then
5575 withval=$with_clang_resource_dir;
5576else
5577 withval=""
5578fi
5579
5580
5581cat >>confdefs.h <<_ACEOF
5582#define CLANG_RESOURCE_DIR "$withval"
5583_ACEOF
5584
5585
5586
Rafael Espindola662908c2009-12-07 00:27:35 +00005587# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005588if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola662908c2009-12-07 00:27:35 +00005589 withval=$with_c_include_dirs;
Rafael Espindolad95960b2009-11-12 05:46:09 +00005590else
5591 withval=""
5592fi
5593
5594
5595cat >>confdefs.h <<_ACEOF
5596#define C_INCLUDE_DIRS "$withval"
5597_ACEOF
5598
5599
Rafael Espindolaec217f62012-02-03 00:59:30 +00005600# Clang normally uses the system c++ headers and libraries. With this option,
5601# clang will use the ones provided by a gcc installation instead. This option should
5602# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindolad95960b2009-11-12 05:46:09 +00005603
Rafael Espindolaec217f62012-02-03 00:59:30 +00005604# Check whether --with-gcc-toolchain was given.
5605if test "${with_gcc_toolchain+set}" = set; then
5606 withval=$with_gcc_toolchain;
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005607else
5608 withval=""
5609fi
5610
5611
5612cat >>confdefs.h <<_ACEOF
Rafael Espindolaec217f62012-02-03 00:59:30 +00005613#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005614_ACEOF
5615
5616
5617
Sebastian Pope29a6c72012-04-30 20:06:58 +00005618# Check whether --with-default-sysroot was given.
5619if test "${with_default_sysroot+set}" = set; then
5620 withval=$with_default_sysroot;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00005621else
5622 withval=""
5623fi
5624
5625
5626cat >>confdefs.h <<_ACEOF
5627#define DEFAULT_SYSROOT "$withval"
5628_ACEOF
5629
5630
5631
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005632# Check whether --with-binutils-include was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005633if test "${with_binutils_include+set}" = set; then
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005634 withval=$with_binutils_include;
5635else
5636 withval=default
5637fi
5638
5639case "$withval" in
5640 default) WITH_BINUTILS_INCDIR=default ;;
5641 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005642 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5643echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5644 { (exit 1); exit 1; }; } ;;
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005645esac
5646if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5647 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5648
5649 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5650 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005651 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5652echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5653 { (exit 1); exit 1; }; };
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005654 fi
5655fi
5656
Eric Christopher65080cc2011-07-20 17:04:49 +00005657
5658# Check whether --with-bug-report-url was given.
5659if test "${with_bug_report_url+set}" = set; then
5660 withval=$with_bug_report_url;
5661else
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00005662 withval="http://llvm.org/bugs/"
Eric Christopher65080cc2011-07-20 17:04:49 +00005663fi
5664
5665
5666cat >>confdefs.h <<_ACEOF
5667#define BUG_REPORT_URL "$withval"
5668_ACEOF
5669
5670
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005671# Check whether --enable-terminfo was given.
5672if test "${enable_terminfo+set}" = set; then
5673 enableval=$enable_terminfo; case "$enableval" in
5674 yes) llvm_cv_enable_terminfo="yes" ;;
5675 no) llvm_cv_enable_terminfo="no" ;;
5676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5677echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005678 { (exit 1); exit 1; }; } ;;
5679 esac
5680else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005681 llvm_cv_enable_terminfo="yes"
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005682fi
5683
5684
Peter Collingbournec7d437c2014-01-31 23:46:14 +00005685# Check whether --enable-libedit was given.
5686if test "${enable_libedit+set}" = set; then
5687 enableval=$enable_libedit; case "$enableval" in
5688 yes) llvm_cv_enable_libedit="yes" ;;
5689 no) llvm_cv_enable_libedit="no" ;;
5690 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5691echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5692 { (exit 1); exit 1; }; } ;;
5693 esac
5694else
5695 llvm_cv_enable_libedit="yes"
5696fi
5697
5698
Nick Lewycky86679902009-06-06 06:25:09 +00005699# Check whether --enable-libffi was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005700if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005701 enableval=$enable_libffi; case "$enableval" in
5702 yes) llvm_cv_enable_libffi="yes" ;;
5703 no) llvm_cv_enable_libffi="no" ;;
5704 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005705echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5706 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005707 esac
5708else
5709 llvm_cv_enable_libffi=no
5710fi
5711
Nick Lewycky86679902009-06-06 06:25:09 +00005712
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005713
Bob Wilson3f354702011-11-28 07:59:52 +00005714# Check whether --with-internal-prefix was given.
5715if test "${with_internal_prefix+set}" = set; then
5716 withval=$with_internal_prefix;
5717else
5718 withval=""
5719fi
5720
5721INTERNAL_PREFIX=$withval
5722
5723
5724
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005725{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5726echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5727if test "${lt_cv_path_NM+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005729else
5730 if test -n "$NM"; then
5731 # Let the user override the test.
5732 lt_cv_path_NM="$NM"
5733else
5734 lt_nm_to_check="${ac_tool_prefix}nm"
5735 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5736 lt_nm_to_check="$lt_nm_to_check nm"
5737 fi
5738 for lt_tmp_nm in $lt_nm_to_check; do
5739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5740 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5741 IFS="$lt_save_ifs"
5742 test -z "$ac_dir" && ac_dir=.
5743 tmp_nm="$ac_dir/$lt_tmp_nm"
5744 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5745 # Check to see if the nm accepts a BSD-compat flag.
5746 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5747 # nm: unknown option "B" ignored
5748 # Tru64's nm complains that /dev/null is an invalid object file
5749 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5750 */dev/null* | *'Invalid file or object type'*)
5751 lt_cv_path_NM="$tmp_nm -B"
5752 break
5753 ;;
5754 *)
5755 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5756 */dev/null*)
5757 lt_cv_path_NM="$tmp_nm -p"
5758 break
5759 ;;
5760 *)
5761 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5762 continue # so that we can try to find one that supports BSD flags
5763 ;;
5764 esac
5765 ;;
5766 esac
5767 fi
5768 done
5769 IFS="$lt_save_ifs"
5770 done
5771 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5772fi
5773fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005774{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5775echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005776NM="$lt_cv_path_NM"
5777
5778
5779
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005780{ echo "$as_me:$LINENO: checking for GNU make" >&5
5781echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5782if test "${llvm_cv_gnu_make_command+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005784else
5785 llvm_cv_gnu_make_command=''
5786 for a in "$MAKE" make gmake gnumake ; do
5787 if test -z "$a" ; then continue ; fi ;
5788 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5789 then
5790 llvm_cv_gnu_make_command=$a ;
5791 break;
5792 fi
5793 done
5794fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005795{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5796echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005797 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5798 ifGNUmake='' ;
5799 else
5800 ifGNUmake='#' ;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005801 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5802echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005803 fi
5804
5805
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005806{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5807echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005808LN_S=$as_ln_s
5809if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005810 { echo "$as_me:$LINENO: result: yes" >&5
5811echo "${ECHO_T}yes" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005812else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005813 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5814echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005815fi
5816
5817# Extract the first word of "cmp", so it can be a program name with args.
5818set dummy cmp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5821if test "${ac_cv_path_CMP+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005823else
5824 case $CMP in
5825 [\\/]* | ?:[\\/]*)
5826 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5827 ;;
5828 *)
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005836 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005838 break 2
5839 fi
5840done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005841done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005842IFS=$as_save_IFS
5843
5844 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5845 ;;
5846esac
5847fi
5848CMP=$ac_cv_path_CMP
5849if test -n "$CMP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005850 { echo "$as_me:$LINENO: result: $CMP" >&5
5851echo "${ECHO_T}$CMP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005852else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005853 { echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005855fi
5856
5857
5858# Extract the first word of "cp", so it can be a program name with args.
5859set dummy cp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862if test "${ac_cv_path_CP+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005864else
5865 case $CP in
5866 [\\/]* | ?:[\\/]*)
5867 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5868 ;;
5869 *)
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005877 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005879 break 2
5880 fi
5881done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005882done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005883IFS=$as_save_IFS
5884
5885 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5886 ;;
5887esac
5888fi
5889CP=$ac_cv_path_CP
5890if test -n "$CP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005891 { echo "$as_me:$LINENO: result: $CP" >&5
5892echo "${ECHO_T}$CP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005893else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005894 { echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005896fi
5897
5898
5899# Extract the first word of "date", so it can be a program name with args.
5900set dummy date; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903if test "${ac_cv_path_DATE+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005905else
5906 case $DATE in
5907 [\\/]* | ?:[\\/]*)
5908 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5909 ;;
5910 *)
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005918 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005920 break 2
5921 fi
5922done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005923done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005924IFS=$as_save_IFS
5925
5926 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5927 ;;
5928esac
5929fi
5930DATE=$ac_cv_path_DATE
5931if test -n "$DATE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005932 { echo "$as_me:$LINENO: result: $DATE" >&5
5933echo "${ECHO_T}$DATE" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005934else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005935 { echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005937fi
5938
5939
5940# Extract the first word of "find", so it can be a program name with args.
5941set dummy find; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944if test "${ac_cv_path_FIND+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005946else
5947 case $FIND in
5948 [\\/]* | ?:[\\/]*)
5949 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5950 ;;
5951 *)
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005959 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005961 break 2
5962 fi
5963done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005964done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005965IFS=$as_save_IFS
5966
5967 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5968 ;;
5969esac
5970fi
5971FIND=$ac_cv_path_FIND
5972if test -n "$FIND"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005973 { echo "$as_me:$LINENO: result: $FIND" >&5
5974echo "${ECHO_T}$FIND" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005975else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005976 { echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005978fi
5979
5980
5981# Extract the first word of "grep", so it can be a program name with args.
5982set dummy grep; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985if test "${ac_cv_path_GREP+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005987else
5988 case $GREP in
5989 [\\/]* | ?:[\\/]*)
5990 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5991 ;;
5992 *)
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006000 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006002 break 2
6003 fi
6004done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006005done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006006IFS=$as_save_IFS
6007
6008 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6009 ;;
6010esac
6011fi
6012GREP=$ac_cv_path_GREP
6013if test -n "$GREP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006014 { echo "$as_me:$LINENO: result: $GREP" >&5
6015echo "${ECHO_T}$GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006016else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006017 { echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006019fi
6020
6021
6022# Extract the first word of "mkdir", so it can be a program name with args.
6023set dummy mkdir; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026if test "${ac_cv_path_MKDIR+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006028else
6029 case $MKDIR in
6030 [\\/]* | ?:[\\/]*)
6031 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6032 ;;
6033 *)
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006041 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006043 break 2
6044 fi
6045done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006046done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006047IFS=$as_save_IFS
6048
6049 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6050 ;;
6051esac
6052fi
6053MKDIR=$ac_cv_path_MKDIR
6054if test -n "$MKDIR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006055 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6056echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006057else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006058 { echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006060fi
6061
6062
6063# Extract the first word of "mv", so it can be a program name with args.
6064set dummy mv; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067if test "${ac_cv_path_MV+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006069else
6070 case $MV in
6071 [\\/]* | ?:[\\/]*)
6072 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6073 ;;
6074 *)
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006082 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006084 break 2
6085 fi
6086done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006087done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006088IFS=$as_save_IFS
6089
6090 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6091 ;;
6092esac
6093fi
6094MV=$ac_cv_path_MV
6095if test -n "$MV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006096 { echo "$as_me:$LINENO: result: $MV" >&5
6097echo "${ECHO_T}$MV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006098else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006099 { echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006101fi
6102
6103
6104if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6106set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109if test "${ac_cv_prog_RANLIB+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006111else
6112 if test -n "$RANLIB"; then
6113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006122 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006124 break 2
6125 fi
6126done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006127done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006128IFS=$as_save_IFS
6129
6130fi
6131fi
6132RANLIB=$ac_cv_prog_RANLIB
6133if test -n "$RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006134 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6135echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006136else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006137 { echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006139fi
6140
6141
6142fi
6143if test -z "$ac_cv_prog_RANLIB"; then
6144 ac_ct_RANLIB=$RANLIB
6145 # Extract the first word of "ranlib", so it can be a program name with args.
6146set dummy ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006151else
6152 if test -n "$ac_ct_RANLIB"; then
6153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006162 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006164 break 2
6165 fi
6166done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006167done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006168IFS=$as_save_IFS
6169
6170fi
6171fi
6172ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6173if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006174 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6175echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006176else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006177 { echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006179fi
6180
6181 if test "x$ac_ct_RANLIB" = x; then
6182 RANLIB=":"
6183 else
6184 case $cross_compiling:$ac_tool_warned in
6185yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006186{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6187whose name does not start with the host triplet. If you think this
6188configuration is useful to you, please write to autoconf@gnu.org." >&5
6189echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6190whose name does not start with the host triplet. If you think this
6191configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006192ac_tool_warned=yes ;;
6193esac
6194 RANLIB=$ac_ct_RANLIB
6195 fi
6196else
6197 RANLIB="$ac_cv_prog_RANLIB"
6198fi
6199
Torok Edwinaec06332010-01-26 08:50:50 +00006200if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6202set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006203{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6205if test "${ac_cv_prog_AR+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006207else
6208 if test -n "$AR"; then
6209 ac_cv_prog_AR="$AR" # Let the user override the test.
6210else
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwinaec06332010-01-26 08:50:50 +00006218 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006220 break 2
6221 fi
6222done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006223done
Torok Edwinaec06332010-01-26 08:50:50 +00006224IFS=$as_save_IFS
6225
6226fi
6227fi
6228AR=$ac_cv_prog_AR
6229if test -n "$AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006230 { echo "$as_me:$LINENO: result: $AR" >&5
6231echo "${ECHO_T}$AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006232else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006233 { echo "$as_me:$LINENO: result: no" >&5
6234echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006235fi
6236
6237
6238fi
6239if test -z "$ac_cv_prog_AR"; then
6240 ac_ct_AR=$AR
6241 # Extract the first word of "ar", so it can be a program name with args.
6242set dummy ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6245if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006247else
6248 if test -n "$ac_ct_AR"; then
6249 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwinaec06332010-01-26 08:50:50 +00006258 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006260 break 2
6261 fi
6262done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006263done
Torok Edwinaec06332010-01-26 08:50:50 +00006264IFS=$as_save_IFS
6265
6266fi
6267fi
6268ac_ct_AR=$ac_cv_prog_ac_ct_AR
6269if test -n "$ac_ct_AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006270 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6271echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006272else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006273 { echo "$as_me:$LINENO: result: no" >&5
6274echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006275fi
6276
6277 if test "x$ac_ct_AR" = x; then
6278 AR="false"
6279 else
6280 case $cross_compiling:$ac_tool_warned in
6281yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006282{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6283whose name does not start with the host triplet. If you think this
6284configuration is useful to you, please write to autoconf@gnu.org." >&5
6285echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6286whose name does not start with the host triplet. If you think this
6287configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwinaec06332010-01-26 08:50:50 +00006288ac_tool_warned=yes ;;
6289esac
6290 AR=$ac_ct_AR
6291 fi
6292else
6293 AR="$ac_cv_prog_AR"
6294fi
6295
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006296# Extract the first word of "rm", so it can be a program name with args.
6297set dummy rm; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300if test "${ac_cv_path_RM+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006302else
6303 case $RM in
6304 [\\/]* | ?:[\\/]*)
6305 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6306 ;;
6307 *)
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006315 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006317 break 2
6318 fi
6319done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006320done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006321IFS=$as_save_IFS
6322
6323 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6324 ;;
6325esac
6326fi
6327RM=$ac_cv_path_RM
6328if test -n "$RM"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006329 { echo "$as_me:$LINENO: result: $RM" >&5
6330echo "${ECHO_T}$RM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006331else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006332 { echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006334fi
6335
6336
6337# Extract the first word of "sed", so it can be a program name with args.
6338set dummy sed; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341if test "${ac_cv_path_SED+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006343else
6344 case $SED in
6345 [\\/]* | ?:[\\/]*)
6346 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6347 ;;
6348 *)
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006356 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006358 break 2
6359 fi
6360done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006361done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006362IFS=$as_save_IFS
6363
6364 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6365 ;;
6366esac
6367fi
6368SED=$ac_cv_path_SED
6369if test -n "$SED"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006370 { echo "$as_me:$LINENO: result: $SED" >&5
6371echo "${ECHO_T}$SED" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006372else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006373 { echo "$as_me:$LINENO: result: no" >&5
6374echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006375fi
6376
6377
6378# Extract the first word of "tar", so it can be a program name with args.
6379set dummy tar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382if test "${ac_cv_path_TAR+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006384else
6385 case $TAR in
6386 [\\/]* | ?:[\\/]*)
6387 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6388 ;;
6389 *)
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006397 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006399 break 2
6400 fi
6401done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006402done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006403IFS=$as_save_IFS
6404
6405 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6406 ;;
6407esac
6408fi
6409TAR=$ac_cv_path_TAR
6410if test -n "$TAR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006411 { echo "$as_me:$LINENO: result: $TAR" >&5
6412echo "${ECHO_T}$TAR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006413else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006414 { echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006416fi
6417
6418
6419# Extract the first word of "pwd", so it can be a program name with args.
6420set dummy pwd; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423if test "${ac_cv_path_BINPWD+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006425else
6426 case $BINPWD in
6427 [\\/]* | ?:[\\/]*)
6428 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6429 ;;
6430 *)
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006438 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006440 break 2
6441 fi
6442done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006443done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006444IFS=$as_save_IFS
6445
6446 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6447 ;;
6448esac
6449fi
6450BINPWD=$ac_cv_path_BINPWD
6451if test -n "$BINPWD"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006452 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6453echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006454else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006455 { echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006457fi
6458
6459
6460
6461# Extract the first word of "Graphviz", so it can be a program name with args.
6462set dummy Graphviz; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006467else
6468 case $GRAPHVIZ in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6471 ;;
6472 *)
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006480 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006482 break 2
6483 fi
6484done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006485done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006486IFS=$as_save_IFS
6487
6488 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6489 ;;
6490esac
6491fi
6492GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6493if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006494 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6495echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006496else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006497 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006499fi
6500
6501
6502if test "$GRAPHVIZ" != "echo Graphviz" ; then
6503
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006504cat >>confdefs.h <<\_ACEOF
6505#define HAVE_GRAPHVIZ 1
6506_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006507
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006508 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006509 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510 fi
6511
6512cat >>confdefs.h <<_ACEOF
6513#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6514_ACEOF
6515
6516fi
6517# Extract the first word of "dot", so it can be a program name with args.
6518set dummy dot; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521if test "${ac_cv_path_DOT+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006523else
6524 case $DOT in
6525 [\\/]* | ?:[\\/]*)
6526 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6527 ;;
6528 *)
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006536 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006538 break 2
6539 fi
6540done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006541done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006542IFS=$as_save_IFS
6543
6544 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6545 ;;
6546esac
6547fi
6548DOT=$ac_cv_path_DOT
6549if test -n "$DOT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006550 { echo "$as_me:$LINENO: result: $DOT" >&5
6551echo "${ECHO_T}$DOT" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006552else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006553 { echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006555fi
6556
6557
6558if test "$DOT" != "echo dot" ; then
6559
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006560cat >>confdefs.h <<\_ACEOF
6561#define HAVE_DOT 1
6562_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006563
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006564 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006565 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566 fi
6567
6568cat >>confdefs.h <<_ACEOF
6569#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6570_ACEOF
6571
6572fi
David Greened93c40b62009-07-09 17:16:26 +00006573# Extract the first word of "fdp", so it can be a program name with args.
6574set dummy fdp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577if test "${ac_cv_path_FDP+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006579else
6580 case $FDP in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6583 ;;
6584 *)
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006592 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006594 break 2
6595 fi
6596done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006597done
David Greened93c40b62009-07-09 17:16:26 +00006598IFS=$as_save_IFS
6599
6600 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6601 ;;
6602esac
6603fi
6604FDP=$ac_cv_path_FDP
6605if test -n "$FDP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006606 { echo "$as_me:$LINENO: result: $FDP" >&5
6607echo "${ECHO_T}$FDP" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006608else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006609 { echo "$as_me:$LINENO: result: no" >&5
6610echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006611fi
6612
6613
6614if test "$FDP" != "echo fdp" ; then
6615
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006616cat >>confdefs.h <<\_ACEOF
6617#define HAVE_FDP 1
6618_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006619
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622 fi
6623
6624cat >>confdefs.h <<_ACEOF
6625#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6626_ACEOF
6627
6628fi
6629# Extract the first word of "neato", so it can be a program name with args.
6630set dummy neato; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633if test "${ac_cv_path_NEATO+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006635else
6636 case $NEATO in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6639 ;;
6640 *)
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006648 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006650 break 2
6651 fi
6652done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006653done
David Greened93c40b62009-07-09 17:16:26 +00006654IFS=$as_save_IFS
6655
6656 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6657 ;;
6658esac
6659fi
6660NEATO=$ac_cv_path_NEATO
6661if test -n "$NEATO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006662 { echo "$as_me:$LINENO: result: $NEATO" >&5
6663echo "${ECHO_T}$NEATO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006664else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006665 { echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006667fi
6668
6669
6670if test "$NEATO" != "echo neato" ; then
6671
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006672cat >>confdefs.h <<\_ACEOF
6673#define HAVE_NEATO 1
6674_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006675
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678 fi
6679
6680cat >>confdefs.h <<_ACEOF
6681#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6682_ACEOF
6683
6684fi
6685# Extract the first word of "twopi", so it can be a program name with args.
6686set dummy twopi; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_path_TWOPI+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006691else
6692 case $TWOPI in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006704 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006706 break 2
6707 fi
6708done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006709done
David Greened93c40b62009-07-09 17:16:26 +00006710IFS=$as_save_IFS
6711
6712 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6713 ;;
6714esac
6715fi
6716TWOPI=$ac_cv_path_TWOPI
6717if test -n "$TWOPI"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006718 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6719echo "${ECHO_T}$TWOPI" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006720else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006723fi
6724
6725
6726if test "$TWOPI" != "echo twopi" ; then
6727
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006728cat >>confdefs.h <<\_ACEOF
6729#define HAVE_TWOPI 1
6730_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006731
6732 if test "$llvm_cv_os_type" = "MingW" ; then
6733 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6734 fi
6735
6736cat >>confdefs.h <<_ACEOF
6737#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6738_ACEOF
6739
6740fi
6741# Extract the first word of "circo", so it can be a program name with args.
6742set dummy circo; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745if test "${ac_cv_path_CIRCO+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006747else
6748 case $CIRCO in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6751 ;;
6752 *)
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006760 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006762 break 2
6763 fi
6764done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006765done
David Greened93c40b62009-07-09 17:16:26 +00006766IFS=$as_save_IFS
6767
6768 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6769 ;;
6770esac
6771fi
6772CIRCO=$ac_cv_path_CIRCO
6773if test -n "$CIRCO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006774 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6775echo "${ECHO_T}$CIRCO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006776else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006777 { echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006779fi
6780
6781
6782if test "$CIRCO" != "echo circo" ; then
6783
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006784cat >>confdefs.h <<\_ACEOF
6785#define HAVE_CIRCO 1
6786_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006787
6788 if test "$llvm_cv_os_type" = "MingW" ; then
6789 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6790 fi
6791
6792cat >>confdefs.h <<_ACEOF
6793#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6794_ACEOF
6795
6796fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006797for ac_prog in gv gsview32
6798do
6799 # Extract the first word of "$ac_prog", so it can be a program name with args.
6800set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803if test "${ac_cv_path_GV+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006805else
6806 case $GV in
6807 [\\/]* | ?:[\\/]*)
6808 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6809 ;;
6810 *)
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006818 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006820 break 2
6821 fi
6822done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006823done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006824IFS=$as_save_IFS
6825
6826 ;;
6827esac
6828fi
6829GV=$ac_cv_path_GV
6830if test -n "$GV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006831 { echo "$as_me:$LINENO: result: $GV" >&5
6832echo "${ECHO_T}$GV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006833else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006834 { echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006836fi
6837
6838
6839 test -n "$GV" && break
6840done
6841test -n "$GV" || GV="echo gv"
6842
6843if test "$GV" != "echo gv" ; then
6844
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006845cat >>confdefs.h <<\_ACEOF
6846#define HAVE_GV 1
6847_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006848
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006849 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006850 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851 fi
6852
6853cat >>confdefs.h <<_ACEOF
6854#define LLVM_PATH_GV "$GV${EXEEXT}"
6855_ACEOF
6856
6857fi
6858# Extract the first word of "dotty", so it can be a program name with args.
6859set dummy dotty; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862if test "${ac_cv_path_DOTTY+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006864else
6865 case $DOTTY in
6866 [\\/]* | ?:[\\/]*)
6867 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6868 ;;
6869 *)
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006877 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006879 break 2
6880 fi
6881done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006882done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006883IFS=$as_save_IFS
6884
6885 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6886 ;;
6887esac
6888fi
6889DOTTY=$ac_cv_path_DOTTY
6890if test -n "$DOTTY"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006891 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6892echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006893else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006894 { echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006896fi
6897
6898
6899if test "$DOTTY" != "echo dotty" ; then
6900
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006901cat >>confdefs.h <<\_ACEOF
6902#define HAVE_DOTTY 1
6903_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006904
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006905 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006906 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6907 fi
6908
6909cat >>confdefs.h <<_ACEOF
6910#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6911_ACEOF
6912
6913fi
Eric Christopher72ebead2013-07-08 21:18:54 +00006914for ac_prog in xdot xdot.py
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006915do
6916 # Extract the first word of "$ac_prog", so it can be a program name with args.
6917set dummy $ac_prog; ac_word=$2
Dan Gohmana0da8892010-09-27 16:28:34 +00006918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006920if test "${ac_cv_path_XDOT+set}" = set; then
Dan Gohmana0da8892010-09-27 16:28:34 +00006921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922else
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006923 case $XDOT in
Dan Gohmana0da8892010-09-27 16:28:34 +00006924 [\\/]* | ?:[\\/]*)
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006925 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
Dan Gohmana0da8892010-09-27 16:28:34 +00006926 ;;
6927 *)
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006935 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
Dan Gohmana0da8892010-09-27 16:28:34 +00006936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6938 fi
6939done
6940done
6941IFS=$as_save_IFS
6942
Dan Gohmana0da8892010-09-27 16:28:34 +00006943 ;;
6944esac
6945fi
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006946XDOT=$ac_cv_path_XDOT
6947if test -n "$XDOT"; then
6948 { echo "$as_me:$LINENO: result: $XDOT" >&5
6949echo "${ECHO_T}$XDOT" >&6; }
Dan Gohmana0da8892010-09-27 16:28:34 +00006950else
6951 { echo "$as_me:$LINENO: result: no" >&5
6952echo "${ECHO_T}no" >&6; }
6953fi
6954
6955
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006956 test -n "$XDOT" && break
6957done
6958test -n "$XDOT" || XDOT="echo xdot"
6959
6960if test "$XDOT" != "echo xdot" ; then
Dan Gohmana0da8892010-09-27 16:28:34 +00006961
6962cat >>confdefs.h <<\_ACEOF
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006963#define HAVE_XDOT 1
Dan Gohmana0da8892010-09-27 16:28:34 +00006964_ACEOF
6965
6966 if test "$llvm_cv_os_type" = "MingW" ; then
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006967 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
Dan Gohmana0da8892010-09-27 16:28:34 +00006968 fi
6969
6970cat >>confdefs.h <<_ACEOF
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006971#define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
Dan Gohmana0da8892010-09-27 16:28:34 +00006972_ACEOF
6973
6974fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006975
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006976# Find a good install program. We prefer a C program (faster),
6977# so one script is as good as another. But avoid the broken or
6978# incompatible versions:
6979# SysV /etc/install, /usr/sbin/install
6980# SunOS /usr/etc/install
6981# IRIX /sbin/install
6982# AIX /bin/install
6983# AmigaOS /C/install, which installs bootblocks on floppy discs
6984# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6985# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6986# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6987# OS/2's system install, which has a completely different semantic
6988# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006989{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6990echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006991if test -z "$INSTALL"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006992if test "${ac_cv_path_install+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006994else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007000 # Account for people who put trailing slashes in PATH elements.
7001case $as_dir/ in
7002 ./ | .// | /cC/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007005 /usr/ucb/* ) ;;
7006 *)
7007 # OSF1 and SCO ODT 3.0 have their own names for install.
7008 # Don't use installbsd from OSF since it installs stuff as root
7009 # by default.
7010 for ac_prog in ginstall scoinst install; do
7011 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007013 if test $ac_prog = install &&
7014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015 # AIX install. It has an incompatible calling convention.
7016 :
7017 elif test $ac_prog = install &&
7018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7019 # program-specific install script used by HP pwplus--don't use.
7020 :
7021 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7023 break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007024 fi
7025 fi
7026 done
7027 done
7028 ;;
7029esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007030done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007031IFS=$as_save_IFS
7032
7033
7034fi
7035 if test "${ac_cv_path_install+set}" = set; then
7036 INSTALL=$ac_cv_path_install
7037 else
7038 # As a last resort, use the slow shell script. Don't cache a
7039 # value for INSTALL within a source directory, because that will
7040 # break other packages using the cache if that directory is
7041 # removed, or if the value is a relative name.
7042 INSTALL=$ac_install_sh
7043 fi
7044fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007045{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7046echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007047
7048# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7049# It thinks the first close brace ends the variable substitution.
7050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7051
7052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7053
7054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7055
Eric Christophere3befc72010-07-22 21:13:48 +00007056case "$INSTALL" in
7057 [\\/$]* | ?:[\\/]* ) ;;
7058 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7059esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007060
7061# Extract the first word of "bzip2", so it can be a program name with args.
7062set dummy bzip2; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065if test "${ac_cv_path_BZIP2+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007067else
7068 case $BZIP2 in
7069 [\\/]* | ?:[\\/]*)
7070 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7071 ;;
7072 *)
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007080 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007082 break 2
7083 fi
7084done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007085done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007086IFS=$as_save_IFS
7087
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007088 ;;
7089esac
7090fi
7091BZIP2=$ac_cv_path_BZIP2
7092if test -n "$BZIP2"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007093 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7094echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007095else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007096 { echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007098fi
7099
7100
mike-me08af302010-05-06 23:45:43 +00007101# Extract the first word of "cat", so it can be a program name with args.
7102set dummy cat; ac_word=$2
7103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105if test "${ac_cv_path_CAT+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108 case $CAT in
7109 [\\/]* | ?:[\\/]*)
7110 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7111 ;;
7112 *)
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126IFS=$as_save_IFS
7127
7128 ;;
7129esac
7130fi
7131CAT=$ac_cv_path_CAT
7132if test -n "$CAT"; then
7133 { echo "$as_me:$LINENO: result: $CAT" >&5
7134echo "${ECHO_T}$CAT" >&6; }
7135else
7136 { echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6; }
7138fi
7139
7140
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007141# Extract the first word of "doxygen", so it can be a program name with args.
7142set dummy doxygen; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145if test "${ac_cv_path_DOXYGEN+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007147else
7148 case $DOXYGEN in
7149 [\\/]* | ?:[\\/]*)
7150 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7151 ;;
7152 *)
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007160 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007162 break 2
7163 fi
7164done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007165done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007166IFS=$as_save_IFS
7167
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007168 ;;
7169esac
7170fi
7171DOXYGEN=$ac_cv_path_DOXYGEN
7172if test -n "$DOXYGEN"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007173 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7174echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007175else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007176 { echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007178fi
7179
7180
Daniel Dunbard1888822012-05-08 18:26:07 +00007181# Extract the first word of "groff", so it can be a program name with args.
7182set dummy groff; ac_word=$2
7183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185if test "${ac_cv_path_GROFF+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188 case $GROFF in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7191 ;;
7192 *)
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206IFS=$as_save_IFS
7207
7208 ;;
7209esac
7210fi
7211GROFF=$ac_cv_path_GROFF
7212if test -n "$GROFF"; then
7213 { echo "$as_me:$LINENO: result: $GROFF" >&5
7214echo "${ECHO_T}$GROFF" >&6; }
7215else
7216 { echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6; }
7218fi
7219
7220
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007221# Extract the first word of "gzip", so it can be a program name with args.
7222set dummy gzip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher77560892010-12-10 01:31:51 +00007225if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007227else
Eric Christopher77560892010-12-10 01:31:51 +00007228 case $GZIPBIN in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007229 [\\/]* | ?:[\\/]*)
Eric Christopher77560892010-12-10 01:31:51 +00007230 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007231 ;;
7232 *)
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher77560892010-12-10 01:31:51 +00007240 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007242 break 2
7243 fi
7244done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007245done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007246IFS=$as_save_IFS
7247
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007248 ;;
7249esac
7250fi
Eric Christopher77560892010-12-10 01:31:51 +00007251GZIPBIN=$ac_cv_path_GZIPBIN
7252if test -n "$GZIPBIN"; then
7253 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7254echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007255else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007256 { echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007258fi
7259
7260
Daniel Dunbard1888822012-05-08 18:26:07 +00007261# Extract the first word of "pdfroff", so it can be a program name with args.
7262set dummy pdfroff; ac_word=$2
7263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265if test "${ac_cv_path_PDFROFF+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268 case $PDFROFF in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7271 ;;
7272 *)
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288 ;;
7289esac
7290fi
7291PDFROFF=$ac_cv_path_PDFROFF
7292if test -n "$PDFROFF"; then
7293 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7294echo "${ECHO_T}$PDFROFF" >&6; }
7295else
7296 { echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
7298fi
7299
7300
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007301# Extract the first word of "zip", so it can be a program name with args.
7302set dummy zip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305if test "${ac_cv_path_ZIP+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007307else
7308 case $ZIP in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7311 ;;
7312 *)
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007320 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007322 break 2
7323 fi
7324done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007325done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007326IFS=$as_save_IFS
7327
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007328 ;;
7329esac
7330fi
7331ZIP=$ac_cv_path_ZIP
7332if test -n "$ZIP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007333 { echo "$as_me:$LINENO: result: $ZIP" >&5
7334echo "${ECHO_T}$ZIP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007335else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007338fi
7339
7340
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007341for ac_prog in ocamlc
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007342do
7343 # Extract the first word of "$ac_prog", so it can be a program name with args.
7344set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347if test "${ac_cv_path_OCAMLC+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007349else
7350 case $OCAMLC in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007362 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007364 break 2
7365 fi
7366done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007367done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007368IFS=$as_save_IFS
7369
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007370 ;;
7371esac
7372fi
7373OCAMLC=$ac_cv_path_OCAMLC
7374if test -n "$OCAMLC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007375 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7376echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007377else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007378 { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007380fi
7381
7382
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007383 test -n "$OCAMLC" && break
7384done
7385
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007386for ac_prog in ocamlopt
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007387do
7388 # Extract the first word of "$ac_prog", so it can be a program name with args.
7389set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007394else
7395 case $OCAMLOPT in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7398 ;;
7399 *)
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007407 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007409 break 2
7410 fi
7411done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007412done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007413IFS=$as_save_IFS
7414
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007415 ;;
7416esac
7417fi
7418OCAMLOPT=$ac_cv_path_OCAMLOPT
7419if test -n "$OCAMLOPT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007420 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7421echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007422else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007425fi
7426
7427
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007428 test -n "$OCAMLOPT" && break
7429done
7430
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007431for ac_prog in ocamldep
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007432do
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksend1e16452007-09-20 16:48:18 +00007439else
7440 case $OCAMLDEP in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksend1e16452007-09-20 16:48:18 +00007452 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksend1e16452007-09-20 16:48:18 +00007454 break 2
7455 fi
7456done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007457done
Gordon Henriksend1e16452007-09-20 16:48:18 +00007458IFS=$as_save_IFS
7459
Gordon Henriksend1e16452007-09-20 16:48:18 +00007460 ;;
7461esac
7462fi
7463OCAMLDEP=$ac_cv_path_OCAMLDEP
7464if test -n "$OCAMLDEP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007465 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7466echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007467else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007470fi
7471
7472
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007473 test -n "$OCAMLDEP" && break
7474done
7475
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007476for ac_prog in ocamldoc
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007477do
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007484else
7485 case $OCAMLDOC in
7486 [\\/]* | ?:[\\/]*)
7487 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7488 ;;
7489 *)
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007497 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007499 break 2
7500 fi
7501done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007502done
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007503IFS=$as_save_IFS
7504
7505 ;;
7506esac
7507fi
7508OCAMLDOC=$ac_cv_path_OCAMLDOC
7509if test -n "$OCAMLDOC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007510 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7511echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007512else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007515fi
7516
7517
7518 test -n "$OCAMLDOC" && break
7519done
7520
Daniel Dunbard1888822012-05-08 18:26:07 +00007521for ac_prog in gas as
7522do
7523 # Extract the first word of "$ac_prog", so it can be a program name with args.
7524set dummy $ac_prog; ac_word=$2
7525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527if test "${ac_cv_path_GAS+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 case $GAS in
7531 [\\/]* | ?:[\\/]*)
7532 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7533 ;;
7534 *)
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548IFS=$as_save_IFS
7549
7550 ;;
7551esac
7552fi
7553GAS=$ac_cv_path_GAS
7554if test -n "$GAS"; then
7555 { echo "$as_me:$LINENO: result: $GAS" >&5
7556echo "${ECHO_T}$GAS" >&6; }
7557else
7558 { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
7560fi
7561
7562
7563 test -n "$GAS" && break
7564done
7565
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007566
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007567{ echo "$as_me:$LINENO: checking for linker version" >&5
7568echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7569if test "${llvm_cv_link_version+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572
7573 version_string="$(ld -v 2>&1 | head -1)"
7574
7575 # Check for ld64.
7576 if (echo "$version_string" | grep -q "ld64"); then
Charles Davise56294d2012-02-28 02:55:41 +00007577 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007578 else
7579 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7580 fi
7581
7582fi
7583{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7584echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7585
7586cat >>confdefs.h <<_ACEOF
7587#define HOST_LINK_VERSION "$llvm_cv_link_version"
7588_ACEOF
7589
7590
7591
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007592
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007593{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7594echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7595if test "${llvm_cv_link_use_r+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007597else
7598 ac_ext=c
7599ac_cpp='$CPP $CPPFLAGS'
7600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604 oldcflags="$CFLAGS"
7605 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007606 cat >conftest.$ac_ext <<_ACEOF
7607/* confdefs.h. */
7608_ACEOF
7609cat confdefs.h >>conftest.$ac_ext
7610cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007611/* end confdefs.h. */
7612
7613int
7614main ()
7615{
Dan Gohmana1c94042010-04-25 00:12:20 +00007616
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007617 ;
7618 return 0;
7619}
7620_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007621rm -f conftest.$ac_objext conftest$ac_exeext
7622if { (ac_try="$ac_link"
7623case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626esac
7627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_link") 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7636 { (case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639esac
7640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_try") 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try='test -s conftest$ac_exeext'
7646 { (case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7649esac
7650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_try") 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007655 llvm_cv_link_use_r=yes
7656else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007657 echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 llvm_cv_link_use_r=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007661fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007662
Bill Wendling02b47d92009-04-18 11:20:33 +00007663rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007664 conftest$ac_exeext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007665 CFLAGS="$oldcflags"
7666 ac_ext=c
7667ac_cpp='$CPP $CPPFLAGS'
7668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670ac_compiler_gnu=$ac_cv_c_compiler_gnu
7671
7672
7673fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007674{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7675echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007676if test "$llvm_cv_link_use_r" = yes ; then
7677
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007678cat >>confdefs.h <<\_ACEOF
7679#define HAVE_LINK_R 1
7680_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007681
7682 fi
7683
7684
Bob Wilson8d7e6902013-08-02 22:51:11 +00007685{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7686echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007687if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007689else
7690 ac_ext=c
7691ac_cpp='$CPP $CPPFLAGS'
7692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695
7696 oldcflags="$CFLAGS"
Bob Wilson8d7e6902013-08-02 22:51:11 +00007697 CFLAGS="$CFLAGS -rdynamic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007698 cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h. */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007703/* end confdefs.h. */
7704
7705int
7706main ()
7707{
Dan Gohmana1c94042010-04-25 00:12:20 +00007708
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007709 ;
7710 return 0;
7711}
7712_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007713rm -f conftest.$ac_objext conftest$ac_exeext
7714if { (ac_try="$ac_link"
7715case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718esac
7719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_link") 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731esac
7732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_try") 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741esac
7742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007747 llvm_cv_link_use_export_dynamic=yes
7748else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007749 echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 llvm_cv_link_use_export_dynamic=no
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007753fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007754
Bill Wendling02b47d92009-04-18 11:20:33 +00007755rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007756 conftest$ac_exeext conftest.$ac_ext
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007757 CFLAGS="$oldcflags"
7758 ac_ext=c
7759ac_cpp='$CPP $CPPFLAGS'
7760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764
7765fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007766{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7767echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007768if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7769
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007770cat >>confdefs.h <<\_ACEOF
7771#define HAVE_LINK_EXPORT_DYNAMIC 1
7772_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007773
7774 fi
7775
7776
Dan Gohmanb7edb422010-06-01 14:56:56 +00007777{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7778echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7779if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanfe051a52010-04-16 22:59:06 +00007780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782 ac_ext=c
7783ac_cpp='$CPP $CPPFLAGS'
7784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
7788 oldcflags="$CFLAGS"
7789
7790 # The following code is from the autoconf manual,
7791 # "11.13: Limitations of Usual Tools".
7792 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7793 # Use mktemp if possible; otherwise fall back on mkdir,
7794 # with $RANDOM to make collisions less likely.
7795 : ${TMPDIR=/tmp}
7796 {
7797 tmp=`
7798 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7799 ` &&
7800 test -n "$tmp" && test -d "$tmp"
7801 } || {
7802 tmp=$TMPDIR/foo$$-$RANDOM
7803 (umask 077 && mkdir "$tmp")
7804 } || exit $?
7805
Dan Gohmanb7edb422010-06-01 14:56:56 +00007806 echo "{" > "$tmp/export.map"
7807 echo " global: main;" >> "$tmp/export.map"
7808 echo " local: *;" >> "$tmp/export.map"
7809 echo "};" >> "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007810
Dan Gohmanb7edb422010-06-01 14:56:56 +00007811 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007812 cat >conftest.$ac_ext <<_ACEOF
7813/* confdefs.h. */
7814_ACEOF
7815cat confdefs.h >>conftest.$ac_ext
7816cat >>conftest.$ac_ext <<_ACEOF
7817/* end confdefs.h. */
7818
7819int
7820main ()
7821{
Dan Gohmana1c94042010-04-25 00:12:20 +00007822
Dan Gohmanfe051a52010-04-16 22:59:06 +00007823 ;
7824 return 0;
7825}
7826_ACEOF
7827rm -f conftest.$ac_objext conftest$ac_exeext
7828if { (ac_try="$ac_link"
7829case "(($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_link") 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7842 { (case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
7846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_try") 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try='test -s conftest$ac_exeext'
7852 { (case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855esac
7856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_try") 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
Dan Gohmanb7edb422010-06-01 14:56:56 +00007861 llvm_cv_link_use_version_script=yes
Dan Gohmanfe051a52010-04-16 22:59:06 +00007862else
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
Dan Gohmanc6998312010-06-01 16:22:27 +00007866 llvm_cv_link_use_version_script=no
Dan Gohmanfe051a52010-04-16 22:59:06 +00007867fi
7868
7869rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanb7edb422010-06-01 14:56:56 +00007871 rm "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007872 rmdir "$tmp"
7873 CFLAGS="$oldcflags"
7874 ac_ext=c
7875ac_cpp='$CPP $CPPFLAGS'
7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880
7881fi
Dan Gohmanb7edb422010-06-01 14:56:56 +00007882{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7883echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7884if test "$llvm_cv_link_use_version_script" = yes ; then
7885 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanfe051a52010-04-16 22:59:06 +00007886
7887 fi
7888
7889
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007890
7891
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007892{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7893echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7894if test "${ac_cv_c_const+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007896else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007897 cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007902/* end confdefs.h. */
7903
7904int
7905main ()
7906{
7907/* FIXME: Include the comments suggested by Paul. */
7908#ifndef __cplusplus
7909 /* Ultrix mips cc rejects this. */
7910 typedef int charset[2];
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007911 const charset x;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007912 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007913 char const *const *ccp;
7914 char **p;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007915 /* NEC SVR4.0.2 mips cc rejects this. */
7916 struct point {int x, y;};
7917 static struct point const zero = {0,0};
7918 /* AIX XL C 1.02.0.0 rejects this.
7919 It does not let you subtract one const X* pointer from another in
7920 an arm of an if-expression whose if-part is not a constant
7921 expression */
7922 const char *g = "string";
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007923 ccp = &g + (g ? g-g : 0);
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007924 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007925 ++ccp;
7926 p = (char**) ccp;
7927 ccp = (char const *const *) p;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007928 { /* SCO 3.2v4 cc rejects this. */
7929 char *t;
7930 char const *s = 0 ? (char *) 0 : (char const *) 0;
7931
7932 *t++ = 0;
7933 if (s) return 0;
7934 }
7935 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7936 int x[] = {25, 17};
7937 const int *foo = &x[0];
7938 ++foo;
7939 }
7940 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7941 typedef const int *iptr;
7942 iptr p = 0;
7943 ++p;
7944 }
7945 { /* AIX XL C 1.02.0.0 rejects this saying
7946 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7947 struct s { int j; const int *ap[3]; };
7948 struct s *b; b->j = 5;
7949 }
7950 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7951 const int foo = 10;
7952 if (!foo) return 0;
7953 }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007954 return !x[0] && !zero.x;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007955#endif
7956
7957 ;
7958 return 0;
7959}
7960_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007961rm -f conftest.$ac_objext
7962if { (ac_try="$ac_compile"
7963case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966esac
7967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979esac
7980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989esac
7990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007995 ac_cv_c_const=yes
7996else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007997 echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 ac_cv_c_const=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008001fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008002
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008005{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8006echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008007if test $ac_cv_c_const = no; then
8008
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008009cat >>confdefs.h <<\_ACEOF
8010#define const
8011_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008012
8013fi
8014
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008015
Eric Christopherd7ed36b2014-01-09 01:09:57 +00008016{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8017echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8018if test "${ac_cv_path_GREP+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021 # Extract the first word of "grep ggrep" to use in msg output
8022if test -z "$GREP"; then
8023set dummy grep ggrep; ac_prog_name=$2
8024if test "${ac_cv_path_GREP+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027 ac_path_GREP_found=false
8028# Loop through the user's path and test for each of PROGNAME-LIST
8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_prog in grep ggrep; do
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8037 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8038 # Check for GNU ac_path_GREP and select it if it is found.
8039 # Check for GNU $ac_path_GREP
8040case `"$ac_path_GREP" --version 2>&1` in
8041*GNU*)
8042 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8043*)
8044 ac_count=0
8045 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8046 while :
8047 do
8048 cat "conftest.in" "conftest.in" >"conftest.tmp"
8049 mv "conftest.tmp" "conftest.in"
8050 cp "conftest.in" "conftest.nl"
8051 echo 'GREP' >> "conftest.nl"
8052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8054 ac_count=`expr $ac_count + 1`
8055 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8056 # Best one so far, save it but keep looking for a better one
8057 ac_cv_path_GREP="$ac_path_GREP"
8058 ac_path_GREP_max=$ac_count
8059 fi
8060 # 10*(2^10) chars as input seems more than enough
8061 test $ac_count -gt 10 && break
8062 done
8063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8064esac
8065
8066
8067 $ac_path_GREP_found && break 3
8068 done
8069done
8070
8071done
8072IFS=$as_save_IFS
8073
8074
8075fi
8076
8077GREP="$ac_cv_path_GREP"
8078if test -z "$GREP"; then
8079 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8080echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8081 { (exit 1); exit 1; }; }
8082fi
8083
8084else
8085 ac_cv_path_GREP=$GREP
8086fi
8087
8088
8089fi
8090{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8091echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8092 GREP="$ac_cv_path_GREP"
8093
8094
8095{ echo "$as_me:$LINENO: checking for egrep" >&5
8096echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8097if test "${ac_cv_path_EGREP+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8101 then ac_cv_path_EGREP="$GREP -E"
8102 else
8103 # Extract the first word of "egrep" to use in msg output
8104if test -z "$EGREP"; then
8105set dummy egrep; ac_prog_name=$2
8106if test "${ac_cv_path_EGREP+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109 ac_path_EGREP_found=false
8110# Loop through the user's path and test for each of PROGNAME-LIST
8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8113do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_prog in egrep; do
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8119 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8120 # Check for GNU ac_path_EGREP and select it if it is found.
8121 # Check for GNU $ac_path_EGREP
8122case `"$ac_path_EGREP" --version 2>&1` in
8123*GNU*)
8124 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8125*)
8126 ac_count=0
8127 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8128 while :
8129 do
8130 cat "conftest.in" "conftest.in" >"conftest.tmp"
8131 mv "conftest.tmp" "conftest.in"
8132 cp "conftest.in" "conftest.nl"
8133 echo 'EGREP' >> "conftest.nl"
8134 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8136 ac_count=`expr $ac_count + 1`
8137 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8138 # Best one so far, save it but keep looking for a better one
8139 ac_cv_path_EGREP="$ac_path_EGREP"
8140 ac_path_EGREP_max=$ac_count
8141 fi
8142 # 10*(2^10) chars as input seems more than enough
8143 test $ac_count -gt 10 && break
8144 done
8145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8146esac
8147
8148
8149 $ac_path_EGREP_found && break 3
8150 done
8151done
8152
8153done
8154IFS=$as_save_IFS
8155
8156
8157fi
8158
8159EGREP="$ac_cv_path_EGREP"
8160if test -z "$EGREP"; then
8161 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8162echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8163 { (exit 1); exit 1; }; }
8164fi
8165
8166else
8167 ac_cv_path_EGREP=$EGREP
8168fi
8169
8170
8171 fi
8172fi
8173{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8174echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8175 EGREP="$ac_cv_path_EGREP"
8176
8177
8178{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8179echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8180if test "${ac_cv_header_stdc+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183 cat >conftest.$ac_ext <<_ACEOF
8184/* confdefs.h. */
8185_ACEOF
8186cat confdefs.h >>conftest.$ac_ext
8187cat >>conftest.$ac_ext <<_ACEOF
8188/* end confdefs.h. */
8189#include <stdlib.h>
8190#include <stdarg.h>
8191#include <string.h>
8192#include <float.h>
8193
8194int
8195main ()
8196{
8197
8198 ;
8199 return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext
8203if { (ac_try="$ac_compile"
8204case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207esac
8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220esac
8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest.$ac_objext'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_header_stdc=yes
8237else
8238 echo "$as_me: failed program was:" >&5
8239sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_header_stdc=no
8242fi
8243
8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245
8246if test $ac_cv_header_stdc = yes; then
8247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8248 cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */
8254#include <string.h>
8255
8256_ACEOF
8257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8258 $EGREP "memchr" >/dev/null 2>&1; then
8259 :
8260else
8261 ac_cv_header_stdc=no
8262fi
8263rm -f conftest*
8264
8265fi
8266
8267if test $ac_cv_header_stdc = yes; then
8268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8269 cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h. */
8275#include <stdlib.h>
8276
8277_ACEOF
8278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8279 $EGREP "free" >/dev/null 2>&1; then
8280 :
8281else
8282 ac_cv_header_stdc=no
8283fi
8284rm -f conftest*
8285
8286fi
8287
8288if test $ac_cv_header_stdc = yes; then
8289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8290 if test "$cross_compiling" = yes; then
8291 :
8292else
8293 cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h. */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h. */
8299#include <ctype.h>
8300#include <stdlib.h>
8301#if ((' ' & 0x0FF) == 0x020)
8302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8304#else
8305# define ISLOWER(c) \
8306 (('a' <= (c) && (c) <= 'i') \
8307 || ('j' <= (c) && (c) <= 'r') \
8308 || ('s' <= (c) && (c) <= 'z'))
8309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8310#endif
8311
8312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8313int
8314main ()
8315{
8316 int i;
8317 for (i = 0; i < 256; i++)
8318 if (XOR (islower (i), ISLOWER (i))
8319 || toupper (i) != TOUPPER (i))
8320 return 2;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest$ac_exeext
8325if { (ac_try="$ac_link"
8326case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329esac
8330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_link") 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 :
8345else
8346 echo "$as_me: program exited with status $ac_status" >&5
8347echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
8349
8350( exit $ac_status )
8351ac_cv_header_stdc=no
8352fi
8353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8354fi
8355
8356
8357fi
8358fi
8359{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8360echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8361if test $ac_cv_header_stdc = yes; then
8362
8363cat >>confdefs.h <<\_ACEOF
8364#define STDC_HEADERS 1
8365_ACEOF
8366
8367fi
8368
8369
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008370
8371
8372
8373
Reid Spencera40c6872004-11-29 12:29:58 +00008374ac_header_dirent=no
8375for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008376 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8377{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8378echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00008381else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008382 cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h. */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00008387/* end confdefs.h. */
8388#include <sys/types.h>
8389#include <$ac_hdr>
8390
8391int
8392main ()
8393{
8394if ((DIR *) 0)
8395return 0;
8396 ;
8397 return 0;
8398}
8399_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008400rm -f conftest.$ac_objext
8401if { (ac_try="$ac_compile"
8402case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415 { (case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418esac
8419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_try") 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428esac
8429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_try") 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00008434 eval "$as_ac_Header=yes"
8435else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008436 echo "$as_me: failed program was:" >&5
8437sed 's/^/| /' conftest.$ac_ext >&5
8438
8439 eval "$as_ac_Header=no"
Reid Spencera40c6872004-11-29 12:29:58 +00008440fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008441
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00008443fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008444ac_res=`eval echo '${'$as_ac_Header'}'`
8445 { echo "$as_me:$LINENO: result: $ac_res" >&5
8446echo "${ECHO_T}$ac_res" >&6; }
8447if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00008448 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008449#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +00008450_ACEOF
8451
8452ac_header_dirent=$ac_hdr; break
8453fi
8454
8455done
8456# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8457if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008458 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8459echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8460if test "${ac_cv_search_opendir+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00008462else
8463 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008464cat >conftest.$ac_ext <<_ACEOF
8465/* confdefs.h. */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00008469/* end confdefs.h. */
8470
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008471/* Override any GCC internal prototype to avoid an error.
8472 Use char because int might match the return type of a GCC
8473 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00008474#ifdef __cplusplus
8475extern "C"
8476#endif
Reid Spencera40c6872004-11-29 12:29:58 +00008477char opendir ();
8478int
8479main ()
8480{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008481return opendir ();
Reid Spencera40c6872004-11-29 12:29:58 +00008482 ;
8483 return 0;
8484}
8485_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008486for ac_lib in '' dir; do
8487 if test -z "$ac_lib"; then
8488 ac_res="none required"
8489 else
8490 ac_res=-l$ac_lib
Reid Spencera40c6872004-11-29 12:29:58 +00008491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008492 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008493 rm -f conftest.$ac_objext conftest$ac_exeext
8494if { (ac_try="$ac_link"
8495case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498esac
8499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_link") 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511esac
8512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; } &&
8517 { ac_try='test -s conftest$ac_exeext'
8518 { (case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521esac
8522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_try") 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008527 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008528else
8529 echo "$as_me: failed program was:" >&5
8530sed 's/^/| /' conftest.$ac_ext >&5
8531
8532
Reid Spencera40c6872004-11-29 12:29:58 +00008533fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008534
Bill Wendling02b47d92009-04-18 11:20:33 +00008535rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008536 conftest$ac_exeext
8537 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008538 break
Reid Spencera40c6872004-11-29 12:29:58 +00008539fi
John Criswell3ef61af2003-06-30 21:59:07 +00008540done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008541if test "${ac_cv_search_opendir+set}" = set; then
8542 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008543else
8544 ac_cv_search_opendir=no
8545fi
8546rm conftest.$ac_ext
8547LIBS=$ac_func_search_save_LIBS
8548fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008549{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8550echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008551ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008552if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell3ef61af2003-06-30 21:59:07 +00008554
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008555fi
8556
8557else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008558 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8559echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8560if test "${ac_cv_search_opendir+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008562else
8563 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008564cat >conftest.$ac_ext <<_ACEOF
8565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008569/* end confdefs.h. */
8570
8571/* Override any GCC internal prototype to avoid an error.
8572 Use char because int might match the return type of a GCC
8573 builtin and then its argument prototype would still apply. */
8574#ifdef __cplusplus
8575extern "C"
8576#endif
8577char opendir ();
8578int
8579main ()
8580{
8581return opendir ();
8582 ;
8583 return 0;
8584}
8585_ACEOF
8586for ac_lib in '' x; do
8587 if test -z "$ac_lib"; then
8588 ac_res="none required"
8589 else
8590 ac_res=-l$ac_lib
8591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8592 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008593 rm -f conftest.$ac_objext conftest$ac_exeext
8594if { (ac_try="$ac_link"
8595case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8598esac
8599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_link") 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; } &&
8617 { ac_try='test -s conftest$ac_exeext'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621esac
8622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008627 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008628else
8629 echo "$as_me: failed program was:" >&5
8630sed 's/^/| /' conftest.$ac_ext >&5
8631
8632
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008633fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008634
Bill Wendling02b47d92009-04-18 11:20:33 +00008635rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008636 conftest$ac_exeext
8637 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008638 break
8639fi
8640done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008641if test "${ac_cv_search_opendir+set}" = set; then
8642 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008643else
8644 ac_cv_search_opendir=no
8645fi
8646rm conftest.$ac_ext
8647LIBS=$ac_func_search_save_LIBS
8648fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008649{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8650echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008651ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008652if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8654
8655fi
8656
8657fi
John Criswell3ef61af2003-06-30 21:59:07 +00008658
Eric Christopherd7ed36b2014-01-09 01:09:57 +00008659# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8670 inttypes.h stdint.h unistd.h
8671do
8672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678 cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
8684$ac_includes_default
8685
8686#include <$ac_header>
8687_ACEOF
8688rm -f conftest.$ac_objext
8689if { (ac_try="$ac_compile"
8690case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693esac
8694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_compile") 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706esac
8707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_try") 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try='test -s conftest.$ac_objext'
8713 { (case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8716esac
8717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_try") 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 eval "$as_ac_Header=yes"
8723else
8724 echo "$as_me: failed program was:" >&5
8725sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 eval "$as_ac_Header=no"
8728fi
8729
8730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731fi
8732ac_res=`eval echo '${'$as_ac_Header'}'`
8733 { echo "$as_me:$LINENO: result: $ac_res" >&5
8734echo "${ECHO_T}$ac_res" >&6; }
8735if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738_ACEOF
8739
8740fi
8741
8742done
8743
8744
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008745
John Criswell3ef61af2003-06-30 21:59:07 +00008746for ac_header in dlfcn.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008747do
8748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754fi
8755ac_res=`eval echo '${'$as_ac_Header'}'`
8756 { echo "$as_me:$LINENO: result: $ac_res" >&5
8757echo "${ECHO_T}$ac_res" >&6; }
8758else
8759 # Is the header compilable?
8760{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8762cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768$ac_includes_default
8769#include <$ac_header>
8770_ACEOF
8771rm -f conftest.$ac_objext
8772if { (ac_try="$ac_compile"
8773case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776esac
8777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_compile") 2>conftest.er1
8779 ac_status=$?
8780 grep -v '^ *+' conftest.er1 >conftest.err
8781 rm -f conftest.er1
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8786 { (case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789esac
8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_try") 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest.$ac_objext'
8796 { (case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799esac
8800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_try") 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_header_compiler=yes
8806else
8807 echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 ac_header_compiler=no
8811fi
8812
8813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8815echo "${ECHO_T}$ac_header_compiler" >&6; }
8816
8817# Is the header present?
8818{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826#include <$ac_header>
8827_ACEOF
8828if { (ac_try="$ac_cpp conftest.$ac_ext"
8829case "(($ac_try" in
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8832esac
8833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null; then
8841 if test -s conftest.err; then
8842 ac_cpp_err=$ac_c_preproc_warn_flag
8843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8844 else
8845 ac_cpp_err=
8846 fi
8847else
8848 ac_cpp_err=yes
8849fi
8850if test -z "$ac_cpp_err"; then
8851 ac_header_preproc=yes
8852else
8853 echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ac_header_preproc=no
8857fi
8858
8859rm -f conftest.err conftest.$ac_ext
8860{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8861echo "${ECHO_T}$ac_header_preproc" >&6; }
8862
8863# So? What about this header?
8864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8865 yes:no: )
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8867echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8869echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8870 ac_header_preproc=yes
8871 ;;
8872 no:yes:* )
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8876echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8878echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8880echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8884echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8885 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +00008886## ------------------------------------ ##
8887## Report this to http://llvm.org/bugs/ ##
8888## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008889_ASBOX
8890 ) | sed "s/^/$as_me: WARNING: /" >&2
8891 ;;
8892esac
8893{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898 eval "$as_ac_Header=\$ac_header_preproc"
8899fi
8900ac_res=`eval echo '${'$as_ac_Header'}'`
8901 { echo "$as_me:$LINENO: result: $ac_res" >&5
8902echo "${ECHO_T}$ac_res" >&6; }
8903
8904fi
8905if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +00008906 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +00008908_ACEOF
8909
8910fi
8911
8912done
8913
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008914# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008915if test "${enable_ltdl_install+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008916 enableval=$enable_ltdl_install;
8917fi
Reid Spencera40c6872004-11-29 12:29:58 +00008918
Reid Spencera40c6872004-11-29 12:29:58 +00008919
Eric Christopherd7ed36b2014-01-09 01:09:57 +00008920
8921
8922if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencera40c6872004-11-29 12:29:58 +00008923 INSTALL_LTDL_TRUE=
8924 INSTALL_LTDL_FALSE='#'
8925else
8926 INSTALL_LTDL_TRUE='#'
8927 INSTALL_LTDL_FALSE=
8928fi
8929
Eric Christopherd7ed36b2014-01-09 01:09:57 +00008930
8931
8932if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencera40c6872004-11-29 12:29:58 +00008933 CONVENIENCE_LTDL_TRUE=
8934 CONVENIENCE_LTDL_FALSE='#'
8935else
8936 CONVENIENCE_LTDL_TRUE='#'
8937 CONVENIENCE_LTDL_FALSE=
8938fi
8939
8940
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008941{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8942echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00008943library_names_spec=
8944libname_spec='lib$name'
8945soname_spec=
8946shrext_cmds=".so"
8947postinstall_cmds=
8948postuninstall_cmds=
8949finish_cmds=
8950finish_eval=
8951shlibpath_var=
8952shlibpath_overrides_runpath=unknown
8953version_type=none
8954dynamic_linker="$host_os ld.so"
8955sys_lib_dlsearch_path_spec="/lib /usr/lib"
8956if test "$GCC" = yes; then
8957 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8958 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8959 # if the path contains ";" then we assume it to be the separator
8960 # otherwise default to the standard path separator (i.e. ":") - it is
8961 # assumed that no part of a normal pathname contains ";" but that should
8962 # okay in the real world where ";" in dirpaths is itself problematic.
8963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8964 else
8965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8966 fi
8967else
8968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8969fi
8970need_lib_prefix=unknown
8971hardcode_into_libs=no
8972
8973# when you set need_version to no, make sure it does not cause -set_version
8974# flags to be left without arguments
8975need_version=unknown
8976
8977case $host_os in
8978aix3*)
8979 version_type=linux
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8981 shlibpath_var=LIBPATH
8982
8983 # AIX 3 has no versioning support, so we append a major version to the name.
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 ;;
8986
8987aix4* | aix5*)
8988 version_type=linux
8989 need_lib_prefix=no
8990 need_version=no
8991 hardcode_into_libs=yes
8992 if test "$host_cpu" = ia64; then
8993 # AIX 5 supports IA64
8994 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 else
8997 # With GCC up to 2.95.x, collect2 would create an import file
8998 # for dependence libraries. The import file would start with
8999 # the line `#! .'. This would cause the generated library to
9000 # depend on `.', always an invalid library. This was fixed in
9001 # development snapshots of GCC prior to 3.0.
9002 case $host_os in
9003 aix4 | aix4.[01] | aix4.[01].*)
9004 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9005 echo ' yes '
9006 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9007 :
9008 else
9009 can_build_shared=no
9010 fi
9011 ;;
9012 esac
9013 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9014 # soname into executable. Probably we can add versioning support to
9015 # collect2, so additional links can be useful in future.
9016 if test "$aix_use_runtimelinking" = yes; then
9017 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9018 # instead of lib<name>.a to let people know that these are not
9019 # typical AIX shared libraries.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 else
9022 # We preserve .a as extension for shared libraries through AIX4.2
9023 # and later when we are not doing run time linking.
9024 library_names_spec='${libname}${release}.a $libname.a'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 fi
9027 shlibpath_var=LIBPATH
9028 fi
9029 ;;
9030
9031amigaos*)
9032 library_names_spec='$libname.ixlibrary $libname.a'
9033 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9034 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9035 ;;
9036
9037beos*)
9038 library_names_spec='${libname}${shared_ext}'
9039 dynamic_linker="$host_os ld.so"
9040 shlibpath_var=LIBRARY_PATH
9041 ;;
9042
9043bsdi[45]*)
9044 version_type=linux
9045 need_version=no
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9052 # the default ld.so.conf also contains /usr/contrib/lib and
9053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9054 # libtool to hard-code these into programs
9055 ;;
9056
9057cygwin* | mingw* | pw32*)
9058 version_type=windows
9059 shrext_cmds=".dll"
9060 need_version=no
9061 need_lib_prefix=no
9062
9063 case $GCC,$host_os in
9064 yes,cygwin* | yes,mingw* | yes,pw32*)
9065 library_names_spec='$libname.dll.a'
9066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9067 postinstall_cmds='base_file=`basename \${file}`~
9068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9069 dldir=$destdir/`dirname \$dlpath`~
9070 test -d \$dldir || mkdir -p \$dldir~
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009071 $install_prog $dir/$dlname \$dldir/$dlname~
9072 chmod a+x \$dldir/$dlname'
Reid Spencera40c6872004-11-29 12:29:58 +00009073 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9074 dlpath=$dir/\$dldll~
9075 $rm \$dlpath'
9076 shlibpath_overrides_runpath=yes
9077
9078 case $host_os in
9079 cygwin*)
9080 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9081 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9082 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9083 ;;
9084 mingw*)
9085 # MinGW DLLs use traditional 'lib' prefix
9086 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9088 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9089 # It is most probably a Windows format PATH printed by
9090 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9091 # path with ; separators, and with drive letters. We can handle the
9092 # drive letters (cygwin fileutils understands them), so leave them,
9093 # especially as we might pass files found there to a mingw objdump,
9094 # which wouldn't understand a cygwinified path. Ahh.
9095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9096 else
9097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9098 fi
9099 ;;
9100 pw32*)
9101 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009102 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencera40c6872004-11-29 12:29:58 +00009103 ;;
9104 esac
9105 ;;
9106
9107 *)
9108 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9109 ;;
9110 esac
9111 dynamic_linker='Win32 ld.exe'
9112 # FIXME: first we should search . and the directory the executable is in
9113 shlibpath_var=PATH
9114 ;;
9115
9116darwin* | rhapsody*)
9117 dynamic_linker="$host_os dyld"
9118 version_type=darwin
9119 need_lib_prefix=no
9120 need_version=no
9121 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9122 soname_spec='${libname}${release}${major}$shared_ext'
9123 shlibpath_overrides_runpath=yes
9124 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer28d3e722007-04-11 00:27:39 +00009125 shrext_cmds='.dylib'
Reid Spencera40c6872004-11-29 12:29:58 +00009126 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9127 if test "$GCC" = yes; then
9128 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9129 else
9130 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9131 fi
9132 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9133 ;;
9134
9135dgux*)
9136 version_type=linux
9137 need_lib_prefix=no
9138 need_version=no
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 ;;
9143
Eric Christopher49709ad2011-10-26 00:42:12 +00009144freebsd1.*)
Reid Spencera40c6872004-11-29 12:29:58 +00009145 dynamic_linker=no
9146 ;;
9147
9148kfreebsd*-gnu)
9149 version_type=linux
9150 need_lib_prefix=no
9151 need_version=no
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=no
9156 hardcode_into_libs=yes
9157 dynamic_linker='GNU ld.so'
9158 ;;
9159
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009160freebsd* | dragonfly*)
9161 # DragonFly does not have aout. When/if they implement a new
9162 # versioning mechanism, adjust this.
9163 if test -x /usr/bin/objformat; then
9164 objformat=`/usr/bin/objformat`
9165 else
9166 case $host_os in
Eric Christopher49709ad2011-10-26 00:42:12 +00009167 freebsd[123].*) objformat=aout ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009168 *) objformat=elf ;;
9169 esac
9170 fi
Reid Spencera40c6872004-11-29 12:29:58 +00009171 version_type=freebsd-$objformat
9172 case $version_type in
9173 freebsd-elf*)
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9175 need_version=no
9176 need_lib_prefix=no
9177 ;;
9178 freebsd-*)
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9180 need_version=yes
9181 ;;
9182 esac
9183 shlibpath_var=LD_LIBRARY_PATH
9184 case $host_os in
Eric Christopher49709ad2011-10-26 00:42:12 +00009185 freebsd2.*)
Reid Spencera40c6872004-11-29 12:29:58 +00009186 shlibpath_overrides_runpath=yes
9187 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009188 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencera40c6872004-11-29 12:29:58 +00009189 shlibpath_overrides_runpath=yes
9190 hardcode_into_libs=yes
9191 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009192 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9193 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencera40c6872004-11-29 12:29:58 +00009194 shlibpath_overrides_runpath=no
9195 hardcode_into_libs=yes
9196 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009197 freebsd*) # from 4.6 on
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9200 ;;
Reid Spencera40c6872004-11-29 12:29:58 +00009201 esac
9202 ;;
9203
9204gnu*)
9205 version_type=linux
9206 need_lib_prefix=no
9207 need_version=no
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 hardcode_into_libs=yes
9212 ;;
9213
9214hpux9* | hpux10* | hpux11*)
9215 # Give a soname corresponding to the major version so that dld.sl refuses to
9216 # link against other versions.
9217 version_type=sunos
9218 need_lib_prefix=no
9219 need_version=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009220 case $host_cpu in
Reid Spencera40c6872004-11-29 12:29:58 +00009221 ia64*)
9222 shrext_cmds='.so'
9223 hardcode_into_libs=yes
9224 dynamic_linker="$host_os dld.so"
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 if test "X$HPUX_IA64_MODE" = X32; then
9230 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9231 else
9232 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9233 fi
9234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9235 ;;
9236 hppa*64*)
9237 shrext_cmds='.sl'
9238 hardcode_into_libs=yes
9239 dynamic_linker="$host_os dld.sl"
9240 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9246 ;;
9247 *)
9248 shrext_cmds='.sl'
9249 dynamic_linker="$host_os dld.sl"
9250 shlibpath_var=SHLIB_PATH
9251 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 ;;
9255 esac
9256 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9257 postinstall_cmds='chmod 555 $lib'
9258 ;;
9259
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009260interix3*)
9261 version_type=linux
9262 need_lib_prefix=no
9263 need_version=no
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=no
9269 hardcode_into_libs=yes
9270 ;;
9271
Reid Spencera40c6872004-11-29 12:29:58 +00009272irix5* | irix6* | nonstopux*)
9273 case $host_os in
9274 nonstopux*) version_type=nonstopux ;;
9275 *)
9276 if test "$lt_cv_prog_gnu_ld" = yes; then
9277 version_type=linux
9278 else
9279 version_type=irix
9280 fi ;;
9281 esac
9282 need_lib_prefix=no
9283 need_version=no
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9286 case $host_os in
9287 irix5* | nonstopux*)
9288 libsuff= shlibsuff=
9289 ;;
9290 *)
9291 case $LD in # libtool.m4 will add one of these switches to LD
9292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9293 libsuff= shlibsuff= libmagic=32-bit;;
9294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9295 libsuff=32 shlibsuff=N32 libmagic=N32;;
9296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9297 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9298 *) libsuff= shlibsuff= libmagic=never-match;;
9299 esac
9300 ;;
9301 esac
9302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9303 shlibpath_overrides_runpath=no
9304 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9305 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9306 hardcode_into_libs=yes
9307 ;;
9308
9309# No shared lib support for Linux oldld, aout, or coff.
9310linux*oldld* | linux*aout* | linux*coff*)
9311 dynamic_linker=no
9312 ;;
9313
9314# This must be Linux ELF.
9315linux*)
9316 version_type=linux
9317 need_lib_prefix=no
9318 need_version=no
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=no
9324 # This implies no fast_install, which is unacceptable.
9325 # Some rework will be needed to allow for fast_install
9326 # before this can be enabled.
9327 hardcode_into_libs=yes
9328
9329 # Append ld.so.conf contents to the search path
9330 if test -f /etc/ld.so.conf; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009331 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencera40c6872004-11-29 12:29:58 +00009332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9333 fi
9334
9335 # We used to test for /lib/ld.so.1 and disable shared libraries on
9336 # powerpc, because MkLinux only supported shared libraries with the
9337 # GNU dynamic linker. Since this was broken with cross compilers,
9338 # most powerpc-linux boxes support dynamic linking these days and
9339 # people can always --disable-shared, the test was removed, and we
9340 # assume the GNU/Linux dynamic linker is in use.
9341 dynamic_linker='GNU/Linux ld.so'
9342 ;;
9343
9344knetbsd*-gnu)
9345 version_type=linux
9346 need_lib_prefix=no
9347 need_version=no
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=no
9352 hardcode_into_libs=yes
9353 dynamic_linker='GNU ld.so'
9354 ;;
9355
9356netbsd*)
9357 version_type=sunos
9358 need_lib_prefix=no
9359 need_version=no
9360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9363 dynamic_linker='NetBSD (a.out) ld.so'
9364 else
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 dynamic_linker='NetBSD ld.elf_so'
9368 fi
9369 shlibpath_var=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath=yes
9371 hardcode_into_libs=yes
9372 ;;
9373
9374newsos6)
9375 version_type=linux
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 ;;
9380
9381nto-qnx*)
9382 version_type=linux
9383 need_lib_prefix=no
9384 need_version=no
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=yes
9389 ;;
9390
Eric Christopher22738d02012-08-06 20:52:18 +00009391openbsd* | bitrig*)
Reid Spencera40c6872004-11-29 12:29:58 +00009392 version_type=sunos
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009393 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencera40c6872004-11-29 12:29:58 +00009394 need_lib_prefix=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9396 case $host_os in
9397 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9398 *) need_version=no ;;
9399 esac
Reid Spencera40c6872004-11-29 12:29:58 +00009400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9402 shlibpath_var=LD_LIBRARY_PATH
9403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9404 case $host_os in
9405 openbsd2.[89] | openbsd2.[89].*)
9406 shlibpath_overrides_runpath=no
9407 ;;
9408 *)
9409 shlibpath_overrides_runpath=yes
9410 ;;
9411 esac
9412 else
9413 shlibpath_overrides_runpath=yes
9414 fi
9415 ;;
9416
9417os2*)
9418 libname_spec='$name'
9419 shrext_cmds=".dll"
9420 need_lib_prefix=no
9421 library_names_spec='$libname${shared_ext} $libname.a'
9422 dynamic_linker='OS/2 ld.exe'
9423 shlibpath_var=LIBPATH
9424 ;;
9425
9426osf3* | osf4* | osf5*)
9427 version_type=osf
9428 need_lib_prefix=no
9429 need_version=no
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9435 ;;
9436
Reid Spencera40c6872004-11-29 12:29:58 +00009437solaris*)
9438 version_type=linux
9439 need_lib_prefix=no
9440 need_version=no
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 shlibpath_overrides_runpath=yes
9445 hardcode_into_libs=yes
9446 # ldd complains unless libraries are executable
9447 postinstall_cmds='chmod +x $lib'
9448 ;;
9449
9450sunos4*)
9451 version_type=sunos
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 if test "$with_gnu_ld" = yes; then
9457 need_lib_prefix=no
9458 fi
9459 need_version=yes
9460 ;;
9461
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009462sysv4 | sysv4.3*)
Reid Spencera40c6872004-11-29 12:29:58 +00009463 version_type=linux
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 case $host_vendor in
9468 sni)
9469 shlibpath_overrides_runpath=no
9470 need_lib_prefix=no
9471 export_dynamic_flag_spec='${wl}-Blargedynsym'
9472 runpath_var=LD_RUN_PATH
9473 ;;
9474 siemens)
9475 need_lib_prefix=no
9476 ;;
9477 motorola)
9478 need_lib_prefix=no
9479 need_version=no
9480 shlibpath_overrides_runpath=no
9481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9482 ;;
9483 esac
9484 ;;
9485
9486sysv4*MP*)
9487 if test -d /usr/nec ;then
9488 version_type=linux
9489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9490 soname_spec='$libname${shared_ext}.$major'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 fi
9493 ;;
9494
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009495sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9496 version_type=freebsd-elf
9497 need_lib_prefix=no
9498 need_version=no
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 hardcode_into_libs=yes
9503 if test "$with_gnu_ld" = yes; then
9504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9505 shlibpath_overrides_runpath=no
9506 else
9507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9508 shlibpath_overrides_runpath=yes
9509 case $host_os in
9510 sco3.2v5*)
9511 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9512 ;;
9513 esac
9514 fi
9515 sys_lib_dlsearch_path_spec='/usr/lib'
9516 ;;
9517
Reid Spencera40c6872004-11-29 12:29:58 +00009518uts4*)
9519 version_type=linux
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 shlibpath_var=LD_LIBRARY_PATH
9523 ;;
9524
9525*)
9526 dynamic_linker=no
9527 ;;
9528esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009529{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9530echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009531test "$dynamic_linker" = no && can_build_shared=no
9532
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009533variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9534if test "$GCC" = yes; then
9535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9536fi
Reid Spencera40c6872004-11-29 12:29:58 +00009537
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009538
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009539{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9540echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9541if test "${libltdl_cv_shlibext+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009543else
9544
9545module=yes
9546eval libltdl_cv_shlibext=$shrext_cmds
9547
9548fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009549{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9550echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009551if test -n "$libltdl_cv_shlibext"; then
9552
9553cat >>confdefs.h <<_ACEOF
9554#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9555_ACEOF
9556
9557fi
9558
9559
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009560{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9561echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9562if test "${libltdl_cv_sys_search_path+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009564else
9565 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9566fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009567{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9568echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009569if test -n "$libltdl_cv_sys_search_path"; then
9570 sys_search_path=
9571 for dir in $libltdl_cv_sys_search_path; do
9572 if test -z "$sys_search_path"; then
9573 sys_search_path="$dir"
9574 else
9575 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9576 fi
9577 done
9578
9579cat >>confdefs.h <<_ACEOF
9580#define LTDL_SYSSEARCHPATH "$sys_search_path"
9581_ACEOF
9582
9583fi
9584
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009585{ echo "$as_me:$LINENO: checking for objdir" >&5
9586echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9587if test "${libltdl_cv_objdir+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009589else
9590 libltdl_cv_objdir="$objdir"
9591 if test -n "$objdir"; then
9592 :
9593 else
9594 rm -f .libs 2>/dev/null
9595 mkdir .libs 2>/dev/null
9596 if test -d .libs; then
9597 libltdl_cv_objdir=.libs
9598 else
9599 # MS-DOS does not allow filenames that begin with a dot.
9600 libltdl_cv_objdir=_libs
9601 fi
9602 rmdir .libs 2>/dev/null
9603 fi
9604
9605fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009606{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9607echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009608
9609cat >>confdefs.h <<_ACEOF
9610#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9611_ACEOF
9612
9613
Reid Spencera40c6872004-11-29 12:29:58 +00009614
9615
9616
9617
9618# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009619{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9620echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9621if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009623else
9624
9625# These are sane defaults that work on at least a few old systems.
9626# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9627
9628# Character class describing NM global symbol codes.
9629symcode='[BCDEGRST]'
9630
9631# Regexp to match symbols that can be accessed directly from C.
9632sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9633
Reid Spencera40c6872004-11-29 12:29:58 +00009634# Transform an extracted symbol line into a proper C declaration
9635lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9636
9637# Transform an extracted symbol line into symbol name and symbol address
9638lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9639
9640# Define system-specific variables.
9641case $host_os in
9642aix*)
9643 symcode='[BCDT]'
9644 ;;
9645cygwin* | mingw* | pw32*)
9646 symcode='[ABCDGISTW]'
9647 ;;
9648hpux*) # Its linker distinguishes data from code symbols
9649 if test "$host_cpu" = ia64; then
9650 symcode='[ABCDEGRST]'
9651 fi
9652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9653 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9654 ;;
9655linux*)
9656 if test "$host_cpu" = ia64; then
9657 symcode='[ABCDGIRSTW]'
9658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9659 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9660 fi
9661 ;;
9662irix* | nonstopux*)
9663 symcode='[BCDEGRST]'
9664 ;;
9665osf*)
9666 symcode='[BCDEGQRST]'
9667 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009668solaris*)
Reid Spencera40c6872004-11-29 12:29:58 +00009669 symcode='[BDRT]'
9670 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009671sco3.2v5*)
9672 symcode='[DT]'
9673 ;;
9674sysv4.2uw2*)
9675 symcode='[DT]'
9676 ;;
9677sysv5* | sco5v6* | unixware* | OpenUNIX*)
9678 symcode='[ABDT]'
9679 ;;
Reid Spencera40c6872004-11-29 12:29:58 +00009680sysv4)
9681 symcode='[DFNSTU]'
9682 ;;
9683esac
9684
9685# Handle CRLF in mingw tool chain
9686opt_cr=
9687case $build_os in
9688mingw*)
9689 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9690 ;;
9691esac
9692
9693# If we're using GNU nm, then use its standard symbol codes.
9694case `$NM -V 2>&1` in
9695*GNU* | *'with BFD'*)
9696 symcode='[ABCDGIRSTW]' ;;
9697esac
9698
9699# Try without a prefix undercore, then with it.
9700for ac_symprfx in "" "_"; do
9701
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009702 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9703 symxfrm="\\1 $ac_symprfx\\2 \\2"
9704
Reid Spencera40c6872004-11-29 12:29:58 +00009705 # Write the raw and C identifiers.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009706 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencera40c6872004-11-29 12:29:58 +00009707
9708 # Check to see that the pipe works correctly.
9709 pipe_works=no
9710
9711 rm -f conftest*
9712 cat > conftest.$ac_ext <<EOF
9713#ifdef __cplusplus
9714extern "C" {
9715#endif
9716char nm_test_var;
9717void nm_test_func(){}
9718#ifdef __cplusplus
9719}
9720#endif
9721int main(){nm_test_var='a';nm_test_func();return(0);}
9722EOF
9723
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009725 (eval $ac_compile) 2>&5
9726 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009729 # Now try to grab the symbols.
9730 nlist=conftest.nm
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009731 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009732 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9733 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencera40c6872004-11-29 12:29:58 +00009736 # Try sorting and uniquifying the output.
9737 if sort "$nlist" | uniq > "$nlist"T; then
9738 mv -f "$nlist"T "$nlist"
9739 else
9740 rm -f "$nlist"T
9741 fi
9742
9743 # Make sure that we snagged all the symbols we need.
9744 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9745 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9746 cat <<EOF > conftest.$ac_ext
9747#ifdef __cplusplus
9748extern "C" {
9749#endif
9750
9751EOF
9752 # Now generate the symbol file.
9753 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9754
9755 cat <<EOF >> conftest.$ac_ext
9756#if defined (__STDC__) && __STDC__
9757# define lt_ptr_t void *
9758#else
9759# define lt_ptr_t char *
9760# define const
9761#endif
9762
9763/* The mapping between symbol names and symbols. */
9764const struct {
9765 const char *name;
9766 lt_ptr_t address;
9767}
9768lt_preloaded_symbols[] =
9769{
9770EOF
9771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9772 cat <<\EOF >> conftest.$ac_ext
9773 {0, (lt_ptr_t) 0}
9774};
9775
9776#ifdef __cplusplus
9777}
9778#endif
9779EOF
9780 # Now try linking the two files.
9781 mv conftest.$ac_objext conftstm.$ac_objext
9782 lt_save_LIBS="$LIBS"
9783 lt_save_CFLAGS="$CFLAGS"
9784 LIBS="conftstm.$ac_objext"
9785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009787 (eval $ac_link) 2>&5
9788 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencera40c6872004-11-29 12:29:58 +00009791 pipe_works=yes
9792 fi
9793 LIBS="$lt_save_LIBS"
9794 CFLAGS="$lt_save_CFLAGS"
9795 else
9796 echo "cannot find nm_test_func in $nlist" >&5
9797 fi
9798 else
9799 echo "cannot find nm_test_var in $nlist" >&5
9800 fi
9801 else
9802 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9803 fi
9804 else
9805 echo "$progname: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9807 fi
9808 rm -f conftest* conftst*
9809
9810 # Do not use the global_symbol_pipe unless it works.
9811 if test "$pipe_works" = yes; then
9812 break
9813 else
9814 lt_cv_sys_global_symbol_pipe=
9815 fi
9816done
9817
9818fi
9819
9820if test -z "$lt_cv_sys_global_symbol_pipe"; then
9821 lt_cv_sys_global_symbol_to_cdecl=
9822fi
9823if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009824 { echo "$as_me:$LINENO: result: failed" >&5
9825echo "${ECHO_T}failed" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009826else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009827 { echo "$as_me:$LINENO: result: ok" >&5
9828echo "${ECHO_T}ok" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009829fi
9830
9831
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009832{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9833echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9834if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009836else
9837 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9838 libltdl_cv_preloaded_symbols=yes
9839 else
9840 libltdl_cv_preloaded_symbols=no
9841 fi
9842
9843fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009844{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9845echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009846if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9847
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009848cat >>confdefs.h <<\_ACEOF
9849#define HAVE_PRELOADED_SYMBOLS 1
9850_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009851
9852fi
9853
9854LIBADD_DL=
9855
9856ac_ext=c
9857ac_cpp='$CPP $CPPFLAGS'
9858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860ac_compiler_gnu=$ac_cv_c_compiler_gnu
9861
9862
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009863{ echo "$as_me:$LINENO: checking for shl_load" >&5
9864echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9865if test "${ac_cv_func_shl_load+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867else
9868 cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9876#define shl_load innocuous_shl_load
Reid Spencera40c6872004-11-29 12:29:58 +00009877
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009878/* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char shl_load (); below.
9880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881 <limits.h> exists even on freestanding compilers. */
9882
9883#ifdef __STDC__
9884# include <limits.h>
9885#else
9886# include <assert.h>
9887#endif
9888
9889#undef shl_load
9890
9891/* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9894#ifdef __cplusplus
9895extern "C"
9896#endif
9897char shl_load ();
9898/* The GNU C library defines this for functions which it implements
9899 to always fail with ENOSYS. Some functions are actually named
9900 something starting with __ and the normal name is an alias. */
9901#if defined __stub_shl_load || defined __stub___shl_load
9902choke me
9903#endif
9904
9905int
9906main ()
9907{
9908return shl_load ();
9909 ;
9910 return 0;
9911}
9912_ACEOF
9913rm -f conftest.$ac_objext conftest$ac_exeext
9914if { (ac_try="$ac_link"
9915case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_func_shl_load=yes
9948else
9949 echo "$as_me: failed program was:" >&5
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
9952 ac_cv_func_shl_load=no
9953fi
9954
9955rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957fi
9958{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9959echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9960if test $ac_cv_func_shl_load = yes; then
9961
9962cat >>confdefs.h <<\_ACEOF
9963#define HAVE_SHL_LOAD 1
9964_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009965
9966else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009967 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9968echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9969if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009971else
9972 ac_check_lib_save_LIBS=$LIBS
9973LIBS="-ldld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009974cat >conftest.$ac_ext <<_ACEOF
9975/* confdefs.h. */
9976_ACEOF
9977cat confdefs.h >>conftest.$ac_ext
9978cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009979/* end confdefs.h. */
9980
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009981/* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00009984#ifdef __cplusplus
9985extern "C"
9986#endif
Reid Spencera40c6872004-11-29 12:29:58 +00009987char shl_load ();
9988int
9989main ()
9990{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009991return shl_load ();
Reid Spencera40c6872004-11-29 12:29:58 +00009992 ;
9993 return 0;
9994}
9995_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009996rm -f conftest.$ac_objext conftest$ac_exeext
9997if { (ac_try="$ac_link"
9998case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10011 { (case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014esac
10015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_try") 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try='test -s conftest$ac_exeext'
10021 { (case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024esac
10025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_try") 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010030 ac_cv_lib_dld_shl_load=yes
10031else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010032 echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
10034
10035 ac_cv_lib_dld_shl_load=no
Reid Spencera40c6872004-11-29 12:29:58 +000010036fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010037
Bill Wendling02b47d92009-04-18 11:20:33 +000010038rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010039 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010040LIBS=$ac_check_lib_save_LIBS
10041fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010042{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10043echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10044if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010045
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010046cat >>confdefs.h <<\_ACEOF
10047#define HAVE_SHL_LOAD 1
10048_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010049
10050 LIBADD_DL="$LIBADD_DL -ldld"
10051else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010052 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10053echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10054if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010056else
10057 ac_check_lib_save_LIBS=$LIBS
10058LIBS="-ldl $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010059cat >conftest.$ac_ext <<_ACEOF
10060/* confdefs.h. */
10061_ACEOF
10062cat confdefs.h >>conftest.$ac_ext
10063cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010064/* end confdefs.h. */
10065
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010066/* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010069#ifdef __cplusplus
10070extern "C"
10071#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010072char dlopen ();
10073int
10074main ()
10075{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010076return dlopen ();
Reid Spencera40c6872004-11-29 12:29:58 +000010077 ;
10078 return 0;
10079}
10080_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010081rm -f conftest.$ac_objext conftest$ac_exeext
10082if { (ac_try="$ac_link"
10083case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10086esac
10087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088 (eval "$ac_link") 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (case "(($ac_try" in
10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10109esac
10110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_try") 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010115 ac_cv_lib_dl_dlopen=yes
10116else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010117 echo "$as_me: failed program was:" >&5
10118sed 's/^/| /' conftest.$ac_ext >&5
10119
10120 ac_cv_lib_dl_dlopen=no
Reid Spencera40c6872004-11-29 12:29:58 +000010121fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010122
Bill Wendling02b47d92009-04-18 11:20:33 +000010123rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010124 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010125LIBS=$ac_check_lib_save_LIBS
10126fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010127{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10128echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10129if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010130
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010131cat >>confdefs.h <<\_ACEOF
10132#define HAVE_LIBDL 1
10133_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010134
10135 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10136else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010137 cat >conftest.$ac_ext <<_ACEOF
10138/* confdefs.h. */
10139_ACEOF
10140cat confdefs.h >>conftest.$ac_ext
10141cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010142/* end confdefs.h. */
10143#if HAVE_DLFCN_H
10144# include <dlfcn.h>
10145#endif
10146
10147int
10148main ()
10149{
10150dlopen(0, 0);
10151 ;
10152 return 0;
10153}
10154_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010155rm -f conftest.$ac_objext conftest$ac_exeext
10156if { (ac_try="$ac_link"
10157case "(($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_link") 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest$ac_exeext'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010189
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010190cat >>confdefs.h <<\_ACEOF
10191#define HAVE_LIBDL 1
10192_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010193 libltdl_cv_func_dlopen="yes"
10194else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010195 echo "$as_me: failed program was:" >&5
10196sed 's/^/| /' conftest.$ac_ext >&5
10197
10198 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10199echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10200if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010202else
10203 ac_check_lib_save_LIBS=$LIBS
10204LIBS="-lsvld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010205cat >conftest.$ac_ext <<_ACEOF
10206/* confdefs.h. */
10207_ACEOF
10208cat confdefs.h >>conftest.$ac_ext
10209cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010210/* end confdefs.h. */
10211
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010212/* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010215#ifdef __cplusplus
10216extern "C"
10217#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010218char dlopen ();
10219int
10220main ()
10221{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010222return dlopen ();
Reid Spencera40c6872004-11-29 12:29:58 +000010223 ;
10224 return 0;
10225}
10226_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010227rm -f conftest.$ac_objext conftest$ac_exeext
10228if { (ac_try="$ac_link"
10229case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255esac
10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010261 ac_cv_lib_svld_dlopen=yes
10262else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_cv_lib_svld_dlopen=no
Reid Spencera40c6872004-11-29 12:29:58 +000010267fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010268
Bill Wendling02b47d92009-04-18 11:20:33 +000010269rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010270 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010271LIBS=$ac_check_lib_save_LIBS
10272fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010273{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10275if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010276
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010277cat >>confdefs.h <<\_ACEOF
10278#define HAVE_LIBDL 1
10279_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010280
10281 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10282else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010283 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10284echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10285if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010287else
10288 ac_check_lib_save_LIBS=$LIBS
10289LIBS="-ldld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010290cat >conftest.$ac_ext <<_ACEOF
10291/* confdefs.h. */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010295/* end confdefs.h. */
10296
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010297/* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010300#ifdef __cplusplus
10301extern "C"
10302#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010303char dld_link ();
10304int
10305main ()
10306{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010307return dld_link ();
Reid Spencera40c6872004-11-29 12:29:58 +000010308 ;
10309 return 0;
10310}
10311_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010312rm -f conftest.$ac_objext conftest$ac_exeext
10313if { (ac_try="$ac_link"
10314case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317esac
10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340esac
10341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_try") 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010346 ac_cv_lib_dld_dld_link=yes
10347else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010348 echo "$as_me: failed program was:" >&5
10349sed 's/^/| /' conftest.$ac_ext >&5
10350
10351 ac_cv_lib_dld_dld_link=no
Reid Spencera40c6872004-11-29 12:29:58 +000010352fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010353
Bill Wendling02b47d92009-04-18 11:20:33 +000010354rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010355 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010356LIBS=$ac_check_lib_save_LIBS
10357fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010358{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10359echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10360if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010361
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010362cat >>confdefs.h <<\_ACEOF
10363#define HAVE_DLD 1
10364_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010365
10366 LIBADD_DL="$LIBADD_DL -ldld"
10367else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010368 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10369echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10370if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373 cat >conftest.$ac_ext <<_ACEOF
10374/* confdefs.h. */
10375_ACEOF
10376cat confdefs.h >>conftest.$ac_ext
10377cat >>conftest.$ac_ext <<_ACEOF
10378/* end confdefs.h. */
10379/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10381#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencera40c6872004-11-29 12:29:58 +000010382
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010383/* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char _dyld_func_lookup (); below.
10385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386 <limits.h> exists even on freestanding compilers. */
Reid Spencera40c6872004-11-29 12:29:58 +000010387
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010388#ifdef __STDC__
10389# include <limits.h>
10390#else
10391# include <assert.h>
10392#endif
10393
10394#undef _dyld_func_lookup
10395
10396/* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402char _dyld_func_lookup ();
10403/* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10407choke me
10408#endif
10409
10410int
10411main ()
10412{
10413return _dyld_func_lookup ();
10414 ;
10415 return 0;
10416}
10417_ACEOF
10418rm -f conftest.$ac_objext conftest$ac_exeext
10419if { (ac_try="$ac_link"
10420case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423esac
10424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433 { (case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436esac
10437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_try") 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446esac
10447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_try") 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_cv_func__dyld_func_lookup=yes
10453else
10454 echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5
10456
10457 ac_cv_func__dyld_func_lookup=no
Reid Spencera40c6872004-11-29 12:29:58 +000010458fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010459
Bill Wendling02b47d92009-04-18 11:20:33 +000010460rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010461 conftest$ac_exeext conftest.$ac_ext
10462fi
10463{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10464echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10465if test $ac_cv_func__dyld_func_lookup = yes; then
10466
10467cat >>confdefs.h <<\_ACEOF
10468#define HAVE_DYLD 1
10469_ACEOF
10470
10471fi
10472
10473
10474fi
10475
10476
10477fi
10478
10479
10480fi
10481
10482rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010484
10485fi
10486
10487
10488fi
10489
10490
10491fi
10492
10493
10494if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10495then
10496 lt_save_LIBS="$LIBS"
10497 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010498
10499for ac_func in dlerror
10500do
10501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10504if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506else
10507 cat >conftest.$ac_ext <<_ACEOF
10508/* confdefs.h. */
10509_ACEOF
10510cat confdefs.h >>conftest.$ac_ext
10511cat >>conftest.$ac_ext <<_ACEOF
10512/* end confdefs.h. */
10513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10515#define $ac_func innocuous_$ac_func
10516
10517/* System header to define __stub macros and hopefully few prototypes,
10518 which can conflict with char $ac_func (); below.
10519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10520 <limits.h> exists even on freestanding compilers. */
10521
10522#ifdef __STDC__
10523# include <limits.h>
10524#else
10525# include <assert.h>
10526#endif
10527
10528#undef $ac_func
10529
10530/* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10533#ifdef __cplusplus
10534extern "C"
10535#endif
10536char $ac_func ();
10537/* The GNU C library defines this for functions which it implements
10538 to always fail with ENOSYS. Some functions are actually named
10539 something starting with __ and the normal name is an alias. */
10540#if defined __stub_$ac_func || defined __stub___$ac_func
10541choke me
10542#endif
10543
10544int
10545main ()
10546{
10547return $ac_func ();
10548 ;
10549 return 0;
10550}
10551_ACEOF
10552rm -f conftest.$ac_objext conftest$ac_exeext
10553if { (ac_try="$ac_link"
10554case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10557esac
10558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_link") 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10567 { (case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570esac
10571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_try") 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10580esac
10581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_try") 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 eval "$as_ac_var=yes"
10587else
10588 echo "$as_me: failed program was:" >&5
10589sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 eval "$as_ac_var=no"
10592fi
10593
10594rm -f core conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596fi
10597ac_res=`eval echo '${'$as_ac_var'}'`
10598 { echo "$as_me:$LINENO: result: $ac_res" >&5
10599echo "${ECHO_T}$ac_res" >&6; }
10600if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010601 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000010603_ACEOF
10604
10605fi
10606done
10607
10608 LIBS="$lt_save_LIBS"
10609fi
10610ac_ext=c
10611ac_cpp='$CPP $CPPFLAGS'
10612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10614ac_compiler_gnu=$ac_cv_c_compiler_gnu
10615
10616
10617
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010618{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10619echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10620if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010622else
10623 ac_cv_sys_symbol_underscore=no
10624 cat > conftest.$ac_ext <<EOF
10625void nm_test_func(){}
10626int main(){nm_test_func;return 0;}
10627EOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010629 (eval $ac_compile) 2>&5
10630 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010633 # Now try to grab the symbols.
10634 ac_nlist=conftest.nm
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010635 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010636 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10637 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencera40c6872004-11-29 12:29:58 +000010640 # See whether the symbols have a leading underscore.
10641 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10642 ac_cv_sys_symbol_underscore=yes
10643 else
10644 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10645 :
10646 else
10647 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10648 fi
10649 fi
10650 else
10651 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10652 fi
10653 else
10654 echo "configure: failed program was:" >&5
10655 cat conftest.c >&5
10656 fi
10657 rm -rf conftest*
10658
10659fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010660{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10661echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010662
10663
10664if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10665 if test x"$libltdl_cv_func_dlopen" = xyes ||
10666 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010667 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10668echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10669if test "${libltdl_cv_need_uscore+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010671else
10672 libltdl_cv_need_uscore=unknown
10673 save_LIBS="$LIBS"
10674 LIBS="$LIBS $LIBADD_DL"
10675 if test "$cross_compiling" = yes; then :
10676 libltdl_cv_need_uscore=cross
10677else
10678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10679 lt_status=$lt_dlunknown
10680 cat > conftest.$ac_ext <<EOF
Peter Collingbournec7d437c2014-01-31 23:46:14 +000010681#line 10681 "configure"
Reid Spencera40c6872004-11-29 12:29:58 +000010682#include "confdefs.h"
10683
10684#if HAVE_DLFCN_H
10685#include <dlfcn.h>
10686#endif
10687
10688#include <stdio.h>
10689
10690#ifdef RTLD_GLOBAL
10691# define LT_DLGLOBAL RTLD_GLOBAL
10692#else
10693# ifdef DL_GLOBAL
10694# define LT_DLGLOBAL DL_GLOBAL
10695# else
10696# define LT_DLGLOBAL 0
10697# endif
10698#endif
10699
10700/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10701 find out it does not work in some platform. */
10702#ifndef LT_DLLAZY_OR_NOW
10703# ifdef RTLD_LAZY
10704# define LT_DLLAZY_OR_NOW RTLD_LAZY
10705# else
10706# ifdef DL_LAZY
10707# define LT_DLLAZY_OR_NOW DL_LAZY
10708# else
10709# ifdef RTLD_NOW
10710# define LT_DLLAZY_OR_NOW RTLD_NOW
10711# else
10712# ifdef DL_NOW
10713# define LT_DLLAZY_OR_NOW DL_NOW
10714# else
10715# define LT_DLLAZY_OR_NOW 0
10716# endif
10717# endif
10718# endif
10719# endif
10720#endif
10721
10722#ifdef __cplusplus
10723extern "C" void exit (int);
10724#endif
10725
10726void fnord() { int i=42;}
10727int main ()
10728{
10729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10730 int status = $lt_dlunknown;
10731
10732 if (self)
10733 {
10734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10736 /* dlclose (self); */
10737 }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010738 else
10739 puts (dlerror ());
Reid Spencera40c6872004-11-29 12:29:58 +000010740
10741 exit (status);
10742}
10743EOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010745 (eval $ac_link) 2>&5
10746 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010749 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencera40c6872004-11-29 12:29:58 +000010750 lt_status=$?
10751 case x$lt_status in
10752 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10753 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010754 x$lt_dlunknown|x*) ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010755 esac
10756 else :
10757 # compilation failed
10758
10759 fi
10760fi
10761rm -fr conftest*
10762
10763 LIBS="$save_LIBS"
10764
10765fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010766{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10767echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010768 fi
10769fi
10770
10771if test x"$libltdl_cv_need_uscore" = xyes; then
10772
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010773cat >>confdefs.h <<\_ACEOF
10774#define NEED_USCORE 1
10775_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010776
10777fi
10778
10779
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010780{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10781echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10782if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010784else
10785 # PORTME does your system automatically load deplibs for dlopen?
10786 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10787 # For now, we just catch OSes we know something about -- in the
10788 # future, we'll try test this programmatically.
10789 libltdl_cv_sys_dlopen_deplibs=unknown
10790 case "$host_os" in
10791 aix3*|aix4.1.*|aix4.2.*)
10792 # Unknown whether this is true for these versions of AIX, but
10793 # we want this `case' here to explicitly catch those versions.
10794 libltdl_cv_sys_dlopen_deplibs=unknown
10795 ;;
10796 aix[45]*)
10797 libltdl_cv_sys_dlopen_deplibs=yes
10798 ;;
10799 darwin*)
10800 # Assuming the user has installed a libdl from somewhere, this is true
10801 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10802 libltdl_cv_sys_dlopen_deplibs=yes
10803 ;;
10804 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10805 # GNU and its variants, using gnu ld.so (Glibc)
10806 libltdl_cv_sys_dlopen_deplibs=yes
10807 ;;
10808 hpux10*|hpux11*)
10809 libltdl_cv_sys_dlopen_deplibs=yes
10810 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010811 interix*)
10812 libltdl_cv_sys_dlopen_deplibs=yes
10813 ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010814 irix[12345]*|irix6.[01]*)
10815 # Catch all versions of IRIX before 6.2, and indicate that we don't
10816 # know how it worked for any of those versions.
10817 libltdl_cv_sys_dlopen_deplibs=unknown
10818 ;;
10819 irix*)
10820 # The case above catches anything before 6.2, and it's known that
10821 # at 6.2 and later dlopen does load deplibs.
10822 libltdl_cv_sys_dlopen_deplibs=yes
10823 ;;
10824 netbsd*)
10825 libltdl_cv_sys_dlopen_deplibs=yes
10826 ;;
10827 openbsd*)
10828 libltdl_cv_sys_dlopen_deplibs=yes
10829 ;;
10830 osf[1234]*)
10831 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10832 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner0ab5e2c2011-04-15 05:18:47 +000010833 # library depends on, so we explicitly say `no'.
Reid Spencera40c6872004-11-29 12:29:58 +000010834 libltdl_cv_sys_dlopen_deplibs=no
10835 ;;
10836 osf5.0|osf5.0a|osf5.1)
10837 # dlopen *does* load deplibs and with the right loader patch applied
10838 # it even uses RPATH in a shared library to search for shared objects
10839 # that the library depends on, but there's no easy way to know if that
10840 # patch is installed. Since this is the case, all we can really
10841 # say is unknown -- it depends on the patch being installed. If
10842 # it is, this changes to `yes'. Without it, it would be `no'.
10843 libltdl_cv_sys_dlopen_deplibs=unknown
10844 ;;
10845 osf*)
10846 # the two cases above should catch all versions of osf <= 5.1. Read
10847 # the comments above for what we know about them.
10848 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10849 # is used to find them so we can finally say `yes'.
10850 libltdl_cv_sys_dlopen_deplibs=yes
10851 ;;
10852 solaris*)
10853 libltdl_cv_sys_dlopen_deplibs=yes
10854 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10856 libltdl_cv_sys_dlopen_deplibs=yes
10857 ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010858 esac
10859
10860fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010861{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10862echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010863if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10864
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010865cat >>confdefs.h <<\_ACEOF
10866#define LTDL_DLOPEN_DEPLIBS 1
10867_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010868
10869fi
10870
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010871
Reid Spencera40c6872004-11-29 12:29:58 +000010872for ac_header in argz.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010873do
10874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880fi
10881ac_res=`eval echo '${'$as_ac_Header'}'`
10882 { echo "$as_me:$LINENO: result: $ac_res" >&5
10883echo "${ECHO_T}$ac_res" >&6; }
10884else
10885 # Is the header compilable?
10886{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10888cat >conftest.$ac_ext <<_ACEOF
10889/* confdefs.h. */
10890_ACEOF
10891cat confdefs.h >>conftest.$ac_ext
10892cat >>conftest.$ac_ext <<_ACEOF
10893/* end confdefs.h. */
10894$ac_includes_default
10895#include <$ac_header>
10896_ACEOF
10897rm -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
10931 ac_header_compiler=yes
10932else
10933 echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
10936 ac_header_compiler=no
10937fi
10938
10939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10941echo "${ECHO_T}$ac_header_compiler" >&6; }
10942
10943# Is the header present?
10944{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10946cat >conftest.$ac_ext <<_ACEOF
10947/* confdefs.h. */
10948_ACEOF
10949cat confdefs.h >>conftest.$ac_ext
10950cat >>conftest.$ac_ext <<_ACEOF
10951/* end confdefs.h. */
10952#include <$ac_header>
10953_ACEOF
10954if { (ac_try="$ac_cpp conftest.$ac_ext"
10955case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958esac
10959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } >/dev/null; then
10967 if test -s conftest.err; then
10968 ac_cpp_err=$ac_c_preproc_warn_flag
10969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10970 else
10971 ac_cpp_err=
10972 fi
10973else
10974 ac_cpp_err=yes
10975fi
10976if test -z "$ac_cpp_err"; then
10977 ac_header_preproc=yes
10978else
10979 echo "$as_me: failed program was:" >&5
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
10982 ac_header_preproc=no
10983fi
10984
10985rm -f conftest.err conftest.$ac_ext
10986{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10987echo "${ECHO_T}$ac_header_preproc" >&6; }
10988
10989# So? What about this header?
10990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10991 yes:no: )
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10996 ac_header_preproc=yes
10997 ;;
10998 no:yes:* )
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11011 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011012## ------------------------------------ ##
11013## Report this to http://llvm.org/bugs/ ##
11014## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011015_ASBOX
11016 ) | sed "s/^/$as_me: WARNING: /" >&2
11017 ;;
11018esac
11019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11023else
11024 eval "$as_ac_Header=\$ac_header_preproc"
11025fi
11026ac_res=`eval echo '${'$as_ac_Header'}'`
11027 { echo "$as_me:$LINENO: result: $ac_res" >&5
11028echo "${ECHO_T}$ac_res" >&6; }
11029
11030fi
11031if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011032 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011034_ACEOF
11035
11036fi
11037
11038done
11039
11040
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011041{ echo "$as_me:$LINENO: checking for error_t" >&5
11042echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11043if test "${ac_cv_type_error_t+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045else
11046 cat >conftest.$ac_ext <<_ACEOF
11047/* confdefs.h. */
11048_ACEOF
11049cat confdefs.h >>conftest.$ac_ext
11050cat >>conftest.$ac_ext <<_ACEOF
11051/* end confdefs.h. */
11052#if HAVE_ARGZ_H
Reid Spencera40c6872004-11-29 12:29:58 +000011053# include <argz.h>
11054#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011055
11056typedef error_t ac__type_new_;
11057int
11058main ()
11059{
11060if ((ac__type_new_ *) 0)
11061 return 0;
11062if (sizeof (ac__type_new_))
11063 return 0;
11064 ;
11065 return 0;
11066}
11067_ACEOF
11068rm -f conftest.$ac_objext
11069if { (ac_try="$ac_compile"
11070case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073esac
11074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11083 { (case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086esac
11087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_try") 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; } &&
11092 { ac_try='test -s conftest.$ac_objext'
11093 { (case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096esac
11097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_try") 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_cv_type_error_t=yes
11103else
11104 echo "$as_me: failed program was:" >&5
11105sed 's/^/| /' conftest.$ac_ext >&5
11106
11107 ac_cv_type_error_t=no
11108fi
11109
11110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111fi
11112{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11113echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11114if test $ac_cv_type_error_t = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011115
11116cat >>confdefs.h <<_ACEOF
11117#define HAVE_ERROR_T 1
11118_ACEOF
11119
11120
11121else
11122
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011123cat >>confdefs.h <<\_ACEOF
11124#define error_t int
11125_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000011126
11127fi
11128
11129
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011130
11131
11132
11133
11134
Reid Spencera40c6872004-11-29 12:29:58 +000011135for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011136do
11137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11138{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142else
11143 cat >conftest.$ac_ext <<_ACEOF
11144/* confdefs.h. */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h. */
11149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151#define $ac_func innocuous_$ac_func
11152
11153/* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11157
11158#ifdef __STDC__
11159# include <limits.h>
11160#else
11161# include <assert.h>
11162#endif
11163
11164#undef $ac_func
11165
11166/* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11169#ifdef __cplusplus
11170extern "C"
11171#endif
11172char $ac_func ();
11173/* The GNU C library defines this for functions which it implements
11174 to always fail with ENOSYS. Some functions are actually named
11175 something starting with __ and the normal name is an alias. */
11176#if defined __stub_$ac_func || defined __stub___$ac_func
11177choke me
11178#endif
11179
11180int
11181main ()
11182{
11183return $ac_func ();
11184 ;
11185 return 0;
11186}
11187_ACEOF
11188rm -f conftest.$ac_objext conftest$ac_exeext
11189if { (ac_try="$ac_link"
11190case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193esac
11194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_link") 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } &&
11202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11203 { (case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_try") 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; } &&
11212 { ac_try='test -s conftest$ac_exeext'
11213 { (case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216esac
11217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_try") 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 eval "$as_ac_var=yes"
11223else
11224 echo "$as_me: failed program was:" >&5
11225sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 eval "$as_ac_var=no"
11228fi
11229
11230rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
11232fi
11233ac_res=`eval echo '${'$as_ac_var'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235echo "${ECHO_T}$ac_res" >&6; }
11236if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011237 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011239_ACEOF
11240
11241fi
11242done
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011263
11264
11265
Eric Christopher30536382013-07-26 17:13:47 +000011266for ac_header in errno.h malloc.h memory.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011267do
11268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274fi
11275ac_res=`eval echo '${'$as_ac_Header'}'`
11276 { echo "$as_me:$LINENO: result: $ac_res" >&5
11277echo "${ECHO_T}$ac_res" >&6; }
11278else
11279 # Is the header compilable?
11280{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11282cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288$ac_includes_default
11289#include <$ac_header>
11290_ACEOF
11291rm -f conftest.$ac_objext
11292if { (ac_try="$ac_compile"
11293case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_header_compiler=yes
11326else
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 ac_header_compiler=no
11331fi
11332
11333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335echo "${ECHO_T}$ac_header_compiler" >&6; }
11336
11337# Is the header present?
11338{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11340cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346#include <$ac_header>
11347_ACEOF
11348if { (ac_try="$ac_cpp conftest.$ac_ext"
11349case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } >/dev/null; then
11361 if test -s conftest.err; then
11362 ac_cpp_err=$ac_c_preproc_warn_flag
11363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364 else
11365 ac_cpp_err=
11366 fi
11367else
11368 ac_cpp_err=yes
11369fi
11370if test -z "$ac_cpp_err"; then
11371 ac_header_preproc=yes
11372else
11373 echo "$as_me: failed program was:" >&5
11374sed 's/^/| /' conftest.$ac_ext >&5
11375
11376 ac_header_preproc=no
11377fi
11378
11379rm -f conftest.err conftest.$ac_ext
11380{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381echo "${ECHO_T}$ac_header_preproc" >&6; }
11382
11383# So? What about this header?
11384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 yes:no: )
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11391 ;;
11392 no:yes:* )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011406## ------------------------------------ ##
11407## Report this to http://llvm.org/bugs/ ##
11408## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011409_ASBOX
11410 ) | sed "s/^/$as_me: WARNING: /" >&2
11411 ;;
11412esac
11413{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417else
11418 eval "$as_ac_Header=\$ac_header_preproc"
11419fi
11420ac_res=`eval echo '${'$as_ac_Header'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422echo "${ECHO_T}$ac_res" >&6; }
11423
11424fi
11425if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011426 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011428_ACEOF
11429
11430fi
11431
11432done
11433
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011434
Eric Christopher30536382013-07-26 17:13:47 +000011435for ac_header in mach-o/dyld.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011436do
11437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443fi
11444ac_res=`eval echo '${'$as_ac_Header'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446echo "${ECHO_T}$ac_res" >&6; }
11447else
11448 # Is the header compilable?
11449{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11451cat >conftest.$ac_ext <<_ACEOF
11452/* confdefs.h. */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h. */
11457$ac_includes_default
11458#include <$ac_header>
11459_ACEOF
11460rm -f conftest.$ac_objext
11461if { (ac_try="$ac_compile"
11462case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465esac
11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_header_compiler=yes
11495else
11496 echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 ac_header_compiler=no
11500fi
11501
11502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504echo "${ECHO_T}$ac_header_compiler" >&6; }
11505
11506# Is the header present?
11507{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11509cat >conftest.$ac_ext <<_ACEOF
11510/* confdefs.h. */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h. */
11515#include <$ac_header>
11516_ACEOF
11517if { (ac_try="$ac_cpp conftest.$ac_ext"
11518case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521esac
11522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev/null; then
11530 if test -s conftest.err; then
11531 ac_cpp_err=$ac_c_preproc_warn_flag
11532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11533 else
11534 ac_cpp_err=
11535 fi
11536else
11537 ac_cpp_err=yes
11538fi
11539if test -z "$ac_cpp_err"; then
11540 ac_header_preproc=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 ac_header_preproc=no
11546fi
11547
11548rm -f conftest.err conftest.$ac_ext
11549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550echo "${ECHO_T}$ac_header_preproc" >&6; }
11551
11552# So? What about this header?
11553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554 yes:no: )
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559 ac_header_preproc=yes
11560 ;;
11561 no:yes:* )
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11574 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011575## ------------------------------------ ##
11576## Report this to http://llvm.org/bugs/ ##
11577## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011578_ASBOX
11579 ) | sed "s/^/$as_me: WARNING: /" >&2
11580 ;;
11581esac
11582{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587 eval "$as_ac_Header=\$ac_header_preproc"
11588fi
11589ac_res=`eval echo '${'$as_ac_Header'}'`
11590 { echo "$as_me:$LINENO: result: $ac_res" >&5
11591echo "${ECHO_T}$ac_res" >&6; }
11592
11593fi
11594if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011595 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011597_ACEOF
11598
11599fi
11600
11601done
11602
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011603
11604
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011605
11606
Reid Spencera40c6872004-11-29 12:29:58 +000011607for ac_func in closedir opendir readdir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011608do
11609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614else
11615 cat >conftest.$ac_ext <<_ACEOF
11616/* confdefs.h. */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h. */
11621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623#define $ac_func innocuous_$ac_func
11624
11625/* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char $ac_func (); below.
11627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628 <limits.h> exists even on freestanding compilers. */
11629
11630#ifdef __STDC__
11631# include <limits.h>
11632#else
11633# include <assert.h>
11634#endif
11635
11636#undef $ac_func
11637
11638/* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11641#ifdef __cplusplus
11642extern "C"
11643#endif
11644char $ac_func ();
11645/* The GNU C library defines this for functions which it implements
11646 to always fail with ENOSYS. Some functions are actually named
11647 something starting with __ and the normal name is an alias. */
11648#if defined __stub_$ac_func || defined __stub___$ac_func
11649choke me
11650#endif
11651
11652int
11653main ()
11654{
11655return $ac_func ();
11656 ;
11657 return 0;
11658}
11659_ACEOF
11660rm -f conftest.$ac_objext conftest$ac_exeext
11661if { (ac_try="$ac_link"
11662case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_link") 2>conftest.er1
11668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678esac
11679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688esac
11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 eval "$as_ac_var=yes"
11695else
11696 echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 eval "$as_ac_var=no"
11700fi
11701
11702rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704fi
11705ac_res=`eval echo '${'$as_ac_var'}'`
11706 { echo "$as_me:$LINENO: result: $ac_res" >&5
11707echo "${ECHO_T}$ac_res" >&6; }
11708if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011709 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011711_ACEOF
11712
11713fi
11714done
11715
11716
Douglas Gregor15436612009-05-11 18:05:52 +000011717
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011718{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11719echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000011720
Reid Spencerca06c8e2004-12-08 23:07:27 +000011721ICC=no
11722IXX=no
11723case $CC in
11724 icc*|icpc*)
11725 ICC=yes
11726 IXX=yes
11727 ;;
11728 *)
11729 ;;
11730esac
11731
Duraid Madina8604de82006-02-15 07:57:42 +000011732if test "$GCC" != "yes" && test "$ICC" != "yes"
11733then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011734 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11735echo "$as_me: error: gcc|icc required but not found" >&2;}
11736 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +000011737fi
11738
11739if test "$GXX" != "yes" && test "$IXX" != "yes"
11740then
Eric Christopher8d842da2010-12-08 02:02:14 +000011741 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11742echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011743 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +000011744fi
11745
Reid Spencerca06c8e2004-12-08 23:07:27 +000011746if test "$GCC" = "yes"
11747then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011748 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000011749
11750 /* confdefs.h. */
11751_ACEOF
11752cat confdefs.h >>conftest.$ac_ext
11753cat >>conftest.$ac_ext <<_ACEOF
11754/* end confdefs.h. */
11755
11756 #if !defined(__GNUC__) || __GNUC__ < 3
11757 #error Unsupported GCC version
11758 #endif
11759
Chris Lattnere115fb52008-02-05 19:43:53 +000011760
11761_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011762rm -f conftest.$ac_objext
11763if { (ac_try="$ac_compile"
11764case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_compile") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780esac
11781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
11787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 :
Chris Lattnere115fb52008-02-05 19:43:53 +000011797else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11802echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11803 { (exit 1); exit 1; }; }
Chris Lattnere115fb52008-02-05 19:43:53 +000011804fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011805
Chris Lattnere115fb52008-02-05 19:43:53 +000011806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000011807fi
11808
11809if test -z "$llvm_cv_gnu_make_command"
11810then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011811 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11812echo "$as_me: error: GNU Make required but not found" >&2;}
11813 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +000011814fi
11815
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011816{ echo "$as_me:$LINENO: result: ok" >&5
11817echo "${ECHO_T}ok" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000011818
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011819{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
11820echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithf89ffcd2013-02-08 22:55:10 +000011821NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerougeb614dd32009-10-26 20:00:35 +000011822
Richard Smithf89ffcd2013-02-08 22:55:10 +000011823NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerougeb614dd32009-10-26 20:00:35 +000011824
Rafael Espindola42e94d12012-02-28 23:32:06 +000011825COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11826
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000011827
11828NO_UNINITIALIZED=
11829NO_MAYBE_UNINITIALIZED=
David Greene9ff8d472013-01-09 22:11:13 +000011830if test "$GXX" = "yes"
11831then
Richard Smithf89ffcd2013-02-08 22:55:10 +000011832 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +000011833
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000011834 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greene9ff8d472013-01-09 22:11:13 +000011835 then
Richard Smithf89ffcd2013-02-08 22:55:10 +000011836 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +000011837
David Greene9ff8d472013-01-09 22:11:13 +000011838 fi
David Greene9ff8d472013-01-09 22:11:13 +000011839fi
Eric Christopher31f43542013-03-15 00:43:00 +000011840{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11841echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
David Greene9ff8d472013-01-09 22:11:13 +000011842
Julien Lerougeb614dd32009-10-26 20:00:35 +000011843
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000011844# Check whether --with-python was given.
11845if test "${with_python+set}" = set; then
11846 withval=$with_python; PYTHON="$withval"
11847fi
11848
11849
11850if test -n "$PYTHON" && test -x "$PYTHON" ; then
11851 { echo "$as_me:$LINENO: checking for python" >&5
11852echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11853 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11854echo "${ECHO_T}user defined: $with_python" >&6; }
11855else
11856 if test -n "$PYTHON" ; then
11857 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11858echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11859 fi
11860
11861 # Extract the first word of "python python2 python26", so it can be a program name with args.
11862set dummy python python2 python26; ac_word=$2
11863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11865if test "${ac_cv_path_PYTHON+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867else
11868 case $PYTHON in
11869 [\\/]* | ?:[\\/]*)
11870 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11871 ;;
11872 *)
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874for as_dir in $PATH
11875do
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11880 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11883 fi
11884done
11885done
11886IFS=$as_save_IFS
11887
11888 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11889echo "${ECHO_T}not found" >&6; }
11890 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11891echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11892 { (exit 1); exit 1; }; }"
11893 ;;
11894esac
11895fi
11896PYTHON=$ac_cv_path_PYTHON
11897if test -n "$PYTHON"; then
11898 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11899echo "${ECHO_T}$PYTHON" >&6; }
11900else
11901 { echo "$as_me:$LINENO: result: no" >&5
11902echo "${ECHO_T}no" >&6; }
11903fi
11904
11905
11906fi
11907
11908{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11909echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
Bill Wendling58463e4e82013-10-12 08:42:59 +000011910ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000011911ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11912ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11913ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
Bill Wendling58463e4e82013-10-12 08:42:59 +000011914if test "$ac_python_version_major" -gt "2" || \
11915 (test "$ac_python_version_major" -eq "2" && \
11916 test "$ac_python_version_minor" -ge "5") ; then
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000011917 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11918echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11919else
11920 { echo "$as_me:$LINENO: result: not found" >&5
11921echo "${ECHO_T}not found" >&6; }
11922 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11923See \`config.log' for more details." >&5
11924echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11925See \`config.log' for more details." >&2;}
11926 { (exit 1); exit 1; }; }
11927fi
11928
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000011929
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011930
11931{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
11932echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11933if test "${ac_cv_lib_m_sin+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerec4a7f522006-01-19 08:31:08 +000011935else
11936 ac_check_lib_save_LIBS=$LIBS
11937LIBS="-lm $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011938cat >conftest.$ac_ext <<_ACEOF
11939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerec4a7f522006-01-19 08:31:08 +000011943/* end confdefs.h. */
11944
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011945/* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
Reid Spencerec4a7f522006-01-19 08:31:08 +000011948#ifdef __cplusplus
11949extern "C"
11950#endif
Reid Spencerec4a7f522006-01-19 08:31:08 +000011951char sin ();
11952int
11953main ()
11954{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011955return sin ();
Reid Spencerec4a7f522006-01-19 08:31:08 +000011956 ;
11957 return 0;
11958}
11959_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011960rm -f conftest.$ac_objext conftest$ac_exeext
11961if { (ac_try="$ac_link"
11962case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965esac
11966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975 { (case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978esac
11979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_try") 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988esac
11989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_try") 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
Reid Spencerec4a7f522006-01-19 08:31:08 +000011994 ac_cv_lib_m_sin=yes
11995else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011996 echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 ac_cv_lib_m_sin=no
Reid Spencerec4a7f522006-01-19 08:31:08 +000012000fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012001
Bill Wendling02b47d92009-04-18 11:20:33 +000012002rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012003 conftest$ac_exeext conftest.$ac_ext
Reid Spencerec4a7f522006-01-19 08:31:08 +000012004LIBS=$ac_check_lib_save_LIBS
12005fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012006{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12007echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12008if test $ac_cv_lib_m_sin = yes; then
Reid Spencerec4a7f522006-01-19 08:31:08 +000012009 cat >>confdefs.h <<_ACEOF
12010#define HAVE_LIBM 1
12011_ACEOF
12012
12013 LIBS="-lm $LIBS"
12014
12015fi
12016
Jeff Cohenc5e5b272007-01-12 18:22:38 +000012017if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012018
12019{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12020echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12021if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +000012023else
12024 ac_check_lib_save_LIBS=$LIBS
12025LIBS="-limagehlp $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012026cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +000012031/* end confdefs.h. */
12032
Reid Spencer187b4ad2006-06-01 19:03:21 +000012033
Reid Spencera16b9862006-06-01 16:55:59 +000012034int
12035main ()
12036{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012037return main ();
Reid Spencera16b9862006-06-01 16:55:59 +000012038 ;
12039 return 0;
12040}
12041_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012042rm -f conftest.$ac_objext conftest$ac_exeext
12043if { (ac_try="$ac_link"
12044case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047esac
12048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12060esac
12061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest$ac_exeext'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +000012076 ac_cv_lib_imagehlp_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +000012077else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012078 echo "$as_me: failed program was:" >&5
12079sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_cv_lib_imagehlp_main=no
Reid Spencera16b9862006-06-01 16:55:59 +000012082fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012083
Bill Wendling02b47d92009-04-18 11:20:33 +000012084rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012085 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +000012086LIBS=$ac_check_lib_save_LIBS
12087fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012088{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12089echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12090if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +000012091 cat >>confdefs.h <<_ACEOF
12092#define HAVE_LIBIMAGEHLP 1
12093_ACEOF
12094
12095 LIBS="-limagehlp $LIBS"
12096
12097fi
12098
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012099
12100{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12101echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12102if test "${ac_cv_lib_psapi_main+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +000012104else
12105 ac_check_lib_save_LIBS=$LIBS
12106LIBS="-lpsapi $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012107cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +000012112/* end confdefs.h. */
12113
Reid Spencer187b4ad2006-06-01 19:03:21 +000012114
Reid Spencera16b9862006-06-01 16:55:59 +000012115int
12116main ()
12117{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012118return main ();
Reid Spencera16b9862006-06-01 16:55:59 +000012119 ;
12120 return 0;
12121}
12122_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012123rm -f conftest.$ac_objext conftest$ac_exeext
12124if { (ac_try="$ac_link"
12125case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128esac
12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141esac
12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151esac
12152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_try") 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +000012157 ac_cv_lib_psapi_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +000012158else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012159 echo "$as_me: failed program was:" >&5
12160sed 's/^/| /' conftest.$ac_ext >&5
12161
12162 ac_cv_lib_psapi_main=no
Reid Spencera16b9862006-06-01 16:55:59 +000012163fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012164
Bill Wendling02b47d92009-04-18 11:20:33 +000012165rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012166 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +000012167LIBS=$ac_check_lib_save_LIBS
12168fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012169{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12170echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12171if test $ac_cv_lib_psapi_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +000012172 cat >>confdefs.h <<_ACEOF
12173#define HAVE_LIBPSAPI 1
12174_ACEOF
12175
12176 LIBS="-lpsapi $LIBS"
12177
12178fi
12179
David Majnemer61eae2e2013-10-07 01:00:07 +000012180
12181{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12182echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12183if test "${ac_cv_lib_shell32_main+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185else
12186 ac_check_lib_save_LIBS=$LIBS
12187LIBS="-lshell32 $LIBS"
12188cat >conftest.$ac_ext <<_ACEOF
12189/* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h. */
12194
12195
12196int
12197main ()
12198{
12199return main ();
12200 ;
12201 return 0;
12202}
12203_ACEOF
12204rm -f conftest.$ac_objext conftest$ac_exeext
12205if { (ac_try="$ac_link"
12206case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209esac
12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_lib_shell32_main=yes
12239else
12240 echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_cv_lib_shell32_main=no
12244fi
12245
12246rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248LIBS=$ac_check_lib_save_LIBS
12249fi
12250{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12251echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12252if test $ac_cv_lib_shell32_main = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254#define HAVE_LIBSHELL32 1
12255_ACEOF
12256
12257 LIBS="-lshell32 $LIBS"
12258
12259fi
12260
Reid Spencera16b9862006-06-01 16:55:59 +000012261fi
Reid Spencer1aa7d052005-07-12 15:24:20 +000012262
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012263{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12264echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12265if test "${ac_cv_search_dlopen+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000012267else
12268 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012269cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000012274/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000012275
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012276/* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +000012279#ifdef __cplusplus
12280extern "C"
12281#endif
John Criswell3ef61af2003-06-30 21:59:07 +000012282char dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +000012283int
12284main ()
12285{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012286return dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +000012287 ;
12288 return 0;
12289}
12290_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012291for ac_lib in '' dl; do
12292 if test -z "$ac_lib"; then
12293 ac_res="none required"
12294 else
12295 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +000012296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012297 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012298 rm -f conftest.$ac_objext conftest$ac_exeext
12299if { (ac_try="$ac_link"
12300case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_link") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_try") 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest$ac_exeext'
12323 { (case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12326esac
12327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_try") 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012332 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012333else
12334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337
John Criswell3ef61af2003-06-30 21:59:07 +000012338fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012339
Bill Wendling02b47d92009-04-18 11:20:33 +000012340rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012341 conftest$ac_exeext
12342 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012343 break
John Criswell3ef61af2003-06-30 21:59:07 +000012344fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012345done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012346if test "${ac_cv_search_dlopen+set}" = set; then
12347 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012348else
12349 ac_cv_search_dlopen=no
12350fi
12351rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000012352LIBS=$ac_func_search_save_LIBS
12353fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012354{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12355echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012356ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012357if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +000012359
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012360cat >>confdefs.h <<\_ACEOF
12361#define HAVE_DLOPEN 1
12362_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000012363
12364else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012365 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12366echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000012367fi
12368
12369
Chandler Carruthef7f9682013-01-04 23:19:55 +000012370{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12371echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12372if test "${ac_cv_search_clock_gettime+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
12375 ac_func_search_save_LIBS=$LIBS
12376cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382
12383/* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386#ifdef __cplusplus
12387extern "C"
12388#endif
12389char clock_gettime ();
12390int
12391main ()
12392{
12393return clock_gettime ();
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398for ac_lib in '' rt; do
12399 if test -z "$ac_lib"; then
12400 ac_res="none required"
12401 else
12402 ac_res=-l$ac_lib
12403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12404 fi
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406if { (ac_try="$ac_link"
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_link") 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest$ac_exeext'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12433esac
12434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_search_clock_gettime=$ac_res
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444
12445fi
12446
12447rm -f core conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext
12449 if test "${ac_cv_search_clock_gettime+set}" = set; then
12450 break
12451fi
12452done
12453if test "${ac_cv_search_clock_gettime+set}" = set; then
12454 :
12455else
12456 ac_cv_search_clock_gettime=no
12457fi
12458rm conftest.$ac_ext
12459LIBS=$ac_func_search_save_LIBS
12460fi
12461{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12462echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12463ac_res=$ac_cv_search_clock_gettime
12464if test "$ac_res" != no; then
12465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12466
Chandler Carruthef7f9682013-01-04 23:19:55 +000012467fi
12468
12469
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012470if test "$llvm_cv_enable_terminfo" = "yes" ; then
12471 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12472echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12473if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475else
12476 ac_func_search_save_LIBS=$LIBS
12477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
12483
12484/* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487#ifdef __cplusplus
12488extern "C"
12489#endif
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012490char setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012491int
12492main ()
12493{
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012494return setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012495 ;
12496 return 0;
12497}
12498_ACEOF
Joerg Sonnenberger4e5a3992013-08-17 11:06:00 +000012499for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12502 else
12503 ac_res=-l$ac_lib
12504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12505 fi
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507if { (ac_try="$ac_link"
12508case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511esac
12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012540 ac_cv_search_setupterm=$ac_res
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545
12546fi
12547
12548rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012550 if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012551 break
12552fi
12553done
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012554if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012555 :
12556else
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012557 ac_cv_search_setupterm=no
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012558fi
12559rm conftest.$ac_ext
12560LIBS=$ac_func_search_save_LIBS
12561fi
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012562{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12563echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12564ac_res=$ac_cv_search_setupterm
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012565if test "$ac_res" != no; then
12566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12567
12568cat >>confdefs.h <<\_ACEOF
Chandler Carruthf11f1e42013-08-12 09:49:17 +000012569#define HAVE_TERMINFO 1
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000012570_ACEOF
12571
12572fi
12573
12574fi
12575
Peter Collingbournec7d437c2014-01-31 23:46:14 +000012576if test "$llvm_cv_enable_libedit" = "yes" ; then
12577 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
12578echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
12579if test "${ac_cv_search_el_init+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581else
12582 ac_func_search_save_LIBS=$LIBS
12583cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589
12590/* Override any GCC internal prototype to avoid an error.
12591 Use char because int might match the return type of a GCC
12592 builtin and then its argument prototype would still apply. */
12593#ifdef __cplusplus
12594extern "C"
12595#endif
12596char el_init ();
12597int
12598main ()
12599{
12600return el_init ();
12601 ;
12602 return 0;
12603}
12604_ACEOF
12605for ac_lib in '' edit; do
12606 if test -z "$ac_lib"; then
12607 ac_res="none required"
12608 else
12609 ac_res=-l$ac_lib
12610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12611 fi
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613if { (ac_try="$ac_link"
12614case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } &&
12626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12627 { (case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630esac
12631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_try") 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; } &&
12636 { ac_try='test -s conftest$ac_exeext'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640esac
12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_try") 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_search_el_init=$ac_res
12647else
12648 echo "$as_me: failed program was:" >&5
12649sed 's/^/| /' conftest.$ac_ext >&5
12650
12651
12652fi
12653
12654rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext
12656 if test "${ac_cv_search_el_init+set}" = set; then
12657 break
12658fi
12659done
12660if test "${ac_cv_search_el_init+set}" = set; then
12661 :
12662else
12663 ac_cv_search_el_init=no
12664fi
12665rm conftest.$ac_ext
12666LIBS=$ac_func_search_save_LIBS
12667fi
12668{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
12669echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
12670ac_res=$ac_cv_search_el_init
12671if test "$ac_res" != no; then
12672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12673
12674cat >>confdefs.h <<\_ACEOF
12675#define HAVE_LIBEDIT 1
12676_ACEOF
12677
12678fi
12679
12680fi
12681
Nick Lewycky86679902009-06-06 06:25:09 +000012682if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012683 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12684echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12685if test "${ac_cv_search_ffi_call+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky11e92142009-02-04 06:27:44 +000012687else
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012688 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012689cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000012694/* end confdefs.h. */
12695
12696/* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12699#ifdef __cplusplus
12700extern "C"
12701#endif
12702char ffi_call ();
12703int
12704main ()
12705{
12706return ffi_call ();
12707 ;
12708 return 0;
12709}
12710_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012711for ac_lib in '' ffi; do
12712 if test -z "$ac_lib"; then
12713 ac_res="none required"
12714 else
12715 ac_res=-l$ac_lib
12716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12717 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012718 rm -f conftest.$ac_objext conftest$ac_exeext
12719if { (ac_try="$ac_link"
12720case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12723esac
12724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_link") 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest$ac_exeext'
12743 { (case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12746esac
12747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_try") 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012752 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012753else
12754 echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757
Nick Lewycky11e92142009-02-04 06:27:44 +000012758fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012759
Bill Wendling02b47d92009-04-18 11:20:33 +000012760rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012761 conftest$ac_exeext
12762 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012763 break
Nick Lewycky11e92142009-02-04 06:27:44 +000012764fi
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012765done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012766if test "${ac_cv_search_ffi_call+set}" = set; then
12767 :
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012768else
12769 ac_cv_search_ffi_call=no
12770fi
12771rm conftest.$ac_ext
12772LIBS=$ac_func_search_save_LIBS
12773fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012774{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12775echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012776ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012777if test "$ac_res" != no; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12779
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012780cat >>confdefs.h <<\_ACEOF
12781#define HAVE_FFI_CALL 1
12782_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012783
Nick Lewycky11e92142009-02-04 06:27:44 +000012784else
Jeffrey Yasskin914050b2010-02-09 23:03:44 +000012785 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12786echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12787 { (exit 1); exit 1; }; }
Nick Lewycky11e92142009-02-04 06:27:44 +000012788fi
12789
Nick Lewycky86679902009-06-06 06:25:09 +000012790fi
Nick Lewycky11e92142009-02-04 06:27:44 +000012791
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012792{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12793echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12794if test "${ac_cv_search_mallinfo+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000012796else
12797 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012798cat >conftest.$ac_ext <<_ACEOF
12799/* confdefs.h. */
12800_ACEOF
12801cat confdefs.h >>conftest.$ac_ext
12802cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000012803/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000012804
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012805/* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +000012808#ifdef __cplusplus
12809extern "C"
12810#endif
John Criswell3ef61af2003-06-30 21:59:07 +000012811char mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +000012812int
12813main ()
12814{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012815return mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +000012816 ;
12817 return 0;
12818}
12819_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012820for ac_lib in '' malloc; do
12821 if test -z "$ac_lib"; then
12822 ac_res="none required"
12823 else
12824 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +000012825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012826 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012827 rm -f conftest.$ac_objext conftest$ac_exeext
12828if { (ac_try="$ac_link"
12829case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832esac
12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_link") 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845esac
12846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012861 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012862else
12863 echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866
John Criswell3ef61af2003-06-30 21:59:07 +000012867fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012868
Bill Wendling02b47d92009-04-18 11:20:33 +000012869rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012870 conftest$ac_exeext
12871 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012872 break
John Criswell3ef61af2003-06-30 21:59:07 +000012873fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012874done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012875if test "${ac_cv_search_mallinfo+set}" = set; then
12876 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012877else
12878 ac_cv_search_mallinfo=no
12879fi
12880rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000012881LIBS=$ac_func_search_save_LIBS
12882fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012883{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12884echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012885ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012886if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +000012888
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012889cat >>confdefs.h <<\_ACEOF
12890#define HAVE_MALLINFO 1
12891_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000012892
12893fi
12894
12895
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000012896if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012897
12898{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12899echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12900if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer1aa7d052005-07-12 15:24:20 +000012902else
Edward O'Callaghanedea3262009-10-14 11:12:33 +000012903 ac_check_lib_save_LIBS=$LIBS
12904LIBS="-lpthread $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012905cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h. */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +000012910/* end confdefs.h. */
12911
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012912/* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
Reid Spencer1aa7d052005-07-12 15:24:20 +000012915#ifdef __cplusplus
12916extern "C"
12917#endif
Reid Spencer1aa7d052005-07-12 15:24:20 +000012918char pthread_mutex_init ();
12919int
12920main ()
12921{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012922return pthread_mutex_init ();
Reid Spencer1aa7d052005-07-12 15:24:20 +000012923 ;
12924 return 0;
12925}
12926_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012927rm -f conftest.$ac_objext conftest$ac_exeext
12928if { (ac_try="$ac_link"
12929case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942 { (case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945esac
12946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_try") 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12955esac
12956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_try") 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +000012961 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer1aa7d052005-07-12 15:24:20 +000012962else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012963 echo "$as_me: failed program was:" >&5
12964sed 's/^/| /' conftest.$ac_ext >&5
12965
12966 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer1aa7d052005-07-12 15:24:20 +000012967fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012968
Bill Wendling02b47d92009-04-18 11:20:33 +000012969rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012970 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanedea3262009-10-14 11:12:33 +000012971LIBS=$ac_check_lib_save_LIBS
Reid Spencer1aa7d052005-07-12 15:24:20 +000012972fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012973{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12974echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12975if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +000012976 cat >>confdefs.h <<_ACEOF
12977#define HAVE_LIBPTHREAD 1
Edward O'Callaghana5314b82009-10-13 01:01:38 +000012978_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +000012979
Edward O'Callaghanedea3262009-10-14 11:12:33 +000012980 LIBS="-lpthread $LIBS"
12981
Reid Spencer1aa7d052005-07-12 15:24:20 +000012982fi
12983
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012984 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12985echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12986if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke7ee7b402003-12-05 19:29:01 +000012988else
12989 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012990cat >conftest.$ac_ext <<_ACEOF
12991/* confdefs.h. */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke7ee7b402003-12-05 19:29:01 +000012995/* end confdefs.h. */
12996
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012997/* Override any GCC internal prototype to avoid an error.
12998 Use char because int might match the return type of a GCC
12999 builtin and then its argument prototype would still apply. */
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013000#ifdef __cplusplus
13001extern "C"
13002#endif
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013003char pthread_mutex_lock ();
13004int
13005main ()
13006{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013007return pthread_mutex_lock ();
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013008 ;
13009 return 0;
13010}
13011_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013012for ac_lib in '' pthread; do
13013 if test -z "$ac_lib"; then
13014 ac_res="none required"
13015 else
13016 ac_res=-l$ac_lib
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013018 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013019 rm -f conftest.$ac_objext conftest$ac_exeext
13020if { (ac_try="$ac_link"
13021case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_link") 2>conftest.er1
13027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034 { (case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037esac
13038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_try") 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013053 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013054else
13055 echo "$as_me: failed program was:" >&5
13056sed 's/^/| /' conftest.$ac_ext >&5
13057
13058
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013059fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013060
Bill Wendling02b47d92009-04-18 11:20:33 +000013061rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013062 conftest$ac_exeext
13063 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013064 break
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013065fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013066done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013067if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13068 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013069else
13070 ac_cv_search_pthread_mutex_lock=no
13071fi
13072rm conftest.$ac_ext
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013073LIBS=$ac_func_search_save_LIBS
13074fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013075{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13076echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013077ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013078if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013080
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013081cat >>confdefs.h <<\_ACEOF
13082#define HAVE_PTHREAD_MUTEX_LOCK 1
13083_ACEOF
John Criswell71c8d5e2004-09-24 21:19:06 +000013084
13085fi
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013086
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013087 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13088echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13089if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersona149e222009-06-16 18:20:20 +000013091else
13092 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013093cat >conftest.$ac_ext <<_ACEOF
13094/* confdefs.h. */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000013098/* end confdefs.h. */
13099
13100/* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13103#ifdef __cplusplus
13104extern "C"
13105#endif
13106char pthread_rwlock_init ();
13107int
13108main ()
13109{
13110return pthread_rwlock_init ();
13111 ;
13112 return 0;
13113}
13114_ACEOF
13115for ac_lib in '' pthread; do
13116 if test -z "$ac_lib"; then
13117 ac_res="none required"
13118 else
13119 ac_res=-l$ac_lib
13120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13121 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013122 rm -f conftest.$ac_objext conftest$ac_exeext
13123if { (ac_try="$ac_link"
13124case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140esac
13141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150esac
13151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
Owen Andersona149e222009-06-16 18:20:20 +000013156 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013157else
13158 echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
13161
Owen Andersona149e222009-06-16 18:20:20 +000013162fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013163
Owen Andersona149e222009-06-16 18:20:20 +000013164rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013165 conftest$ac_exeext
13166 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersona149e222009-06-16 18:20:20 +000013167 break
13168fi
13169done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013170if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13171 :
Owen Andersona149e222009-06-16 18:20:20 +000013172else
13173 ac_cv_search_pthread_rwlock_init=no
13174fi
13175rm conftest.$ac_ext
13176LIBS=$ac_func_search_save_LIBS
13177fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013178{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13179echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersona149e222009-06-16 18:20:20 +000013180ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013181if test "$ac_res" != no; then
Owen Andersona149e222009-06-16 18:20:20 +000013182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13183
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013184cat >>confdefs.h <<\_ACEOF
13185#define HAVE_PTHREAD_RWLOCK_INIT 1
13186_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000013187
13188fi
13189
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013190 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13191echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13192if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson11549832009-06-25 23:10:26 +000013194else
13195 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013196cat >conftest.$ac_ext <<_ACEOF
13197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000013201/* end confdefs.h. */
13202
13203/* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13206#ifdef __cplusplus
13207extern "C"
13208#endif
13209char pthread_getspecific ();
13210int
13211main ()
13212{
13213return pthread_getspecific ();
13214 ;
13215 return 0;
13216}
13217_ACEOF
13218for ac_lib in '' pthread; do
13219 if test -z "$ac_lib"; then
13220 ac_res="none required"
13221 else
13222 ac_res=-l$ac_lib
13223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13224 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013225 rm -f conftest.$ac_objext conftest$ac_exeext
13226if { (ac_try="$ac_link"
13227case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_link") 2>conftest.er1
13233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
13239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243esac
13244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; } &&
13249 { ac_try='test -s conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253esac
13254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
Owen Anderson11549832009-06-25 23:10:26 +000013259 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264
Owen Anderson11549832009-06-25 23:10:26 +000013265fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013266
Owen Anderson11549832009-06-25 23:10:26 +000013267rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013268 conftest$ac_exeext
13269 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson11549832009-06-25 23:10:26 +000013270 break
13271fi
13272done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013273if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13274 :
Owen Anderson11549832009-06-25 23:10:26 +000013275else
13276 ac_cv_search_pthread_getspecific=no
13277fi
13278rm conftest.$ac_ext
13279LIBS=$ac_func_search_save_LIBS
13280fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013281{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13282echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson11549832009-06-25 23:10:26 +000013283ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013284if test "$ac_res" != no; then
Owen Anderson11549832009-06-25 23:10:26 +000013285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13286
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013287cat >>confdefs.h <<\_ACEOF
13288#define HAVE_PTHREAD_GETSPECIFIC 1
13289_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000013290
13291fi
13292
Reid Spencerf85fabeb2005-08-24 10:07:20 +000013293fi
Brian Gaeked3de6c02004-02-23 21:30:37 +000013294
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000013295if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13296
13297{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13298echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13299if test "${ac_cv_lib_z_compress2+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301else
13302 ac_check_lib_save_LIBS=$LIBS
13303LIBS="-lz $LIBS"
13304cat >conftest.$ac_ext <<_ACEOF
13305/* confdefs.h. */
13306_ACEOF
13307cat confdefs.h >>conftest.$ac_ext
13308cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h. */
13310
13311/* Override any GCC internal prototype to avoid an error.
13312 Use char because int might match the return type of a GCC
13313 builtin and then its argument prototype would still apply. */
13314#ifdef __cplusplus
13315extern "C"
13316#endif
13317char compress2 ();
13318int
13319main ()
13320{
13321return compress2 ();
13322 ;
13323 return 0;
13324}
13325_ACEOF
13326rm -f conftest.$ac_objext conftest$ac_exeext
13327if { (ac_try="$ac_link"
13328case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_link") 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13341 { (case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344esac
13345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_try") 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354esac
13355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_try") 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_lib_z_compress2=yes
13361else
13362 echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365 ac_cv_lib_z_compress2=no
13366fi
13367
13368rm -f core conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13370LIBS=$ac_check_lib_save_LIBS
13371fi
13372{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13373echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13374if test $ac_cv_lib_z_compress2 = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376#define HAVE_LIBZ 1
13377_ACEOF
13378
13379 LIBS="-lz $LIBS"
13380
13381fi
13382
13383fi
13384
Reid Spencer0241e382004-11-25 04:51:04 +000013385
Reid Spencere5f3de32007-01-19 17:41:47 +000013386# Check whether --with-udis86 was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013387if test "${with_udis86+set}" = set; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013388 withval=$with_udis86;
13389 USE_UDIS86=1
13390
13391 case "$withval" in
Reid Spencerdfda0612007-01-20 07:48:49 +000013392 /usr/lib|yes) ;;
Reid Spencere5f3de32007-01-19 17:41:47 +000013393 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13394 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013395
13396{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13397echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13398if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencere5f3de32007-01-19 17:41:47 +000013400else
13401 ac_check_lib_save_LIBS=$LIBS
13402LIBS="-ludis86 $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013403cat >conftest.$ac_ext <<_ACEOF
13404/* confdefs.h. */
13405_ACEOF
13406cat confdefs.h >>conftest.$ac_ext
13407cat >>conftest.$ac_ext <<_ACEOF
Reid Spencere5f3de32007-01-19 17:41:47 +000013408/* end confdefs.h. */
13409
13410/* Override any GCC internal prototype to avoid an error.
13411 Use char because int might match the return type of a GCC
13412 builtin and then its argument prototype would still apply. */
13413#ifdef __cplusplus
13414extern "C"
13415#endif
13416char ud_init ();
13417int
13418main ()
13419{
13420return ud_init ();
13421 ;
13422 return 0;
13423}
13424_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013425rm -f conftest.$ac_objext conftest$ac_exeext
13426if { (ac_try="$ac_link"
13427case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_link") 2>conftest.er1
13433 ac_status=$?
13434 grep -v '^ *+' conftest.er1 >conftest.err
13435 rm -f conftest.er1
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13440 { (case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13443esac
13444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_try") 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try='test -s conftest$ac_exeext'
13450 { (case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13453esac
13454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 (eval "$ac_try") 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013459 ac_cv_lib_udis86_ud_init=yes
13460else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013461 echo "$as_me: failed program was:" >&5
13462sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 ac_cv_lib_udis86_ud_init=no
Reid Spencere5f3de32007-01-19 17:41:47 +000013465fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013466
Bill Wendling02b47d92009-04-18 11:20:33 +000013467rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013468 conftest$ac_exeext conftest.$ac_ext
Reid Spencere5f3de32007-01-19 17:41:47 +000013469LIBS=$ac_check_lib_save_LIBS
13470fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013471{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13472echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13473if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013474 cat >>confdefs.h <<_ACEOF
13475#define HAVE_LIBUDIS86 1
13476_ACEOF
13477
13478 LIBS="-ludis86 $LIBS"
13479
13480else
13481
13482 echo "Error! You need to have libudis86 around."
13483 exit -1
13484
13485fi
13486
13487
13488else
13489 USE_UDIS86=0
13490
13491fi
13492
13493
13494cat >>confdefs.h <<_ACEOF
13495#define USE_UDIS86 $USE_UDIS86
13496_ACEOF
13497
13498
13499
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013500# Check whether --with-oprofile was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013501if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013502 withval=$with_oprofile;
13503 USE_OPROFILE=1
13504
13505 case "$withval" in
13506 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013507 no) llvm_cv_oppath=
13508 USE_OPROFILE=0
13509 ;;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013510 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher46342fe2012-08-03 17:45:31 +000013511 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013512 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000013513 case $llvm_cv_os_type in
13514 Linux)
13515 if test -n "$llvm_cv_oppath" ; then
13516 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13517 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013518echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13519if test "${ac_cv_search_bfd_init+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013521else
13522 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013523cat >conftest.$ac_ext <<_ACEOF
13524/* confdefs.h. */
13525_ACEOF
13526cat confdefs.h >>conftest.$ac_ext
13527cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013528/* end confdefs.h. */
13529
13530/* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13533#ifdef __cplusplus
13534extern "C"
13535#endif
13536char bfd_init ();
13537int
13538main ()
13539{
13540return bfd_init ();
13541 ;
13542 return 0;
13543}
13544_ACEOF
13545for ac_lib in '' bfd; do
13546 if test -z "$ac_lib"; then
13547 ac_res="none required"
13548 else
13549 ac_res=-l$ac_lib
13550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13551 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013552 rm -f conftest.$ac_objext conftest$ac_exeext
13553if { (ac_try="$ac_link"
13554case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557esac
13558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_link") 2>conftest.er1
13560 ac_status=$?
13561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
13566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13570esac
13571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest$ac_exeext'
13577 { (case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580esac
13581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_try") 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013586 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013587else
13588 echo "$as_me: failed program was:" >&5
13589sed 's/^/| /' conftest.$ac_ext >&5
13590
13591
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013592fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013593
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013594rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013595 conftest$ac_exeext
13596 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013597 break
13598fi
13599done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013600if test "${ac_cv_search_bfd_init+set}" = set; then
13601 :
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013602else
13603 ac_cv_search_bfd_init=no
13604fi
13605rm conftest.$ac_ext
13606LIBS=$ac_func_search_save_LIBS
13607fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013608{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13609echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013610ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013611if test "$ac_res" != no; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13613
13614fi
13615
Eli Bendersky5262ad22012-03-13 08:33:15 +000013616 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013617echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13618if test "${ac_cv_search_op_open_agent+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013620else
13621 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013622cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013627/* end confdefs.h. */
13628
13629/* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13632#ifdef __cplusplus
13633extern "C"
13634#endif
13635char op_open_agent ();
13636int
13637main ()
13638{
13639return op_open_agent ();
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644for ac_lib in '' opagent; do
13645 if test -z "$ac_lib"; then
13646 ac_res="none required"
13647 else
13648 ac_res=-l$ac_lib
13649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13650 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013651 rm -f conftest.$ac_objext conftest$ac_exeext
13652if { (ac_try="$ac_link"
13653case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656esac
13657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_link") 2>conftest.er1
13659 ac_status=$?
13660 grep -v '^ *+' conftest.er1 >conftest.err
13661 rm -f conftest.er1
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13669esac
13670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679esac
13680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013685 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013686else
13687 echo "$as_me: failed program was:" >&5
13688sed 's/^/| /' conftest.$ac_ext >&5
13689
13690
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013691fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013692
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013693rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013694 conftest$ac_exeext
13695 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013696 break
13697fi
13698done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013699if test "${ac_cv_search_op_open_agent+set}" = set; then
13700 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013701else
13702 ac_cv_search_op_open_agent=no
13703fi
13704rm conftest.$ac_ext
13705LIBS=$ac_func_search_save_LIBS
13706fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013707{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13708echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013709ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013710if test "$ac_res" != no; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13712
13713else
13714
Eli Bendersky5262ad22012-03-13 08:33:15 +000013715 echo "Error! You need to have libopagent around."
13716 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013717
13718fi
13719
Eli Bendersky5262ad22012-03-13 08:33:15 +000013720 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013721 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13722echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13723if test "${ac_cv_header_opagent_h+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725fi
13726{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13727echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13728else
13729 # Is the header compilable?
13730{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13731echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13732cat >conftest.$ac_ext <<_ACEOF
13733/* confdefs.h. */
13734_ACEOF
13735cat confdefs.h >>conftest.$ac_ext
13736cat >>conftest.$ac_ext <<_ACEOF
13737/* end confdefs.h. */
13738$ac_includes_default
13739#include <opagent.h>
13740_ACEOF
13741rm -f conftest.$ac_objext
13742if { (ac_try="$ac_compile"
13743case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13746esac
13747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13749 ac_status=$?
13750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759esac
13760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest.$ac_objext'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769esac
13770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 ac_header_compiler=yes
13776else
13777 echo "$as_me: failed program was:" >&5
13778sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013779
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013780 ac_header_compiler=no
13781fi
13782
13783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13785echo "${ECHO_T}$ac_header_compiler" >&6; }
13786
13787# Is the header present?
13788{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13789echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13790cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796#include <opagent.h>
13797_ACEOF
13798if { (ac_try="$ac_cpp conftest.$ac_ext"
13799case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } >/dev/null; then
13811 if test -s conftest.err; then
13812 ac_cpp_err=$ac_c_preproc_warn_flag
13813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13814 else
13815 ac_cpp_err=
13816 fi
13817else
13818 ac_cpp_err=yes
13819fi
13820if test -z "$ac_cpp_err"; then
13821 ac_header_preproc=yes
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826 ac_header_preproc=no
13827fi
13828
13829rm -f conftest.err conftest.$ac_ext
13830{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831echo "${ECHO_T}$ac_header_preproc" >&6; }
13832
13833# So? What about this header?
13834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13835 yes:no: )
13836 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13837echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13839echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13840 ac_header_preproc=yes
13841 ;;
13842 no:yes:* )
13843 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13844echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13846echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13848echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13850echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13852echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13854echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13855 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013856## ------------------------------------ ##
13857## Report this to http://llvm.org/bugs/ ##
13858## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013859_ASBOX
13860 ) | sed "s/^/$as_me: WARNING: /" >&2
13861 ;;
13862esac
13863{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13864echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13865if test "${ac_cv_header_opagent_h+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867else
13868 ac_cv_header_opagent_h=$ac_header_preproc
13869fi
13870{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13871echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13872
13873fi
13874if test $ac_cv_header_opagent_h = yes; then
13875 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013876else
13877
Eli Bendersky5262ad22012-03-13 08:33:15 +000013878 echo "Error! You need to have opagent.h around."
13879 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013880
13881fi
13882
13883
Eli Bendersky5262ad22012-03-13 08:33:15 +000013884 fi ;;
13885 *)
13886 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13887echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13888 { (exit 1); exit 1; }; } ;;
13889 esac
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013890
13891else
13892
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013893 USE_OPROFILE=0
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013894
13895
13896fi
13897
13898
13899cat >>confdefs.h <<_ACEOF
Eli Bendersky5262ad22012-03-13 08:33:15 +000013900#define LLVM_USE_OPROFILE $USE_OPROFILE
13901_ACEOF
13902
13903
13904
13905# Check whether --with-intel-jitevents was given.
13906if test "${with_intel_jitevents+set}" = set; then
13907 withval=$with_intel_jitevents;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000013908 case "$withval" in
13909 yes) USE_INTEL_JITEVENTS=1
13910;;
13911 no) USE_INTEL_JITEVENTS=0
13912;;
13913 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13914echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13915 { (exit 1); exit 1; }; };;
13916 esac
13917
Eli Bendersky5262ad22012-03-13 08:33:15 +000013918 case $llvm_cv_os_type in
13919 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000013920 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13921echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13922 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000013923 esac
13924
Eli Bendersky5262ad22012-03-13 08:33:15 +000013925 case "$llvm_cv_target_arch" in
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000013926 x86|x86_64) ;;
13927 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13928echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13929 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000013930 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000013931
13932else
13933
13934 USE_INTEL_JITEVENTS=0
13935
13936
13937fi
13938
13939
13940cat >>confdefs.h <<_ACEOF
13941#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013942_ACEOF
13943
13944
Eric Christopherc807c532012-08-03 19:47:19 +000013945for ac_prog in xml2-config
13946do
13947 # Extract the first word of "$ac_prog", so it can be a program name with args.
13948set dummy $ac_prog; ac_word=$2
13949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13951if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954 if test -n "$XML2CONFIG"; then
13955 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13956else
13957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958for as_dir in $PATH
13959do
13960 IFS=$as_save_IFS
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13964 ac_cv_prog_XML2CONFIG="$ac_prog"
13965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13966 break 2
13967 fi
13968done
13969done
13970IFS=$as_save_IFS
13971
13972fi
13973fi
13974XML2CONFIG=$ac_cv_prog_XML2CONFIG
13975if test -n "$XML2CONFIG"; then
13976 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13977echo "${ECHO_T}$XML2CONFIG" >&6; }
13978else
13979 { echo "$as_me:$LINENO: result: no" >&5
13980echo "${ECHO_T}no" >&6; }
13981fi
13982
13983
13984 test -n "$XML2CONFIG" && break
13985done
13986
13987
13988{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13989echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13990if test "x$XML2CONFIG" = "x"; then
13991 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13992echo "${ECHO_T}xml2-config not found" >&6; }
13993else
13994 LIBXML2_INC=`$XML2CONFIG --cflags`
13995 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13996echo "${ECHO_T}$LIBXML2_INC" >&6; }
13997 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13998echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13999if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14001else
14002 ac_check_lib_save_LIBS=$LIBS
14003LIBS="-lxml2 $LIBS"
14004cat >conftest.$ac_ext <<_ACEOF
14005/* confdefs.h. */
14006_ACEOF
14007cat confdefs.h >>conftest.$ac_ext
14008cat >>conftest.$ac_ext <<_ACEOF
14009/* end confdefs.h. */
14010
14011/* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014#ifdef __cplusplus
14015extern "C"
14016#endif
14017char xmlReadFile ();
14018int
14019main ()
14020{
14021return xmlReadFile ();
14022 ;
14023 return 0;
14024}
14025_ACEOF
14026rm -f conftest.$ac_objext conftest$ac_exeext
14027if { (ac_try="$ac_link"
14028case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031esac
14032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_link") 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14041 { (case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14044esac
14045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_try") 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest$ac_exeext'
14051 { (case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14054esac
14055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_try") 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_lib_xml2_xmlReadFile=yes
14061else
14062 echo "$as_me: failed program was:" >&5
14063sed 's/^/| /' conftest.$ac_ext >&5
14064
14065 ac_cv_lib_xml2_xmlReadFile=no
14066fi
14067
14068rm -f core conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070LIBS=$ac_check_lib_save_LIBS
14071fi
14072{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14073echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14074if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14075
14076cat >>confdefs.h <<\_ACEOF
14077#define CLANG_HAVE_LIBXML 1
14078_ACEOF
14079
14080 LIBXML2_LIBS="-lxml2"
14081fi
14082
14083fi
14084
14085
14086
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014087
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014088
14089
14090
14091
14092
Reid Spencer8bc110c2004-12-25 07:31:29 +000014093ac_header_dirent=no
14094for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014095 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14096{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14097echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014100else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014101 cat >conftest.$ac_ext <<_ACEOF
14102/* confdefs.h. */
14103_ACEOF
14104cat confdefs.h >>conftest.$ac_ext
14105cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014106/* end confdefs.h. */
14107#include <sys/types.h>
14108#include <$ac_hdr>
14109
14110int
14111main ()
14112{
14113if ((DIR *) 0)
14114return 0;
14115 ;
14116 return 0;
14117}
14118_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014119rm -f conftest.$ac_objext
14120if { (ac_try="$ac_compile"
14121case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124esac
14125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_compile") 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14134 { (case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137esac
14138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_try") 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; } &&
14143 { ac_try='test -s conftest.$ac_objext'
14144 { (case "(($ac_try" in
14145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14147esac
14148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_try") 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014153 eval "$as_ac_Header=yes"
14154else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014155 echo "$as_me: failed program was:" >&5
14156sed 's/^/| /' conftest.$ac_ext >&5
14157
14158 eval "$as_ac_Header=no"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014159fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014160
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014162fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014163ac_res=`eval echo '${'$as_ac_Header'}'`
14164 { echo "$as_me:$LINENO: result: $ac_res" >&5
14165echo "${ECHO_T}$ac_res" >&6; }
14166if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014167 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014168#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000014169_ACEOF
14170
14171ac_header_dirent=$ac_hdr; break
14172fi
14173
14174done
14175# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14176if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014177 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14178echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14179if test "${ac_cv_search_opendir+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014181else
14182 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014183cat >conftest.$ac_ext <<_ACEOF
14184/* confdefs.h. */
14185_ACEOF
14186cat confdefs.h >>conftest.$ac_ext
14187cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014188/* end confdefs.h. */
14189
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014190/* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000014193#ifdef __cplusplus
14194extern "C"
14195#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014196char opendir ();
14197int
14198main ()
14199{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014200return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000014201 ;
14202 return 0;
14203}
14204_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014205for ac_lib in '' dir; do
14206 if test -z "$ac_lib"; then
14207 ac_res="none required"
14208 else
14209 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000014210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014211 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014212 rm -f conftest.$ac_objext conftest$ac_exeext
14213if { (ac_try="$ac_link"
14214case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217esac
14218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_link") 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14230esac
14231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest$ac_exeext'
14237 { (case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240esac
14241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_try") 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014246 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014247else
14248 echo "$as_me: failed program was:" >&5
14249sed 's/^/| /' conftest.$ac_ext >&5
14250
14251
Reid Spencer8bc110c2004-12-25 07:31:29 +000014252fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014253
Bill Wendling02b47d92009-04-18 11:20:33 +000014254rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014255 conftest$ac_exeext
14256 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014257 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000014258fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014259done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014260if test "${ac_cv_search_opendir+set}" = set; then
14261 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014262else
14263 ac_cv_search_opendir=no
14264fi
14265rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014266LIBS=$ac_func_search_save_LIBS
14267fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014268{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14269echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014270ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014271if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014273
14274fi
14275
14276else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014277 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14278echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14279if test "${ac_cv_search_opendir+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014281else
14282 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014283cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014288/* end confdefs.h. */
14289
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014290/* Override any GCC internal prototype to avoid an error.
14291 Use char because int might match the return type of a GCC
14292 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000014293#ifdef __cplusplus
14294extern "C"
14295#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014296char opendir ();
14297int
14298main ()
14299{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014300return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000014301 ;
14302 return 0;
14303}
14304_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014305for ac_lib in '' x; do
14306 if test -z "$ac_lib"; then
14307 ac_res="none required"
14308 else
14309 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000014310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014311 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014312 rm -f conftest.$ac_objext conftest$ac_exeext
14313if { (ac_try="$ac_link"
14314case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14317esac
14318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_link") 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330esac
14331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest$ac_exeext'
14337 { (case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340esac
14341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_try") 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014346 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014347else
14348 echo "$as_me: failed program was:" >&5
14349sed 's/^/| /' conftest.$ac_ext >&5
14350
14351
Reid Spencer8bc110c2004-12-25 07:31:29 +000014352fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014353
Bill Wendling02b47d92009-04-18 11:20:33 +000014354rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014355 conftest$ac_exeext
14356 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014357 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000014358fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014359done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014360if test "${ac_cv_search_opendir+set}" = set; then
14361 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014362else
14363 ac_cv_search_opendir=no
14364fi
14365rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014366LIBS=$ac_func_search_save_LIBS
14367fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014368{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14369echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014370ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014371if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014373
14374fi
14375
14376fi
14377
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014378{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14379echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14380if test "${ac_cv_header_mmap_anon+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014382else
14383 ac_ext=c
14384ac_cpp='$CPP $CPPFLAGS'
14385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387ac_compiler_gnu=$ac_cv_c_compiler_gnu
14388
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014389 cat >conftest.$ac_ext <<_ACEOF
14390/* confdefs.h. */
14391_ACEOF
14392cat confdefs.h >>conftest.$ac_ext
14393cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014394/* end confdefs.h. */
14395#include <sys/mman.h>
14396#include <unistd.h>
14397#include <fcntl.h>
14398int
14399main ()
14400{
14401mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14402 ;
14403 return 0;
14404}
14405_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014406rm -f conftest.$ac_objext
14407if { (ac_try="$ac_compile"
14408case "(($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_compile") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424esac
14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14434esac
14435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014440 ac_cv_header_mmap_anon=yes
14441else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014442 echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
14445 ac_cv_header_mmap_anon=no
Reid Spencer8bc110c2004-12-25 07:31:29 +000014446fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014447
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014449 ac_ext=c
14450ac_cpp='$CPP $CPPFLAGS'
14451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14453ac_compiler_gnu=$ac_cv_c_compiler_gnu
14454
14455
14456fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014457{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14458echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000014459if test "$ac_cv_header_mmap_anon" = yes; then
14460
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014461cat >>confdefs.h <<\_ACEOF
14462#define HAVE_MMAP_ANONYMOUS 1
14463_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014464
14465fi
14466
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014467{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14468echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14469if test "${ac_cv_header_stat_broken+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014471else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014472 cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014477/* end confdefs.h. */
14478#include <sys/types.h>
14479#include <sys/stat.h>
14480
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014481#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014482# if S_ISBLK (S_IFDIR)
14483You lose.
14484# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014485#endif
14486
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014487#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014488# if S_ISBLK (S_IFCHR)
14489You lose.
14490# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014491#endif
14492
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014493#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014494# if S_ISLNK (S_IFREG)
14495You lose.
14496# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014497#endif
14498
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014499#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014500# if S_ISSOCK (S_IFREG)
14501You lose.
14502# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014503#endif
14504
14505_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14507 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwinaec06332010-01-26 08:50:50 +000014508 ac_cv_header_stat_broken=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014509else
14510 ac_cv_header_stat_broken=no
Mikhail Glushenkov4308aa52009-04-18 09:59:26 +000014511fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014512rm -f conftest*
14513
Reid Spencer8bc110c2004-12-25 07:31:29 +000014514fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014515{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14516echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000014517if test $ac_cv_header_stat_broken = yes; then
14518
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014519cat >>confdefs.h <<\_ACEOF
14520#define STAT_MACROS_BROKEN 1
14521_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014522
14523fi
14524
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014525{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14526echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14527if test "${ac_cv_header_sys_wait_h+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000014529else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014530 cat >conftest.$ac_ext <<_ACEOF
14531/* confdefs.h. */
14532_ACEOF
14533cat confdefs.h >>conftest.$ac_ext
14534cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000014535/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000014536#include <sys/types.h>
14537#include <sys/wait.h>
14538#ifndef WEXITSTATUS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014539# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell3ef61af2003-06-30 21:59:07 +000014540#endif
14541#ifndef WIFEXITED
14542# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14543#endif
14544
John Criswell3ef61af2003-06-30 21:59:07 +000014545int
14546main ()
14547{
14548 int s;
14549 wait (&s);
14550 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14551 ;
14552 return 0;
14553}
14554_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014555rm -f conftest.$ac_objext
14556if { (ac_try="$ac_compile"
14557case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14563 ac_status=$?
14564 grep -v '^ *+' conftest.er1 >conftest.err
14565 rm -f conftest.er1
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14573esac
14574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000014589 ac_cv_header_sys_wait_h=yes
14590else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014591 echo "$as_me: failed program was:" >&5
14592sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 ac_cv_header_sys_wait_h=no
John Criswell3ef61af2003-06-30 21:59:07 +000014595fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014596
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000014598fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014599{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14600echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000014601if test $ac_cv_header_sys_wait_h = yes; then
14602
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014603cat >>confdefs.h <<\_ACEOF
14604#define HAVE_SYS_WAIT_H 1
14605_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000014606
14607fi
14608
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014609{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14610echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14611if test "${ac_cv_header_time+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014613else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014614 cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014619/* end confdefs.h. */
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014620#include <sys/types.h>
Reid Spencer0241e382004-11-25 04:51:04 +000014621#include <sys/time.h>
14622#include <time.h>
14623
14624int
14625main ()
14626{
14627if ((struct tm *) 0)
14628return 0;
14629 ;
14630 return 0;
14631}
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014632_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014633rm -f conftest.$ac_objext
14634if { (ac_try="$ac_compile"
14635case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638esac
14639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_compile") 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651esac
14652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try='test -s conftest.$ac_objext'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661esac
14662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000014667 ac_cv_header_time=yes
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014668else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014669 echo "$as_me: failed program was:" >&5
14670sed 's/^/| /' conftest.$ac_ext >&5
14671
14672 ac_cv_header_time=no
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014673fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014674
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000014676fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014677{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14678echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000014679if test $ac_cv_header_time = yes; then
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014680
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014681cat >>confdefs.h <<\_ACEOF
14682#define TIME_WITH_SYS_TIME 1
14683_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014684
14685fi
14686
Reid Spencer0241e382004-11-25 04:51:04 +000014687
Benjamin Kramer00622f72013-05-03 15:55:06 +000014688ac_ext=cpp
14689ac_cpp='$CXXCPP $CPPFLAGS'
14690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14693
14694ac_ext=cpp
14695ac_cpp='$CXXCPP $CPPFLAGS'
14696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14699{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14700echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14701if test -z "$CXXCPP"; then
14702 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704else
14705 # Double quotes because CXXCPP needs to be expanded
14706 for CXXCPP in "$CXX -E" "/lib/cpp"
14707 do
14708 ac_preproc_ok=false
14709for ac_cxx_preproc_warn_flag in '' yes
14710do
14711 # Use a header file that comes with gcc, so configuring glibc
14712 # with a fresh cross-compiler works.
14713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714 # <limits.h> exists even on freestanding compilers.
14715 # On the NeXT, cc -E runs the code through the compiler's parser,
14716 # not just through cpp. "Syntax error" is here to catch this case.
14717 cat >conftest.$ac_ext <<_ACEOF
14718/* confdefs.h. */
14719_ACEOF
14720cat confdefs.h >>conftest.$ac_ext
14721cat >>conftest.$ac_ext <<_ACEOF
14722/* end confdefs.h. */
14723#ifdef __STDC__
14724# include <limits.h>
14725#else
14726# include <assert.h>
14727#endif
14728 Syntax error
14729_ACEOF
14730if { (ac_try="$ac_cpp conftest.$ac_ext"
14731case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14734esac
14735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14737 ac_status=$?
14738 grep -v '^ *+' conftest.er1 >conftest.err
14739 rm -f conftest.er1
14740 cat conftest.err >&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } >/dev/null; then
14743 if test -s conftest.err; then
14744 ac_cpp_err=$ac_cxx_preproc_warn_flag
14745 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14746 else
14747 ac_cpp_err=
14748 fi
14749else
14750 ac_cpp_err=yes
14751fi
14752if test -z "$ac_cpp_err"; then
14753 :
14754else
14755 echo "$as_me: failed program was:" >&5
14756sed 's/^/| /' conftest.$ac_ext >&5
14757
14758 # Broken: fails on valid input.
14759continue
14760fi
14761
14762rm -f conftest.err conftest.$ac_ext
14763
14764 # OK, works on sane cases. Now check whether nonexistent headers
14765 # can be detected and how.
14766 cat >conftest.$ac_ext <<_ACEOF
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772#include <ac_nonexistent.h>
14773_ACEOF
14774if { (ac_try="$ac_cpp conftest.$ac_ext"
14775case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778esac
14779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14781 ac_status=$?
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } >/dev/null; then
14787 if test -s conftest.err; then
14788 ac_cpp_err=$ac_cxx_preproc_warn_flag
14789 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14790 else
14791 ac_cpp_err=
14792 fi
14793else
14794 ac_cpp_err=yes
14795fi
14796if test -z "$ac_cpp_err"; then
14797 # Broken: success on invalid input.
14798continue
14799else
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803 # Passes both tests.
14804ac_preproc_ok=:
14805break
14806fi
14807
14808rm -f conftest.err conftest.$ac_ext
14809
14810done
14811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14812rm -f conftest.err conftest.$ac_ext
14813if $ac_preproc_ok; then
14814 break
14815fi
14816
14817 done
14818 ac_cv_prog_CXXCPP=$CXXCPP
14819
14820fi
14821 CXXCPP=$ac_cv_prog_CXXCPP
14822else
14823 ac_cv_prog_CXXCPP=$CXXCPP
14824fi
14825{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
14826echo "${ECHO_T}$CXXCPP" >&6; }
14827ac_preproc_ok=false
14828for ac_cxx_preproc_warn_flag in '' yes
14829do
14830 # Use a header file that comes with gcc, so configuring glibc
14831 # with a fresh cross-compiler works.
14832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833 # <limits.h> exists even on freestanding compilers.
14834 # On the NeXT, cc -E runs the code through the compiler's parser,
14835 # not just through cpp. "Syntax error" is here to catch this case.
14836 cat >conftest.$ac_ext <<_ACEOF
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
14842#ifdef __STDC__
14843# include <limits.h>
14844#else
14845# include <assert.h>
14846#endif
14847 Syntax error
14848_ACEOF
14849if { (ac_try="$ac_cpp conftest.$ac_ext"
14850case "(($ac_try" in
14851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852 *) ac_try_echo=$ac_try;;
14853esac
14854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14856 ac_status=$?
14857 grep -v '^ *+' conftest.er1 >conftest.err
14858 rm -f conftest.er1
14859 cat conftest.err >&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } >/dev/null; then
14862 if test -s conftest.err; then
14863 ac_cpp_err=$ac_cxx_preproc_warn_flag
14864 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14865 else
14866 ac_cpp_err=
14867 fi
14868else
14869 ac_cpp_err=yes
14870fi
14871if test -z "$ac_cpp_err"; then
14872 :
14873else
14874 echo "$as_me: failed program was:" >&5
14875sed 's/^/| /' conftest.$ac_ext >&5
14876
14877 # Broken: fails on valid input.
14878continue
14879fi
14880
14881rm -f conftest.err conftest.$ac_ext
14882
14883 # OK, works on sane cases. Now check whether nonexistent headers
14884 # can be detected and how.
14885 cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h. */
14891#include <ac_nonexistent.h>
14892_ACEOF
14893if { (ac_try="$ac_cpp conftest.$ac_ext"
14894case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897esac
14898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } >/dev/null; then
14906 if test -s conftest.err; then
14907 ac_cpp_err=$ac_cxx_preproc_warn_flag
14908 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14909 else
14910 ac_cpp_err=
14911 fi
14912else
14913 ac_cpp_err=yes
14914fi
14915if test -z "$ac_cpp_err"; then
14916 # Broken: success on invalid input.
14917continue
14918else
14919 echo "$as_me: failed program was:" >&5
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 # Passes both tests.
14923ac_preproc_ok=:
14924break
14925fi
14926
14927rm -f conftest.err conftest.$ac_ext
14928
14929done
14930# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14931rm -f conftest.err conftest.$ac_ext
14932if $ac_preproc_ok; then
14933 :
14934else
14935 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14936See \`config.log' for more details." >&5
14937echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14938See \`config.log' for more details." >&2;}
14939 { (exit 1); exit 1; }; }
14940fi
14941
14942ac_ext=cpp
14943ac_cpp='$CXXCPP $CPPFLAGS'
14944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14947
14948
14949
14950for ac_header in cxxabi.h
14951do
14952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958fi
14959ac_res=`eval echo '${'$as_ac_Header'}'`
14960 { echo "$as_me:$LINENO: result: $ac_res" >&5
14961echo "${ECHO_T}$ac_res" >&6; }
14962else
14963 # Is the header compilable?
14964{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14966cat >conftest.$ac_ext <<_ACEOF
14967/* confdefs.h. */
14968_ACEOF
14969cat confdefs.h >>conftest.$ac_ext
14970cat >>conftest.$ac_ext <<_ACEOF
14971/* end confdefs.h. */
14972$ac_includes_default
14973#include <$ac_header>
14974_ACEOF
14975rm -f conftest.$ac_objext
14976if { (ac_try="$ac_compile"
14977case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14980esac
14981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14983 ac_status=$?
14984 grep -v '^ *+' conftest.er1 >conftest.err
14985 rm -f conftest.er1
14986 cat conftest.err >&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14990 { (case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_try") 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; } &&
14999 { ac_try='test -s conftest.$ac_objext'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15003esac
15004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15009 ac_header_compiler=yes
15010else
15011 echo "$as_me: failed program was:" >&5
15012sed 's/^/| /' conftest.$ac_ext >&5
15013
15014 ac_header_compiler=no
15015fi
15016
15017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15019echo "${ECHO_T}$ac_header_compiler" >&6; }
15020
15021# Is the header present?
15022{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15023echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15024cat >conftest.$ac_ext <<_ACEOF
15025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h. */
15030#include <$ac_header>
15031_ACEOF
15032if { (ac_try="$ac_cpp conftest.$ac_ext"
15033case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036esac
15037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } >/dev/null; then
15045 if test -s conftest.err; then
15046 ac_cpp_err=$ac_cxx_preproc_warn_flag
15047 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15048 else
15049 ac_cpp_err=
15050 fi
15051else
15052 ac_cpp_err=yes
15053fi
15054if test -z "$ac_cpp_err"; then
15055 ac_header_preproc=yes
15056else
15057 echo "$as_me: failed program was:" >&5
15058sed 's/^/| /' conftest.$ac_ext >&5
15059
15060 ac_header_preproc=no
15061fi
15062
15063rm -f conftest.err conftest.$ac_ext
15064{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15065echo "${ECHO_T}$ac_header_preproc" >&6; }
15066
15067# So? What about this header?
15068case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15069 yes:no: )
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15074 ac_header_preproc=yes
15075 ;;
15076 no:yes:* )
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15084echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15089 ( cat <<\_ASBOX
15090## ------------------------------------ ##
15091## Report this to http://llvm.org/bugs/ ##
15092## ------------------------------------ ##
15093_ASBOX
15094 ) | sed "s/^/$as_me: WARNING: /" >&2
15095 ;;
15096esac
15097{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15101else
15102 eval "$as_ac_Header=\$ac_header_preproc"
15103fi
15104ac_res=`eval echo '${'$as_ac_Header'}'`
15105 { echo "$as_me:$LINENO: result: $ac_res" >&5
15106echo "${ECHO_T}$ac_res" >&6; }
15107
15108fi
15109if test `eval echo '${'$as_ac_Header'}'` = yes; then
15110 cat >>confdefs.h <<_ACEOF
15111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15112_ACEOF
15113
15114fi
15115
15116done
15117
15118ac_ext=c
15119ac_cpp='$CPP $CPPFLAGS'
15120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015123
15124
15125
15126
15127
15128
Eric Christopher30536382013-07-26 17:13:47 +000015129for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015130do
15131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137fi
15138ac_res=`eval echo '${'$as_ac_Header'}'`
15139 { echo "$as_me:$LINENO: result: $ac_res" >&5
15140echo "${ECHO_T}$ac_res" >&6; }
15141else
15142 # Is the header compilable?
15143{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15145cat >conftest.$ac_ext <<_ACEOF
15146/* confdefs.h. */
15147_ACEOF
15148cat confdefs.h >>conftest.$ac_ext
15149cat >>conftest.$ac_ext <<_ACEOF
15150/* end confdefs.h. */
15151$ac_includes_default
15152#include <$ac_header>
15153_ACEOF
15154rm -f conftest.$ac_objext
15155if { (ac_try="$ac_compile"
15156case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159esac
15160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172esac
15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15182esac
15183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_header_compiler=yes
15189else
15190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193 ac_header_compiler=no
15194fi
15195
15196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198echo "${ECHO_T}$ac_header_compiler" >&6; }
15199
15200# Is the header present?
15201{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15203cat >conftest.$ac_ext <<_ACEOF
15204/* confdefs.h. */
15205_ACEOF
15206cat confdefs.h >>conftest.$ac_ext
15207cat >>conftest.$ac_ext <<_ACEOF
15208/* end confdefs.h. */
15209#include <$ac_header>
15210_ACEOF
15211if { (ac_try="$ac_cpp conftest.$ac_ext"
15212case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15215esac
15216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } >/dev/null; then
15224 if test -s conftest.err; then
15225 ac_cpp_err=$ac_c_preproc_warn_flag
15226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15227 else
15228 ac_cpp_err=
15229 fi
15230else
15231 ac_cpp_err=yes
15232fi
15233if test -z "$ac_cpp_err"; then
15234 ac_header_preproc=yes
15235else
15236 echo "$as_me: failed program was:" >&5
15237sed 's/^/| /' conftest.$ac_ext >&5
15238
15239 ac_header_preproc=no
15240fi
15241
15242rm -f conftest.err conftest.$ac_ext
15243{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15244echo "${ECHO_T}$ac_header_preproc" >&6; }
15245
15246# So? What about this header?
15247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15248 yes:no: )
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15250echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15252echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15253 ac_header_preproc=yes
15254 ;;
15255 no:yes:* )
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15257echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15259echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15261echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15263echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15267echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15268 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015269## ------------------------------------ ##
15270## Report this to http://llvm.org/bugs/ ##
15271## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015272_ASBOX
15273 ) | sed "s/^/$as_me: WARNING: /" >&2
15274 ;;
15275esac
15276{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280else
15281 eval "$as_ac_Header=\$ac_header_preproc"
15282fi
15283ac_res=`eval echo '${'$as_ac_Header'}'`
15284 { echo "$as_me:$LINENO: result: $ac_res" >&5
15285echo "${ECHO_T}$ac_res" >&6; }
15286
15287fi
15288if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000015289 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0241e382004-11-25 04:51:04 +000015291_ACEOF
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015292
15293fi
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015294
Reid Spencer8bc110c2004-12-25 07:31:29 +000015295done
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015296
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015297
15298
15299
15300
15301
15302
Douglas Gregorb81294d2009-05-18 17:21:34 +000015303for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015304do
15305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15311fi
15312ac_res=`eval echo '${'$as_ac_Header'}'`
15313 { echo "$as_me:$LINENO: result: $ac_res" >&5
15314echo "${ECHO_T}$ac_res" >&6; }
15315else
15316 # Is the header compilable?
15317{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15319cat >conftest.$ac_ext <<_ACEOF
15320/* confdefs.h. */
15321_ACEOF
15322cat confdefs.h >>conftest.$ac_ext
15323cat >>conftest.$ac_ext <<_ACEOF
15324/* end confdefs.h. */
15325$ac_includes_default
15326#include <$ac_header>
15327_ACEOF
15328rm -f conftest.$ac_objext
15329if { (ac_try="$ac_compile"
15330case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15333esac
15334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_compile") 2>conftest.er1
15336 ac_status=$?
15337 grep -v '^ *+' conftest.er1 >conftest.err
15338 rm -f conftest.er1
15339 cat conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
15342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15343 { (case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346esac
15347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_try") 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest.$ac_objext'
15353 { (case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356esac
15357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_try") 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_header_compiler=yes
15363else
15364 echo "$as_me: failed program was:" >&5
15365sed 's/^/| /' conftest.$ac_ext >&5
15366
15367 ac_header_compiler=no
15368fi
15369
15370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15372echo "${ECHO_T}$ac_header_compiler" >&6; }
15373
15374# Is the header present?
15375{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15377cat >conftest.$ac_ext <<_ACEOF
15378/* confdefs.h. */
15379_ACEOF
15380cat confdefs.h >>conftest.$ac_ext
15381cat >>conftest.$ac_ext <<_ACEOF
15382/* end confdefs.h. */
15383#include <$ac_header>
15384_ACEOF
15385if { (ac_try="$ac_cpp conftest.$ac_ext"
15386case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15389esac
15390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15392 ac_status=$?
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } >/dev/null; then
15398 if test -s conftest.err; then
15399 ac_cpp_err=$ac_c_preproc_warn_flag
15400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15401 else
15402 ac_cpp_err=
15403 fi
15404else
15405 ac_cpp_err=yes
15406fi
15407if test -z "$ac_cpp_err"; then
15408 ac_header_preproc=yes
15409else
15410 echo "$as_me: failed program was:" >&5
15411sed 's/^/| /' conftest.$ac_ext >&5
15412
15413 ac_header_preproc=no
15414fi
15415
15416rm -f conftest.err conftest.$ac_ext
15417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15418echo "${ECHO_T}$ac_header_preproc" >&6; }
15419
15420# So? What about this header?
15421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15422 yes:no: )
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15427 ac_header_preproc=yes
15428 ;;
15429 no:yes:* )
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15437echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15442 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015443## ------------------------------------ ##
15444## Report this to http://llvm.org/bugs/ ##
15445## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015446_ASBOX
15447 ) | sed "s/^/$as_me: WARNING: /" >&2
15448 ;;
15449esac
15450{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454else
15455 eval "$as_ac_Header=\$ac_header_preproc"
15456fi
15457ac_res=`eval echo '${'$as_ac_Header'}'`
15458 { echo "$as_me:$LINENO: result: $ac_res" >&5
15459echo "${ECHO_T}$ac_res" >&6; }
15460
15461fi
15462if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000015463 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000015465_ACEOF
15466
15467fi
15468
15469done
15470
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015471
Eric Christopher30536382013-07-26 17:13:47 +000015472for ac_header in utime.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015473do
15474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480fi
15481ac_res=`eval echo '${'$as_ac_Header'}'`
15482 { echo "$as_me:$LINENO: result: $ac_res" >&5
15483echo "${ECHO_T}$ac_res" >&6; }
15484else
15485 # Is the header compilable?
15486{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494$ac_includes_default
15495#include <$ac_header>
15496_ACEOF
15497rm -f conftest.$ac_objext
15498if { (ac_try="$ac_compile"
15499case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15502esac
15503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515esac
15516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525esac
15526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_header_compiler=yes
15532else
15533 echo "$as_me: failed program was:" >&5
15534sed 's/^/| /' conftest.$ac_ext >&5
15535
15536 ac_header_compiler=no
15537fi
15538
15539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541echo "${ECHO_T}$ac_header_compiler" >&6; }
15542
15543# Is the header present?
15544{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
15552#include <$ac_header>
15553_ACEOF
15554if { (ac_try="$ac_cpp conftest.$ac_ext"
15555case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558esac
15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15561 ac_status=$?
15562 grep -v '^ *+' conftest.er1 >conftest.err
15563 rm -f conftest.er1
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15570 else
15571 ac_cpp_err=
15572 fi
15573else
15574 ac_cpp_err=yes
15575fi
15576if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 ac_header_preproc=no
15583fi
15584
15585rm -f conftest.err conftest.$ac_ext
15586{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587echo "${ECHO_T}$ac_header_preproc" >&6; }
15588
15589# So? What about this header?
15590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591 yes:no: )
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596 ac_header_preproc=yes
15597 ;;
15598 no:yes:* )
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15611 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015612## ------------------------------------ ##
15613## Report this to http://llvm.org/bugs/ ##
15614## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015615_ASBOX
15616 ) | sed "s/^/$as_me: WARNING: /" >&2
15617 ;;
15618esac
15619{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623else
15624 eval "$as_ac_Header=\$ac_header_preproc"
15625fi
15626ac_res=`eval echo '${'$as_ac_Header'}'`
15627 { echo "$as_me:$LINENO: result: $ac_res" >&5
15628echo "${ECHO_T}$ac_res" >&6; }
15629
15630fi
15631if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000015632 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000015634_ACEOF
15635
15636fi
15637
15638done
Reid Spencer8bc110c2004-12-25 07:31:29 +000015639
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015640
15641
15642
15643
Daniel Dunbar7840c542011-02-03 02:40:02 +000015644
15645for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015646do
15647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653fi
15654ac_res=`eval echo '${'$as_ac_Header'}'`
15655 { echo "$as_me:$LINENO: result: $ac_res" >&5
15656echo "${ECHO_T}$ac_res" >&6; }
15657else
15658 # Is the header compilable?
15659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15661cat >conftest.$ac_ext <<_ACEOF
15662/* confdefs.h. */
15663_ACEOF
15664cat confdefs.h >>conftest.$ac_ext
15665cat >>conftest.$ac_ext <<_ACEOF
15666/* end confdefs.h. */
15667$ac_includes_default
15668#include <$ac_header>
15669_ACEOF
15670rm -f conftest.$ac_objext
15671if { (ac_try="$ac_compile"
15672case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15675esac
15676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677 (eval "$ac_compile") 2>conftest.er1
15678 ac_status=$?
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15685 { (case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15688esac
15689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_try") 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698esac
15699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_header_compiler=yes
15705else
15706 echo "$as_me: failed program was:" >&5
15707sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 ac_header_compiler=no
15710fi
15711
15712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15714echo "${ECHO_T}$ac_header_compiler" >&6; }
15715
15716# Is the header present?
15717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15719cat >conftest.$ac_ext <<_ACEOF
15720/* confdefs.h. */
15721_ACEOF
15722cat confdefs.h >>conftest.$ac_ext
15723cat >>conftest.$ac_ext <<_ACEOF
15724/* end confdefs.h. */
15725#include <$ac_header>
15726_ACEOF
15727if { (ac_try="$ac_cpp conftest.$ac_ext"
15728case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15731esac
15732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } >/dev/null; then
15740 if test -s conftest.err; then
15741 ac_cpp_err=$ac_c_preproc_warn_flag
15742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15743 else
15744 ac_cpp_err=
15745 fi
15746else
15747 ac_cpp_err=yes
15748fi
15749if test -z "$ac_cpp_err"; then
15750 ac_header_preproc=yes
15751else
15752 echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ac_header_preproc=no
15756fi
15757
15758rm -f conftest.err conftest.$ac_ext
15759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15760echo "${ECHO_T}$ac_header_preproc" >&6; }
15761
15762# So? What about this header?
15763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764 yes:no: )
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15769 ac_header_preproc=yes
15770 ;;
15771 no:yes:* )
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15784 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015785## ------------------------------------ ##
15786## Report this to http://llvm.org/bugs/ ##
15787## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015788_ASBOX
15789 ) | sed "s/^/$as_me: WARNING: /" >&2
15790 ;;
15791esac
15792{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15796else
15797 eval "$as_ac_Header=\$ac_header_preproc"
15798fi
15799ac_res=`eval echo '${'$as_ac_Header'}'`
15800 { echo "$as_me:$LINENO: result: $ac_res" >&5
15801echo "${ECHO_T}$ac_res" >&6; }
15802
15803fi
15804if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000015805 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswellb92c7c22004-07-19 16:12:29 +000015807_ACEOF
John Criswellb92c7c22004-07-19 16:12:29 +000015808
15809fi
John Criswellb92c7c22004-07-19 16:12:29 +000015810
Reid Spencer0241e382004-11-25 04:51:04 +000015811done
15812
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015813
15814
15815
Eric Christopher30536382013-07-26 17:13:47 +000015816for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015817do
15818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824fi
15825ac_res=`eval echo '${'$as_ac_Header'}'`
15826 { echo "$as_me:$LINENO: result: $ac_res" >&5
15827echo "${ECHO_T}$ac_res" >&6; }
15828else
15829 # Is the header compilable?
15830{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15832cat >conftest.$ac_ext <<_ACEOF
15833/* confdefs.h. */
15834_ACEOF
15835cat confdefs.h >>conftest.$ac_ext
15836cat >>conftest.$ac_ext <<_ACEOF
15837/* end confdefs.h. */
15838$ac_includes_default
15839#include <$ac_header>
15840_ACEOF
15841rm -f conftest.$ac_objext
15842if { (ac_try="$ac_compile"
15843case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15846esac
15847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_compile") 2>conftest.er1
15849 ac_status=$?
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859esac
15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15869esac
15870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_try") 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 ac_header_compiler=yes
15876else
15877 echo "$as_me: failed program was:" >&5
15878sed 's/^/| /' conftest.$ac_ext >&5
15879
15880 ac_header_compiler=no
15881fi
15882
15883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15885echo "${ECHO_T}$ac_header_compiler" >&6; }
15886
15887# Is the header present?
15888{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15890cat >conftest.$ac_ext <<_ACEOF
15891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
15896#include <$ac_header>
15897_ACEOF
15898if { (ac_try="$ac_cpp conftest.$ac_ext"
15899case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15902esac
15903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15905 ac_status=$?
15906 grep -v '^ *+' conftest.er1 >conftest.err
15907 rm -f conftest.er1
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } >/dev/null; then
15911 if test -s conftest.err; then
15912 ac_cpp_err=$ac_c_preproc_warn_flag
15913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15914 else
15915 ac_cpp_err=
15916 fi
15917else
15918 ac_cpp_err=yes
15919fi
15920if test -z "$ac_cpp_err"; then
15921 ac_header_preproc=yes
15922else
15923 echo "$as_me: failed program was:" >&5
15924sed 's/^/| /' conftest.$ac_ext >&5
15925
15926 ac_header_preproc=no
15927fi
15928
15929rm -f conftest.err conftest.$ac_ext
15930{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15931echo "${ECHO_T}$ac_header_preproc" >&6; }
15932
15933# So? What about this header?
15934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15935 yes:no: )
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15940 ac_header_preproc=yes
15941 ;;
15942 no:yes:* )
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15955 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015956## ------------------------------------ ##
15957## Report this to http://llvm.org/bugs/ ##
15958## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015959_ASBOX
15960 ) | sed "s/^/$as_me: WARNING: /" >&2
15961 ;;
15962esac
15963{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15967else
15968 eval "$as_ac_Header=\$ac_header_preproc"
15969fi
15970ac_res=`eval echo '${'$as_ac_Header'}'`
15971 { echo "$as_me:$LINENO: result: $ac_res" >&5
15972echo "${ECHO_T}$ac_res" >&6; }
15973
15974fi
15975if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner973917a2005-11-14 06:57:34 +000015976 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner973917a2005-11-14 06:57:34 +000015978_ACEOF
15979
15980fi
15981
15982done
15983
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000015984
15985for ac_header in valgrind/valgrind.h
15986do
15987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993fi
15994ac_res=`eval echo '${'$as_ac_Header'}'`
15995 { echo "$as_me:$LINENO: result: $ac_res" >&5
15996echo "${ECHO_T}$ac_res" >&6; }
15997else
15998 # Is the header compilable?
15999{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16001cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007$ac_includes_default
16008#include <$ac_header>
16009_ACEOF
16010rm -f conftest.$ac_objext
16011if { (ac_try="$ac_compile"
16012case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16015esac
16016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_compile") 2>conftest.er1
16018 ac_status=$?
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } &&
16024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16025 { (case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028esac
16029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_try") 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
16035 { (case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16038esac
16039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_try") 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_header_compiler=yes
16045else
16046 echo "$as_me: failed program was:" >&5
16047sed 's/^/| /' conftest.$ac_ext >&5
16048
16049 ac_header_compiler=no
16050fi
16051
16052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16053{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16054echo "${ECHO_T}$ac_header_compiler" >&6; }
16055
16056# Is the header present?
16057{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16059cat >conftest.$ac_ext <<_ACEOF
16060/* confdefs.h. */
16061_ACEOF
16062cat confdefs.h >>conftest.$ac_ext
16063cat >>conftest.$ac_ext <<_ACEOF
16064/* end confdefs.h. */
16065#include <$ac_header>
16066_ACEOF
16067if { (ac_try="$ac_cpp conftest.$ac_ext"
16068case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16071esac
16072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16074 ac_status=$?
16075 grep -v '^ *+' conftest.er1 >conftest.err
16076 rm -f conftest.er1
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } >/dev/null; then
16080 if test -s conftest.err; then
16081 ac_cpp_err=$ac_c_preproc_warn_flag
16082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16083 else
16084 ac_cpp_err=
16085 fi
16086else
16087 ac_cpp_err=yes
16088fi
16089if test -z "$ac_cpp_err"; then
16090 ac_header_preproc=yes
16091else
16092 echo "$as_me: failed program was:" >&5
16093sed 's/^/| /' conftest.$ac_ext >&5
16094
16095 ac_header_preproc=no
16096fi
16097
16098rm -f conftest.err conftest.$ac_ext
16099{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16100echo "${ECHO_T}$ac_header_preproc" >&6; }
16101
16102# So? What about this header?
16103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16104 yes:no: )
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16109 ac_header_preproc=yes
16110 ;;
16111 no:yes:* )
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16119echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16124 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016125## ------------------------------------ ##
16126## Report this to http://llvm.org/bugs/ ##
16127## ------------------------------------ ##
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000016128_ASBOX
16129 ) | sed "s/^/$as_me: WARNING: /" >&2
16130 ;;
16131esac
16132{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136else
16137 eval "$as_ac_Header=\$ac_header_preproc"
16138fi
16139ac_res=`eval echo '${'$as_ac_Header'}'`
16140 { echo "$as_me:$LINENO: result: $ac_res" >&5
16141echo "${ECHO_T}$ac_res" >&6; }
16142
16143fi
16144if test `eval echo '${'$as_ac_Header'}'` = yes; then
16145 cat >>confdefs.h <<_ACEOF
16146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16147_ACEOF
16148
16149fi
16150
16151done
16152
Dan Gohmandf257772010-09-17 20:08:35 +000016153
16154for ac_header in fenv.h
16155do
16156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16162fi
16163ac_res=`eval echo '${'$as_ac_Header'}'`
16164 { echo "$as_me:$LINENO: result: $ac_res" >&5
16165echo "${ECHO_T}$ac_res" >&6; }
16166else
16167 # Is the header compilable?
16168{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16170cat >conftest.$ac_ext <<_ACEOF
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176$ac_includes_default
16177#include <$ac_header>
16178_ACEOF
16179rm -f conftest.$ac_objext
16180if { (ac_try="$ac_compile"
16181case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16184esac
16185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_compile") 2>conftest.er1
16187 ac_status=$?
16188 grep -v '^ *+' conftest.er1 >conftest.err
16189 rm -f conftest.er1
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16197esac
16198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16207esac
16208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_try") 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_header_compiler=yes
16214else
16215 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_header_compiler=no
16219fi
16220
16221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223echo "${ECHO_T}$ac_header_compiler" >&6; }
16224
16225# Is the header present?
16226{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16228cat >conftest.$ac_ext <<_ACEOF
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
16234#include <$ac_header>
16235_ACEOF
16236if { (ac_try="$ac_cpp conftest.$ac_ext"
16237case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240esac
16241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16243 ac_status=$?
16244 grep -v '^ *+' conftest.er1 >conftest.err
16245 rm -f conftest.er1
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } >/dev/null; then
16249 if test -s conftest.err; then
16250 ac_cpp_err=$ac_c_preproc_warn_flag
16251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16252 else
16253 ac_cpp_err=
16254 fi
16255else
16256 ac_cpp_err=yes
16257fi
16258if test -z "$ac_cpp_err"; then
16259 ac_header_preproc=yes
16260else
16261 echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 ac_header_preproc=no
16265fi
16266
16267rm -f conftest.err conftest.$ac_ext
16268{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16269echo "${ECHO_T}$ac_header_preproc" >&6; }
16270
16271# So? What about this header?
16272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16273 yes:no: )
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16278 ac_header_preproc=yes
16279 ;;
16280 no:yes:* )
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16293 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016294## ------------------------------------ ##
16295## Report this to http://llvm.org/bugs/ ##
16296## ------------------------------------ ##
Dan Gohmandf257772010-09-17 20:08:35 +000016297_ASBOX
16298 ) | sed "s/^/$as_me: WARNING: /" >&2
16299 ;;
16300esac
16301{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305else
16306 eval "$as_ac_Header=\$ac_header_preproc"
16307fi
16308ac_res=`eval echo '${'$as_ac_Header'}'`
16309 { echo "$as_me:$LINENO: result: $ac_res" >&5
16310echo "${ECHO_T}$ac_res" >&6; }
16311
16312fi
16313if test `eval echo '${'$as_ac_Header'}'` = yes; then
16314 cat >>confdefs.h <<_ACEOF
16315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16316_ACEOF
16317
16318fi
16319
16320done
16321
Joerg Sonnenberger8a1177f2013-03-25 13:13:33 +000016322{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16323echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16324if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16326else
16327 cat >conftest.$ac_ext <<_ACEOF
16328/* confdefs.h. */
16329_ACEOF
16330cat confdefs.h >>conftest.$ac_ext
16331cat >>conftest.$ac_ext <<_ACEOF
16332/* end confdefs.h. */
16333#include <fenv.h>
16334
16335int
16336main ()
16337{
16338#ifndef FE_ALL_EXCEPT
16339 char *p = (char *) FE_ALL_EXCEPT;
16340 return !p;
16341#endif
16342
16343 ;
16344 return 0;
16345}
16346_ACEOF
16347rm -f conftest.$ac_objext
16348if { (ac_try="$ac_compile"
16349case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352esac
16353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_compile") 2>conftest.er1
16355 ac_status=$?
16356 grep -v '^ *+' conftest.er1 >conftest.err
16357 rm -f conftest.er1
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16362 { (case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16365esac
16366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_try") 2>&5
16368 ac_status=$?
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } &&
16371 { ac_try='test -s conftest.$ac_objext'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16382else
16383 echo "$as_me: failed program was:" >&5
16384sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 ac_cv_have_decl_FE_ALL_EXCEPT=no
16387fi
16388
16389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390fi
16391{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16392echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16393if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16394
16395cat >>confdefs.h <<_ACEOF
16396#define HAVE_DECL_FE_ALL_EXCEPT 1
16397_ACEOF
16398
16399
16400else
16401 cat >>confdefs.h <<_ACEOF
16402#define HAVE_DECL_FE_ALL_EXCEPT 0
16403_ACEOF
16404
16405
16406fi
16407{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16408echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16409if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 cat >conftest.$ac_ext <<_ACEOF
16413/* confdefs.h. */
16414_ACEOF
16415cat confdefs.h >>conftest.$ac_ext
16416cat >>conftest.$ac_ext <<_ACEOF
16417/* end confdefs.h. */
16418#include <fenv.h>
16419
16420int
16421main ()
16422{
16423#ifndef FE_INEXACT
16424 char *p = (char *) FE_INEXACT;
16425 return !p;
16426#endif
16427
16428 ;
16429 return 0;
16430}
16431_ACEOF
16432rm -f conftest.$ac_objext
16433if { (ac_try="$ac_compile"
16434case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437esac
16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_compile") 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16447 { (case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16450esac
16451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_try") 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } &&
16456 { ac_try='test -s conftest.$ac_objext'
16457 { (case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16460esac
16461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462 (eval "$ac_try") 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_cv_have_decl_FE_INEXACT=yes
16467else
16468 echo "$as_me: failed program was:" >&5
16469sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 ac_cv_have_decl_FE_INEXACT=no
16472fi
16473
16474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475fi
16476{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16477echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16478if test $ac_cv_have_decl_FE_INEXACT = yes; then
16479
16480cat >>confdefs.h <<_ACEOF
16481#define HAVE_DECL_FE_INEXACT 1
16482_ACEOF
16483
16484
16485else
16486 cat >>confdefs.h <<_ACEOF
16487#define HAVE_DECL_FE_INEXACT 0
16488_ACEOF
16489
16490
16491fi
16492
16493
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000016494if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016495
16496for ac_header in pthread.h
16497do
16498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504fi
16505ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507echo "${ECHO_T}$ac_res" >&6; }
16508else
16509 # Is the header compilable?
16510{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512cat >conftest.$ac_ext <<_ACEOF
16513/* confdefs.h. */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h. */
16518$ac_includes_default
16519#include <$ac_header>
16520_ACEOF
16521rm -f conftest.$ac_objext
16522if { (ac_try="$ac_compile"
16523case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549esac
16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_header_compiler=yes
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 ac_header_compiler=no
16561fi
16562
16563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565echo "${ECHO_T}$ac_header_compiler" >&6; }
16566
16567# Is the header present?
16568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576#include <$ac_header>
16577_ACEOF
16578if { (ac_try="$ac_cpp conftest.$ac_ext"
16579case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16585 ac_status=$?
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } >/dev/null; then
16591 if test -s conftest.err; then
16592 ac_cpp_err=$ac_c_preproc_warn_flag
16593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16594 else
16595 ac_cpp_err=
16596 fi
16597else
16598 ac_cpp_err=yes
16599fi
16600if test -z "$ac_cpp_err"; then
16601 ac_header_preproc=yes
16602else
16603 echo "$as_me: failed program was:" >&5
16604sed 's/^/| /' conftest.$ac_ext >&5
16605
16606 ac_header_preproc=no
16607fi
16608
16609rm -f conftest.err conftest.$ac_ext
16610{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611echo "${ECHO_T}$ac_header_preproc" >&6; }
16612
16613# So? What about this header?
16614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615 yes:no: )
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620 ac_header_preproc=yes
16621 ;;
16622 no:yes:* )
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016636## ------------------------------------ ##
16637## Report this to http://llvm.org/bugs/ ##
16638## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016639_ASBOX
16640 ) | sed "s/^/$as_me: WARNING: /" >&2
16641 ;;
16642esac
16643{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647else
16648 eval "$as_ac_Header=\$ac_header_preproc"
16649fi
16650ac_res=`eval echo '${'$as_ac_Header'}'`
16651 { echo "$as_me:$LINENO: result: $ac_res" >&5
16652echo "${ECHO_T}$ac_res" >&6; }
16653
16654fi
16655if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000016656 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000016658_ACEOF
16659 HAVE_PTHREAD=1
Reid Spencerd4399922006-12-01 00:37:14 +000016660
16661else
16662 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000016663
16664fi
16665
Reid Spencerb8135562007-08-17 05:45:26 +000016666done
Reid Spencerd4399922006-12-01 00:37:14 +000016667
16668else
16669 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000016670
16671fi
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000016672if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16673
16674for ac_header in zlib.h
16675do
16676as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682fi
16683ac_res=`eval echo '${'$as_ac_Header'}'`
16684 { echo "$as_me:$LINENO: result: $ac_res" >&5
16685echo "${ECHO_T}$ac_res" >&6; }
16686else
16687 # Is the header compilable?
16688{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16689echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16690cat >conftest.$ac_ext <<_ACEOF
16691/* confdefs.h. */
16692_ACEOF
16693cat confdefs.h >>conftest.$ac_ext
16694cat >>conftest.$ac_ext <<_ACEOF
16695/* end confdefs.h. */
16696$ac_includes_default
16697#include <$ac_header>
16698_ACEOF
16699rm -f conftest.$ac_objext
16700if { (ac_try="$ac_compile"
16701case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16704esac
16705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_compile") 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest.$ac_objext'
16724 { (case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727esac
16728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_try") 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_header_compiler=yes
16734else
16735 echo "$as_me: failed program was:" >&5
16736sed 's/^/| /' conftest.$ac_ext >&5
16737
16738 ac_header_compiler=no
16739fi
16740
16741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16743echo "${ECHO_T}$ac_header_compiler" >&6; }
16744
16745# Is the header present?
16746{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16747echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16748cat >conftest.$ac_ext <<_ACEOF
16749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h. */
16754#include <$ac_header>
16755_ACEOF
16756if { (ac_try="$ac_cpp conftest.$ac_ext"
16757case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16763 ac_status=$?
16764 grep -v '^ *+' conftest.er1 >conftest.err
16765 rm -f conftest.er1
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } >/dev/null; then
16769 if test -s conftest.err; then
16770 ac_cpp_err=$ac_c_preproc_warn_flag
16771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16772 else
16773 ac_cpp_err=
16774 fi
16775else
16776 ac_cpp_err=yes
16777fi
16778if test -z "$ac_cpp_err"; then
16779 ac_header_preproc=yes
16780else
16781 echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784 ac_header_preproc=no
16785fi
16786
16787rm -f conftest.err conftest.$ac_ext
16788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16789echo "${ECHO_T}$ac_header_preproc" >&6; }
16790
16791# So? What about this header?
16792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16793 yes:no: )
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16798 ac_header_preproc=yes
16799 ;;
16800 no:yes:* )
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16813 ( cat <<\_ASBOX
16814## ------------------------------------ ##
16815## Report this to http://llvm.org/bugs/ ##
16816## ------------------------------------ ##
16817_ASBOX
16818 ) | sed "s/^/$as_me: WARNING: /" >&2
16819 ;;
16820esac
16821{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825else
16826 eval "$as_ac_Header=\$ac_header_preproc"
16827fi
16828ac_res=`eval echo '${'$as_ac_Header'}'`
16829 { echo "$as_me:$LINENO: result: $ac_res" >&5
16830echo "${ECHO_T}$ac_res" >&6; }
16831
16832fi
16833if test `eval echo '${'$as_ac_Header'}'` = yes; then
16834 cat >>confdefs.h <<_ACEOF
16835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16836_ACEOF
16837 HAVE_LIBZ=1
16838
16839else
16840 HAVE_LIBZ=0
16841
16842fi
16843
16844done
16845
16846else
16847 HAVE_LIBZ=0
16848
16849fi
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000016850
Nick Lewycky86679902009-06-06 06:25:09 +000016851if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016852
16853
16854for ac_header in ffi.h ffi/ffi.h
16855do
16856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862fi
16863ac_res=`eval echo '${'$as_ac_Header'}'`
16864 { echo "$as_me:$LINENO: result: $ac_res" >&5
16865echo "${ECHO_T}$ac_res" >&6; }
16866else
16867 # Is the header compilable?
16868{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16870cat >conftest.$ac_ext <<_ACEOF
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876$ac_includes_default
16877#include <$ac_header>
16878_ACEOF
16879rm -f conftest.$ac_objext
16880if { (ac_try="$ac_compile"
16881case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_header_compiler=yes
16914else
16915 echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 ac_header_compiler=no
16919fi
16920
16921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16923echo "${ECHO_T}$ac_header_compiler" >&6; }
16924
16925# Is the header present?
16926{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16927echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16928cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934#include <$ac_header>
16935_ACEOF
16936if { (ac_try="$ac_cpp conftest.$ac_ext"
16937case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940esac
16941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } >/dev/null; then
16949 if test -s conftest.err; then
16950 ac_cpp_err=$ac_c_preproc_warn_flag
16951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16952 else
16953 ac_cpp_err=
16954 fi
16955else
16956 ac_cpp_err=yes
16957fi
16958if test -z "$ac_cpp_err"; then
16959 ac_header_preproc=yes
16960else
16961 echo "$as_me: failed program was:" >&5
16962sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 ac_header_preproc=no
16965fi
16966
16967rm -f conftest.err conftest.$ac_ext
16968{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969echo "${ECHO_T}$ac_header_preproc" >&6; }
16970
16971# So? What about this header?
16972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16973 yes:no: )
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16975echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16977echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16978 ac_header_preproc=yes
16979 ;;
16980 no:yes:* )
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16982echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16984echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16986echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16988echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16992echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16993 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016994## ------------------------------------ ##
16995## Report this to http://llvm.org/bugs/ ##
16996## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016997_ASBOX
16998 ) | sed "s/^/$as_me: WARNING: /" >&2
16999 ;;
17000esac
17001{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005else
17006 eval "$as_ac_Header=\$ac_header_preproc"
17007fi
17008ac_res=`eval echo '${'$as_ac_Header'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010echo "${ECHO_T}$ac_res" >&6; }
17011
17012fi
17013if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky11e92142009-02-04 06:27:44 +000017014 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky11e92142009-02-04 06:27:44 +000017016_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000017017
17018fi
17019
17020done
17021
Nick Lewycky86679902009-06-06 06:25:09 +000017022fi
Nick Lewycky11e92142009-02-04 06:27:44 +000017023
Nick Lewyckyc94134d2009-01-20 00:52:24 +000017024
Eric Christophere9c1bb62010-06-22 21:01:04 +000017025for ac_header in CrashReporterClient.h
17026do
17027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033fi
17034ac_res=`eval echo '${'$as_ac_Header'}'`
17035 { echo "$as_me:$LINENO: result: $ac_res" >&5
17036echo "${ECHO_T}$ac_res" >&6; }
17037else
17038 # Is the header compilable?
17039{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17041cat >conftest.$ac_ext <<_ACEOF
17042/* confdefs.h. */
17043_ACEOF
17044cat confdefs.h >>conftest.$ac_ext
17045cat >>conftest.$ac_ext <<_ACEOF
17046/* end confdefs.h. */
17047$ac_includes_default
17048#include <$ac_header>
17049_ACEOF
17050rm -f conftest.$ac_objext
17051if { (ac_try="$ac_compile"
17052case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055esac
17056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_compile") 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try='test -s conftest.$ac_objext'
17075 { (case "(($ac_try" in
17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17078esac
17079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080 (eval "$ac_try") 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 ac_header_compiler=yes
17085else
17086 echo "$as_me: failed program was:" >&5
17087sed 's/^/| /' conftest.$ac_ext >&5
17088
17089 ac_header_compiler=no
17090fi
17091
17092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17094echo "${ECHO_T}$ac_header_compiler" >&6; }
17095
17096# Is the header present?
17097{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17099cat >conftest.$ac_ext <<_ACEOF
17100/* confdefs.h. */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
17104/* end confdefs.h. */
17105#include <$ac_header>
17106_ACEOF
17107if { (ac_try="$ac_cpp conftest.$ac_ext"
17108case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17111esac
17112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } >/dev/null; then
17120 if test -s conftest.err; then
17121 ac_cpp_err=$ac_c_preproc_warn_flag
17122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17123 else
17124 ac_cpp_err=
17125 fi
17126else
17127 ac_cpp_err=yes
17128fi
17129if test -z "$ac_cpp_err"; then
17130 ac_header_preproc=yes
17131else
17132 echo "$as_me: failed program was:" >&5
17133sed 's/^/| /' conftest.$ac_ext >&5
17134
17135 ac_header_preproc=no
17136fi
17137
17138rm -f conftest.err conftest.$ac_ext
17139{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140echo "${ECHO_T}$ac_header_preproc" >&6; }
17141
17142# So? What about this header?
17143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17144 yes:no: )
17145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17149 ac_header_preproc=yes
17150 ;;
17151 no:yes:* )
17152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17164 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000017165## ------------------------------------ ##
17166## Report this to http://llvm.org/bugs/ ##
17167## ------------------------------------ ##
Eric Christophere9c1bb62010-06-22 21:01:04 +000017168_ASBOX
17169 ) | sed "s/^/$as_me: WARNING: /" >&2
17170 ;;
17171esac
17172{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17176else
17177 eval "$as_ac_Header=\$ac_header_preproc"
17178fi
17179ac_res=`eval echo '${'$as_ac_Header'}'`
17180 { echo "$as_me:$LINENO: result: $ac_res" >&5
17181echo "${ECHO_T}$ac_res" >&6; }
17182
17183fi
17184if test `eval echo '${'$as_ac_Header'}'` = yes; then
17185 cat >>confdefs.h <<_ACEOF
17186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17187_ACEOF
17188
17189fi
17190
17191done
17192
17193
Eric Christopherba4f7722010-12-07 02:05:42 +000017194{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17195echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000017196cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017197
17198 /* confdefs.h. */
Eric Christopherca466732010-12-03 07:45:22 +000017199_ACEOF
17200cat confdefs.h >>conftest.$ac_ext
17201cat >>conftest.$ac_ext <<_ACEOF
17202/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017203
17204 extern const char *__crashreporter_info__;
17205 int main() {
17206 __crashreporter_info__ = "test";
17207 return 0;
17208 }
17209
Eric Christopherca466732010-12-03 07:45:22 +000017210
Eric Christopherca466732010-12-03 07:45:22 +000017211_ACEOF
17212rm -f conftest.$ac_objext conftest$ac_exeext
17213if { (ac_try="$ac_link"
17214case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217esac
17218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_link") 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230esac
17231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240esac
17241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_try") 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017246
Eric Christopherba4f7722010-12-07 02:05:42 +000017247 { echo "$as_me:$LINENO: result: yes" >&5
17248echo "${ECHO_T}yes" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000017249
17250cat >>confdefs.h <<\_ACEOF
17251#define HAVE_CRASHREPORTER_INFO 1
17252_ACEOF
17253
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017254
Eric Christopherba4f7722010-12-07 02:05:42 +000017255else
17256 echo "$as_me: failed program was:" >&5
17257sed 's/^/| /' conftest.$ac_ext >&5
17258
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017259
17260 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopherba4f7722010-12-07 02:05:42 +000017261echo "${ECHO_T}no" >&6; }
17262
17263cat >>confdefs.h <<\_ACEOF
17264#define HAVE_CRASHREPORTER_INFO 0
17265_ACEOF
17266
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017267
Eric Christopherca466732010-12-03 07:45:22 +000017268fi
Eric Christophere9c1bb62010-06-22 21:01:04 +000017269
Eric Christopherba4f7722010-12-07 02:05:42 +000017270rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272
17273
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000017274
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017275 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17276echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17277if test "${ac_cv_huge_val_sanity+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer128ae102006-11-03 18:04:08 +000017279else
17280
Reid Spencer7b7ab9c2006-11-03 19:49:16 +000017281 ac_ext=cpp
17282ac_cpp='$CXXCPP $CPPFLAGS'
17283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencer128ae102006-11-03 18:04:08 +000017286
Eric Christopherf0ee6a12010-03-02 05:06:54 +000017287 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher8e52bdc2012-04-02 06:54:01 +000017288 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017289 if test "$cross_compiling" = yes; then
Reid Spencer128ae102006-11-03 18:04:08 +000017290 ac_cv_huge_val_sanity=yes
17291else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017292 cat >conftest.$ac_ext <<_ACEOF
17293/* confdefs.h. */
17294_ACEOF
17295cat confdefs.h >>conftest.$ac_ext
17296cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer128ae102006-11-03 18:04:08 +000017297/* end confdefs.h. */
17298#include <math.h>
17299int
17300main ()
17301{
17302double x = HUGE_VAL; return x != x;
17303 ;
17304 return 0;
17305}
17306_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017307rm -f conftest$ac_exeext
17308if { (ac_try="$ac_link"
17309case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17312esac
17313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_link") 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
Reid Spencer128ae102006-11-03 18:04:08 +000017327 ac_cv_huge_val_sanity=yes
17328else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017329 echo "$as_me: program exited with status $ac_status" >&5
17330echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333( exit $ac_status )
17334ac_cv_huge_val_sanity=no
Reid Spencer128ae102006-11-03 18:04:08 +000017335fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer128ae102006-11-03 18:04:08 +000017337fi
17338
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017339
Eric Christopherf0ee6a12010-03-02 05:06:54 +000017340 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencer128ae102006-11-03 18:04:08 +000017341 ac_ext=c
17342ac_cpp='$CPP $CPPFLAGS'
17343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17345ac_compiler_gnu=$ac_cv_c_compiler_gnu
17346
17347
17348fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017349{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17350echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencer128ae102006-11-03 18:04:08 +000017351 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17352
17353
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017354{ echo "$as_me:$LINENO: checking for pid_t" >&5
17355echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17356if test "${ac_cv_type_pid_t+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358else
17359 cat >conftest.$ac_ext <<_ACEOF
17360/* confdefs.h. */
17361_ACEOF
17362cat confdefs.h >>conftest.$ac_ext
17363cat >>conftest.$ac_ext <<_ACEOF
17364/* end confdefs.h. */
17365$ac_includes_default
17366typedef pid_t ac__type_new_;
17367int
17368main ()
17369{
17370if ((ac__type_new_ *) 0)
17371 return 0;
17372if (sizeof (ac__type_new_))
17373 return 0;
17374 ;
17375 return 0;
17376}
17377_ACEOF
17378rm -f conftest.$ac_objext
17379if { (ac_try="$ac_compile"
17380case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383esac
17384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396esac
17397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest.$ac_objext'
17403 { (case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17406esac
17407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_try") 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_cv_type_pid_t=yes
17413else
17414 echo "$as_me: failed program was:" >&5
17415sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000017416
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017417 ac_cv_type_pid_t=no
17418fi
17419
17420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421fi
17422{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17423echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17424if test $ac_cv_type_pid_t = yes; then
17425 :
John Criswell3ef61af2003-06-30 21:59:07 +000017426else
17427
17428cat >>confdefs.h <<_ACEOF
17429#define pid_t int
17430_ACEOF
17431
17432fi
17433
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017434{ echo "$as_me:$LINENO: checking for size_t" >&5
17435echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17436if test "${ac_cv_type_size_t+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17438else
17439 cat >conftest.$ac_ext <<_ACEOF
17440/* confdefs.h. */
17441_ACEOF
17442cat confdefs.h >>conftest.$ac_ext
17443cat >>conftest.$ac_ext <<_ACEOF
17444/* end confdefs.h. */
17445$ac_includes_default
17446typedef size_t ac__type_new_;
17447int
17448main ()
17449{
17450if ((ac__type_new_ *) 0)
17451 return 0;
17452if (sizeof (ac__type_new_))
17453 return 0;
17454 ;
17455 return 0;
17456}
17457_ACEOF
17458rm -f conftest.$ac_objext
17459if { (ac_try="$ac_compile"
17460case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463esac
17464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_compile") 2>conftest.er1
17466 ac_status=$?
17467 grep -v '^ *+' conftest.er1 >conftest.err
17468 rm -f conftest.er1
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17473 { (case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476esac
17477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_try") 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest.$ac_objext'
17483 { (case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486esac
17487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_try") 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 ac_cv_type_size_t=yes
17493else
17494 echo "$as_me: failed program was:" >&5
17495sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000017496
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017497 ac_cv_type_size_t=no
17498fi
17499
17500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17501fi
17502{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17503echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17504if test $ac_cv_type_size_t = yes; then
17505 :
John Criswell3ef61af2003-06-30 21:59:07 +000017506else
17507
17508cat >>confdefs.h <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017509#define size_t unsigned int
John Criswell3ef61af2003-06-30 21:59:07 +000017510_ACEOF
17511
17512fi
17513
Reid Spencer0241e382004-11-25 04:51:04 +000017514
17515cat >>confdefs.h <<_ACEOF
Torok Edwinaec06332010-01-26 08:50:50 +000017516#define RETSIGTYPE void
Reid Spencer0241e382004-11-25 04:51:04 +000017517_ACEOF
17518
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017519{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17520echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17521if test "${ac_cv_struct_tm+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000017523else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017524 cat >conftest.$ac_ext <<_ACEOF
17525/* confdefs.h. */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000017529/* end confdefs.h. */
17530#include <sys/types.h>
17531#include <time.h>
17532
17533int
17534main ()
17535{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017536struct tm *tp; tp->tm_sec;
Reid Spencer0241e382004-11-25 04:51:04 +000017537 ;
17538 return 0;
17539}
17540_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017541rm -f conftest.$ac_objext
17542if { (ac_try="$ac_compile"
17543case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546esac
17547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559esac
17560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569esac
17570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000017575 ac_cv_struct_tm=time.h
17576else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017577 echo "$as_me: failed program was:" >&5
17578sed 's/^/| /' conftest.$ac_ext >&5
17579
17580 ac_cv_struct_tm=sys/time.h
Reid Spencer0241e382004-11-25 04:51:04 +000017581fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017582
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000017584fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017585{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17586echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000017587if test $ac_cv_struct_tm = sys/time.h; then
17588
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017589cat >>confdefs.h <<\_ACEOF
17590#define TM_IN_SYS_TIME 1
17591_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000017592
17593fi
17594
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017595{ echo "$as_me:$LINENO: checking for int64_t" >&5
17596echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17597if test "${ac_cv_type_int64_t+set}" = set; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17599else
17600 cat >conftest.$ac_ext <<_ACEOF
17601/* confdefs.h. */
17602_ACEOF
17603cat confdefs.h >>conftest.$ac_ext
17604cat >>conftest.$ac_ext <<_ACEOF
17605/* end confdefs.h. */
17606$ac_includes_default
17607typedef int64_t ac__type_new_;
17608int
17609main ()
17610{
17611if ((ac__type_new_ *) 0)
17612 return 0;
17613if (sizeof (ac__type_new_))
17614 return 0;
17615 ;
17616 return 0;
17617}
17618_ACEOF
17619rm -f conftest.$ac_objext
17620if { (ac_try="$ac_compile"
17621case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624esac
17625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_compile") 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17634 { (case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637esac
17638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_try") 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest.$ac_objext'
17644 { (case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17647esac
17648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_try") 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_cv_type_int64_t=yes
17654else
17655 echo "$as_me: failed program was:" >&5
17656sed 's/^/| /' conftest.$ac_ext >&5
17657
17658 ac_cv_type_int64_t=no
17659fi
17660
17661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662fi
17663{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17664echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17665if test $ac_cv_type_int64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017666
17667cat >>confdefs.h <<_ACEOF
17668#define HAVE_INT64_T 1
17669_ACEOF
17670
17671
17672else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017673 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17674echo "$as_me: error: Type int64_t required but not found" >&2;}
17675 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000017676fi
17677
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017678{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17679echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17680if test "${ac_cv_type_uint64_t+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 cat >conftest.$ac_ext <<_ACEOF
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
17689$ac_includes_default
17690typedef uint64_t ac__type_new_;
17691int
17692main ()
17693{
17694if ((ac__type_new_ *) 0)
17695 return 0;
17696if (sizeof (ac__type_new_))
17697 return 0;
17698 ;
17699 return 0;
17700}
17701_ACEOF
17702rm -f conftest.$ac_objext
17703if { (ac_try="$ac_compile"
17704case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17707esac
17708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720esac
17721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest.$ac_objext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730esac
17731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_cv_type_uint64_t=yes
17737else
17738 echo "$as_me: failed program was:" >&5
17739sed 's/^/| /' conftest.$ac_ext >&5
17740
17741 ac_cv_type_uint64_t=no
17742fi
17743
17744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745fi
17746{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17747echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17748if test $ac_cv_type_uint64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017749
17750cat >>confdefs.h <<_ACEOF
17751#define HAVE_UINT64_T 1
17752_ACEOF
17753
17754
17755else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017756 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17757echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17758if test "${ac_cv_type_u_int64_t+set}" = set; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17760else
17761 cat >conftest.$ac_ext <<_ACEOF
17762/* confdefs.h. */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h. */
17767$ac_includes_default
17768typedef u_int64_t ac__type_new_;
17769int
17770main ()
17771{
17772if ((ac__type_new_ *) 0)
17773 return 0;
17774if (sizeof (ac__type_new_))
17775 return 0;
17776 ;
17777 return 0;
17778}
17779_ACEOF
17780rm -f conftest.$ac_objext
17781if { (ac_try="$ac_compile"
17782case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17785esac
17786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787 (eval "$ac_compile") 2>conftest.er1
17788 ac_status=$?
17789 grep -v '^ *+' conftest.er1 >conftest.err
17790 rm -f conftest.er1
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
17794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795 { (case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798esac
17799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_try") 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest.$ac_objext'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808esac
17809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_cv_type_u_int64_t=yes
17815else
17816 echo "$as_me: failed program was:" >&5
17817sed 's/^/| /' conftest.$ac_ext >&5
17818
17819 ac_cv_type_u_int64_t=no
17820fi
17821
17822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823fi
17824{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17825echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17826if test $ac_cv_type_u_int64_t = yes; then
John Criswelld672a3d2004-09-02 18:44:44 +000017827
17828cat >>confdefs.h <<_ACEOF
17829#define HAVE_U_INT64_T 1
17830_ACEOF
17831
17832
Misha Brukmancb46e662004-09-02 23:02:30 +000017833else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017834 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17835echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17836 { (exit 1); exit 1; }; }
Misha Brukmancb46e662004-09-02 23:02:30 +000017837fi
17838
John Criswelld672a3d2004-09-02 18:44:44 +000017839fi
17840
Reid Spencer0241e382004-11-25 04:51:04 +000017841
17842
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017843
17844
17845
17846
17847
17848
17849
Reid Spencera609b652006-01-23 08:15:53 +000017850for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017851do
17852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17857else
17858 cat >conftest.$ac_ext <<_ACEOF
17859/* confdefs.h. */
17860_ACEOF
17861cat confdefs.h >>conftest.$ac_ext
17862cat >>conftest.$ac_ext <<_ACEOF
17863/* end confdefs.h. */
17864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17866#define $ac_func innocuous_$ac_func
17867
17868/* System header to define __stub macros and hopefully few prototypes,
17869 which can conflict with char $ac_func (); below.
17870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17871 <limits.h> exists even on freestanding compilers. */
17872
17873#ifdef __STDC__
17874# include <limits.h>
17875#else
17876# include <assert.h>
17877#endif
17878
17879#undef $ac_func
17880
17881/* Override any GCC internal prototype to avoid an error.
17882 Use char because int might match the return type of a GCC
17883 builtin and then its argument prototype would still apply. */
17884#ifdef __cplusplus
17885extern "C"
17886#endif
17887char $ac_func ();
17888/* The GNU C library defines this for functions which it implements
17889 to always fail with ENOSYS. Some functions are actually named
17890 something starting with __ and the normal name is an alias. */
17891#if defined __stub_$ac_func || defined __stub___$ac_func
17892choke me
17893#endif
17894
17895int
17896main ()
17897{
17898return $ac_func ();
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903rm -f conftest.$ac_objext conftest$ac_exeext
17904if { (ac_try="$ac_link"
17905case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908esac
17909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_link") 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17918 { (case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921esac
17922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_try") 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try='test -s conftest$ac_exeext'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 eval "$as_ac_var=yes"
17938else
17939 echo "$as_me: failed program was:" >&5
17940sed 's/^/| /' conftest.$ac_ext >&5
17941
17942 eval "$as_ac_var=no"
17943fi
17944
17945rm -f core conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
17947fi
17948ac_res=`eval echo '${'$as_ac_var'}'`
17949 { echo "$as_me:$LINENO: result: $ac_res" >&5
17950echo "${ECHO_T}$ac_res" >&6; }
17951if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000017952 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000017954_ACEOF
17955
17956fi
Reid Spencer0241e382004-11-25 04:51:04 +000017957done
John Criswell3ef61af2003-06-30 21:59:07 +000017958
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017959
17960
17961
17962
Reid Spencerdf523642007-07-13 10:05:30 +000017963for ac_func in powf fmodf strtof round
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017964do
17965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17966{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17968if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17970else
17971 cat >conftest.$ac_ext <<_ACEOF
17972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
17977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979#define $ac_func innocuous_$ac_func
17980
17981/* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char $ac_func (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17985
17986#ifdef __STDC__
17987# include <limits.h>
17988#else
17989# include <assert.h>
17990#endif
17991
17992#undef $ac_func
17993
17994/* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
17997#ifdef __cplusplus
17998extern "C"
17999#endif
18000char $ac_func ();
18001/* The GNU C library defines this for functions which it implements
18002 to always fail with ENOSYS. Some functions are actually named
18003 something starting with __ and the normal name is an alias. */
18004#if defined __stub_$ac_func || defined __stub___$ac_func
18005choke me
18006#endif
18007
18008int
18009main ()
18010{
18011return $ac_func ();
18012 ;
18013 return 0;
18014}
18015_ACEOF
18016rm -f conftest.$ac_objext conftest$ac_exeext
18017if { (ac_try="$ac_link"
18018case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021esac
18022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034esac
18035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest$ac_exeext'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044esac
18045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 eval "$as_ac_var=yes"
18051else
18052 echo "$as_me: failed program was:" >&5
18053sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 eval "$as_ac_var=no"
18056fi
18057
18058rm -f core conftest.err conftest.$ac_objext \
18059 conftest$ac_exeext conftest.$ac_ext
18060fi
18061ac_res=`eval echo '${'$as_ac_var'}'`
18062 { echo "$as_me:$LINENO: result: $ac_res" >&5
18063echo "${ECHO_T}$ac_res" >&6; }
18064if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf523642007-07-13 10:05:30 +000018065 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf523642007-07-13 10:05:30 +000018067_ACEOF
18068
18069fi
18070done
18071
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018072
18073
18074
18075
18076
Owen Anderson132ae8b2013-02-07 00:21:34 +000018077for ac_func in log log2 log10 exp exp2
18078do
18079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18080{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18082if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18084else
18085 cat >conftest.$ac_ext <<_ACEOF
18086/* confdefs.h. */
18087_ACEOF
18088cat confdefs.h >>conftest.$ac_ext
18089cat >>conftest.$ac_ext <<_ACEOF
18090/* end confdefs.h. */
18091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18093#define $ac_func innocuous_$ac_func
18094
18095/* System header to define __stub macros and hopefully few prototypes,
18096 which can conflict with char $ac_func (); below.
18097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18098 <limits.h> exists even on freestanding compilers. */
18099
18100#ifdef __STDC__
18101# include <limits.h>
18102#else
18103# include <assert.h>
18104#endif
18105
18106#undef $ac_func
18107
18108/* Override any GCC internal prototype to avoid an error.
18109 Use char because int might match the return type of a GCC
18110 builtin and then its argument prototype would still apply. */
18111#ifdef __cplusplus
18112extern "C"
18113#endif
18114char $ac_func ();
18115/* The GNU C library defines this for functions which it implements
18116 to always fail with ENOSYS. Some functions are actually named
18117 something starting with __ and the normal name is an alias. */
18118#if defined __stub_$ac_func || defined __stub___$ac_func
18119choke me
18120#endif
18121
18122int
18123main ()
18124{
18125return $ac_func ();
18126 ;
18127 return 0;
18128}
18129_ACEOF
18130rm -f conftest.$ac_objext conftest$ac_exeext
18131if { (ac_try="$ac_link"
18132case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18135esac
18136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_link") 2>conftest.er1
18138 ac_status=$?
18139 grep -v '^ *+' conftest.er1 >conftest.err
18140 rm -f conftest.er1
18141 cat conftest.err >&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } &&
18144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18145 { (case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18148esac
18149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_try") 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest$ac_exeext'
18155 { (case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18158esac
18159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_try") 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 eval "$as_ac_var=yes"
18165else
18166 echo "$as_me: failed program was:" >&5
18167sed 's/^/| /' conftest.$ac_ext >&5
18168
18169 eval "$as_ac_var=no"
18170fi
18171
18172rm -f core conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
18174fi
18175ac_res=`eval echo '${'$as_ac_var'}'`
18176 { echo "$as_me:$LINENO: result: $ac_res" >&5
18177echo "${ECHO_T}$ac_res" >&6; }
18178if test `eval echo '${'$as_ac_var'}'` = yes; then
18179 cat >>confdefs.h <<_ACEOF
18180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18181_ACEOF
18182
18183fi
18184done
18185
18186
18187
18188
18189
18190
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018191for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018192do
18193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18194{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18196if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18198else
18199 cat >conftest.$ac_ext <<_ACEOF
18200/* confdefs.h. */
18201_ACEOF
18202cat confdefs.h >>conftest.$ac_ext
18203cat >>conftest.$ac_ext <<_ACEOF
18204/* end confdefs.h. */
18205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18207#define $ac_func innocuous_$ac_func
18208
18209/* System header to define __stub macros and hopefully few prototypes,
18210 which can conflict with char $ac_func (); below.
18211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18212 <limits.h> exists even on freestanding compilers. */
18213
18214#ifdef __STDC__
18215# include <limits.h>
18216#else
18217# include <assert.h>
18218#endif
18219
18220#undef $ac_func
18221
18222/* Override any GCC internal prototype to avoid an error.
18223 Use char because int might match the return type of a GCC
18224 builtin and then its argument prototype would still apply. */
18225#ifdef __cplusplus
18226extern "C"
18227#endif
18228char $ac_func ();
18229/* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232#if defined __stub_$ac_func || defined __stub___$ac_func
18233choke me
18234#endif
18235
18236int
18237main ()
18238{
18239return $ac_func ();
18240 ;
18241 return 0;
18242}
18243_ACEOF
18244rm -f conftest.$ac_objext conftest$ac_exeext
18245if { (ac_try="$ac_link"
18246case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
18252 ac_status=$?
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
18258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18272esac
18273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_try") 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 eval "$as_ac_var=yes"
18279else
18280 echo "$as_me: failed program was:" >&5
18281sed 's/^/| /' conftest.$ac_ext >&5
18282
18283 eval "$as_ac_var=no"
18284fi
18285
18286rm -f core conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18288fi
18289ac_res=`eval echo '${'$as_ac_var'}'`
18290 { echo "$as_me:$LINENO: result: $ac_res" >&5
18291echo "${ECHO_T}$ac_res" >&6; }
18292if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018293 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018295_ACEOF
18296
18297fi
18298done
18299
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018300
18301
18302
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018303for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018304do
18305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18306{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18308if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310else
18311 cat >conftest.$ac_ext <<_ACEOF
18312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
18317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18319#define $ac_func innocuous_$ac_func
18320
18321/* System header to define __stub macros and hopefully few prototypes,
18322 which can conflict with char $ac_func (); below.
18323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324 <limits.h> exists even on freestanding compilers. */
18325
18326#ifdef __STDC__
18327# include <limits.h>
18328#else
18329# include <assert.h>
18330#endif
18331
18332#undef $ac_func
18333
18334/* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18337#ifdef __cplusplus
18338extern "C"
18339#endif
18340char $ac_func ();
18341/* The GNU C library defines this for functions which it implements
18342 to always fail with ENOSYS. Some functions are actually named
18343 something starting with __ and the normal name is an alias. */
18344#if defined __stub_$ac_func || defined __stub___$ac_func
18345choke me
18346#endif
18347
18348int
18349main ()
18350{
18351return $ac_func ();
18352 ;
18353 return 0;
18354}
18355_ACEOF
18356rm -f conftest.$ac_objext conftest$ac_exeext
18357if { (ac_try="$ac_link"
18358case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18361esac
18362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_link") 2>conftest.er1
18364 ac_status=$?
18365 grep -v '^ *+' conftest.er1 >conftest.err
18366 rm -f conftest.er1
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18371 { (case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18374esac
18375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_try") 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; } &&
18380 { ac_try='test -s conftest$ac_exeext'
18381 { (case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18384esac
18385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_try") 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 eval "$as_ac_var=yes"
18391else
18392 echo "$as_me: failed program was:" >&5
18393sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 eval "$as_ac_var=no"
18396fi
18397
18398rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400fi
18401ac_res=`eval echo '${'$as_ac_var'}'`
18402 { echo "$as_me:$LINENO: result: $ac_res" >&5
18403echo "${ECHO_T}$ac_res" >&6; }
18404if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera609b652006-01-23 08:15:53 +000018405 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera609b652006-01-23 08:15:53 +000018407_ACEOF
18408
18409fi
18410done
18411
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018412
18413
18414
18415
18416
Eric Christopherdea3bda2010-04-16 05:14:21 +000018417
Eric Christopher30536382013-07-26 17:13:47 +000018418for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018419do
18420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18421{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18423if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18425else
18426 cat >conftest.$ac_ext <<_ACEOF
18427/* confdefs.h. */
18428_ACEOF
18429cat confdefs.h >>conftest.$ac_ext
18430cat >>conftest.$ac_ext <<_ACEOF
18431/* end confdefs.h. */
18432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18434#define $ac_func innocuous_$ac_func
18435
18436/* System header to define __stub macros and hopefully few prototypes,
18437 which can conflict with char $ac_func (); below.
18438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439 <limits.h> exists even on freestanding compilers. */
18440
18441#ifdef __STDC__
18442# include <limits.h>
18443#else
18444# include <assert.h>
18445#endif
18446
18447#undef $ac_func
18448
18449/* Override any GCC internal prototype to avoid an error.
18450 Use char because int might match the return type of a GCC
18451 builtin and then its argument prototype would still apply. */
18452#ifdef __cplusplus
18453extern "C"
18454#endif
18455char $ac_func ();
18456/* The GNU C library defines this for functions which it implements
18457 to always fail with ENOSYS. Some functions are actually named
18458 something starting with __ and the normal name is an alias. */
18459#if defined __stub_$ac_func || defined __stub___$ac_func
18460choke me
18461#endif
18462
18463int
18464main ()
18465{
18466return $ac_func ();
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest.$ac_objext conftest$ac_exeext
18472if { (ac_try="$ac_link"
18473case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18476esac
18477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_link") 2>conftest.er1
18479 ac_status=$?
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486 { (case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18489esac
18490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_try") 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest$ac_exeext'
18496 { (case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499esac
18500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_try") 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 eval "$as_ac_var=yes"
18506else
18507 echo "$as_me: failed program was:" >&5
18508sed 's/^/| /' conftest.$ac_ext >&5
18509
18510 eval "$as_ac_var=no"
18511fi
18512
18513rm -f core conftest.err conftest.$ac_objext \
18514 conftest$ac_exeext conftest.$ac_ext
18515fi
18516ac_res=`eval echo '${'$as_ac_var'}'`
18517 { echo "$as_me:$LINENO: result: $ac_res" >&5
18518echo "${ECHO_T}$ac_res" >&6; }
18519if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000018520 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018521#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000018522_ACEOF
18523
18524fi
18525done
Reid Spencera609b652006-01-23 08:15:53 +000018526
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018527
18528
18529
Todd Fiala4ccfe392014-02-05 05:04:36 +000018530for ac_func in strerror strerror_r setenv
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018531do
18532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18533{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18535if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537else
18538 cat >conftest.$ac_ext <<_ACEOF
18539/* confdefs.h. */
18540_ACEOF
18541cat confdefs.h >>conftest.$ac_ext
18542cat >>conftest.$ac_ext <<_ACEOF
18543/* end confdefs.h. */
18544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18546#define $ac_func innocuous_$ac_func
18547
18548/* System header to define __stub macros and hopefully few prototypes,
18549 which can conflict with char $ac_func (); below.
18550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18551 <limits.h> exists even on freestanding compilers. */
18552
18553#ifdef __STDC__
18554# include <limits.h>
18555#else
18556# include <assert.h>
18557#endif
18558
18559#undef $ac_func
18560
18561/* Override any GCC internal prototype to avoid an error.
18562 Use char because int might match the return type of a GCC
18563 builtin and then its argument prototype would still apply. */
18564#ifdef __cplusplus
18565extern "C"
18566#endif
18567char $ac_func ();
18568/* The GNU C library defines this for functions which it implements
18569 to always fail with ENOSYS. Some functions are actually named
18570 something starting with __ and the normal name is an alias. */
18571#if defined __stub_$ac_func || defined __stub___$ac_func
18572choke me
18573#endif
18574
18575int
18576main ()
18577{
18578return $ac_func ();
18579 ;
18580 return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext conftest$ac_exeext
18584if { (ac_try="$ac_link"
18585case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18588esac
18589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_link") 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601esac
18602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; } &&
18607 { ac_try='test -s conftest$ac_exeext'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18611esac
18612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_try") 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 eval "$as_ac_var=yes"
18618else
18619 echo "$as_me: failed program was:" >&5
18620sed 's/^/| /' conftest.$ac_ext >&5
18621
18622 eval "$as_ac_var=no"
18623fi
18624
18625rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627fi
18628ac_res=`eval echo '${'$as_ac_var'}'`
18629 { echo "$as_me:$LINENO: result: $ac_res" >&5
18630echo "${ECHO_T}$ac_res" >&6; }
18631if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb6681582004-12-27 06:15:02 +000018632 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb6681582004-12-27 06:15:02 +000018634_ACEOF
18635
18636fi
18637done
18638
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018639
18640
18641
18642
Chris Lattner81479022005-11-14 07:25:50 +000018643for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018644do
18645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18646{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18648if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650else
18651 cat >conftest.$ac_ext <<_ACEOF
18652/* confdefs.h. */
18653_ACEOF
18654cat confdefs.h >>conftest.$ac_ext
18655cat >>conftest.$ac_ext <<_ACEOF
18656/* end confdefs.h. */
18657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18659#define $ac_func innocuous_$ac_func
18660
18661/* System header to define __stub macros and hopefully few prototypes,
18662 which can conflict with char $ac_func (); below.
18663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18664 <limits.h> exists even on freestanding compilers. */
18665
18666#ifdef __STDC__
18667# include <limits.h>
18668#else
18669# include <assert.h>
18670#endif
18671
18672#undef $ac_func
18673
18674/* Override any GCC internal prototype to avoid an error.
18675 Use char because int might match the return type of a GCC
18676 builtin and then its argument prototype would still apply. */
18677#ifdef __cplusplus
18678extern "C"
18679#endif
18680char $ac_func ();
18681/* The GNU C library defines this for functions which it implements
18682 to always fail with ENOSYS. Some functions are actually named
18683 something starting with __ and the normal name is an alias. */
18684#if defined __stub_$ac_func || defined __stub___$ac_func
18685choke me
18686#endif
18687
18688int
18689main ()
18690{
18691return $ac_func ();
18692 ;
18693 return 0;
18694}
18695_ACEOF
18696rm -f conftest.$ac_objext conftest$ac_exeext
18697if { (ac_try="$ac_link"
18698case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701esac
18702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_link") 2>conftest.er1
18704 ac_status=$?
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18711 { (case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18714esac
18715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716 (eval "$ac_try") 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest$ac_exeext'
18721 { (case "(($ac_try" in
18722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18724esac
18725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_try") 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
18730 eval "$as_ac_var=yes"
18731else
18732 echo "$as_me: failed program was:" >&5
18733sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 eval "$as_ac_var=no"
18736fi
18737
18738rm -f core conftest.err conftest.$ac_objext \
18739 conftest$ac_exeext conftest.$ac_ext
18740fi
18741ac_res=`eval echo '${'$as_ac_var'}'`
18742 { echo "$as_me:$LINENO: result: $ac_res" >&5
18743echo "${ECHO_T}$ac_res" >&6; }
18744if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000018745 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018747_ACEOF
18748
18749fi
Reid Spencer0241e382004-11-25 04:51:04 +000018750done
John Criswell3ef61af2003-06-30 21:59:07 +000018751
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018752
18753
18754
18755
Daniel Dunbar7840c542011-02-03 02:40:02 +000018756
18757for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018758do
18759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18764else
18765 cat >conftest.$ac_ext <<_ACEOF
18766/* confdefs.h. */
18767_ACEOF
18768cat confdefs.h >>conftest.$ac_ext
18769cat >>conftest.$ac_ext <<_ACEOF
18770/* end confdefs.h. */
18771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18773#define $ac_func innocuous_$ac_func
18774
18775/* System header to define __stub macros and hopefully few prototypes,
18776 which can conflict with char $ac_func (); below.
18777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778 <limits.h> exists even on freestanding compilers. */
18779
18780#ifdef __STDC__
18781# include <limits.h>
18782#else
18783# include <assert.h>
18784#endif
18785
18786#undef $ac_func
18787
18788/* Override any GCC internal prototype to avoid an error.
18789 Use char because int might match the return type of a GCC
18790 builtin and then its argument prototype would still apply. */
18791#ifdef __cplusplus
18792extern "C"
18793#endif
18794char $ac_func ();
18795/* The GNU C library defines this for functions which it implements
18796 to always fail with ENOSYS. Some functions are actually named
18797 something starting with __ and the normal name is an alias. */
18798#if defined __stub_$ac_func || defined __stub___$ac_func
18799choke me
18800#endif
18801
18802int
18803main ()
18804{
18805return $ac_func ();
18806 ;
18807 return 0;
18808}
18809_ACEOF
18810rm -f conftest.$ac_objext conftest$ac_exeext
18811if { (ac_try="$ac_link"
18812case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815esac
18816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_link") 2>conftest.er1
18818 ac_status=$?
18819 grep -v '^ *+' conftest.er1 >conftest.err
18820 rm -f conftest.er1
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828esac
18829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest$ac_exeext'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838esac
18839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 eval "$as_ac_var=yes"
18845else
18846 echo "$as_me: failed program was:" >&5
18847sed 's/^/| /' conftest.$ac_ext >&5
18848
18849 eval "$as_ac_var=no"
18850fi
18851
18852rm -f core conftest.err conftest.$ac_objext \
18853 conftest$ac_exeext conftest.$ac_ext
18854fi
18855ac_res=`eval echo '${'$as_ac_var'}'`
18856 { echo "$as_me:$LINENO: result: $ac_res" >&5
18857echo "${ECHO_T}$ac_res" >&6; }
18858if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera31ac4e2006-06-05 16:11:07 +000018859 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera31ac4e2006-06-05 16:11:07 +000018861_ACEOF
18862
18863fi
18864done
18865
Eric Christophera24dc7f2013-07-04 01:10:38 +000018866
18867
18868for ac_func in futimes futimens
18869do
18870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18875else
18876 cat >conftest.$ac_ext <<_ACEOF
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
18882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18884#define $ac_func innocuous_$ac_func
18885
18886/* System header to define __stub macros and hopefully few prototypes,
18887 which can conflict with char $ac_func (); below.
18888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18889 <limits.h> exists even on freestanding compilers. */
18890
18891#ifdef __STDC__
18892# include <limits.h>
18893#else
18894# include <assert.h>
18895#endif
18896
18897#undef $ac_func
18898
18899/* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18902#ifdef __cplusplus
18903extern "C"
18904#endif
18905char $ac_func ();
18906/* The GNU C library defines this for functions which it implements
18907 to always fail with ENOSYS. Some functions are actually named
18908 something starting with __ and the normal name is an alias. */
18909#if defined __stub_$ac_func || defined __stub___$ac_func
18910choke me
18911#endif
18912
18913int
18914main ()
18915{
18916return $ac_func ();
18917 ;
18918 return 0;
18919}
18920_ACEOF
18921rm -f conftest.$ac_objext conftest$ac_exeext
18922if { (ac_try="$ac_link"
18923case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926esac
18927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_link") 2>conftest.er1
18929 ac_status=$?
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939esac
18940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } &&
18945 { ac_try='test -s conftest$ac_exeext'
18946 { (case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18949esac
18950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_try") 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 eval "$as_ac_var=yes"
18956else
18957 echo "$as_me: failed program was:" >&5
18958sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 eval "$as_ac_var=no"
18961fi
18962
18963rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965fi
18966ac_res=`eval echo '${'$as_ac_var'}'`
18967 { echo "$as_me:$LINENO: result: $ac_res" >&5
18968echo "${ECHO_T}$ac_res" >&6; }
18969if test `eval echo '${'$as_ac_var'}'` = yes; then
18970 cat >>confdefs.h <<_ACEOF
18971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18972_ACEOF
18973
18974fi
18975done
18976
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018977{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18978echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18979if test "${llvm_cv_c_printf_a+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000018981else
Reid Spencerf184a862004-09-19 23:53:36 +000018982 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000018983ac_cpp='$CPP $CPPFLAGS'
18984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986ac_compiler_gnu=$ac_cv_c_compiler_gnu
18987
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018988 if test "$cross_compiling" = yes; then
Reid Spencer8de46052004-11-27 22:01:43 +000018989 llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000018990else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018991 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerf184a862004-09-19 23:53:36 +000018992
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018993 /* confdefs.h. */
18994_ACEOF
18995cat confdefs.h >>conftest.$ac_ext
18996cat >>conftest.$ac_ext <<_ACEOF
18997/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000018998
John Criswell42859552003-10-13 16:22:01 +000018999#include <stdio.h>
Reid Spencerf184a862004-09-19 23:53:36 +000019000#include <stdlib.h>
19001
John Criswell42859552003-10-13 16:22:01 +000019002int
19003main ()
19004{
19005
Reid Spencerf184a862004-09-19 23:53:36 +000019006volatile double A, B;
19007char Buffer[100];
19008A = 1;
19009A /= 10.0;
19010sprintf(Buffer, "%a", A);
19011B = atof(Buffer);
19012if (A != B)
19013 return (1);
19014if (A != 0x1.999999999999ap-4)
19015 return (1);
19016return (0);
John Criswell42859552003-10-13 16:22:01 +000019017 ;
19018 return 0;
19019}
19020_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019021rm -f conftest$ac_exeext
19022if { (ac_try="$ac_link"
19023case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19026esac
19027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_link") 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19032 { (case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19035esac
19036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_try") 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
Reid Spencer8de46052004-11-27 22:01:43 +000019041 llvm_cv_c_printf_a=yes
John Criswell42859552003-10-13 16:22:01 +000019042else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019043 echo "$as_me: program exited with status $ac_status" >&5
19044echo "$as_me: failed program was:" >&5
19045sed 's/^/| /' conftest.$ac_ext >&5
19046
19047( exit $ac_status )
19048llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000019049fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell42859552003-10-13 16:22:01 +000019051fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019052
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019053
Reid Spencerf184a862004-09-19 23:53:36 +000019054 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000019055ac_cpp='$CPP $CPPFLAGS'
19056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058ac_compiler_gnu=$ac_cv_c_compiler_gnu
19059
Reid Spencer0241e382004-11-25 04:51:04 +000019060fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019061{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19062echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer8de46052004-11-27 22:01:43 +000019063 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswell42859552003-10-13 16:22:01 +000019064
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019065cat >>confdefs.h <<\_ACEOF
19066#define HAVE_PRINTF_A 1
19067_ACEOF
John Criswell42859552003-10-13 16:22:01 +000019068
Reid Spencerf184a862004-09-19 23:53:36 +000019069 fi
John Criswell42859552003-10-13 16:22:01 +000019070
Reid Spencer0241e382004-11-25 04:51:04 +000019071
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019072
19073 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019074echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19075if test "${ac_cv_func_rand48+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000019077else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019078
19079 ac_ext=cpp
Reid Spencer0241e382004-11-25 04:51:04 +000019080ac_cpp='$CXXCPP $CPPFLAGS'
19081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19084
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019085 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019086/* confdefs.h. */
19087_ACEOF
19088cat confdefs.h >>conftest.$ac_ext
19089cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000019090/* end confdefs.h. */
19091#include <stdlib.h>
19092int
19093main ()
19094{
19095srand48(0);lrand48();drand48();
19096 ;
19097 return 0;
19098}
19099_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019100rm -f conftest.$ac_objext
19101if { (ac_try="$ac_compile"
19102case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19105esac
19106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_compile") 2>conftest.er1
19108 ac_status=$?
19109 grep -v '^ *+' conftest.er1 >conftest.err
19110 rm -f conftest.er1
19111 cat conftest.err >&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19115 { (case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19118esac
19119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_try") 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try='test -s conftest.$ac_objext'
19125 { (case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19128esac
19129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_try") 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000019134 ac_cv_func_rand48=yes
19135else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019136 echo "$as_me: failed program was:" >&5
19137sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 ac_cv_func_rand48=no
Reid Spencer0241e382004-11-25 04:51:04 +000019140fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019141
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019143 ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +000019144ac_cpp='$CPP $CPPFLAGS'
19145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147ac_compiler_gnu=$ac_cv_c_compiler_gnu
19148
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019149
Reid Spencer0241e382004-11-25 04:51:04 +000019150fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019151{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19152echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000019153
19154if test "$ac_cv_func_rand48" = "yes" ; then
19155
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019156cat >>confdefs.h <<\_ACEOF
19157#define HAVE_RAND48 1
19158_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000019159
19160fi
John Criswell3b4195f32004-02-13 21:57:29 +000019161
19162
Todd Fiala4ccfe392014-02-05 05:04:36 +000019163{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
19164echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
19165if test "${ac_cv_have_decl_arc4random+set}" = set; then
19166 echo $ECHO_N "(cached) $ECHO_C" >&6
19167else
19168 cat >conftest.$ac_ext <<_ACEOF
19169/* confdefs.h. */
19170_ACEOF
19171cat confdefs.h >>conftest.$ac_ext
19172cat >>conftest.$ac_ext <<_ACEOF
19173/* end confdefs.h. */
19174$ac_includes_default
19175int
19176main ()
19177{
19178#ifndef arc4random
19179 char *p = (char *) arc4random;
19180 return !p;
19181#endif
19182
19183 ;
19184 return 0;
19185}
19186_ACEOF
19187rm -f conftest.$ac_objext
19188if { (ac_try="$ac_compile"
19189case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_compile") 2>conftest.er1
19195 ac_status=$?
19196 grep -v '^ *+' conftest.er1 >conftest.err
19197 rm -f conftest.er1
19198 cat conftest.err >&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
19201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19202 { (case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19205esac
19206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_try") 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest.$ac_objext'
19212 { (case "(($ac_try" in
19213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214 *) ac_try_echo=$ac_try;;
19215esac
19216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217 (eval "$ac_try") 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_have_decl_arc4random=yes
19222else
19223 echo "$as_me: failed program was:" >&5
19224sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 ac_cv_have_decl_arc4random=no
19227fi
19228
19229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230fi
19231{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
19232echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
19233if test $ac_cv_have_decl_arc4random = yes; then
19234
19235cat >>confdefs.h <<_ACEOF
19236#define HAVE_DECL_ARC4RANDOM 1
19237_ACEOF
19238
19239
19240else
19241 cat >>confdefs.h <<_ACEOF
19242#define HAVE_DECL_ARC4RANDOM 0
19243_ACEOF
19244
19245
19246fi
19247
19248
19249
NAKAMURA Takumi189111802011-02-09 04:18:48 +000019250{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19251echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19252if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19254else
19255 cat >conftest.$ac_ext <<_ACEOF
19256/* confdefs.h. */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
19260/* end confdefs.h. */
19261$ac_includes_default
19262int
19263main ()
19264{
19265#ifndef strerror_s
19266 char *p = (char *) strerror_s;
19267 return !p;
19268#endif
19269
19270 ;
19271 return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (ac_try="$ac_compile"
19276case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279esac
19280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_compile") 2>conftest.er1
19282 ac_status=$?
19283 grep -v '^ *+' conftest.er1 >conftest.err
19284 rm -f conftest.er1
19285 cat conftest.err >&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } &&
19288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292esac
19293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest.$ac_objext'
19299 { (case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19302esac
19303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_try") 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 ac_cv_have_decl_strerror_s=yes
19309else
19310 echo "$as_me: failed program was:" >&5
19311sed 's/^/| /' conftest.$ac_ext >&5
19312
19313 ac_cv_have_decl_strerror_s=no
19314fi
19315
19316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317fi
19318{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19319echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19320if test $ac_cv_have_decl_strerror_s = yes; then
19321
19322cat >>confdefs.h <<_ACEOF
19323#define HAVE_DECL_STRERROR_S 1
19324_ACEOF
19325
19326
19327else
19328 cat >>confdefs.h <<_ACEOF
19329#define HAVE_DECL_STRERROR_S 0
19330_ACEOF
19331
19332
19333fi
19334
19335
19336
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000019337if test "$llvm_cv_os_type" = "MingW" ; then
19338 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19339echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19340if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19342else
19343 ac_check_lib_save_LIBS=$LIBS
19344LIBS="-lgcc $LIBS"
19345cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h. */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h. */
19351
19352/* Override any GCC internal prototype to avoid an error.
19353 Use char because int might match the return type of a GCC
19354 builtin and then its argument prototype would still apply. */
19355#ifdef __cplusplus
19356extern "C"
19357#endif
19358char _alloca ();
19359int
19360main ()
19361{
19362return _alloca ();
19363 ;
19364 return 0;
19365}
19366_ACEOF
19367rm -f conftest.$ac_objext conftest$ac_exeext
19368if { (ac_try="$ac_link"
19369case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19372esac
19373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_link") 2>conftest.er1
19375 ac_status=$?
19376 grep -v '^ *+' conftest.er1 >conftest.err
19377 rm -f conftest.er1
19378 cat conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } &&
19381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19382 { (case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19385esac
19386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_try") 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } &&
19391 { ac_try='test -s conftest$ac_exeext'
19392 { (case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19395esac
19396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_try") 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_cv_lib_gcc__alloca=yes
19402else
19403 echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
19406 ac_cv_lib_gcc__alloca=no
19407fi
19408
19409rm -f core conftest.err conftest.$ac_objext \
19410 conftest$ac_exeext conftest.$ac_ext
19411LIBS=$ac_check_lib_save_LIBS
19412fi
19413{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19414echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19415if test $ac_cv_lib_gcc__alloca = yes; then
19416
19417cat >>confdefs.h <<\_ACEOF
19418#define HAVE__ALLOCA 1
19419_ACEOF
19420
19421fi
19422
19423 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19424echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19425if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19427else
19428 ac_check_lib_save_LIBS=$LIBS
19429LIBS="-lgcc $LIBS"
19430cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
19436
19437/* Override any GCC internal prototype to avoid an error.
19438 Use char because int might match the return type of a GCC
19439 builtin and then its argument prototype would still apply. */
19440#ifdef __cplusplus
19441extern "C"
19442#endif
19443char __alloca ();
19444int
19445main ()
19446{
19447return __alloca ();
19448 ;
19449 return 0;
19450}
19451_ACEOF
19452rm -f conftest.$ac_objext conftest$ac_exeext
19453if { (ac_try="$ac_link"
19454case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457esac
19458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_link") 2>conftest.er1
19460 ac_status=$?
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19470esac
19471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest$ac_exeext'
19477 { (case "(($ac_try" in
19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479 *) ac_try_echo=$ac_try;;
19480esac
19481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482 (eval "$ac_try") 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486 ac_cv_lib_gcc___alloca=yes
19487else
19488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 ac_cv_lib_gcc___alloca=no
19492fi
19493
19494rm -f core conftest.err conftest.$ac_objext \
19495 conftest$ac_exeext conftest.$ac_ext
19496LIBS=$ac_check_lib_save_LIBS
19497fi
19498{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19499echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19500if test $ac_cv_lib_gcc___alloca = yes; then
19501
19502cat >>confdefs.h <<\_ACEOF
19503#define HAVE___ALLOCA 1
19504_ACEOF
19505
19506fi
19507
19508 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19509echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19510if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512else
19513 ac_check_lib_save_LIBS=$LIBS
19514LIBS="-lgcc $LIBS"
19515cat >conftest.$ac_ext <<_ACEOF
19516/* confdefs.h. */
19517_ACEOF
19518cat confdefs.h >>conftest.$ac_ext
19519cat >>conftest.$ac_ext <<_ACEOF
19520/* end confdefs.h. */
19521
19522/* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19525#ifdef __cplusplus
19526extern "C"
19527#endif
19528char __chkstk ();
19529int
19530main ()
19531{
19532return __chkstk ();
19533 ;
19534 return 0;
19535}
19536_ACEOF
19537rm -f conftest.$ac_objext conftest$ac_exeext
19538if { (ac_try="$ac_link"
19539case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542esac
19543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19552 { (case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555esac
19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_try") 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest$ac_exeext'
19562 { (case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19565esac
19566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_try") 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_lib_gcc___chkstk=yes
19572else
19573 echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 ac_cv_lib_gcc___chkstk=no
19577fi
19578
19579rm -f core conftest.err conftest.$ac_objext \
19580 conftest$ac_exeext conftest.$ac_ext
19581LIBS=$ac_check_lib_save_LIBS
19582fi
19583{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19584echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19585if test $ac_cv_lib_gcc___chkstk = yes; then
19586
19587cat >>confdefs.h <<\_ACEOF
19588#define HAVE___CHKSTK 1
19589_ACEOF
19590
19591fi
19592
19593 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19594echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19595if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597else
19598 ac_check_lib_save_LIBS=$LIBS
19599LIBS="-lgcc $LIBS"
19600cat >conftest.$ac_ext <<_ACEOF
19601/* confdefs.h. */
19602_ACEOF
19603cat confdefs.h >>conftest.$ac_ext
19604cat >>conftest.$ac_ext <<_ACEOF
19605/* end confdefs.h. */
19606
19607/* Override any GCC internal prototype to avoid an error.
19608 Use char because int might match the return type of a GCC
19609 builtin and then its argument prototype would still apply. */
19610#ifdef __cplusplus
19611extern "C"
19612#endif
19613char ___chkstk ();
19614int
19615main ()
19616{
19617return ___chkstk ();
19618 ;
19619 return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext conftest$ac_exeext
19623if { (ac_try="$ac_link"
19624case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19637 { (case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19640esac
19641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_try") 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest$ac_exeext'
19647 { (case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19650esac
19651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_try") 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_cv_lib_gcc____chkstk=yes
19657else
19658 echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ac_cv_lib_gcc____chkstk=no
19662fi
19663
19664rm -f core conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19666LIBS=$ac_check_lib_save_LIBS
19667fi
19668{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19669echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19670if test $ac_cv_lib_gcc____chkstk = yes; then
19671
19672cat >>confdefs.h <<\_ACEOF
19673#define HAVE____CHKSTK 1
19674_ACEOF
19675
19676fi
19677
19678
19679 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19680echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19681if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19683else
19684 ac_check_lib_save_LIBS=$LIBS
19685LIBS="-lgcc $LIBS"
19686cat >conftest.$ac_ext <<_ACEOF
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692
19693/* Override any GCC internal prototype to avoid an error.
19694 Use char because int might match the return type of a GCC
19695 builtin and then its argument prototype would still apply. */
19696#ifdef __cplusplus
19697extern "C"
19698#endif
19699char __ashldi3 ();
19700int
19701main ()
19702{
19703return __ashldi3 ();
19704 ;
19705 return 0;
19706}
19707_ACEOF
19708rm -f conftest.$ac_objext conftest$ac_exeext
19709if { (ac_try="$ac_link"
19710case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713esac
19714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_link") 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19723 { (case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726esac
19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_try") 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest$ac_exeext'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736esac
19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_cv_lib_gcc___ashldi3=yes
19743else
19744 echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_cv_lib_gcc___ashldi3=no
19748fi
19749
19750rm -f core conftest.err conftest.$ac_objext \
19751 conftest$ac_exeext conftest.$ac_ext
19752LIBS=$ac_check_lib_save_LIBS
19753fi
19754{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19755echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19756if test $ac_cv_lib_gcc___ashldi3 = yes; then
19757
19758cat >>confdefs.h <<\_ACEOF
19759#define HAVE___ASHLDI3 1
19760_ACEOF
19761
19762fi
19763
19764 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19765echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19766if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19768else
19769 ac_check_lib_save_LIBS=$LIBS
19770LIBS="-lgcc $LIBS"
19771cat >conftest.$ac_ext <<_ACEOF
19772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
19777
19778/* Override any GCC internal prototype to avoid an error.
19779 Use char because int might match the return type of a GCC
19780 builtin and then its argument prototype would still apply. */
19781#ifdef __cplusplus
19782extern "C"
19783#endif
19784char __ashrdi3 ();
19785int
19786main ()
19787{
19788return __ashrdi3 ();
19789 ;
19790 return 0;
19791}
19792_ACEOF
19793rm -f conftest.$ac_objext conftest$ac_exeext
19794if { (ac_try="$ac_link"
19795case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19798esac
19799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_link") 2>conftest.er1
19801 ac_status=$?
19802 grep -v '^ *+' conftest.er1 >conftest.err
19803 rm -f conftest.er1
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19808 { (case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811esac
19812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_try") 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest$ac_exeext'
19818 { (case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821esac
19822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_try") 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_lib_gcc___ashrdi3=yes
19828else
19829 echo "$as_me: failed program was:" >&5
19830sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 ac_cv_lib_gcc___ashrdi3=no
19833fi
19834
19835rm -f core conftest.err conftest.$ac_objext \
19836 conftest$ac_exeext conftest.$ac_ext
19837LIBS=$ac_check_lib_save_LIBS
19838fi
19839{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19840echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19841if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19842
19843cat >>confdefs.h <<\_ACEOF
19844#define HAVE___ASHRDI3 1
19845_ACEOF
19846
19847fi
19848
19849 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19850echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19851if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854 ac_check_lib_save_LIBS=$LIBS
19855LIBS="-lgcc $LIBS"
19856cat >conftest.$ac_ext <<_ACEOF
19857/* confdefs.h. */
19858_ACEOF
19859cat confdefs.h >>conftest.$ac_ext
19860cat >>conftest.$ac_ext <<_ACEOF
19861/* end confdefs.h. */
19862
19863/* Override any GCC internal prototype to avoid an error.
19864 Use char because int might match the return type of a GCC
19865 builtin and then its argument prototype would still apply. */
19866#ifdef __cplusplus
19867extern "C"
19868#endif
19869char __divdi3 ();
19870int
19871main ()
19872{
19873return __divdi3 ();
19874 ;
19875 return 0;
19876}
19877_ACEOF
19878rm -f conftest.$ac_objext conftest$ac_exeext
19879if { (ac_try="$ac_link"
19880case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883esac
19884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_link") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest$ac_exeext'
19903 { (case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_try") 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
19912 ac_cv_lib_gcc___divdi3=yes
19913else
19914 echo "$as_me: failed program was:" >&5
19915sed 's/^/| /' conftest.$ac_ext >&5
19916
19917 ac_cv_lib_gcc___divdi3=no
19918fi
19919
19920rm -f core conftest.err conftest.$ac_objext \
19921 conftest$ac_exeext conftest.$ac_ext
19922LIBS=$ac_check_lib_save_LIBS
19923fi
19924{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19925echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19926if test $ac_cv_lib_gcc___divdi3 = yes; then
19927
19928cat >>confdefs.h <<\_ACEOF
19929#define HAVE___DIVDI3 1
19930_ACEOF
19931
19932fi
19933
19934 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19935echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19936if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19938else
19939 ac_check_lib_save_LIBS=$LIBS
19940LIBS="-lgcc $LIBS"
19941cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h. */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h. */
19947
19948/* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19951#ifdef __cplusplus
19952extern "C"
19953#endif
19954char __fixdfdi ();
19955int
19956main ()
19957{
19958return __fixdfdi ();
19959 ;
19960 return 0;
19961}
19962_ACEOF
19963rm -f conftest.$ac_objext conftest$ac_exeext
19964if { (ac_try="$ac_link"
19965case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968esac
19969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19978 { (case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981esac
19982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_try") 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest$ac_exeext'
19988 { (case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991esac
19992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_cv_lib_gcc___fixdfdi=yes
19998else
19999 echo "$as_me: failed program was:" >&5
20000sed 's/^/| /' conftest.$ac_ext >&5
20001
20002 ac_cv_lib_gcc___fixdfdi=no
20003fi
20004
20005rm -f core conftest.err conftest.$ac_objext \
20006 conftest$ac_exeext conftest.$ac_ext
20007LIBS=$ac_check_lib_save_LIBS
20008fi
20009{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20010echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20011if test $ac_cv_lib_gcc___fixdfdi = yes; then
20012
20013cat >>confdefs.h <<\_ACEOF
20014#define HAVE___FIXDFDI 1
20015_ACEOF
20016
20017fi
20018
20019 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20020echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20021if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024 ac_check_lib_save_LIBS=$LIBS
20025LIBS="-lgcc $LIBS"
20026cat >conftest.$ac_ext <<_ACEOF
20027/* confdefs.h. */
20028_ACEOF
20029cat confdefs.h >>conftest.$ac_ext
20030cat >>conftest.$ac_ext <<_ACEOF
20031/* end confdefs.h. */
20032
20033/* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20036#ifdef __cplusplus
20037extern "C"
20038#endif
20039char __fixsfdi ();
20040int
20041main ()
20042{
20043return __fixsfdi ();
20044 ;
20045 return 0;
20046}
20047_ACEOF
20048rm -f conftest.$ac_objext conftest$ac_exeext
20049if { (ac_try="$ac_link"
20050case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053esac
20054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_link") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } &&
20062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20063 { (case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20066esac
20067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_try") 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; } &&
20072 { ac_try='test -s conftest$ac_exeext'
20073 { (case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20076esac
20077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_try") 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_cv_lib_gcc___fixsfdi=yes
20083else
20084 echo "$as_me: failed program was:" >&5
20085sed 's/^/| /' conftest.$ac_ext >&5
20086
20087 ac_cv_lib_gcc___fixsfdi=no
20088fi
20089
20090rm -f core conftest.err conftest.$ac_objext \
20091 conftest$ac_exeext conftest.$ac_ext
20092LIBS=$ac_check_lib_save_LIBS
20093fi
20094{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20095echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20096if test $ac_cv_lib_gcc___fixsfdi = yes; then
20097
20098cat >>confdefs.h <<\_ACEOF
20099#define HAVE___FIXSFDI 1
20100_ACEOF
20101
20102fi
20103
20104 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20105echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20106if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108else
20109 ac_check_lib_save_LIBS=$LIBS
20110LIBS="-lgcc $LIBS"
20111cat >conftest.$ac_ext <<_ACEOF
20112/* confdefs.h. */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h. */
20117
20118/* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20121#ifdef __cplusplus
20122extern "C"
20123#endif
20124char __floatdidf ();
20125int
20126main ()
20127{
20128return __floatdidf ();
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext conftest$ac_exeext
20134if { (ac_try="$ac_link"
20135case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138esac
20139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_link") 2>conftest.er1
20141 ac_status=$?
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
20147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151esac
20152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20161esac
20162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_cv_lib_gcc___floatdidf=yes
20168else
20169 echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_cv_lib_gcc___floatdidf=no
20173fi
20174
20175rm -f core conftest.err conftest.$ac_objext \
20176 conftest$ac_exeext conftest.$ac_ext
20177LIBS=$ac_check_lib_save_LIBS
20178fi
20179{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20180echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20181if test $ac_cv_lib_gcc___floatdidf = yes; then
20182
20183cat >>confdefs.h <<\_ACEOF
20184#define HAVE___FLOATDIDF 1
20185_ACEOF
20186
20187fi
20188
20189 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20190echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20191if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193else
20194 ac_check_lib_save_LIBS=$LIBS
20195LIBS="-lgcc $LIBS"
20196cat >conftest.$ac_ext <<_ACEOF
20197/* confdefs.h. */
20198_ACEOF
20199cat confdefs.h >>conftest.$ac_ext
20200cat >>conftest.$ac_ext <<_ACEOF
20201/* end confdefs.h. */
20202
20203/* Override any GCC internal prototype to avoid an error.
20204 Use char because int might match the return type of a GCC
20205 builtin and then its argument prototype would still apply. */
20206#ifdef __cplusplus
20207extern "C"
20208#endif
20209char __lshrdi3 ();
20210int
20211main ()
20212{
20213return __lshrdi3 ();
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext conftest$ac_exeext
20219if { (ac_try="$ac_link"
20220case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223esac
20224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_link") 2>conftest.er1
20226 ac_status=$?
20227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } &&
20232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20233 { (case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20236esac
20237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_try") 2>&5
20239 ac_status=$?
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; } &&
20242 { ac_try='test -s conftest$ac_exeext'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246esac
20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_lib_gcc___lshrdi3=yes
20253else
20254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 ac_cv_lib_gcc___lshrdi3=no
20258fi
20259
20260rm -f core conftest.err conftest.$ac_objext \
20261 conftest$ac_exeext conftest.$ac_ext
20262LIBS=$ac_check_lib_save_LIBS
20263fi
20264{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20265echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20266if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20267
20268cat >>confdefs.h <<\_ACEOF
20269#define HAVE___LSHRDI3 1
20270_ACEOF
20271
20272fi
20273
20274 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20275echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20276if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278else
20279 ac_check_lib_save_LIBS=$LIBS
20280LIBS="-lgcc $LIBS"
20281cat >conftest.$ac_ext <<_ACEOF
20282/* confdefs.h. */
20283_ACEOF
20284cat confdefs.h >>conftest.$ac_ext
20285cat >>conftest.$ac_ext <<_ACEOF
20286/* end confdefs.h. */
20287
20288/* Override any GCC internal prototype to avoid an error.
20289 Use char because int might match the return type of a GCC
20290 builtin and then its argument prototype would still apply. */
20291#ifdef __cplusplus
20292extern "C"
20293#endif
20294char __moddi3 ();
20295int
20296main ()
20297{
20298return __moddi3 ();
20299 ;
20300 return 0;
20301}
20302_ACEOF
20303rm -f conftest.$ac_objext conftest$ac_exeext
20304if { (ac_try="$ac_link"
20305case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20308esac
20309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20318 { (case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20321esac
20322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_try") 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try='test -s conftest$ac_exeext'
20328 { (case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20331esac
20332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_try") 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 ac_cv_lib_gcc___moddi3=yes
20338else
20339 echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 ac_cv_lib_gcc___moddi3=no
20343fi
20344
20345rm -f core conftest.err conftest.$ac_objext \
20346 conftest$ac_exeext conftest.$ac_ext
20347LIBS=$ac_check_lib_save_LIBS
20348fi
20349{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20350echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20351if test $ac_cv_lib_gcc___moddi3 = yes; then
20352
20353cat >>confdefs.h <<\_ACEOF
20354#define HAVE___MODDI3 1
20355_ACEOF
20356
20357fi
20358
20359 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20360echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20361if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363else
20364 ac_check_lib_save_LIBS=$LIBS
20365LIBS="-lgcc $LIBS"
20366cat >conftest.$ac_ext <<_ACEOF
20367/* confdefs.h. */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h. */
20372
20373/* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20376#ifdef __cplusplus
20377extern "C"
20378#endif
20379char __udivdi3 ();
20380int
20381main ()
20382{
20383return __udivdi3 ();
20384 ;
20385 return 0;
20386}
20387_ACEOF
20388rm -f conftest.$ac_objext conftest$ac_exeext
20389if { (ac_try="$ac_link"
20390case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393esac
20394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_link") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
20402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20403 { (case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406esac
20407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_try") 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; } &&
20412 { ac_try='test -s conftest$ac_exeext'
20413 { (case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20416esac
20417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_try") 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_cv_lib_gcc___udivdi3=yes
20423else
20424 echo "$as_me: failed program was:" >&5
20425sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ac_cv_lib_gcc___udivdi3=no
20428fi
20429
20430rm -f core conftest.err conftest.$ac_objext \
20431 conftest$ac_exeext conftest.$ac_ext
20432LIBS=$ac_check_lib_save_LIBS
20433fi
20434{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20435echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20436if test $ac_cv_lib_gcc___udivdi3 = yes; then
20437
20438cat >>confdefs.h <<\_ACEOF
20439#define HAVE___UDIVDI3 1
20440_ACEOF
20441
20442fi
20443
20444 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20445echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20446if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448else
20449 ac_check_lib_save_LIBS=$LIBS
20450LIBS="-lgcc $LIBS"
20451cat >conftest.$ac_ext <<_ACEOF
20452/* confdefs.h. */
20453_ACEOF
20454cat confdefs.h >>conftest.$ac_ext
20455cat >>conftest.$ac_ext <<_ACEOF
20456/* end confdefs.h. */
20457
20458/* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20461#ifdef __cplusplus
20462extern "C"
20463#endif
20464char __umoddi3 ();
20465int
20466main ()
20467{
20468return __umoddi3 ();
20469 ;
20470 return 0;
20471}
20472_ACEOF
20473rm -f conftest.$ac_objext conftest$ac_exeext
20474if { (ac_try="$ac_link"
20475case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478esac
20479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_link") 2>conftest.er1
20481 ac_status=$?
20482 grep -v '^ *+' conftest.er1 >conftest.err
20483 rm -f conftest.er1
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488 { (case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491esac
20492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_try") 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest$ac_exeext'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20501esac
20502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_lib_gcc___umoddi3=yes
20508else
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_cv_lib_gcc___umoddi3=no
20513fi
20514
20515rm -f core conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext conftest.$ac_ext
20517LIBS=$ac_check_lib_save_LIBS
20518fi
20519{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20520echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20521if test $ac_cv_lib_gcc___umoddi3 = yes; then
20522
20523cat >>confdefs.h <<\_ACEOF
20524#define HAVE___UMODDI3 1
20525_ACEOF
20526
20527fi
20528
20529
20530 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20531echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20532if test "${ac_cv_lib_gcc___main+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534else
20535 ac_check_lib_save_LIBS=$LIBS
20536LIBS="-lgcc $LIBS"
20537cat >conftest.$ac_ext <<_ACEOF
20538/* confdefs.h. */
20539_ACEOF
20540cat confdefs.h >>conftest.$ac_ext
20541cat >>conftest.$ac_ext <<_ACEOF
20542/* end confdefs.h. */
20543
20544/* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20547#ifdef __cplusplus
20548extern "C"
20549#endif
20550char __main ();
20551int
20552main ()
20553{
20554return __main ();
20555 ;
20556 return 0;
20557}
20558_ACEOF
20559rm -f conftest.$ac_objext conftest$ac_exeext
20560if { (ac_try="$ac_link"
20561case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564esac
20565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20574 { (case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20577esac
20578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_try") 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; } &&
20583 { ac_try='test -s conftest$ac_exeext'
20584 { (case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587esac
20588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_try") 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; }; then
20593 ac_cv_lib_gcc___main=yes
20594else
20595 echo "$as_me: failed program was:" >&5
20596sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 ac_cv_lib_gcc___main=no
20599fi
20600
20601rm -f core conftest.err conftest.$ac_objext \
20602 conftest$ac_exeext conftest.$ac_ext
20603LIBS=$ac_check_lib_save_LIBS
20604fi
20605{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20606echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20607if test $ac_cv_lib_gcc___main = yes; then
20608
20609cat >>confdefs.h <<\_ACEOF
20610#define HAVE___MAIN 1
20611_ACEOF
20612
20613fi
20614
20615 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20616echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20617if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619else
20620 ac_check_lib_save_LIBS=$LIBS
20621LIBS="-lgcc $LIBS"
20622cat >conftest.$ac_ext <<_ACEOF
20623/* confdefs.h. */
20624_ACEOF
20625cat confdefs.h >>conftest.$ac_ext
20626cat >>conftest.$ac_ext <<_ACEOF
20627/* end confdefs.h. */
20628
20629/* Override any GCC internal prototype to avoid an error.
20630 Use char because int might match the return type of a GCC
20631 builtin and then its argument prototype would still apply. */
20632#ifdef __cplusplus
20633extern "C"
20634#endif
20635char __cmpdi2 ();
20636int
20637main ()
20638{
20639return __cmpdi2 ();
20640 ;
20641 return 0;
20642}
20643_ACEOF
20644rm -f conftest.$ac_objext conftest$ac_exeext
20645if { (ac_try="$ac_link"
20646case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649esac
20650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_link") 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
20658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20659 { (case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20662esac
20663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_try") 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest$ac_exeext'
20669 { (case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672esac
20673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_try") 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 ac_cv_lib_gcc___cmpdi2=yes
20679else
20680 echo "$as_me: failed program was:" >&5
20681sed 's/^/| /' conftest.$ac_ext >&5
20682
20683 ac_cv_lib_gcc___cmpdi2=no
20684fi
20685
20686rm -f core conftest.err conftest.$ac_objext \
20687 conftest$ac_exeext conftest.$ac_ext
20688LIBS=$ac_check_lib_save_LIBS
20689fi
20690{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20691echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20692if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20693
20694cat >>confdefs.h <<\_ACEOF
20695#define HAVE___CMPDI2 1
20696_ACEOF
20697
20698fi
20699
20700fi
20701
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000020702if test "$llvm_cv_os_type" = "MingW" ; then
20703 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20704echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20705 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020706
20707 /* confdefs.h. */
20708_ACEOF
20709cat confdefs.h >>conftest.$ac_ext
20710cat >>conftest.$ac_ext <<_ACEOF
20711/* end confdefs.h. */
20712
20713 #include <windows.h>
20714 #include <imagehlp.h>
20715 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20716 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20717
20718
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000020719_ACEOF
20720rm -f conftest.$ac_objext
20721if { (ac_try="$ac_compile"
20722case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725esac
20726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_compile") 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
20734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20735 { (case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20738esac
20739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_try") 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; } &&
20744 { ac_try='test -s conftest.$ac_objext'
20745 { (case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748esac
20749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_try") 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754
20755 { echo "$as_me:$LINENO: result: yes" >&5
20756echo "${ECHO_T}yes" >&6; }
20757 llvm_cv_win32_elmcb_pcstr="PCSTR"
20758
20759else
20760 echo "$as_me: failed program was:" >&5
20761sed 's/^/| /' conftest.$ac_ext >&5
20762
20763
20764 { echo "$as_me:$LINENO: result: no" >&5
20765echo "${ECHO_T}no" >&6; }
20766 llvm_cv_win32_elmcb_pcstr="PSTR"
20767
20768fi
20769
20770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771
20772cat >>confdefs.h <<_ACEOF
20773#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20774_ACEOF
20775
20776fi
20777
Torok Edwinaec06332010-01-26 08:50:50 +000020778
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020779
20780 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020781echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20782if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000020784else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020785
20786 ac_ext=cpp
John Criswell3ef61af2003-06-30 21:59:07 +000020787ac_cpp='$CXXCPP $CPPFLAGS'
20788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20791
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020792 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020797/* end confdefs.h. */
20798#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000020799int
20800main ()
20801{
20802float f; isnan(f);
20803 ;
20804 return 0;
20805}
Brian Gaekec77683c2004-06-22 23:47:13 +000020806_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020807rm -f conftest.$ac_objext
20808if { (ac_try="$ac_compile"
20809case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812esac
20813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_compile") 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20822 { (case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20825esac
20826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_try") 2>&5
20828 ac_status=$?
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; } &&
20831 { ac_try='test -s conftest.$ac_objext'
20832 { (case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20835esac
20836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_try") 2>&5
20838 ac_status=$?
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020841 ac_cv_func_isnan_in_math_h=yes
20842else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020843 echo "$as_me: failed program was:" >&5
20844sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ac_cv_func_isnan_in_math_h=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020847fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020848
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020850 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020851ac_cpp='$CPP $CPPFLAGS'
20852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20854ac_compiler_gnu=$ac_cv_c_compiler_gnu
20855
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020856
Brian Gaekec77683c2004-06-22 23:47:13 +000020857fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020858{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20859echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020860
20861
20862if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020863
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020864cat >>confdefs.h <<\_ACEOF
20865#define HAVE_ISNAN_IN_MATH_H 1
20866_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020867
Reid Spencerf9676532004-10-27 23:03:44 +000020868fi
20869
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020870
20871 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020872echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20873if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000020875else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020876
20877 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000020878ac_cpp='$CXXCPP $CPPFLAGS'
20879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20882
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020883 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020884/* confdefs.h. */
20885_ACEOF
20886cat confdefs.h >>conftest.$ac_ext
20887cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020888/* end confdefs.h. */
20889#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020890int
20891main ()
20892{
20893float f; isnan(f);
20894 ;
20895 return 0;
20896}
Brian Gaekec77683c2004-06-22 23:47:13 +000020897_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020898rm -f conftest.$ac_objext
20899if { (ac_try="$ac_compile"
20900case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20903esac
20904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_compile") 2>conftest.er1
20906 ac_status=$?
20907 grep -v '^ *+' conftest.er1 >conftest.err
20908 rm -f conftest.er1
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20913 { (case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20916esac
20917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_try") 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20926esac
20927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_try") 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020932 ac_cv_func_isnan_in_cmath=yes
20933else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020934 echo "$as_me: failed program was:" >&5
20935sed 's/^/| /' conftest.$ac_ext >&5
20936
20937 ac_cv_func_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020938fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020939
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020941 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020942ac_cpp='$CPP $CPPFLAGS'
20943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945ac_compiler_gnu=$ac_cv_c_compiler_gnu
20946
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020947
Brian Gaekec77683c2004-06-22 23:47:13 +000020948fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020949{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20950echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020951
20952if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020953
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020954cat >>confdefs.h <<\_ACEOF
20955#define HAVE_ISNAN_IN_CMATH 1
20956_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020957
Reid Spencerf9676532004-10-27 23:03:44 +000020958fi
20959
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020960
20961 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020962echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20963if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000020965else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020966
20967 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000020968ac_cpp='$CXXCPP $CPPFLAGS'
20969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20972
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020973 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020974/* confdefs.h. */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020978/* end confdefs.h. */
20979#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020980int
20981main ()
20982{
20983float f; std::isnan(f);
20984 ;
20985 return 0;
20986}
Brian Gaekec77683c2004-06-22 23:47:13 +000020987_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020988rm -f conftest.$ac_objext
20989if { (ac_try="$ac_compile"
20990case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993esac
20994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21003 { (case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21006esac
21007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_try") 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try='test -s conftest.$ac_objext'
21013 { (case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21016esac
21017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_try") 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000021022 ac_cv_func_std_isnan_in_cmath=yes
21023else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021024 echo "$as_me: failed program was:" >&5
21025sed 's/^/| /' conftest.$ac_ext >&5
21026
21027 ac_cv_func_std_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000021028fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021029
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021031 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000021032ac_cpp='$CPP $CPPFLAGS'
21033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035ac_compiler_gnu=$ac_cv_c_compiler_gnu
21036
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021037
Brian Gaekec77683c2004-06-22 23:47:13 +000021038fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021039{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21040echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021041
21042if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000021043
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021044cat >>confdefs.h <<\_ACEOF
21045#define HAVE_STD_ISNAN_IN_CMATH 1
21046_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000021047
Reid Spencerf9676532004-10-27 23:03:44 +000021048fi
Brian Gaekec77683c2004-06-22 23:47:13 +000021049
21050
NAKAMURA Takumif7148bd2013-01-30 01:37:49 +000021051
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021052
21053 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021054echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21055if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021057else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021058
21059 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021060ac_cpp='$CXXCPP $CPPFLAGS'
21061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21064
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021065 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021066/* confdefs.h. */
21067_ACEOF
21068cat confdefs.h >>conftest.$ac_ext
21069cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021070/* end confdefs.h. */
21071#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000021072int
21073main ()
21074{
21075float f; isinf(f);
21076 ;
21077 return 0;
21078}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021079_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021080rm -f conftest.$ac_objext
21081if { (ac_try="$ac_compile"
21082case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21085esac
21086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_compile") 2>conftest.er1
21088 ac_status=$?
21089 grep -v '^ *+' conftest.er1 >conftest.err
21090 rm -f conftest.er1
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
21094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21095 { (case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21098esac
21099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_try") 2>&5
21101 ac_status=$?
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; } &&
21104 { ac_try='test -s conftest.$ac_objext'
21105 { (case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21108esac
21109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_try") 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021114 ac_cv_func_isinf_in_math_h=yes
21115else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021116 echo "$as_me: failed program was:" >&5
21117sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 ac_cv_func_isinf_in_math_h=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021120fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021121
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021123 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021124ac_cpp='$CPP $CPPFLAGS'
21125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021129
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021130fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021131{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21132echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021133
21134if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021135
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021136cat >>confdefs.h <<\_ACEOF
21137#define HAVE_ISINF_IN_MATH_H 1
21138_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021139
Reid Spencerf9676532004-10-27 23:03:44 +000021140fi
21141
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021142
21143 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021144echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21145if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021147else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021148
21149 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021150ac_cpp='$CXXCPP $CPPFLAGS'
21151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021155 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021156/* confdefs.h. */
21157_ACEOF
21158cat confdefs.h >>conftest.$ac_ext
21159cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021160/* end confdefs.h. */
21161#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000021162int
21163main ()
21164{
21165float f; isinf(f);
21166 ;
21167 return 0;
21168}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021169_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021170rm -f conftest.$ac_objext
21171if { (ac_try="$ac_compile"
21172case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21175esac
21176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_compile") 2>conftest.er1
21178 ac_status=$?
21179 grep -v '^ *+' conftest.er1 >conftest.err
21180 rm -f conftest.er1
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21185 { (case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21188esac
21189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_try") 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; } &&
21194 { ac_try='test -s conftest.$ac_objext'
21195 { (case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21198esac
21199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_try") 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021204 ac_cv_func_isinf_in_cmath=yes
21205else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021206 echo "$as_me: failed program was:" >&5
21207sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 ac_cv_func_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021210fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021211
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021213 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021214ac_cpp='$CPP $CPPFLAGS'
21215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217ac_compiler_gnu=$ac_cv_c_compiler_gnu
21218
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021219
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021220fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021221{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21222echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021223
21224if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021225
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021226cat >>confdefs.h <<\_ACEOF
21227#define HAVE_ISINF_IN_CMATH 1
21228_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021229
Reid Spencerf9676532004-10-27 23:03:44 +000021230fi
21231
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021232
21233 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021234echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21235if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021237else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021238
21239 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021240ac_cpp='$CXXCPP $CPPFLAGS'
21241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21244
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021245 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021246/* confdefs.h. */
21247_ACEOF
21248cat confdefs.h >>conftest.$ac_ext
21249cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021250/* end confdefs.h. */
21251#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000021252int
21253main ()
21254{
Eric Christophereb75cc22012-03-26 02:09:01 +000021255float f; std::isinf(f);
Reid Spencerf9676532004-10-27 23:03:44 +000021256 ;
21257 return 0;
21258}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021259_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021260rm -f conftest.$ac_objext
21261if { (ac_try="$ac_compile"
21262case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21265esac
21266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_compile") 2>conftest.er1
21268 ac_status=$?
21269 grep -v '^ *+' conftest.er1 >conftest.err
21270 rm -f conftest.er1
21271 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } &&
21274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21275 { (case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21278esac
21279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_try") 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; } &&
21284 { ac_try='test -s conftest.$ac_objext'
21285 { (case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21288esac
21289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_try") 2>&5
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021294 ac_cv_func_std_isinf_in_cmath=yes
21295else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021296 echo "$as_me: failed program was:" >&5
21297sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021300fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021301
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021303 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021304ac_cpp='$CPP $CPPFLAGS'
21305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307ac_compiler_gnu=$ac_cv_c_compiler_gnu
21308
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021309
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021310fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021311{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21312echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021313
21314if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021315
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021316cat >>confdefs.h <<\_ACEOF
21317#define HAVE_STD_ISINF_IN_CMATH 1
21318_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021319
Reid Spencerf9676532004-10-27 23:03:44 +000021320fi
21321
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021322
21323 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021324echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21325if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekea8704452004-07-21 03:33:58 +000021327else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021328
21329 ac_ext=cpp
Brian Gaekea8704452004-07-21 03:33:58 +000021330ac_cpp='$CXXCPP $CPPFLAGS'
21331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21334
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021335 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000021340/* end confdefs.h. */
21341#include <ieeefp.h>
Reid Spencerf9676532004-10-27 23:03:44 +000021342int
21343main ()
21344{
21345float f; finite(f);
21346 ;
21347 return 0;
21348}
Brian Gaekea8704452004-07-21 03:33:58 +000021349_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021350rm -f conftest.$ac_objext
21351if { (ac_try="$ac_compile"
21352case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21355esac
21356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_compile") 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21365 { (case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21368esac
21369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370 (eval "$ac_try") 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
21375 { (case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21378esac
21379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_try") 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; }; then
Brian Gaekea8704452004-07-21 03:33:58 +000021384 ac_cv_func_finite_in_ieeefp_h=yes
21385else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021386 echo "$as_me: failed program was:" >&5
21387sed 's/^/| /' conftest.$ac_ext >&5
21388
21389 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaekea8704452004-07-21 03:33:58 +000021390fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021391
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021393 ac_ext=c
Brian Gaekea8704452004-07-21 03:33:58 +000021394ac_cpp='$CPP $CPPFLAGS'
21395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21397ac_compiler_gnu=$ac_cv_c_compiler_gnu
21398
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021399
Brian Gaekea8704452004-07-21 03:33:58 +000021400fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021401{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21402echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021403
Brian Gaekeae050e02004-10-28 05:06:45 +000021404if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaekea8704452004-07-21 03:33:58 +000021405
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021406cat >>confdefs.h <<\_ACEOF
21407#define HAVE_FINITE_IN_IEEEFP_H 1
21408_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000021409
Reid Spencerf9676532004-10-27 23:03:44 +000021410fi
21411
21412
21413
Reid Spencerdfda0612007-01-20 07:48:49 +000021414if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell3ef61af2003-06-30 21:59:07 +000021415
21416
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021417for ac_header in stdlib.h unistd.h
21418do
21419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425fi
21426ac_res=`eval echo '${'$as_ac_Header'}'`
21427 { echo "$as_me:$LINENO: result: $ac_res" >&5
21428echo "${ECHO_T}$ac_res" >&6; }
21429else
21430 # Is the header compilable?
21431{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21433cat >conftest.$ac_ext <<_ACEOF
21434/* confdefs.h. */
21435_ACEOF
21436cat confdefs.h >>conftest.$ac_ext
21437cat >>conftest.$ac_ext <<_ACEOF
21438/* end confdefs.h. */
21439$ac_includes_default
21440#include <$ac_header>
21441_ACEOF
21442rm -f conftest.$ac_objext
21443if { (ac_try="$ac_compile"
21444case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21447esac
21448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_compile") 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } &&
21456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21457 { (case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21460esac
21461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_try") 2>&5
21463 ac_status=$?
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; } &&
21466 { ac_try='test -s conftest.$ac_objext'
21467 { (case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21470esac
21471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472 (eval "$ac_try") 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_header_compiler=yes
21477else
21478 echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000021480
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021481 ac_header_compiler=no
21482fi
21483
21484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21486echo "${ECHO_T}$ac_header_compiler" >&6; }
21487
21488# Is the header present?
21489{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21491cat >conftest.$ac_ext <<_ACEOF
21492/* confdefs.h. */
21493_ACEOF
21494cat confdefs.h >>conftest.$ac_ext
21495cat >>conftest.$ac_ext <<_ACEOF
21496/* end confdefs.h. */
21497#include <$ac_header>
21498_ACEOF
21499if { (ac_try="$ac_cpp conftest.$ac_ext"
21500case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21503esac
21504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21506 ac_status=$?
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } >/dev/null; then
21512 if test -s conftest.err; then
21513 ac_cpp_err=$ac_c_preproc_warn_flag
21514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21515 else
21516 ac_cpp_err=
21517 fi
21518else
21519 ac_cpp_err=yes
21520fi
21521if test -z "$ac_cpp_err"; then
21522 ac_header_preproc=yes
21523else
21524 echo "$as_me: failed program was:" >&5
21525sed 's/^/| /' conftest.$ac_ext >&5
21526
21527 ac_header_preproc=no
21528fi
21529
21530rm -f conftest.err conftest.$ac_ext
21531{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21532echo "${ECHO_T}$ac_header_preproc" >&6; }
21533
21534# So? What about this header?
21535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21536 yes:no: )
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21541 ac_header_preproc=yes
21542 ;;
21543 no:yes:* )
21544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21547echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21551echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21556 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000021557## ------------------------------------ ##
21558## Report this to http://llvm.org/bugs/ ##
21559## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021560_ASBOX
21561 ) | sed "s/^/$as_me: WARNING: /" >&2
21562 ;;
21563esac
21564{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568else
21569 eval "$as_ac_Header=\$ac_header_preproc"
21570fi
21571ac_res=`eval echo '${'$as_ac_Header'}'`
21572 { echo "$as_me:$LINENO: result: $ac_res" >&5
21573echo "${ECHO_T}$ac_res" >&6; }
21574
21575fi
21576if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021577 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000021579_ACEOF
21580
21581fi
21582
21583done
21584
21585
21586for ac_func in getpagesize
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021587do
21588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21589{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21593else
21594 cat >conftest.$ac_ext <<_ACEOF
21595/* confdefs.h. */
21596_ACEOF
21597cat confdefs.h >>conftest.$ac_ext
21598cat >>conftest.$ac_ext <<_ACEOF
21599/* end confdefs.h. */
21600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21602#define $ac_func innocuous_$ac_func
21603
21604/* System header to define __stub macros and hopefully few prototypes,
21605 which can conflict with char $ac_func (); below.
21606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21607 <limits.h> exists even on freestanding compilers. */
21608
21609#ifdef __STDC__
21610# include <limits.h>
21611#else
21612# include <assert.h>
21613#endif
21614
21615#undef $ac_func
21616
21617/* Override any GCC internal prototype to avoid an error.
21618 Use char because int might match the return type of a GCC
21619 builtin and then its argument prototype would still apply. */
21620#ifdef __cplusplus
21621extern "C"
21622#endif
21623char $ac_func ();
21624/* The GNU C library defines this for functions which it implements
21625 to always fail with ENOSYS. Some functions are actually named
21626 something starting with __ and the normal name is an alias. */
21627#if defined __stub_$ac_func || defined __stub___$ac_func
21628choke me
21629#endif
21630
21631int
21632main ()
21633{
21634return $ac_func ();
21635 ;
21636 return 0;
21637}
21638_ACEOF
21639rm -f conftest.$ac_objext conftest$ac_exeext
21640if { (ac_try="$ac_link"
21641case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21644esac
21645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_link") 2>conftest.er1
21647 ac_status=$?
21648 grep -v '^ *+' conftest.er1 >conftest.err
21649 rm -f conftest.er1
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21654 { (case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657esac
21658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_try") 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; } &&
21663 { ac_try='test -s conftest$ac_exeext'
21664 { (case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21667esac
21668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_try") 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 eval "$as_ac_var=yes"
21674else
21675 echo "$as_me: failed program was:" >&5
21676sed 's/^/| /' conftest.$ac_ext >&5
21677
21678 eval "$as_ac_var=no"
21679fi
21680
21681rm -f core conftest.err conftest.$ac_objext \
21682 conftest$ac_exeext conftest.$ac_ext
21683fi
21684ac_res=`eval echo '${'$as_ac_var'}'`
21685 { echo "$as_me:$LINENO: result: $ac_res" >&5
21686echo "${ECHO_T}$ac_res" >&6; }
21687if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021688 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000021690_ACEOF
21691
21692fi
21693done
21694
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021695{ echo "$as_me:$LINENO: checking for working mmap" >&5
21696echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21697if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000021699else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021700 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021701 ac_cv_func_mmap_fixed_mapped=no
21702else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021703 cat >conftest.$ac_ext <<_ACEOF
21704/* confdefs.h. */
21705_ACEOF
21706cat confdefs.h >>conftest.$ac_ext
21707cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000021708/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000021709$ac_includes_default
21710/* malloc might have been renamed as rpl_malloc. */
21711#undef malloc
21712
21713/* Thanks to Mike Haertel and Jim Avera for this test.
21714 Here is a matrix of mmap possibilities:
21715 mmap private not fixed
21716 mmap private fixed at somewhere currently unmapped
21717 mmap private fixed at somewhere already mapped
21718 mmap shared not fixed
21719 mmap shared fixed at somewhere currently unmapped
21720 mmap shared fixed at somewhere already mapped
21721 For private mappings, we should verify that changes cannot be read()
21722 back from the file, nor mmap's back from the file at a different
21723 address. (There have been systems where private was not correctly
21724 implemented like the infamous i386 svr4.0, and systems where the
21725 VM page cache was not coherent with the file system buffer cache
21726 like early versions of FreeBSD and possibly contemporary NetBSD.)
21727 For shared mappings, we should conversely verify that changes get
21728 propagated back to all the places they're supposed to be.
21729
21730 Grep wants private fixed already mapped.
21731 The main things grep needs to know about mmap are:
21732 * does it exist and is it safe to write into the mmap'd area
21733 * how to use it (BSD variants) */
21734
21735#include <fcntl.h>
21736#include <sys/mman.h>
21737
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021738#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +000021739char *malloc ();
21740#endif
21741
21742/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021743#if !HAVE_GETPAGESIZE
21744/* Assume that all systems that can run configure have sys/param.h. */
21745# if !HAVE_SYS_PARAM_H
21746# define HAVE_SYS_PARAM_H 1
21747# endif
21748
John Criswell3ef61af2003-06-30 21:59:07 +000021749# ifdef _SC_PAGESIZE
21750# define getpagesize() sysconf(_SC_PAGESIZE)
21751# else /* no _SC_PAGESIZE */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021752# if HAVE_SYS_PARAM_H
John Criswell3ef61af2003-06-30 21:59:07 +000021753# include <sys/param.h>
21754# ifdef EXEC_PAGESIZE
21755# define getpagesize() EXEC_PAGESIZE
21756# else /* no EXEC_PAGESIZE */
21757# ifdef NBPG
21758# define getpagesize() NBPG * CLSIZE
21759# ifndef CLSIZE
21760# define CLSIZE 1
21761# endif /* no CLSIZE */
21762# else /* no NBPG */
21763# ifdef NBPC
21764# define getpagesize() NBPC
21765# else /* no NBPC */
21766# ifdef PAGESIZE
21767# define getpagesize() PAGESIZE
21768# endif /* PAGESIZE */
21769# endif /* no NBPC */
21770# endif /* no NBPG */
21771# endif /* no EXEC_PAGESIZE */
21772# else /* no HAVE_SYS_PARAM_H */
21773# define getpagesize() 8192 /* punt totally */
21774# endif /* no HAVE_SYS_PARAM_H */
21775# endif /* no _SC_PAGESIZE */
21776
21777#endif /* no HAVE_GETPAGESIZE */
21778
21779int
21780main ()
21781{
21782 char *data, *data2, *data3;
21783 int i, pagesize;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021784 int fd;
John Criswell3ef61af2003-06-30 21:59:07 +000021785
21786 pagesize = getpagesize ();
21787
21788 /* First, make a file with some known garbage in it. */
21789 data = (char *) malloc (pagesize);
21790 if (!data)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021791 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021792 for (i = 0; i < pagesize; ++i)
21793 *(data + i) = rand ();
21794 umask (0);
21795 fd = creat ("conftest.mmap", 0600);
21796 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021797 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021798 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021799 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021800 close (fd);
21801
21802 /* Next, try to mmap the file at a fixed address which already has
21803 something else allocated at it. If we can, also make sure that
21804 we see the same garbage. */
21805 fd = open ("conftest.mmap", O_RDWR);
21806 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021807 return 1;
21808 data2 = (char *) malloc (2 * pagesize);
21809 if (!data2)
21810 return 1;
21811 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell3ef61af2003-06-30 21:59:07 +000021812 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencerf184a862004-09-19 23:53:36 +000021813 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021814 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021815 for (i = 0; i < pagesize; ++i)
21816 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021817 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021818
21819 /* Finally, make sure that changes to the mapped area do not
21820 percolate back to the file as seen by read(). (This is a bug on
21821 some variants of i386 svr4.0.) */
21822 for (i = 0; i < pagesize; ++i)
21823 *(data2 + i) = *(data2 + i) + 1;
21824 data3 = (char *) malloc (pagesize);
21825 if (!data3)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021826 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021827 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021828 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021829 for (i = 0; i < pagesize; ++i)
21830 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021831 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021832 close (fd);
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021833 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +000021834}
21835_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021836rm -f conftest$ac_exeext
21837if { (ac_try="$ac_link"
21838case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841esac
21842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_link") 2>&5
21844 ac_status=$?
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21847 { (case "(($ac_try" in
21848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849 *) ac_try_echo=$ac_try;;
21850esac
21851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21852 (eval "$ac_try") 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000021856 ac_cv_func_mmap_fixed_mapped=yes
21857else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021858 echo "$as_me: program exited with status $ac_status" >&5
21859echo "$as_me: failed program was:" >&5
21860sed 's/^/| /' conftest.$ac_ext >&5
21861
21862( exit $ac_status )
21863ac_cv_func_mmap_fixed_mapped=no
John Criswell3ef61af2003-06-30 21:59:07 +000021864fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000021866fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021867
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021868
John Criswell3ef61af2003-06-30 21:59:07 +000021869fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021870{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21871echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000021872if test $ac_cv_func_mmap_fixed_mapped = yes; then
21873
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021874cat >>confdefs.h <<\_ACEOF
21875#define HAVE_MMAP 1
21876_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021877
21878fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021879rm -f conftest.mmap
John Criswell3ef61af2003-06-30 21:59:07 +000021880
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021881 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21882echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21883if test "${ac_cv_func_mmap_file+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000021885else
Reid Spencerf184a862004-09-19 23:53:36 +000021886 ac_ext=c
John Criswell3ef61af2003-06-30 21:59:07 +000021887ac_cpp='$CPP $CPPFLAGS'
21888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21890ac_compiler_gnu=$ac_cv_c_compiler_gnu
21891
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021892 if test "$cross_compiling" = yes; then
Reid Spencer5a6815d2004-09-21 17:14:44 +000021893 ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000021894else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021895 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerac16ea92004-09-20 04:09:56 +000021896
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021897 /* confdefs.h. */
21898_ACEOF
21899cat confdefs.h >>conftest.$ac_ext
21900cat >>conftest.$ac_ext <<_ACEOF
21901/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000021902
John Criswell3ef61af2003-06-30 21:59:07 +000021903#include <sys/types.h>
John Criswelle3a9bd82003-10-09 15:44:28 +000021904#include <sys/mman.h>
John Criswell3ef61af2003-06-30 21:59:07 +000021905#include <fcntl.h>
Reid Spencerac16ea92004-09-20 04:09:56 +000021906
21907int
21908main ()
21909{
John Criswell3ef61af2003-06-30 21:59:07 +000021910
21911 int fd;
Reid Spencerac16ea92004-09-20 04:09:56 +000021912 fd = creat ("foo",0777);
21913 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21914 unlink ("foo");
Reid Spencer5a6815d2004-09-21 17:14:44 +000021915 return (fd != (int) MAP_FAILED);
Reid Spencerac16ea92004-09-20 04:09:56 +000021916 ;
21917 return 0;
21918}
John Criswell3ef61af2003-06-30 21:59:07 +000021919_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021920rm -f conftest$ac_exeext
21921if { (ac_try="$ac_link"
21922case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21925esac
21926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927 (eval "$ac_link") 2>&5
21928 ac_status=$?
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21931 { (case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934esac
21935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_try") 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000021940 ac_cv_func_mmap_file=yes
21941else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021942 echo "$as_me: program exited with status $ac_status" >&5
21943echo "$as_me: failed program was:" >&5
21944sed 's/^/| /' conftest.$ac_ext >&5
21945
21946( exit $ac_status )
21947ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000021948fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000021950fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021951
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021952
John Criswell3ef61af2003-06-30 21:59:07 +000021953 ac_ext=c
21954ac_cpp='$CPP $CPPFLAGS'
21955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21957ac_compiler_gnu=$ac_cv_c_compiler_gnu
21958
21959
21960fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021961{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21962echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000021963if test "$ac_cv_func_mmap_file" = yes; then
John Criswelle3a9bd82003-10-09 15:44:28 +000021964
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021965cat >>confdefs.h <<\_ACEOF
21966#define HAVE_MMAP_FILE
21967_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021968
21969 MMAP_FILE=yes
21970
21971fi
21972
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021973 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21974echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21975if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6681582004-12-27 06:15:02 +000021977else
Reid Spencer3d745d42004-12-29 07:07:57 +000021978 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencerb6681582004-12-27 06:15:02 +000021979 ac_cv_need_dev_zero_for_mmap=yes
21980 else
21981 ac_cv_need_dev_zero_for_mmap=no
21982 fi
21983
21984fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021985{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21986echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencerb6681582004-12-27 06:15:02 +000021987if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21988
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021989cat >>confdefs.h <<\_ACEOF
21990#define NEED_DEV_ZERO_FOR_MMAP 1
21991_ACEOF
Reid Spencerb6681582004-12-27 06:15:02 +000021992
21993fi
Reid Spencerf184a862004-09-19 23:53:36 +000021994
Reid Spencerdfda0612007-01-20 07:48:49 +000021995 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21996 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021997 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21998echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000021999 fi
22000 if test "$ac_cv_func_mmap_file" = "no"
22001 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022002 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22003echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000022004 fi
John Criswellb65ddad2003-07-22 21:00:24 +000022005fi
John Criswell3ef61af2003-06-30 21:59:07 +000022006
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022007{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22008echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7eb8112010-07-28 20:26:43 +000022009ac_ext=cpp
22010ac_cpp='$CXXCPP $CPPFLAGS'
22011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22014
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022015cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022016
22017 /* confdefs.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022018_ACEOF
22019cat confdefs.h >>conftest.$ac_ext
22020cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonb9509c52009-05-18 23:58:51 +000022021/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022022
22023 int main() {
22024 volatile unsigned long val = 1;
22025 __sync_synchronize();
22026 __sync_val_compare_and_swap(&val, 1, 0);
22027 __sync_add_and_fetch(&val, 1);
22028 __sync_sub_and_fetch(&val, 1);
22029 return 0;
22030 }
22031
Owen Andersonb9509c52009-05-18 23:58:51 +000022032
22033_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022034rm -f conftest.$ac_objext conftest$ac_exeext
22035if { (ac_try="$ac_link"
22036case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22039esac
22040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_link") 2>conftest.er1
22042 ac_status=$?
22043 grep -v '^ *+' conftest.er1 >conftest.err
22044 rm -f conftest.er1
22045 cat conftest.err >&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } &&
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022049 { (case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22052esac
22053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_try") 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest$ac_exeext'
22059 { (case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062esac
22063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_try") 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
Eric Christopherf7eb8112010-07-28 20:26:43 +000022068
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022069 { echo "$as_me:$LINENO: result: yes" >&5
22070echo "${ECHO_T}yes" >&6; }
Owen Andersonaf5db832009-05-19 22:18:56 +000022071
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022072cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000022073#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022074_ACEOF
Owen Andersonaf5db832009-05-19 22:18:56 +000022075
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022076
Owen Andersonb9509c52009-05-18 23:58:51 +000022077else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022078 echo "$as_me: failed program was:" >&5
22079sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonb9509c52009-05-18 23:58:51 +000022080
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022081
22082 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022083echo "${ECHO_T}no" >&6; }
Owen Andersonb9509c52009-05-18 23:58:51 +000022084
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022085cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000022086#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022087_ACEOF
22088
22089 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22090echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022091
Owen Andersonb9509c52009-05-18 23:58:51 +000022092fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022093
Owen Andersonb9509c52009-05-18 23:58:51 +000022094rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022095 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022096ac_ext=c
22097ac_cpp='$CPP $CPPFLAGS'
22098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22100ac_compiler_gnu=$ac_cv_c_compiler_gnu
22101
Owen Andersonb9509c52009-05-18 23:58:51 +000022102
John Criswell3ef61af2003-06-30 21:59:07 +000022103
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022104if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022105 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22106echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22107if test "${llvm_cv_linux_mixed+set}" = set; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022109else
22110 ac_ext=c
22111ac_cpp='$CPP $CPPFLAGS'
22112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22114ac_compiler_gnu=$ac_cv_c_compiler_gnu
22115
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022116 cat >conftest.$ac_ext <<_ACEOF
22117/* confdefs.h. */
22118_ACEOF
22119cat confdefs.h >>conftest.$ac_ext
22120cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022121/* end confdefs.h. */
22122#ifndef __x86_64__
22123 error: Not x86-64 even if uname says so!
22124 #endif
22125
22126int
22127main ()
22128{
22129
22130 ;
22131 return 0;
22132}
22133_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022134rm -f conftest.$ac_objext
22135if { (ac_try="$ac_compile"
22136case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22139esac
22140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_compile") 2>conftest.er1
22142 ac_status=$?
22143 grep -v '^ *+' conftest.er1 >conftest.err
22144 rm -f conftest.er1
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } &&
22148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22149 { (case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22152esac
22153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_try") 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } &&
22158 { ac_try='test -s conftest.$ac_objext'
22159 { (case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162esac
22163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_try") 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; }; then
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022168 llvm_cv_linux_mixed=no
22169else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022170 echo "$as_me: failed program was:" >&5
22171sed 's/^/| /' conftest.$ac_ext >&5
22172
22173 llvm_cv_linux_mixed=yes
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022174fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022175
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177 ac_ext=c
22178ac_cpp='$CPP $CPPFLAGS'
22179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22181ac_compiler_gnu=$ac_cv_c_compiler_gnu
22182
22183
22184fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022185{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22186echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022187
22188 if test "$llvm_cv_linux_mixed" = "yes"; then
22189 llvm_cv_target_arch="x86"
22190 ARCH="x86"
22191 fi
22192fi
22193
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022194
Reid Spencer32046f72007-07-30 20:13:24 +000022195for ac_func in __dso_handle
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022196do
22197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202else
22203 cat >conftest.$ac_ext <<_ACEOF
22204/* confdefs.h. */
22205_ACEOF
22206cat confdefs.h >>conftest.$ac_ext
22207cat >>conftest.$ac_ext <<_ACEOF
22208/* end confdefs.h. */
22209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22211#define $ac_func innocuous_$ac_func
22212
22213/* System header to define __stub macros and hopefully few prototypes,
22214 which can conflict with char $ac_func (); below.
22215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216 <limits.h> exists even on freestanding compilers. */
22217
22218#ifdef __STDC__
22219# include <limits.h>
22220#else
22221# include <assert.h>
22222#endif
22223
22224#undef $ac_func
22225
22226/* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22229#ifdef __cplusplus
22230extern "C"
22231#endif
22232char $ac_func ();
22233/* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236#if defined __stub_$ac_func || defined __stub___$ac_func
22237choke me
22238#endif
22239
22240int
22241main ()
22242{
22243return $ac_func ();
22244 ;
22245 return 0;
22246}
22247_ACEOF
22248rm -f conftest.$ac_objext conftest$ac_exeext
22249if { (ac_try="$ac_link"
22250case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22253esac
22254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_link") 2>conftest.er1
22256 ac_status=$?
22257 grep -v '^ *+' conftest.er1 >conftest.err
22258 rm -f conftest.er1
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
22262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22263 { (case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22266esac
22267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_try") 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; } &&
22272 { ac_try='test -s conftest$ac_exeext'
22273 { (case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22276esac
22277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_try") 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 eval "$as_ac_var=yes"
22283else
22284 echo "$as_me: failed program was:" >&5
22285sed 's/^/| /' conftest.$ac_ext >&5
22286
22287 eval "$as_ac_var=no"
22288fi
22289
22290rm -f core conftest.err conftest.$ac_objext \
22291 conftest$ac_exeext conftest.$ac_ext
22292fi
22293ac_res=`eval echo '${'$as_ac_var'}'`
22294 { echo "$as_me:$LINENO: result: $ac_res" >&5
22295echo "${ECHO_T}$ac_res" >&6; }
22296if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer32046f72007-07-30 20:13:24 +000022297 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer32046f72007-07-30 20:13:24 +000022299_ACEOF
22300
22301fi
22302done
22303
22304
Reid Spencera40c6872004-11-29 12:29:58 +000022305SHLIBEXT=$libltdl_cv_shlibext
Brian Gaekea2404522004-01-21 19:39:29 +000022306
22307
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000022308SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22309
22310
Jeff Cohenc5e5b272007-01-12 18:22:38 +000022311if test "${prefix}" = "NONE" ; then
Reid Spencer40f1b132006-05-16 08:53:32 +000022312 prefix="/usr/local"
22313fi
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022314eval LLVM_PREFIX="${prefix}";
22315eval LLVM_BINDIR="${prefix}/bin";
Reid Spencer0194c9a2004-11-29 04:56:35 +000022316eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb3762a02010-03-02 05:17:21 +000022317eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer0194c9a2004-11-29 04:56:35 +000022318eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022319eval LLVM_INCLUDEDIR="${prefix}/include";
22320eval LLVM_INFODIR="${prefix}/info";
22321eval LLVM_MANDIR="${prefix}/man";
22322LLVM_CONFIGTIME=`date`
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
Daniel Dunbar9370ecf2012-03-02 16:24:21 +000022333if test "${ENABLE_TIMESTAMPS}" = "0"; then
22334 LLVM_CONFIGTIME="(timestamp not enabled)"
22335fi
22336
Reid Spencer0241e382004-11-25 04:51:04 +000022337
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022338cat >>confdefs.h <<_ACEOF
22339#define LLVM_PREFIX "$LLVM_PREFIX"
22340_ACEOF
22341
22342
22343cat >>confdefs.h <<_ACEOF
22344#define LLVM_BINDIR "$LLVM_BINDIR"
22345_ACEOF
22346
22347
22348cat >>confdefs.h <<_ACEOF
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022349#define LLVM_DATADIR "$LLVM_DATADIR"
22350_ACEOF
22351
22352
22353cat >>confdefs.h <<_ACEOF
Gordon Henriksen80f35e02007-10-03 12:07:14 +000022354#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022355_ACEOF
22356
22357
22358cat >>confdefs.h <<_ACEOF
Reid Spencer288adf12004-08-20 09:10:31 +000022359#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022360_ACEOF
22361
22362
22363cat >>confdefs.h <<_ACEOF
22364#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22365_ACEOF
22366
22367
22368cat >>confdefs.h <<_ACEOF
22369#define LLVM_INFODIR "$LLVM_INFODIR"
22370_ACEOF
22371
22372
22373cat >>confdefs.h <<_ACEOF
22374#define LLVM_MANDIR "$LLVM_MANDIR"
22375_ACEOF
22376
22377
22378cat >>confdefs.h <<_ACEOF
22379#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22380_ACEOF
22381
22382
Eric Christophere62b4412007-12-01 00:34:39 +000022383cat >>confdefs.h <<_ACEOF
Tim Northoverfee13d12013-05-04 07:36:23 +000022384#define LLVM_HOST_TRIPLE "$host"
NAKAMURA Takumi43652ae2012-07-22 03:04:52 +000022385_ACEOF
22386
22387
22388cat >>confdefs.h <<_ACEOF
Sebastian Popec2fb222011-11-01 21:31:44 +000022389#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christophere62b4412007-12-01 00:34:39 +000022390_ACEOF
22391
22392
Gordon Henriksene61dd672007-10-02 09:50:32 +000022393if test "$BINDINGS_TO_BUILD" = auto ; then
22394 BINDINGS_TO_BUILD=""
22395 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22396 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22397 fi
22398fi
22399BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22400
22401
Gordon Henriksene61dd672007-10-02 09:50:32 +000022402ALL_BINDINGS=ocaml
22403
22404
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022405binding_prereqs_failed=0
22406for a_binding in $BINDINGS_TO_BUILD ; do
22407 case "$a_binding" in
22408 ocaml)
22409 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022410 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22411echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022412 binding_prereqs_failed=1
22413 fi
22414 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022415 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22416echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022417 binding_prereqs_failed=1
22418 fi
22419 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022420 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22421echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022422 fi
22423 if test "x$with_ocaml_libdir" != xauto ; then
22424 OCAML_LIBDIR=$with_ocaml_libdir
22425
22426 else
22427 ocaml_stdlib="`"$OCAMLC" -where`"
22428 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22429 then
22430 # ocaml stdlib is beneath our prefix; use stdlib
22431 OCAML_LIBDIR=$ocaml_stdlib
22432
22433 else
22434 # ocaml stdlib is outside our prefix; use libdir/ocaml
Rafael Espindolab58973f2013-06-11 18:52:11 +000022435 OCAML_LIBDIR=${prefix}/lib/ocaml
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022436
22437 fi
22438 fi
22439 ;;
22440 esac
22441done
22442if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022443 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22444echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22445 { (exit 1); exit 1; }; }
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022446fi
22447
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022448{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22449echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22450if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022452else
22453 ac_ext=cpp
22454ac_cpp='$CXXCPP $CPPFLAGS'
22455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22458
22459 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi652e0132012-02-19 12:05:12 +000022460 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022461 cat >conftest.$ac_ext <<_ACEOF
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022466/* end confdefs.h. */
Benjamin Kramer54671a72011-12-22 22:50:44 +000022467template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022468int
22469main ()
22470{
Benjamin Kramer942b2872011-12-22 22:25:26 +000022471X<int>().f();
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022472 ;
22473 return 0;
22474}
22475_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022476rm -f conftest.$ac_objext
22477if { (ac_try="$ac_compile"
22478case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22481esac
22482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22484 ac_status=$?
22485 grep -v '^ *+' conftest.er1 >conftest.err
22486 rm -f conftest.er1
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
22490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22491 { (case "(($ac_try" in
22492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493 *) ac_try_echo=$ac_try;;
22494esac
22495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496 (eval "$ac_try") 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; } &&
22500 { ac_try='test -s conftest.$ac_objext'
22501 { (case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22504esac
22505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_try") 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022510 llvm_cv_cxx_visibility_inlines_hidden=yes
22511else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022512 echo "$as_me: failed program was:" >&5
22513sed 's/^/| /' conftest.$ac_ext >&5
22514
22515 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022516fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022517
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519 CXXFLAGS="$oldcxxflags"
22520 ac_ext=c
22521ac_cpp='$CPP $CPPFLAGS'
22522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524ac_compiler_gnu=$ac_cv_c_compiler_gnu
22525
22526
22527fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022528{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22529echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022530if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22531 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22532
22533else
22534 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22535
22536fi
22537
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022538
Nick Lewyckyc540cc62009-03-05 08:20:44 +000022539if test "$llvm_cv_link_use_r" = "yes" ; then
22540 RPATH="-Wl,-R"
22541else
22542 RPATH="-Wl,-rpath"
22543fi
22544
22545
22546if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
Bob Wilson8d7e6902013-08-02 22:51:11 +000022547 RDYNAMIC="-rdynamic"
Nick Lewyckyc540cc62009-03-05 08:20:44 +000022548else
22549 RDYNAMIC=""
22550fi
Nick Lewyckyed8472e2009-03-03 04:55:29 +000022551
22552
Reid Spencer0241e382004-11-25 04:51:04 +000022553
Eric Christopher97014d82010-08-08 02:44:25 +000022554ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer0241e382004-11-25 04:51:04 +000022555
Eric Christopher41983c62010-08-08 09:20:39 +000022556
22557
22558
22559
22560
Douglas Gregor1b731d52009-06-16 20:12:29 +000022561ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22562
22563ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22564
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000022565ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22566
Daniel Dunbar32027202009-11-25 04:37:28 +000022567ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22568
Michael J. Spencer447762d2010-11-29 18:16:10 +000022569ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer0241e382004-11-25 04:51:04 +000022570
Reid Spencer0241e382004-11-25 04:51:04 +000022571
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022572ac_config_files="$ac_config_files Makefile.config"
Reid Spencer0241e382004-11-25 04:51:04 +000022573
Eric Christopher49709ad2011-10-26 00:42:12 +000022574
Reid Spencer1277ba22006-08-16 00:45:38 +000022575ac_config_files="$ac_config_files llvm.spec"
22576
22577
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000022578ac_config_files="$ac_config_files docs/doxygen.cfg"
22579
Eric Christopherf1329892012-02-02 00:16:55 +000022580
Dylan Noblesmithe21a3b22012-02-04 02:41:36 +000022581if test "${clang_src_root}" = ""; then
Eric Christopherdc51a5d2012-02-02 01:11:30 +000022582 clang_src_root="$srcdir/tools/clang"
Eric Christopher7f977de2012-02-02 00:19:05 +000022583fi
Eric Christopherf1329892012-02-02 00:16:55 +000022584if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000022585 configh="include/clang/Config/config.h"
22586 doxy="docs/doxygen.cfg"
22587 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopherf1329892012-02-02 00:16:55 +000022588
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000022589 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000022590
22591fi
22592
Torok Edwin229f8d72011-10-14 20:38:02 +000022593ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencer6f682b72006-03-22 15:59:55 +000022594
Eric Christopher49709ad2011-10-26 00:42:12 +000022595
Jordan Rose3c837ab2012-10-01 18:40:32 +000022596test "x$program_prefix" = "xNONE" && program_prefix=""
22597
22598
22599
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022600ac_config_commands="$ac_config_commands setup"
Reid Spencereeedeaf2005-02-24 19:05:19 +000022601
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022602ac_config_commands="$ac_config_commands Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022603
22604
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022605ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer0241e382004-11-25 04:51:04 +000022606
22607
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022608ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022609
22610
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022611ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022612
22613
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022614ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022615
22616
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022617ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer0241e382004-11-25 04:51:04 +000022618
22619
Bill Wendling7c53a182009-01-04 23:12:30 +000022620ac_config_commands="$ac_config_commands unittests/Makefile"
22621
22622
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022623ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022624
22625
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022626ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022627
22628
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022629ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022630
22631
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000022632ac_config_commands="$ac_config_commands bindings/Makefile"
22633
22634
22635ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22636
22637
Reid Spencer0241e382004-11-25 04:51:04 +000022638
John Criswell3ef61af2003-06-30 21:59:07 +000022639cat >confcache <<\_ACEOF
22640# This file is a shell script that caches the results of configure
22641# tests run on this system so they can be shared between configure
22642# scripts and configure runs, see configure's option --config-cache.
22643# It is not useful on other systems. If it contains results you don't
22644# want to keep, you may remove or edit it.
22645#
22646# config.status only pays attention to the cache file if you give it
22647# the --recheck option to rerun configure.
22648#
John Criswell3eaf0b42003-09-10 15:17:25 +000022649# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell3ef61af2003-06-30 21:59:07 +000022650# loading this file, other *unset* `ac_cv_foo' will be assigned the
22651# following values.
22652
22653_ACEOF
22654
22655# The following way of writing the cache mishandles newlines in values,
22656# but we know of no workaround that is simple, portable, and efficient.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022657# So, we kill variables containing newlines.
John Criswell3ef61af2003-06-30 21:59:07 +000022658# Ultrix sh set writes to stderr and can't be redirected directly,
22659# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022660(
22661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22662 eval ac_val=\$$ac_var
22663 case $ac_val in #(
22664 *${as_nl}*)
22665 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022666 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22667echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022668 esac
22669 case $ac_var in #(
22670 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022671 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022672 esac ;;
22673 esac
22674 done
22675
John Criswell3ef61af2003-06-30 21:59:07 +000022676 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022677 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22678 *${as_nl}ac_space=\ *)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022679 # `set' does not quote correctly, so add quotes (double-quote
22680 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell3ef61af2003-06-30 21:59:07 +000022681 sed -n \
Reid Spencerf184a862004-09-19 23:53:36 +000022682 "s/'/'\\\\''/g;
22683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022684 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +000022685 *)
22686 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +000022688 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022689 esac |
22690 sort
22691) |
John Criswell3ef61af2003-06-30 21:59:07 +000022692 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022693 /^ac_cv_env_/b end
John Criswell3ef61af2003-06-30 21:59:07 +000022694 t clear
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022695 :clear
John Criswell3ef61af2003-06-30 21:59:07 +000022696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22697 t end
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022698 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22699 :end' >>confcache
22700if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22701 if test -w "$cache_file"; then
22702 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022703 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22704echo "$as_me: updating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000022705 cat confcache >$cache_file
22706 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022707 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22708echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000022709 fi
22710fi
22711rm -f confcache
22712
22713test "x$prefix" = xNONE && prefix=$ac_default_prefix
22714# Let make expand exec_prefix.
22715test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22716
John Criswell3ef61af2003-06-30 21:59:07 +000022717DEFS=-DHAVE_CONFIG_H
22718
John Criswell3eaf0b42003-09-10 15:17:25 +000022719ac_libobjs=
22720ac_ltlibobjs=
22721for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22722 # 1. Remove the extension, and $U if already installed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022723 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022724 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022725 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22726 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022727 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22728 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell3eaf0b42003-09-10 15:17:25 +000022729done
22730LIBOBJS=$ac_libobjs
22731
22732LTLIBOBJS=$ac_ltlibobjs
22733
22734
Reid Spencera40c6872004-11-29 12:29:58 +000022735if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022736 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22737Usually this means the macro was only invoked conditionally." >&5
22738echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22739Usually this means the macro was only invoked conditionally." >&2;}
22740 { (exit 1); exit 1; }; }
Reid Spencera40c6872004-11-29 12:29:58 +000022741fi
22742if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022743 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22744Usually this means the macro was only invoked conditionally." >&5
22745echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22746Usually this means the macro was only invoked conditionally." >&2;}
22747 { (exit 1); exit 1; }; }
Reid Spencera40c6872004-11-29 12:29:58 +000022748fi
John Criswell3ef61af2003-06-30 21:59:07 +000022749
22750: ${CONFIG_STATUS=./config.status}
22751ac_clean_files_save=$ac_clean_files
22752ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022753{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22754echo "$as_me: creating $CONFIG_STATUS" >&6;}
22755cat >$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022756#! $SHELL
22757# Generated by $as_me.
22758# Run this file to recreate the current configuration.
22759# Compiler output produced by configure, useful for debugging
22760# configure, is in config.log if it exists.
22761
22762debug=false
John Criswell3eaf0b42003-09-10 15:17:25 +000022763ac_cs_recheck=false
22764ac_cs_silent=false
John Criswell3ef61af2003-06-30 21:59:07 +000022765SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022766_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022767
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022768cat >>$CONFIG_STATUS <<\_ACEOF
22769## --------------------- ##
22770## M4sh Initialization. ##
22771## --------------------- ##
22772
22773# Be Bourne compatible
22774if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3ef61af2003-06-30 21:59:07 +000022775 emulate sh
22776 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000022778 # is contrary to our usage. Disable this feature.
22779 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022780 setopt NO_GLOB_SUBST
22781else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022782 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3ef61af2003-06-30 21:59:07 +000022783fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022784BIN_SH=xpg4; export BIN_SH # for Tru64
22785DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3ef61af2003-06-30 21:59:07 +000022786
John Criswell3ef61af2003-06-30 21:59:07 +000022787
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022788# PATH needs CR
22789# Avoid depending upon Character Ranges.
22790as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22791as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22792as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22793as_cr_digits='0123456789'
22794as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3ef61af2003-06-30 21:59:07 +000022795
22796# The user is always right.
22797if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022798 echo "#! /bin/sh" >conf$$.sh
22799 echo "exit 0" >>conf$$.sh
22800 chmod +x conf$$.sh
22801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22802 PATH_SEPARATOR=';'
22803 else
22804 PATH_SEPARATOR=:
22805 fi
22806 rm -f conf$$.sh
22807fi
22808
22809# Support unset when possible.
22810if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22811 as_unset=unset
22812else
22813 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022814fi
John Criswell3ef61af2003-06-30 21:59:07 +000022815
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022816
22817# IFS
22818# We need space, tab and new line, in precisely that order. Quoting is
22819# there to prevent editors from complaining about space-tab.
22820# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22821# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022822as_nl='
22823'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022824IFS=" "" $as_nl"
22825
22826# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022827case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022828 *[\\/]* ) as_myself=$0 ;;
22829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3ef61af2003-06-30 21:59:07 +000022830for as_dir in $PATH
22831do
22832 IFS=$as_save_IFS
22833 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22835done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022836IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +000022837
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022838 ;;
22839esac
22840# We did not find ourselves, most probably we were run as `sh COMMAND'
22841# in which case we are not to be found in the path.
22842if test "x$as_myself" = x; then
22843 as_myself=$0
22844fi
22845if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022846 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22847 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022848fi
22849
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022850# Work around bugs in pre-3.0 UWIN ksh.
22851for as_var in ENV MAIL MAILPATH
22852do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022853done
22854PS1='$ '
22855PS2='> '
22856PS4='+ '
22857
22858# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022859for as_var in \
22860 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22861 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22862 LC_TELEPHONE LC_TIME
22863do
22864 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22865 eval $as_var=C; export $as_var
22866 else
22867 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +000022868 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022869done
Torok Edwinaec06332010-01-26 08:50:50 +000022870
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022871# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022872if expr a : '\(a\)' >/dev/null 2>&1 &&
22873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22874 as_expr=expr
22875else
22876 as_expr=false
22877fi
22878
22879if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22880 as_basename=basename
22881else
22882 as_basename=false
22883fi
22884
22885
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022886# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022887as_me=`$as_basename -- "$0" ||
22888$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22889 X"$0" : 'X\(//\)$' \| \
22890 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022891echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022892 sed '/^.*\/\([^/][^/]*\)\/*$/{
22893 s//\1/
22894 q
22895 }
22896 /^X\/\(\/\/\)$/{
22897 s//\1/
22898 q
22899 }
22900 /^X\/\(\/\).*/{
22901 s//\1/
22902 q
22903 }
22904 s/.*/./; q'`
22905
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022906# CDPATH.
22907$as_unset CDPATH
22908
22909
22910
22911 as_lineno_1=$LINENO
22912 as_lineno_2=$LINENO
22913 test "x$as_lineno_1" != "x$as_lineno_2" &&
22914 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22915
22916 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22917 # uniformly replaced by the line number. The first 'sed' inserts a
22918 # line-number line after each line using $LINENO; the second 'sed'
22919 # does the real work. The second script uses 'N' to pair each
22920 # line-number line with the line containing $LINENO, and appends
22921 # trailing '-' during substitution so that $LINENO is not a special
22922 # case at line end.
22923 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22924 # scripts with optimization help from Paolo Bonzini. Blame Lee
22925 # E. McMahon (1931-1989) for sed's syntax. :-)
22926 sed -n '
22927 p
22928 /[$]LINENO/=
22929 ' <$as_myself |
22930 sed '
22931 s/[$]LINENO.*/&-/
22932 t lineno
22933 b
22934 :lineno
22935 N
22936 :loop
22937 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22938 t loop
22939 s/-\n.*//
22940 ' >$as_me.lineno &&
22941 chmod +x "$as_me.lineno" ||
22942 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22943 { (exit 1); exit 1; }; }
22944
22945 # Don't try to exec as it changes $[0], causing all sort of problems
22946 # (the dirname of $[0] is not the place where we might find the
22947 # original and so on. Autoconf is especially sensitive to this).
22948 . "./$as_me.lineno"
22949 # Exit status is that of the last command.
22950 exit
22951}
22952
22953
22954if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22955 as_dirname=dirname
22956else
22957 as_dirname=false
22958fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022959
22960ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022961case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022962-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022963 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022965 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022966 esac;;
22967*)
22968 ECHO_N='-n';;
John Criswell3ef61af2003-06-30 21:59:07 +000022969esac
22970
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022971if expr a : '\(a\)' >/dev/null 2>&1 &&
22972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22973 as_expr=expr
22974else
22975 as_expr=false
22976fi
22977
John Criswell3ef61af2003-06-30 21:59:07 +000022978rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022979if test -d conf$$.dir; then
22980 rm -f conf$$.dir/conf$$.file
22981else
22982 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022983 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022984fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022985echo >conf$$.file
22986if ln -s conf$$.file conf$$ 2>/dev/null; then
22987 as_ln_s='ln -s'
22988 # ... but there are two gotchas:
22989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22991 # In both cases, we have to default to `cp -p'.
22992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3ef61af2003-06-30 21:59:07 +000022993 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022994elif ln conf$$.file conf$$ 2>/dev/null; then
22995 as_ln_s=ln
John Criswell3ef61af2003-06-30 21:59:07 +000022996else
22997 as_ln_s='cp -p'
22998fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022999rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23000rmdir conf$$.dir 2>/dev/null
John Criswell3ef61af2003-06-30 21:59:07 +000023001
John Criswell3eaf0b42003-09-10 15:17:25 +000023002if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023003 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +000023004else
Reid Spencerf184a862004-09-19 23:53:36 +000023005 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +000023006 as_mkdir_p=false
23007fi
23008
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023009# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23010# systems may use methods other than mode bits to determine executability.
23011cat >conf$$.file <<_ASEOF
23012#! /bin/sh
23013exit 0
23014_ASEOF
23015chmod +x conf$$.file
23016if test -x conf$$.file >/dev/null 2>&1; then
23017 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023018else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023019 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023020fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023021rm -f conf$$.file
John Criswell3ef61af2003-06-30 21:59:07 +000023022
23023# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +000023024as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000023025
23026# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +000023027as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000023028
23029
John Criswell3ef61af2003-06-30 21:59:07 +000023030exec 6>&1
23031
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023032# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell3ef61af2003-06-30 21:59:07 +000023033# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023034# values after options handling.
23035ac_log="
Bill Wendling70d39e62013-11-20 10:10:50 +000023036This file was extended by LLVM $as_me 3.5svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023037generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +000023038
23039 CONFIG_FILES = $CONFIG_FILES
23040 CONFIG_HEADERS = $CONFIG_HEADERS
23041 CONFIG_LINKS = $CONFIG_LINKS
23042 CONFIG_COMMANDS = $CONFIG_COMMANDS
23043 $ $0 $@
23044
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023045on `(hostname || uname -n) 2>/dev/null | sed 1q`
23046"
23047
John Criswell3ef61af2003-06-30 21:59:07 +000023048_ACEOF
23049
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023050cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023051# Files that config.status was made for.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023052config_files="$ac_config_files"
23053config_headers="$ac_config_headers"
23054config_commands="$ac_config_commands"
John Criswell3ef61af2003-06-30 21:59:07 +000023055
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023056_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023057
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023058cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023059ac_cs_usage="\
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023060\`$as_me' instantiates files from templates according to the
23061current configuration.
John Criswell3ef61af2003-06-30 21:59:07 +000023062
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023063Usage: $0 [OPTIONS] [FILE]...
John Criswell3ef61af2003-06-30 21:59:07 +000023064
23065 -h, --help print this help, then exit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023066 -V, --version print version number, then exit
23067 -q, --quiet do not print progress messages
John Criswell3ef61af2003-06-30 21:59:07 +000023068 -d, --debug don't remove temporary files
23069 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023070 --file=FILE[:TEMPLATE]
23071 instantiate the configuration file FILE
23072 --header=FILE[:TEMPLATE]
23073 instantiate the configuration header FILE
John Criswell3ef61af2003-06-30 21:59:07 +000023074
23075Configuration files:
23076$config_files
23077
23078Configuration headers:
23079$config_headers
23080
John Criswell3bac9bc2003-09-06 15:17:13 +000023081Configuration commands:
23082$config_commands
23083
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023084Report bugs to <bug-autoconf@gnu.org>."
John Criswell3ef61af2003-06-30 21:59:07 +000023085
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023086_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023087cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023088ac_cs_version="\\
Bill Wendling70d39e62013-11-20 10:10:50 +000023089LLVM config.status 3.5svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023090configured by $0, generated by GNU Autoconf 2.60,
23091 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell3ef61af2003-06-30 21:59:07 +000023092
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023093Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +000023094This config.status script is free software; the Free Software Foundation
23095gives unlimited permission to copy, distribute and modify it."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023096
23097ac_pwd='$ac_pwd'
23098srcdir='$srcdir'
23099INSTALL='$INSTALL'
John Criswell3ef61af2003-06-30 21:59:07 +000023100_ACEOF
23101
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023102cat >>$CONFIG_STATUS <<\_ACEOF
23103# If no file are specified by the user, then we need to provide default
23104# value. By we need to know if files were specified by the user.
John Criswell3ef61af2003-06-30 21:59:07 +000023105ac_need_defaults=:
23106while test $# != 0
23107do
23108 case $1 in
23109 --*=*)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell3eaf0b42003-09-10 15:17:25 +000023112 ac_shift=:
John Criswell3ef61af2003-06-30 21:59:07 +000023113 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023114 *)
John Criswell3eaf0b42003-09-10 15:17:25 +000023115 ac_option=$1
23116 ac_optarg=$2
23117 ac_shift=shift
23118 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023119 esac
23120
John Criswell3eaf0b42003-09-10 15:17:25 +000023121 case $ac_option in
John Criswell3ef61af2003-06-30 21:59:07 +000023122 # Handling of the options.
John Criswell3eaf0b42003-09-10 15:17:25 +000023123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23124 ac_cs_recheck=: ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023126 echo "$ac_cs_version"; exit ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023127 --debug | --debu | --deb | --de | --d | -d )
John Criswell3ef61af2003-06-30 21:59:07 +000023128 debug=: ;;
23129 --file | --fil | --fi | --f )
John Criswell3eaf0b42003-09-10 15:17:25 +000023130 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023131 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000023132 ac_need_defaults=false;;
23133 --header | --heade | --head | --hea )
John Criswell3eaf0b42003-09-10 15:17:25 +000023134 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023135 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000023136 ac_need_defaults=false;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023137 --he | --h)
23138 # Conflict between --help and --header
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023139 { echo "$as_me: error: ambiguous option: $1
23140Try \`$0 --help' for more information." >&2
23141 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023142 --help | --hel | -h )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023143 echo "$ac_cs_usage"; exit ;;
John Criswell3eaf0b42003-09-10 15:17:25 +000023144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23146 ac_cs_silent=: ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023147
23148 # This is an error.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023149 -*) { echo "$as_me: error: unrecognized option: $1
23150Try \`$0 --help' for more information." >&2
23151 { (exit 1); exit 1; }; } ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023152
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023153 *) ac_config_targets="$ac_config_targets $1"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023154 ac_need_defaults=false ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023155
23156 esac
23157 shift
23158done
23159
John Criswell3eaf0b42003-09-10 15:17:25 +000023160ac_configure_extra_args=
23161
23162if $ac_cs_silent; then
23163 exec 6>/dev/null
23164 ac_configure_extra_args="$ac_configure_extra_args --silent"
23165fi
23166
23167_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023168cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000023169if \$ac_cs_recheck; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023170 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23171 CONFIG_SHELL=$SHELL
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023172 export CONFIG_SHELL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023173 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell3eaf0b42003-09-10 15:17:25 +000023174fi
23175
John Criswell3ef61af2003-06-30 21:59:07 +000023176_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023177cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023178exec 5>>config.log
23179{
23180 echo
23181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23182## Running $as_me. ##
23183_ASBOX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023184 echo "$ac_log"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023185} >&5
John Criswell3ef61af2003-06-30 21:59:07 +000023186
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023187_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023188cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3bac9bc2003-09-06 15:17:13 +000023189#
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023190# INIT-COMMANDS
John Criswell3bac9bc2003-09-06 15:17:13 +000023191#
Reid Spencereeedeaf2005-02-24 19:05:19 +000023192llvm_src="${srcdir}"
John Criswell3bac9bc2003-09-06 15:17:13 +000023193
23194_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023195
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023196cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023197
23198# Handling of arguments.
John Criswell3ef61af2003-06-30 21:59:07 +000023199for ac_config_target in $ac_config_targets
23200do
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023201 case $ac_config_target in
23202 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christopher97014d82010-08-08 02:44:25 +000023203 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1b731d52009-06-16 20:12:29 +000023204 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23205 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000023206 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar32027202009-11-25 04:37:28 +000023207 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer447762d2010-11-29 18:16:10 +000023208 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023209 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1277ba22006-08-16 00:45:38 +000023210 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000023211 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000023212 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23213 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher49709ad2011-10-26 00:42:12 +000023214 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023215 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23216 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23217 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23218 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23219 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023220 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23221 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000023222 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023223 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23224 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23225 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023226 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23227 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023228
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23230echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23231 { (exit 1); exit 1; }; };;
John Criswell3ef61af2003-06-30 21:59:07 +000023232 esac
23233done
23234
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023235
John Criswell3ef61af2003-06-30 21:59:07 +000023236# If the user did not use the arguments to specify the items to instantiate,
23237# then the envvar interface is used. Set only those that are not.
23238# We use the long form for the default assignment because of an extremely
23239# bizarre bug on SunOS 4.1.3.
23240if $ac_need_defaults; then
23241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswell3bac9bc2003-09-06 15:17:13 +000023243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell3ef61af2003-06-30 21:59:07 +000023244fi
23245
John Criswell3eaf0b42003-09-10 15:17:25 +000023246# Have a temporary directory for convenience. Make it in the build tree
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023247# simply because there is no reason against having it here, and in addition,
John Criswell3eaf0b42003-09-10 15:17:25 +000023248# creating and moving files from /tmp can sometimes cause problems.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023249# Hook for its removal unless debugging.
23250# Note that there is a small window in which the directory will not be cleaned:
23251# after its creation but before its name has been assigned to `$tmp'.
John Criswell3ef61af2003-06-30 21:59:07 +000023252$debug ||
23253{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023254 tmp=
23255 trap 'exit_status=$?
23256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23257' 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023258 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell3ef61af2003-06-30 21:59:07 +000023259}
John Criswell3ef61af2003-06-30 21:59:07 +000023260# Create a (secure) tmp directory for tmp files.
John Criswell3eaf0b42003-09-10 15:17:25 +000023261
John Criswell3ef61af2003-06-30 21:59:07 +000023262{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell3ef61af2003-06-30 21:59:07 +000023264 test -n "$tmp" && test -d "$tmp"
23265} ||
23266{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023267 tmp=./conf$$-$RANDOM
23268 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023269} ||
23270{
23271 echo "$me: cannot create a temporary directory in ." >&2
23272 { (exit 1); exit 1; }
23273}
John Criswell3ef61af2003-06-30 21:59:07 +000023274
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023275#
23276# Set up the sed scripts for CONFIG_FILES section.
23277#
23278
23279# No need to generate the scripts if there are no CONFIG_FILES.
23280# This happens for instance when ./config.status config.h
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023281if test -n "$CONFIG_FILES"; then
John Criswell3ef61af2003-06-30 21:59:07 +000023282
23283_ACEOF
23284
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023285
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023286
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023287ac_delim='%!_!# '
23288for ac_last_try in false false false false false :; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023289 cat >conf$$subs.sed <<_ACEOF
23290SHELL!$SHELL$ac_delim
23291PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23292PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23293PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23294PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23295PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23296PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23297exec_prefix!$exec_prefix$ac_delim
23298prefix!$prefix$ac_delim
23299program_transform_name!$program_transform_name$ac_delim
23300bindir!$bindir$ac_delim
23301sbindir!$sbindir$ac_delim
23302libexecdir!$libexecdir$ac_delim
23303datarootdir!$datarootdir$ac_delim
23304datadir!$datadir$ac_delim
23305sysconfdir!$sysconfdir$ac_delim
23306sharedstatedir!$sharedstatedir$ac_delim
23307localstatedir!$localstatedir$ac_delim
23308includedir!$includedir$ac_delim
23309oldincludedir!$oldincludedir$ac_delim
23310docdir!$docdir$ac_delim
23311infodir!$infodir$ac_delim
23312htmldir!$htmldir$ac_delim
23313dvidir!$dvidir$ac_delim
23314pdfdir!$pdfdir$ac_delim
23315psdir!$psdir$ac_delim
23316libdir!$libdir$ac_delim
23317localedir!$localedir$ac_delim
23318mandir!$mandir$ac_delim
23319DEFS!$DEFS$ac_delim
23320ECHO_C!$ECHO_C$ac_delim
23321ECHO_N!$ECHO_N$ac_delim
23322ECHO_T!$ECHO_T$ac_delim
23323LIBS!$LIBS$ac_delim
23324build_alias!$build_alias$ac_delim
23325host_alias!$host_alias$ac_delim
23326target_alias!$target_alias$ac_delim
23327LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000023328CC!$CC$ac_delim
23329CFLAGS!$CFLAGS$ac_delim
23330LDFLAGS!$LDFLAGS$ac_delim
23331CPPFLAGS!$CPPFLAGS$ac_delim
23332ac_ct_CC!$ac_ct_CC$ac_delim
23333EXEEXT!$EXEEXT$ac_delim
23334OBJEXT!$OBJEXT$ac_delim
23335CXX!$CXX$ac_delim
23336CXXFLAGS!$CXXFLAGS$ac_delim
23337ac_ct_CXX!$ac_ct_CXX$ac_delim
23338CPP!$CPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023339subdirs!$subdirs$ac_delim
Tobias Grosserea9dca42010-10-30 00:54:26 +000023340ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23341LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023342build!$build$ac_delim
23343build_cpu!$build_cpu$ac_delim
23344build_vendor!$build_vendor$ac_delim
23345build_os!$build_os$ac_delim
23346host!$host$ac_delim
23347host_cpu!$host_cpu$ac_delim
23348host_vendor!$host_vendor$ac_delim
23349host_os!$host_os$ac_delim
23350target!$target$ac_delim
23351target_cpu!$target_cpu$ac_delim
23352target_vendor!$target_vendor$ac_delim
23353target_os!$target_os$ac_delim
23354OS!$OS$ac_delim
23355HOST_OS!$HOST_OS$ac_delim
23356TARGET_OS!$TARGET_OS$ac_delim
23357LINKALL!$LINKALL$ac_delim
23358NOLINKALL!$NOLINKALL$ac_delim
23359LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23360LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23361ARCH!$ARCH$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000023362HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023363LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23364BUILD_CC!$BUILD_CC$ac_delim
23365BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23366BUILD_CXX!$BUILD_CXX$ac_delim
23367CVSBUILD!$CVSBUILD$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000023368ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000023369ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Eric Christopherf1bd7702013-06-25 01:12:25 +000023370ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023371ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23372ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23373ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023374ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23375ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23376DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000023377ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023378ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23379EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23380DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23381DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000023382KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023383JIT!$JIT$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000023384TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23385ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23386ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023387_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023388
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023390 break
23391 elif $ac_last_try; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23393echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23394 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023395 else
23396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell3ef61af2003-06-30 21:59:07 +000023397 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023398done
23399
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023400ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23401if test -n "$ac_eof"; then
23402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23403 ac_eof=`expr $ac_eof + 1`
23404fi
23405
23406cat >>$CONFIG_STATUS <<_ACEOF
23407cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023409_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023410sed '
23411s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23412s/^/s,@/; s/!/@,|#_!!_#|/
23413:n
23414t n
23415s/'"$ac_delim"'$/,g/; t
23416s/$/\\/; p
23417N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23418' >>$CONFIG_STATUS <conf$$subs.sed
23419rm -f conf$$subs.sed
23420cat >>$CONFIG_STATUS <<_ACEOF
23421CEOF$ac_eof
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023422_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023423
23424
23425ac_delim='%!_!# '
23426for ac_last_try in false false false false false :; do
23427 cat >conf$$subs.sed <<_ACEOF
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023428LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000023429ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023430LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000023431ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000023432ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000023433ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000023434ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000023435TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23436LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23437LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +000023438LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumic6fce172010-12-29 03:59:03 +000023439LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000023440OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000023441EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbar3b95df82011-06-16 22:30:41 +000023442EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumi914f1922011-10-16 02:54:26 +000023443CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000023444BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilson3f354702011-11-28 07:59:52 +000023445INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023446NM!$NM$ac_delim
23447ifGNUmake!$ifGNUmake$ac_delim
23448LN_S!$LN_S$ac_delim
23449CMP!$CMP$ac_delim
23450CP!$CP$ac_delim
23451DATE!$DATE$ac_delim
23452FIND!$FIND$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000023453GREP!$GREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023454MKDIR!$MKDIR$ac_delim
23455MV!$MV$ac_delim
23456RANLIB!$RANLIB$ac_delim
23457AR!$AR$ac_delim
23458RM!$RM$ac_delim
23459SED!$SED$ac_delim
23460TAR!$TAR$ac_delim
23461BINPWD!$BINPWD$ac_delim
23462GRAPHVIZ!$GRAPHVIZ$ac_delim
23463DOT!$DOT$ac_delim
23464FDP!$FDP$ac_delim
23465NEATO!$NEATO$ac_delim
23466TWOPI!$TWOPI$ac_delim
23467CIRCO!$CIRCO$ac_delim
23468GV!$GV$ac_delim
23469DOTTY!$DOTTY$ac_delim
Matt Arsenaultfe56cc62013-07-08 20:24:54 +000023470XDOT!$XDOT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023471INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23472INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23473INSTALL_DATA!$INSTALL_DATA$ac_delim
23474BZIP2!$BZIP2$ac_delim
mike-me08af302010-05-06 23:45:43 +000023475CAT!$CAT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023476DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023477GROFF!$GROFF$ac_delim
Eric Christopher77560892010-12-10 01:31:51 +000023478GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023479PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023480ZIP!$ZIP$ac_delim
23481OCAMLC!$OCAMLC$ac_delim
23482OCAMLOPT!$OCAMLOPT$ac_delim
23483OCAMLDEP!$OCAMLDEP$ac_delim
23484OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023485GAS!$GAS$ac_delim
Dan Gohmanb7edb422010-06-01 14:56:56 +000023486HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000023487EGREP!$EGREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023488INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23489INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23490CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23491CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23492LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023493NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23494NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola42e94d12012-02-28 23:32:06 +000023495COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000023496NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23497NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000023498PYTHON!$PYTHON$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023499USE_UDIS86!$USE_UDIS86$ac_delim
23500USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky5262ad22012-03-13 08:33:15 +000023501USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopherc807c532012-08-03 19:47:19 +000023502XML2CONFIG!$XML2CONFIG$ac_delim
23503LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23504LIBXML2_INC!$LIBXML2_INC$ac_delim
Benjamin Kramer00622f72013-05-03 15:55:06 +000023505CXXCPP!$CXXCPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023506HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023507HAVE_LIBZ!$HAVE_LIBZ$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023508HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23509MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023510SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000023511SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023512LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23513LLVM_BINDIR!$LLVM_BINDIR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023514LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23515LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23516LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23517LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23518LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23519LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23520LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23521BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23522ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Daniel Dunbareb6c7082013-08-30 20:39:21 +000023523OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000023524ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023525_ACEOF
23526
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023527 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023528 break
23529 elif $ac_last_try; then
23530 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23531echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23532 { (exit 1); exit 1; }; }
23533 else
23534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23535 fi
23536done
23537
23538ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23539if test -n "$ac_eof"; then
23540 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23541 ac_eof=`expr $ac_eof + 1`
23542fi
23543
23544cat >>$CONFIG_STATUS <<_ACEOF
23545cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023546/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23547_ACEOF
23548sed '
23549s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23550s/^/s,@/; s/!/@,|#_!!_#|/
23551:n
23552t n
23553s/'"$ac_delim"'$/,g/; t
23554s/$/\\/; p
23555N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23556' >>$CONFIG_STATUS <conf$$subs.sed
23557rm -f conf$$subs.sed
23558cat >>$CONFIG_STATUS <<_ACEOF
23559CEOF$ac_eof
23560_ACEOF
23561
23562
23563ac_delim='%!_!# '
23564for ac_last_try in false false false false false :; do
23565 cat >conf$$subs.sed <<_ACEOF
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023566RPATH!$RPATH$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000023567RDYNAMIC!$RDYNAMIC$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000023568program_prefix!$program_prefix$ac_delim
23569LIBOBJS!$LIBOBJS$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023570LTLIBOBJS!$LTLIBOBJS$ac_delim
23571_ACEOF
23572
Eric Christopherd7ed36b2014-01-09 01:09:57 +000023573 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023574 break
23575 elif $ac_last_try; then
23576 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23577echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23578 { (exit 1); exit 1; }; }
23579 else
23580 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23581 fi
23582done
23583
23584ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23585if test -n "$ac_eof"; then
23586 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23587 ac_eof=`expr $ac_eof + 1`
23588fi
23589
23590cat >>$CONFIG_STATUS <<_ACEOF
23591cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose2998d252012-09-26 00:01:00 +000023592/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grosser61cb2452010-11-10 16:31:34 +000023593_ACEOF
23594sed '
23595s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23596s/^/s,@/; s/!/@,|#_!!_#|/
23597:n
23598t n
23599s/'"$ac_delim"'$/,g/; t
23600s/$/\\/; p
23601N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23602' >>$CONFIG_STATUS <conf$$subs.sed
23603rm -f conf$$subs.sed
23604cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose2998d252012-09-26 00:01:00 +000023605:end
23606s/|#_!!_#|//g
Tobias Grosser61cb2452010-11-10 16:31:34 +000023607CEOF$ac_eof
23608_ACEOF
23609
23610
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023611# VPATH may cause trouble with some makes, so we remove $(srcdir),
23612# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23613# trailing colons and then remove the whole line if VPATH becomes empty
23614# (actually we leave an empty line to preserve line numbers).
23615if test "x$srcdir" = x.; then
23616 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23617s/:*\$(srcdir):*/:/
23618s/:*\${srcdir}:*/:/
23619s/:*@srcdir@:*/:/
23620s/^\([^=]*=[ ]*\):*/\1/
23621s/:*$//
23622s/^[^=]*=[ ]*$//
23623}'
23624fi
23625
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023626cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023627fi # test -n "$CONFIG_FILES"
23628
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023629
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023630for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023631do
23632 case $ac_tag in
23633 :[FHLC]) ac_mode=$ac_tag; continue;;
23634 esac
23635 case $ac_mode$ac_tag in
23636 :[FHL]*:*);;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023637 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23638echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23639 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023640 :[FH]-) ac_tag=-:-;;
23641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23642 esac
23643 ac_save_IFS=$IFS
23644 IFS=:
23645 set x $ac_tag
23646 IFS=$ac_save_IFS
23647 shift
23648 ac_file=$1
23649 shift
23650
23651 case $ac_mode in
23652 :L) ac_source=$1;;
23653 :[FH])
23654 ac_file_inputs=
23655 for ac_f
23656 do
23657 case $ac_f in
23658 -) ac_f="$tmp/stdin";;
23659 *) # Look for the file first in the build tree, then in the source tree
23660 # (if the path is not absolute). The absolute path cannot be DOS-style,
23661 # because $ac_f cannot contain `:'.
23662 test -f "$ac_f" ||
23663 case $ac_f in
23664 [\\/$]*) false;;
23665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23666 esac ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023667 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23668echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23669 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023670 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023671 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023672 done
23673
23674 # Let's still pretend it is `configure' which instantiates (i.e., don't
23675 # use $as_me), people would be surprised to read:
23676 # /* config.h. Generated by config.status. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023677 configure_input="Generated from "`IFS=:
23678 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023679 if test x"$ac_file" != x-; then
23680 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023681 { echo "$as_me:$LINENO: creating $ac_file" >&5
23682echo "$as_me: creating $ac_file" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023683 fi
23684
23685 case $ac_tag in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023686 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023687 esac
23688 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023689 esac
23690
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023691 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell3ef61af2003-06-30 21:59:07 +000023692$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencerf184a862004-09-19 23:53:36 +000023693 X"$ac_file" : 'X\(//\)[^/]' \| \
23694 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023696echo X"$ac_file" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23698 s//\1/
23699 q
23700 }
23701 /^X\(\/\/\)[^/].*/{
23702 s//\1/
23703 q
23704 }
23705 /^X\(\/\/\)$/{
23706 s//\1/
23707 q
23708 }
23709 /^X\(\/\).*/{
23710 s//\1/
23711 q
23712 }
23713 s/.*/./; q'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023714 { as_dir="$ac_dir"
23715 case $as_dir in #(
23716 -*) as_dir=./$as_dir;;
23717 esac
23718 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23719 as_dirs=
23720 while :; do
23721 case $as_dir in #(
23722 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23723 *) as_qdir=$as_dir;;
23724 esac
23725 as_dirs="'$as_qdir' $as_dirs"
23726 as_dir=`$as_dirname -- "$as_dir" ||
23727$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23728 X"$as_dir" : 'X\(//\)[^/]' \| \
23729 X"$as_dir" : 'X\(//\)$' \| \
23730 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23731echo X"$as_dir" |
23732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23733 s//\1/
23734 q
23735 }
23736 /^X\(\/\/\)[^/].*/{
23737 s//\1/
23738 q
23739 }
23740 /^X\(\/\/\)$/{
23741 s//\1/
23742 q
23743 }
23744 /^X\(\/\).*/{
23745 s//\1/
23746 q
23747 }
23748 s/.*/./; q'`
23749 test -d "$as_dir" && break
23750 done
23751 test -z "$as_dirs" || eval "mkdir $as_dirs"
23752 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23753echo "$as_me: error: cannot create directory $as_dir" >&2;}
23754 { (exit 1); exit 1; }; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000023755 ac_builddir=.
23756
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023757case "$ac_dir" in
23758.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023761 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023762 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023763 case $ac_top_builddir_sub in
23764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23766 esac ;;
23767esac
23768ac_abs_top_builddir=$ac_pwd
23769ac_abs_builddir=$ac_pwd$ac_dir_suffix
23770# for backward compatibility:
23771ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +000023772
23773case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023774 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +000023775 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023776 ac_top_srcdir=$ac_top_builddir_sub
23777 ac_abs_top_srcdir=$ac_pwd ;;
23778 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +000023779 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023780 ac_top_srcdir=$srcdir
23781 ac_abs_top_srcdir=$srcdir ;;
23782 *) # Relative name.
23783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23784 ac_top_srcdir=$ac_top_build_prefix$srcdir
23785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023786esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023787ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +000023788
John Criswell3ef61af2003-06-30 21:59:07 +000023789
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023790 case $ac_mode in
23791 :F)
23792 #
23793 # CONFIG_FILE
23794 #
John Criswell3ef61af2003-06-30 21:59:07 +000023795
23796 case $INSTALL in
23797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023798 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023799 esac
John Criswell3ef61af2003-06-30 21:59:07 +000023800_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023801
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023802cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023803# If the template does not know about datarootdir, expand it.
23804# FIXME: This hack should be removed a few years after 2.60.
23805ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023806
23807case `sed -n '/datarootdir/ {
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023808 p
23809 q
23810}
23811/@datadir@/p
23812/@docdir@/p
23813/@infodir@/p
23814/@localedir@/p
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023815/@mandir@/p
23816' $ac_file_inputs` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023817*datarootdir*) ac_datarootdir_seen=yes;;
23818*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023819 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23820echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023821_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023822cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023823 ac_datarootdir_hack='
23824 s&@datadir@&$datadir&g
23825 s&@docdir@&$docdir&g
23826 s&@infodir@&$infodir&g
23827 s&@localedir@&$localedir&g
23828 s&@mandir@&$mandir&g
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023829 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023830esac
23831_ACEOF
23832
23833# Neutralize VPATH when `$srcdir' = `.'.
23834# Shell code in configure.ac might set extrasub.
23835# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023836cat >>$CONFIG_STATUS <<_ACEOF
23837 sed "$ac_vpsub
John Criswell3ef61af2003-06-30 21:59:07 +000023838$extrasub
23839_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023840cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023841:t
23842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023843s&@configure_input@&$configure_input&;t t
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023844s&@top_builddir@&$ac_top_builddir_sub&;t t
23845s&@srcdir@&$ac_srcdir&;t t
23846s&@abs_srcdir@&$ac_abs_srcdir&;t t
23847s&@top_srcdir@&$ac_top_srcdir&;t t
23848s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23849s&@builddir@&$ac_builddir&;t t
23850s&@abs_builddir@&$ac_abs_builddir&;t t
23851s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23852s&@INSTALL@&$ac_INSTALL&;t t
23853$ac_datarootdir_hack
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023854" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell3ef61af2003-06-30 21:59:07 +000023855
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023856test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023859 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023860which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023861echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023862which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000023863
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023864 rm -f "$tmp/stdin"
John Criswell3ef61af2003-06-30 21:59:07 +000023865 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023866 -) cat "$tmp/out"; rm -f "$tmp/out";;
23867 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23868 esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023869 ;;
23870 :H)
23871 #
23872 # CONFIG_HEADER
23873 #
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023874_ACEOF
23875
23876# Transform confdefs.h into a sed script `conftest.defines', that
23877# substitutes the proper values into config.h.in to produce config.h.
23878rm -f conftest.defines conftest.tail
23879# First, append a space to every undef/define line, to ease matching.
23880echo 's/$/ /' >conftest.defines
23881# Then, protect against being on the right side of a sed subst, or in
23882# an unquoted here document, in config.status. If some macros were
23883# called several times there might be several #defines for the same
23884# symbol, which is useless. But do not sort them, since the last
23885# AC_DEFINE must be honored.
23886ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888# NAME is the cpp macro being defined, VALUE is the value it is being given.
23889# PARAMS is the parameter list in the macro definition--in most cases, it's
23890# just an empty string.
23891ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23892ac_dB='\\)[ (].*,\\1define\\2'
23893ac_dC=' '
23894ac_dD=' ,'
23895
23896uniq confdefs.h |
23897 sed -n '
23898 t rset
23899 :rset
23900 s/^[ ]*#[ ]*define[ ][ ]*//
23901 t ok
23902 d
23903 :ok
23904 s/[\\&,]/\\&/g
23905 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907 ' >>conftest.defines
23908
23909# Remove the space that was appended to ease matching.
23910# Then replace #undef with comments. This is necessary, for
23911# example, in the case of _POSIX_SOURCE, which is predefined and required
23912# on some systems where configure will not decide to define it.
23913# (The regexp can be short, since the line contains either #define or #undef.)
23914echo 's/ $//
23915s,^[ #]*u.*,/* & */,' >>conftest.defines
23916
23917# Break up conftest.defines:
23918ac_max_sed_lines=50
23919
23920# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23923# et cetera.
23924ac_in='$ac_file_inputs'
23925ac_out='"$tmp/out1"'
23926ac_nxt='"$tmp/out2"'
23927
23928while :
23929do
23930 # Write a here document:
23931 cat >>$CONFIG_STATUS <<_ACEOF
23932 # First, check the format of the line:
23933 cat >"\$tmp/defines.sed" <<\\CEOF
23934/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23935/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23936b
23937:def
23938_ACEOF
23939 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23940 echo 'CEOF
23941 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944 grep . conftest.tail >/dev/null || break
23945 rm -f conftest.defines
23946 mv conftest.tail conftest.defines
23947done
23948rm -f conftest.defines conftest.tail
23949
23950echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023952 if test x"$ac_file" != x-; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023953 echo "/* $configure_input */" >"$tmp/config.h"
23954 cat "$ac_result" >>"$tmp/config.h"
23955 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000023958 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023959 rm -f $ac_file
23960 mv "$tmp/config.h" $ac_file
John Criswell3ef61af2003-06-30 21:59:07 +000023961 fi
23962 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023963 echo "/* $configure_input */"
23964 cat "$ac_result"
John Criswell3ef61af2003-06-30 21:59:07 +000023965 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023966 rm -f "$tmp/out12"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023967 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000023968
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023969 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23970echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023971 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000023972 esac
John Criswell3ef61af2003-06-30 21:59:07 +000023973
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023974
23975 case $ac_file$ac_mode in
23976 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023977 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023978 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwind70eebe2009-08-28 16:12:48 +000023979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023980 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023982 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023984 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023986 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwind70eebe2009-08-28 16:12:48 +000023987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000023988 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023990 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023992 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023994 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023996 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023998 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwind70eebe2009-08-28 16:12:48 +000023999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024000
24001 esac
24002done # for ac_tag
24003
John Criswell3ef61af2003-06-30 21:59:07 +000024004
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024005{ (exit 0); exit 0; }
John Criswell3ef61af2003-06-30 21:59:07 +000024006_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024007chmod +x $CONFIG_STATUS
John Criswell3ef61af2003-06-30 21:59:07 +000024008ac_clean_files=$ac_clean_files_save
24009
24010
24011# configure is writing to config.log, and then calls config.status.
24012# config.status does its own redirection, appending to config.log.
24013# Unfortunately, on DOS this fails, as config.log is still kept open
24014# by configure, so config.status won't be able to write to it; its
24015# output is simply discarded. So we exec the FD to /dev/null,
24016# effectively closing config.log, so it can be properly (re)opened and
24017# appended to by config.status. When coming back to configure, we
24018# need to make the FD available again.
24019if test "$no_create" != yes; then
24020 ac_cs_success=:
John Criswell3eaf0b42003-09-10 15:17:25 +000024021 ac_config_status_args=
24022 test "$silent" = yes &&
24023 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell3ef61af2003-06-30 21:59:07 +000024024 exec 5>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +000024025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell3ef61af2003-06-30 21:59:07 +000024026 exec 5>>config.log
24027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24028 # would make configure fail if this is the last instruction.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024029 $ac_cs_success || { (exit 1); exit 1; }
John Criswell3ef61af2003-06-30 21:59:07 +000024030fi
24031
John Criswell2b3771e2003-09-30 15:55:44 +000024032#
24033# CONFIG_SUBDIRS section.
24034#
24035if test "$no_recursion" != yes; then
24036
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024037 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell2b3771e2003-09-30 15:55:44 +000024038 ac_sub_configure_args=
24039 ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024040 eval "set x $ac_configure_args"
24041 shift
24042 for ac_arg
24043 do
John Criswell2b3771e2003-09-30 15:55:44 +000024044 if test -n "$ac_prev"; then
24045 ac_prev=
24046 continue
24047 fi
24048 case $ac_arg in
24049 -cache-file | --cache-file | --cache-fil | --cache-fi \
24050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24051 ac_prev=cache_file ;;
24052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24054 | --c=*)
24055 ;;
24056 --config-cache | -C)
24057 ;;
24058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24059 ac_prev=srcdir ;;
24060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24061 ;;
24062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24063 ac_prev=prefix ;;
24064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24065 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024066 *)
24067 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024068 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024069 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024070 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell2b3771e2003-09-30 15:55:44 +000024071 esac
24072 done
24073
24074 # Always prepend --prefix to ensure using the same prefix
24075 # in subdir configurations.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024076 ac_arg="--prefix=$prefix"
24077 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024078 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024079 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024080 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell2b3771e2003-09-30 15:55:44 +000024081
24082 ac_popdir=`pwd`
24083 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24084
24085 # Do not complain, so a configure script can configure whichever
24086 # parts of a large source tree are present.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024087 test -d "$srcdir/$ac_dir" || continue
John Criswell2b3771e2003-09-30 15:55:44 +000024088
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024089 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024090 echo "$as_me:$LINENO: $ac_msg" >&5
24091 echo "$ac_msg" >&6
24092 { as_dir="$ac_dir"
24093 case $as_dir in #(
24094 -*) as_dir=./$as_dir;;
24095 esac
24096 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24097 as_dirs=
24098 while :; do
24099 case $as_dir in #(
24100 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24101 *) as_qdir=$as_dir;;
24102 esac
24103 as_dirs="'$as_qdir' $as_dirs"
24104 as_dir=`$as_dirname -- "$as_dir" ||
24105$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24106 X"$as_dir" : 'X\(//\)[^/]' \| \
24107 X"$as_dir" : 'X\(//\)$' \| \
24108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24109echo X"$as_dir" |
24110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24111 s//\1/
24112 q
24113 }
24114 /^X\(\/\/\)[^/].*/{
24115 s//\1/
24116 q
24117 }
24118 /^X\(\/\/\)$/{
24119 s//\1/
24120 q
24121 }
24122 /^X\(\/\).*/{
24123 s//\1/
24124 q
24125 }
24126 s/.*/./; q'`
24127 test -d "$as_dir" && break
24128 done
24129 test -z "$as_dirs" || eval "mkdir $as_dirs"
24130 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24131echo "$as_me: error: cannot create directory $as_dir" >&2;}
24132 { (exit 1); exit 1; }; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000024133 ac_builddir=.
24134
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024135case "$ac_dir" in
24136.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24137*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024139 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024140 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024141 case $ac_top_builddir_sub in
24142 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24143 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24144 esac ;;
24145esac
24146ac_abs_top_builddir=$ac_pwd
24147ac_abs_builddir=$ac_pwd$ac_dir_suffix
24148# for backward compatibility:
24149ac_top_builddir=$ac_top_build_prefix
John Criswell2b3771e2003-09-30 15:55:44 +000024150
24151case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024152 .) # We are building in place.
John Criswell2b3771e2003-09-30 15:55:44 +000024153 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024154 ac_top_srcdir=$ac_top_builddir_sub
24155 ac_abs_top_srcdir=$ac_pwd ;;
24156 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell2b3771e2003-09-30 15:55:44 +000024157 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024158 ac_top_srcdir=$srcdir
24159 ac_abs_top_srcdir=$srcdir ;;
24160 *) # Relative name.
24161 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24162 ac_top_srcdir=$ac_top_build_prefix$srcdir
24163 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell2b3771e2003-09-30 15:55:44 +000024164esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024165ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell2b3771e2003-09-30 15:55:44 +000024166
24167
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024168 cd "$ac_dir"
John Criswell2b3771e2003-09-30 15:55:44 +000024169
24170 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024171 if test -f "$ac_srcdir/configure.gnu"; then
24172 ac_sub_configure=$ac_srcdir/configure.gnu
24173 elif test -f "$ac_srcdir/configure"; then
24174 ac_sub_configure=$ac_srcdir/configure
24175 elif test -f "$ac_srcdir/configure.in"; then
24176 # This should be Cygnus configure.
24177 ac_sub_configure=$ac_aux_dir/configure
John Criswell2b3771e2003-09-30 15:55:44 +000024178 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024179 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24180echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell2b3771e2003-09-30 15:55:44 +000024181 ac_sub_configure=
24182 fi
24183
24184 # The recursion is here.
24185 if test -n "$ac_sub_configure"; then
24186 # Make the cache file name correct relative to the subdirectory.
24187 case $cache_file in
24188 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024189 *) # Relative name.
24190 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell2b3771e2003-09-30 15:55:44 +000024191 esac
24192
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024193 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24194echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell2b3771e2003-09-30 15:55:44 +000024195 # The eval makes quoting arguments work.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024196 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24197 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024198 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24199echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24200 { (exit 1); exit 1; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000024201 fi
24202
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024203 cd "$ac_popdir"
John Criswell2b3771e2003-09-30 15:55:44 +000024204 done
24205fi
24206