blob: bb612d5b5b61c6cb54b7ea5783f0a9d8288fd90c [file] [log] [blame]
John Criswell3ef61af2003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
John Criswell3ef61af2003-06-30 21:59:07 +00004#
Eric Christopherafbe7522011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00006#
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +000011#
NAKAMURA Takumi43632a22013-01-01 10:00:19 +000012# Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +000016
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3eaf0b42003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3eaf0b42003-09-10 15:17:25 +000027fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3eaf0b42003-09-10 15:17:25 +000030
John Criswell3eaf0b42003-09-10 15:17:25 +000031
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3eaf0b42003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000058fi
John Criswell3eaf0b42003-09-10 15:17:25 +000059
Reid Spencer0b52e2f2006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000071case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3eaf0b42003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell3eaf0b42003-09-10 15:17:25 +000081
Reid Spencer0b52e2f2006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwinaec06332010-01-26 08:50:50 +0000107do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwinaec06332010-01-26 08:50:50 +0000110 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000113done
Torok Edwinaec06332010-01-26 08:50:50 +0000114
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000152
153
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell3eaf0b42003-09-10 15:17:25 +0000440 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell3eaf0b42003-09-10 15:17:25 +0000445 N
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell3eaf0b42003-09-10 15:17:25 +0000448 t loop
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell3eaf0b42003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell3eaf0b42003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell3eaf0b42003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell3eaf0b42003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell3eaf0b42003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000494fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3eaf0b42003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell3eaf0b42003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +0000514else
Reid Spencerf184a862004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000528else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000530fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell3eaf0b42003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000538
539
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000542
John Criswell3ef61af2003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell3ef61af2003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell3eaf0b42003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell3ef61af2003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell3ef61af2003-06-30 21:59:07 +0000560
John Criswell3ef61af2003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherafbe7522011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramer6900a4a2012-11-17 22:01:08 +0000564PACKAGE_VERSION='3.3svn'
565PACKAGE_STRING='LLVM 3.3svn'
Eric Christopherafbe7522011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell3ef61af2003-06-30 21:59:07 +0000567
Chandler Carruthfbdae1f2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/Module.cpp"
John Criswell3ef61af2003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell3ef61af2003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell3ef61af2003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell3ef61af2003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell3ef61af2003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell3ef61af2003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell3ef61af2003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwinaec06332010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopher58839712011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserea9dca42010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshev7c5db452012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopher1094ded2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher04e35972012-08-03 19:47:14 +0000687ENABLE_CXX11
Roman Divackyf2bb66b2012-12-13 16:07:19 +0000688ENABLE_CLANG_ARCMT
689ENABLE_CLANG_STATIC_ANALYZER
690ENABLE_CLANG_REWRITER
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000691ENABLE_OPTIMIZED
692ENABLE_PROFILING
693DISABLE_ASSERTIONS
Eric Christopher84864012012-08-03 19:58:20 +0000694ENABLE_WERROR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000695ENABLE_EXPENSIVE_CHECKS
696EXPENSIVE_CHECKS
697DEBUG_RUNTIME
698DEBUG_SYMBOLS
Daniel Dunbar39c04622012-08-14 18:14:22 +0000699KEEP_SYMBOLS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000700JIT
701TARGET_HAS_JIT
Rafael Espindola7ac506d2010-11-12 19:24:06 +0000702ENABLE_DOCS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000703ENABLE_DOXYGEN
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +0000704LLVM_ENABLE_THREADS
NAKAMURA Takumic6fce172010-12-29 03:59:03 +0000705ENABLE_PTHREADS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000706ENABLE_PIC
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000707ENABLE_SHARED
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +0000708ENABLE_EMBED_STDCXX
Daniel Dunbardac18242010-05-10 20:11:56 +0000709ENABLE_TIMESTAMPS
Eric Christopherc6c2b9b2012-11-19 19:31:02 +0000710ENABLE_BACKTRACES
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000711TARGETS_TO_BUILD
712LLVM_ENUM_TARGETS
713LLVM_ENUM_ASM_PRINTERS
714LLVM_ENUM_ASM_PARSERS
715LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000716OPTIMIZE_OPTION
717EXTRA_OPTIONS
Daniel Dunbar3b95df82011-06-16 22:30:41 +0000718EXTRA_LD_OPTIONS
NAKAMURA Takumi914f1922011-10-16 02:54:26 +0000719CLANG_SRC_ROOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000720BINUTILS_INCDIR
Bob Wilson3f354702011-11-28 07:59:52 +0000721INTERNAL_PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000722NM
723ifGNUmake
724LN_S
725CMP
726CP
727DATE
728FIND
729MKDIR
730MV
731RANLIB
732AR
733RM
734SED
735TAR
736BINPWD
737GRAPHVIZ
738DOT
739FDP
740NEATO
741TWOPI
742CIRCO
743GV
744DOTTY
Dan Gohmana0da8892010-09-27 16:28:34 +0000745XDOT_PY
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000746INSTALL_PROGRAM
747INSTALL_SCRIPT
748INSTALL_DATA
749BZIP2
mike-me08af302010-05-06 23:45:43 +0000750CAT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000751DOXYGEN
Daniel Dunbard1888822012-05-08 18:26:07 +0000752GROFF
Eric Christopher77560892010-12-10 01:31:51 +0000753GZIPBIN
Daniel Dunbard1888822012-05-08 18:26:07 +0000754PDFROFF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000755ZIP
756OCAMLC
757OCAMLOPT
758OCAMLDEP
759OCAMLDOC
Daniel Dunbard1888822012-05-08 18:26:07 +0000760GAS
Dan Gohmanb7edb422010-06-01 14:56:56 +0000761HAVE_LINK_VERSION_SCRIPT
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
Richard Smith6c26e742013-01-31 22:19:12 +0000769NO_NESTED_ANON_TYPES
Rafael Espindola42e94d12012-02-28 23:32:06 +0000770COVERED_SWITCH_DEFAULT
David Greene9ff8d472013-01-09 22:11:13 +0000771NO_MAYBE_UNINITIALIZED
772NO_UNINITIALIZED
Saleem Abdulrasoola1665742013-01-30 04:44:17 +0000773PYTHON
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000774USE_UDIS86
775USE_OPROFILE
Eli Bendersky5262ad22012-03-13 08:33:15 +0000776USE_INTEL_JITEVENTS
Eric Christopherc807c532012-08-03 19:47:19 +0000777XML2CONFIG
778LIBXML2_LIBS
779LIBXML2_INC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000780HAVE_PTHREAD
781HUGE_VAL_SANITY
782MMAP_FILE
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000783SHLIBEXT
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000784SHLIBPATH_VAR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000785LLVM_PREFIX
786LLVM_BINDIR
787LLVM_LIBDIR
788LLVM_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
815CPP'
John Criswellf369e772010-03-19 21:31:39 +0000816ac_subdirs_all='projects/llvm-gcc
817projects/test-suite
818projects/llvm-test
819projects/poolalloc
820projects/llvm-poolalloc
821projects/sample
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000822projects/privbracket
Reid Spencerb4e0f9b2007-01-17 02:14:46 +0000823projects/llvm-stacker
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000824projects/llvm-reopt
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000825projects/llvm-java
826projects/llvm-tv
John Criswell4d377d82010-02-25 22:57:19 +0000827projects/safecode
Tobias Grosserea9dca42010-10-30 00:54:26 +0000828projects/llvm-kernel
829tools/polly'
John Criswell3ef61af2003-06-30 21:59:07 +0000830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000856# (The list follows the same order as the GNU Coding Standards.)
John Criswell3ef61af2003-06-30 21:59:07 +0000857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
John Criswell3ef61af2003-06-30 21:59:07 +0000862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
John Criswell3ef61af2003-06-30 21:59:07 +0000865includedir='${prefix}/include'
866oldincludedir='/usr/include'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
John Criswell3ef61af2003-06-30 21:59:07 +0000876
877ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000878ac_dashdash=
John Criswell3ef61af2003-06-30 21:59:07 +0000879for ac_option
880do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000883 eval $ac_prev=\$ac_option
John Criswell3ef61af2003-06-30 21:59:07 +0000884 ac_prev=
885 continue
886 fi
887
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
John Criswell3ef61af2003-06-30 21:59:07 +0000892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
903
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
918
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000919 -datadir | --datadir | --datadi | --datad)
John Criswell3ef61af2003-06-30 21:59:07 +0000920 ac_prev=datadir ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell3ef61af2003-06-30 21:59:07 +0000922 datadir=$ac_optarg ;;
923
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
John Criswell3ef61af2003-06-30 21:59:07 +0000931 -disable-* | --disable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000933 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000949
950 -enable-* | --enable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000952 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
John Criswell3ef61af2003-06-30 21:59:07 +0000990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
John Criswell3ef61af2003-06-30 21:59:07 +00001019 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001020 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell3ef61af2003-06-30 21:59:07 +00001021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell3ef61af2003-06-30 21:59:07 +00001024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
John Criswell3ef61af2003-06-30 21:59:07 +00001098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001155
1156 -without-* | --without-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001158 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001194 eval $ac_envvar=\$ac_optarg
John Criswell3ef61af2003-06-30 21:59:07 +00001195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 ;;
1204
1205 esac
1206done
1207
1208if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001212fi
1213
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001214# Be sure to have absolute directory names.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
John Criswell3ef61af2003-06-30 21:59:07 +00001219do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001220 eval ac_val=\$$ac_var
John Criswell3ef61af2003-06-30 21:59:07 +00001221 case $ac_val in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell3ef61af2003-06-30 21:59:07 +00001224 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell3ef61af2003-06-30 21:59:07 +00001241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001261
1262
John Criswell3ef61af2003-06-30 21:59:07 +00001263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001266 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001267 ac_confdir=`$as_dirname -- "$0" ||
1268$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272echo X"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
John Criswell3ef61af2003-06-30 21:59:07 +00001290 srcdir=$ac_confdir
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001291 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell3ef61af2003-06-30 21:59:07 +00001292 srcdir=..
1293 fi
1294else
1295 ac_srcdir_defaulted=no
1296fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001297if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001301fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
John Criswell3ef61af2003-06-30 21:59:07 +00001323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001331\`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
John Criswell3ef61af2003-06-30 21:59:07 +00001332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
John Criswell3ef61af2003-06-30 21:59:07 +00001351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001353 [$ac_default_prefix]
John Criswell3ef61af2003-06-30 21:59:07 +00001354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001355 [PREFIX]
John Criswell3ef61af2003-06-30 21:59:07 +00001356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherafbe7522011-12-21 00:52:44 +00001379 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
John Criswell3ef61af2003-06-30 21:59:07 +00001384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001397 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
John Criswell3ef61af2003-06-30 21:59:07 +00001398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserea9dca42010-10-30 00:54:26 +00001404 --enable-polly Use polly if available (default is YES)
Eric Christopher1094ded2011-11-11 22:51:42 +00001405 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher04e35972012-08-03 19:47:14 +00001406 --enable-cxx11 Use c++11 if available (default is NO)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001407 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1408 --enable-clang-static-analyzer
1409 Enable building of clang Static Analyzer (default is
1410 YES)
1411 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewycky86679902009-06-06 06:25:09 +00001412 --enable-optimized Compile with optimizations enabled (default is NO)
1413 --enable-profiling Compile with profiling enabled (default is NO)
1414 --enable-assertions Compile with assertion checks enabled (default is
1415 YES)
Eric Christopher84864012012-08-03 19:58:20 +00001416 --enable-werror Compile with -Werror enabled (default is NO)
David Greenecbc8ddf2007-06-28 19:36:08 +00001417 --enable-expensive-checks
Nick Lewycky86679902009-06-06 06:25:09 +00001418 Compile with expensive debug checks enabled (default
1419 is NO)
1420 --enable-debug-runtime Build runtime libs with debug symbols (default is
1421 NO)
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00001422 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1423 optimization is on and YES if it's off)
Daniel Dunbar39c04622012-08-14 18:14:22 +00001424 --enable-keep-symbols Do not strip installed executables)
Reid Spencer0241e382004-11-25 04:51:04 +00001425 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola7ac506d2010-11-12 19:24:06 +00001426 --enable-docs Build documents (default is YES)
Reid Spencer0194c9a2004-11-29 04:56:35 +00001427 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencerf85fabeb2005-08-24 10:07:20 +00001428 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00001429 --enable-pthreads Use pthreads if available (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)
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00001440 --enable-targets Build specific host targets: all or
1441 target1,target2,... Valid targets are: host, x86,
Tim Northovere0e3aef2013-01-31 12:12:40 +00001442 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00001444 --enable-experimental-targets
1445 Build experimental host targets: disable or
1446 target1,target2,... (default=disable)
Gordon Henriksene61dd672007-10-02 09:50:32 +00001447 --enable-bindings Build specific language bindings:
1448 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00001449 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencera40c6872004-11-29 12:29:58 +00001450 --enable-ltdl-install install libltdl
John Criswell3ef61af2003-06-30 21:59:07 +00001451
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandsef8c8ec2009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbar3b95df82011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00001461 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruthffae4a62010-10-19 08:21:25 +00001462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1464 resource files
Rafael Espindolad95960b2009-11-12 05:46:09 +00001465 --with-c-include-dirs Colon separated list of directories clang will
1466 search for headers
Rafael Espindolaec217f62012-02-03 00:59:30 +00001467 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop5c9e1842012-04-16 04:11:45 +00001468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00001469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
Eric Christopher65080cc2011-07-20 17:04:49 +00001471 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00001472 submitted (default=http://llvm.org/bugs/)
Bob Wilson3f354702011-11-28 07:59:52 +00001473 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00001474 --with-python path to python
Reid Spencere5f3de32007-01-19 17:41:47 +00001475 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00001476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor5808c7d2012-09-28 17:35:20 +00001478 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1479
John Criswell3ef61af2003-06-30 21:59:07 +00001480
1481Some influential environment variables:
Reid Spencer0241e382004-11-25 04:51:04 +00001482 CC C compiler command
1483 CFLAGS C compiler flags
John Criswell3ef61af2003-06-30 21:59:07 +00001484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001487 you have headers in a nonstandard directory <include dir>
Reid Spencer0241e382004-11-25 04:51:04 +00001488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
Eric Christopher58839712011-09-16 20:36:25 +00001490 CPP C preprocessor
John Criswell3ef61af2003-06-30 21:59:07 +00001491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
Eric Christopherafbe7522011-12-21 00:52:44 +00001495Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00001496_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001497ac_status=$?
John Criswell3ef61af2003-06-30 21:59:07 +00001498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
John Criswell3ef61af2003-06-30 21:59:07 +00001502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001503 test -d "$ac_dir" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00001504 ac_builddir=.
1505
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001510 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +00001521
1522case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001523 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +00001524 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +00001528 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001535esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +00001537
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell3ef61af2003-06-30 21:59:07 +00001546 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell3ef61af2003-06-30 21:59:07 +00001550 done
1551fi
1552
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001553test -n "$ac_init_help" && exit $ac_status
John Criswell3ef61af2003-06-30 21:59:07 +00001554if $ac_init_version; then
1555 cat <<\_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001556LLVM configure 3.3svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001557generated by GNU Autoconf 2.60
John Criswell3ef61af2003-06-30 21:59:07 +00001558
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001559Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00001561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +00001563
NAKAMURA Takumi43632a22013-01-01 10:00:19 +00001564Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
John Criswell3ef61af2003-06-30 21:59:07 +00001565_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001566 exit
John Criswell3ef61af2003-06-30 21:59:07 +00001567fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001568cat >config.log <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00001569This file contains any messages produced by compilers while
1570running configure, to aid debugging if configure makes a mistake.
1571
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001572It was created by LLVM $as_me 3.3svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001573generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +00001574
1575 $ $0 $@
1576
1577_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001578exec 5>>config.log
John Criswell3ef61af2003-06-30 21:59:07 +00001579{
1580cat <<_ASUNAME
1581## --------- ##
1582## Platform. ##
1583## --------- ##
1584
1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593
1594/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001597/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell3ef61af2003-06-30 21:59:07 +00001598/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601
1602_ASUNAME
1603
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001609 echo "PATH: $as_dir"
1610done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001611IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00001612
1613} >&5
1614
1615cat >&5 <<_ACEOF
1616
1617
1618## ----------- ##
1619## Core tests. ##
1620## ----------- ##
1621
1622_ACEOF
1623
1624
1625# Keep a trace of the command line.
1626# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell3eaf0b42003-09-10 15:17:25 +00001627# Strip out --silent because we don't want to record it for future runs.
John Criswell3ef61af2003-06-30 21:59:07 +00001628# Also quote any args containing shell meta-characters.
John Criswell3eaf0b42003-09-10 15:17:25 +00001629# Make two passes to allow for proper duplicate-argument suppression.
John Criswell3ef61af2003-06-30 21:59:07 +00001630ac_configure_args=
John Criswell3eaf0b42003-09-10 15:17:25 +00001631ac_configure_args0=
1632ac_configure_args1=
John Criswell3eaf0b42003-09-10 15:17:25 +00001633ac_must_keep_next=false
1634for ac_pass in 1 2
John Criswell3ef61af2003-06-30 21:59:07 +00001635do
John Criswell3eaf0b42003-09-10 15:17:25 +00001636 for ac_arg
1637 do
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001643 *\'*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001645 esac
1646 case $ac_pass in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001648 2)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001650 if test $ac_must_keep_next = true; then
Reid Spencerf184a862004-09-19 23:53:36 +00001651 ac_must_keep_next=false # Got value, back to normal.
John Criswell3eaf0b42003-09-10 15:17:25 +00001652 else
Reid Spencerf184a862004-09-19 23:53:36 +00001653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1661 ;;
1662 -* ) ac_must_keep_next=true ;;
1663 esac
John Criswell3eaf0b42003-09-10 15:17:25 +00001664 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001665 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001666 ;;
1667 esac
1668 done
John Criswell3ef61af2003-06-30 21:59:07 +00001669done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001670$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671$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 +00001672
1673# When interrupted or exit'd, cleanup temporary files, and complete
1674# config.log. We remove comments because anyway the quotes in there
1675# would cause problems or look ugly.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001676# WARNING: Use '\'' to represent an apostrophe within the trap.
1677# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell3ef61af2003-06-30 21:59:07 +00001678trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1680 {
1681 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001682
John Criswell3ef61af2003-06-30 21:59:07 +00001683 cat <<\_ASBOX
1684## ---------------- ##
1685## Cache variables. ##
1686## ---------------- ##
1687_ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001690(
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001701 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001702 esac ;;
1703 esac
1704 done
John Criswell3ef61af2003-06-30 21:59:07 +00001705 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
John Criswell3ef61af2003-06-30 21:59:07 +00001708 sed -n \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +00001712 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +00001714 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001715 esac |
1716 sort
1717)
John Criswell3ef61af2003-06-30 21:59:07 +00001718 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001719
1720 cat <<\_ASBOX
1721## ----------------- ##
1722## Output variables. ##
1723## ----------------- ##
1724_ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001728 eval ac_val=\$$ac_var
1729 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001731 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001732 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001733 done | sort
1734 echo
1735
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001738## ------------------- ##
1739## File substitutions. ##
1740## ------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +00001741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1744 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001745 eval ac_val=\$$ac_var
1746 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001748 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001749 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001750 done | sort
1751 echo
1752 fi
1753
John Criswell3ef61af2003-06-30 21:59:07 +00001754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756## ----------- ##
1757## confdefs.h. ##
1758## ----------- ##
1759_ASBOX
1760 echo
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001761 cat confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001762 echo
1763 fi
1764 test "$ac_signal" != 0 &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
John Criswell3ef61af2003-06-30 21:59:07 +00001767 } >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell3ef61af2003-06-30 21:59:07 +00001770 exit $exit_status
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001771' 0
John Criswell3ef61af2003-06-30 21:59:07 +00001772for ac_signal in 1 2 13 15; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell3ef61af2003-06-30 21:59:07 +00001774done
1775ac_signal=0
1776
1777# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001778rm -f -r conftest* confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001779
1780# Predefined preprocessor variables.
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_NAME "$PACKAGE_NAME"
1784_ACEOF
1785
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001786
John Criswell3ef61af2003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789_ACEOF
1790
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001791
John Criswell3ef61af2003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_VERSION "$PACKAGE_VERSION"
1794_ACEOF
1795
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001796
John Criswell3ef61af2003-06-30 21:59:07 +00001797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_STRING "$PACKAGE_STRING"
1799_ACEOF
1800
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001801
John Criswell3ef61af2003-06-30 21:59:07 +00001802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804_ACEOF
1805
1806
1807# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001808# Prefer explicitly selected file to automatically selected ones.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001809if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001810 set x "$CONFIG_SITE"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001811elif test "x$prefix" != xNONE; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001813else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
John Criswell3ef61af2003-06-30 21:59:07 +00001816fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001817shift
1818for ac_site_file
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001819do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1825 fi
1826done
1827
1828if test -r "$cache_file"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833echo "$as_me: loading cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001834 case $cache_file in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
John Criswell3ef61af2003-06-30 21:59:07 +00001837 esac
1838 fi
1839else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841echo "$as_me: creating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001842 >$cache_file
1843fi
1844
1845# Check that the precious variables saved in the cache have kept the same
1846# value.
1847ac_cache_corrupted=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001848for ac_var in $ac_precious_vars; do
John Criswell3ef61af2003-06-30 21:59:07 +00001849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell3ef61af2003-06-30 21:59:07 +00001853 case $ac_old_set,$ac_new_set in
1854 set,)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001857 ac_cache_corrupted=: ;;
1858 ,set)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001861 ac_cache_corrupted=: ;;
1862 ,);;
1863 *)
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
John Criswell3ef61af2003-06-30 21:59:07 +00001872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001883 esac
1884 fi
1885done
1886if $ac_cache_corrupted; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001892fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001917
John Criswell3ef61af2003-06-30 21:59:07 +00001918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001926cat >>confdefs.h <<\_ACEOF
1927#define LLVM_VERSION_MAJOR 3
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<\_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001932#define LLVM_VERSION_MINOR 3
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001933_ACEOF
1934
1935
NAKAMURA Takumi43632a22013-01-01 10:00:19 +00001936LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
Reid Spencer0241e382004-11-25 04:51:04 +00001937
1938
1939
1940
1941
1942
1943
John Criswell3ef61af2003-06-30 21:59:07 +00001944ac_aux_dir=
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001945for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001946 if test -f "$ac_dir/install-sh"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 break
1950 elif test -f "$ac_dir/install.sh"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 break
1954 elif test -f "$ac_dir/shtool"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 break
1958 fi
John Criswell3ef61af2003-06-30 21:59:07 +00001959done
1960if test -z "$ac_aux_dir"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1962echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1963 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001964fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001965
1966# These three variables are undocumented and unsupported,
1967# and are intended to be withdrawn in a future Autoconf release.
1968# They can cause serious problems if a builder's source tree is in a directory
1969# whose full name contains unusual characters.
1970ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973
John Criswell3ef61af2003-06-30 21:59:07 +00001974
John Criswellc933eeb2003-07-22 19:18:09 +00001975
Reid Spencerf184a862004-09-19 23:53:36 +00001976if test ${srcdir} != "." ; then
Reid Spencer0241e382004-11-25 04:51:04 +00001977 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001978 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1979echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1980 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00001981 fi
John Criswell22107a72003-09-15 17:04:06 +00001982fi
1983
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00001984${CFLAGS=}
1985${CXXFLAGS=}
1986
Nick Lewyckyc5975fc2009-09-29 05:48:51 +00001987ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +00001988ac_cpp='$CPP $CPPFLAGS'
1989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00001992if test -n "$ac_tool_prefix"; then
Eric Christopher58839712011-09-16 20:36:25 +00001993 for ac_prog in clang llvm-gcc gcc
John Criswell3ef61af2003-06-30 21:59:07 +00001994 do
1995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1996set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002001else
Reid Spencer0241e382004-11-25 04:51:04 +00002002 if test -n "$CC"; then
2003 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002004else
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 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 +00002012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002014 break 2
2015 fi
2016done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002017done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002018IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002019
2020fi
2021fi
Reid Spencer0241e382004-11-25 04:51:04 +00002022CC=$ac_cv_prog_CC
2023if test -n "$CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002024 { echo "$as_me:$LINENO: result: $CC" >&5
2025echo "${ECHO_T}$CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002026else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002027 { echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002029fi
2030
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002031
Reid Spencer0241e382004-11-25 04:51:04 +00002032 test -n "$CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002033 done
2034fi
Reid Spencer0241e382004-11-25 04:51:04 +00002035if test -z "$CC"; then
2036 ac_ct_CC=$CC
Eric Christopher58839712011-09-16 20:36:25 +00002037 for ac_prog in clang llvm-gcc gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002038do
2039 # Extract the first word of "$ac_prog", so it can be a program name with args.
2040set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002045else
Reid Spencer0241e382004-11-25 04:51:04 +00002046 if test -n "$ac_ct_CC"; then
2047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002048else
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 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 +00002056 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002058 break 2
2059 fi
2060done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002061done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002062IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002063
2064fi
2065fi
Reid Spencer0241e382004-11-25 04:51:04 +00002066ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067if test -n "$ac_ct_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002068 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002070else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002071 { echo "$as_me:$LINENO: result: no" >&5
2072echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002073fi
2074
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002075
Reid Spencer0241e382004-11-25 04:51:04 +00002076 test -n "$ac_ct_CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002077done
John Criswell3ef61af2003-06-30 21:59:07 +00002078
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002079 if test "x$ac_ct_CC" = x; then
2080 CC=""
2081 else
2082 case $cross_compiling:$ac_tool_warned in
2083yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002084{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2085whose name does not start with the host triplet. If you think this
2086configuration is useful to you, please write to autoconf@gnu.org." >&5
2087echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2088whose name does not start with the host triplet. If you think this
2089configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002090ac_tool_warned=yes ;;
2091esac
2092 CC=$ac_ct_CC
2093 fi
Reid Spencer0241e382004-11-25 04:51:04 +00002094fi
2095
John Criswell3ef61af2003-06-30 21:59:07 +00002096
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002097test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2098See \`config.log' for more details." >&5
2099echo "$as_me: error: no acceptable C compiler found in \$PATH
2100See \`config.log' for more details." >&2;}
2101 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002102
John Criswell3ef61af2003-06-30 21:59:07 +00002103# Provide some information about the compiler.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002104echo "$as_me:$LINENO: checking for C compiler version" >&5
2105ac_compiler=`set X $ac_compile; echo $2`
2106{ (ac_try="$ac_compiler --version >&5"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002107case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112 (eval "$ac_compiler --version >&5") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002113 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116{ (ac_try="$ac_compiler -v >&5"
2117case "(($ac_try" in
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2120esac
2121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122 (eval "$ac_compiler -v >&5") 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126{ (ac_try="$ac_compiler -V >&5"
2127case "(($ac_try" in
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2130esac
2131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132 (eval "$ac_compiler -V >&5") 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
John Criswell3ef61af2003-06-30 21:59:07 +00002136
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002137cat >conftest.$ac_ext <<_ACEOF
2138/* confdefs.h. */
2139_ACEOF
2140cat confdefs.h >>conftest.$ac_ext
2141cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002142/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002143
John Criswell3ef61af2003-06-30 21:59:07 +00002144int
2145main ()
2146{
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002153ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell3ef61af2003-06-30 21:59:07 +00002154# Try to create an executable without -o first, disregard a.out.
2155# It will help us diagnose broken compilers, and finding out an intuition
2156# of exeext.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002157{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2158echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2159ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160#
2161# List of possible output files, starting from the most likely.
2162# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2163# only as a last resort. b.out is created by i960 compilers.
2164ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2165#
2166# The IRIX 6 linker writes into existing files which may not be
2167# executable, retaining their permissions. Remove them first so a
2168# subsequent execution test works.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002169ac_rmfiles=
2170for ac_file in $ac_files
2171do
2172 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002174 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2175 esac
2176done
2177rm -f $ac_rmfiles
2178
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002179if { (ac_try="$ac_link_default"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002180case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002185 (eval "$ac_link_default") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002186 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2190# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2191# in a Makefile. We should not override ac_cv_exeext if it was cached,
2192# so that the user can short-circuit this test for compilers unknown to
2193# Autoconf.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002194for ac_file in $ac_files
John Criswell3eaf0b42003-09-10 15:17:25 +00002195do
2196 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002197 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencerf184a862004-09-19 23:53:36 +00002199 ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002200 [ab].out )
Reid Spencerf184a862004-09-19 23:53:36 +00002201 # We found the default executable, but exeext='' is most
2202 # certainly right.
2203 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002204 *.* )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002205 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002206 then :; else
2207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 fi
2209 # We set ac_cv_exeext here because the later test for it is not
2210 # safe: cross compilers may not add the suffix if given an `-o'
2211 # argument, so we may need to know it at that point already.
2212 # Even if this section looks crufty: it has the advantage of
2213 # actually working.
Reid Spencerf184a862004-09-19 23:53:36 +00002214 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002215 * )
Reid Spencerf184a862004-09-19 23:53:36 +00002216 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002217 esac
2218done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002219test "$ac_cv_exeext" = no && ac_cv_exeext=
2220
John Criswell3ef61af2003-06-30 21:59:07 +00002221else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002222 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002223sed 's/^/| /' conftest.$ac_ext >&5
2224
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002225{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: C compiler cannot create executables
2228See \`config.log' for more details." >&2;}
2229 { (exit 77); exit 77; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002230fi
John Criswell3ef61af2003-06-30 21:59:07 +00002231
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002232ac_exeext=$ac_cv_exeext
2233{ echo "$as_me:$LINENO: result: $ac_file" >&5
2234echo "${ECHO_T}$ac_file" >&6; }
2235
2236# Check that the compiler produces executables we can run. If not, either
2237# the compiler is broken, or we cross compile.
2238{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2239echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2240# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2241# If not cross compiling, check that we can run a simple program.
2242if test "$cross_compiling" != yes; then
2243 if { ac_try='./$ac_file'
2244 { (case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247esac
2248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_try") 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 cross_compiling=no
2254 else
2255 if test "$cross_compiling" = maybe; then
2256 cross_compiling=yes
2257 else
2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259If you meant to cross compile, use \`--host'.
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: cannot run C compiled programs.
2262If you meant to cross compile, use \`--host'.
2263See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2265 fi
2266 fi
2267fi
2268{ echo "$as_me:$LINENO: result: yes" >&5
2269echo "${ECHO_T}yes" >&6; }
2270
2271rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell3ef61af2003-06-30 21:59:07 +00002272ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002273# Check that the compiler produces executables we can run. If not, either
2274# the compiler is broken, or we cross compile.
2275{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2277{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278echo "${ECHO_T}$cross_compiling" >&6; }
2279
2280{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2282if { (ac_try="$ac_link"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002283case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2286esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002288 (eval "$ac_link") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002289 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002292 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2293# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2294# work properly (i.e., refer to `conftest.exe'), while it won't with
2295# `rm'.
John Criswell3eaf0b42003-09-10 15:17:25 +00002296for ac_file in conftest.exe conftest conftest.*; do
2297 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002298 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002300 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencerf184a862004-09-19 23:53:36 +00002301 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002302 * ) break;;
2303 esac
2304done
2305else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002306 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2307See \`config.log' for more details." >&5
2308echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2309See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002311fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002312
2313rm -f conftest$ac_cv_exeext
2314{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2315echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002316
2317rm -f conftest.$ac_ext
2318EXEEXT=$ac_cv_exeext
2319ac_exeext=$EXEEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002320{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2321echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2322if test "${ac_cv_objext+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00002324else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002325 cat >conftest.$ac_ext <<_ACEOF
2326/* confdefs.h. */
2327_ACEOF
2328cat confdefs.h >>conftest.$ac_ext
2329cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002330/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002331
John Criswell3ef61af2003-06-30 21:59:07 +00002332int
2333main ()
2334{
2335
2336 ;
2337 return 0;
2338}
2339_ACEOF
2340rm -f conftest.o conftest.obj
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002341if { (ac_try="$ac_compile"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002347 (eval "$ac_compile") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002348 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002351 for ac_file in conftest.o conftest.obj conftest.*; do
2352 test -f "$ac_file" || continue;
John Criswell3ef61af2003-06-30 21:59:07 +00002353 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356 break;;
2357 esac
2358done
2359else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002360 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002361sed 's/^/| /' conftest.$ac_ext >&5
2362
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002363{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2364See \`config.log' for more details." >&5
2365echo "$as_me: error: cannot compute suffix of object files: cannot compile
2366See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002368fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002369
John Criswell3ef61af2003-06-30 21:59:07 +00002370rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002372{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2373echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002374OBJEXT=$ac_cv_objext
2375ac_objext=$OBJEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002376{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2377echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2378if test "${ac_cv_c_compiler_gnu+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002380else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002381 cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h. */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002386/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002387
John Criswell3ef61af2003-06-30 21:59:07 +00002388int
2389main ()
2390{
2391#ifndef __GNUC__
2392 choke me
2393#endif
2394
2395 ;
2396 return 0;
2397}
2398_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002399rm -f conftest.$ac_objext
2400if { (ac_try="$ac_compile"
2401case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_compile") 2>conftest.er1
2407 ac_status=$?
2408 grep -v '^ *+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2414 { (case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417esac
2418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_try") 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427esac
2428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_try") 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002433 ac_compiler_gnu=yes
2434else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002435 echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_compiler_gnu=no
John Criswell3ef61af2003-06-30 21:59:07 +00002439fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002440
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002442ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002443
2444fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002445{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2446echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2447GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer0241e382004-11-25 04:51:04 +00002448ac_test_CFLAGS=${CFLAGS+set}
2449ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002450{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2451echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2452if test "${ac_cv_prog_cc_g+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002454else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002455 ac_save_c_werror_flag=$ac_c_werror_flag
2456 ac_c_werror_flag=yes
2457 ac_cv_prog_cc_g=no
2458 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002459 cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h. */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002464/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002465
John Criswell3ef61af2003-06-30 21:59:07 +00002466int
2467main ()
2468{
2469
2470 ;
2471 return 0;
2472}
2473_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002474rm -f conftest.$ac_objext
2475if { (ac_try="$ac_compile"
2476case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_compile") 2>conftest.er1
2482 ac_status=$?
2483 grep -v '^ *+' conftest.er1 >conftest.err
2484 rm -f conftest.er1
2485 cat conftest.err >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2489 { (case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2492esac
2493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_try") 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502esac
2503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_try") 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002508 ac_cv_prog_cc_g=yes
John Criswell3ef61af2003-06-30 21:59:07 +00002509else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002510 echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 CFLAGS=""
2514 cat >conftest.$ac_ext <<_ACEOF
2515/* confdefs.h. */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002519/* end confdefs.h. */
2520
2521int
2522main ()
2523{
2524
2525 ;
2526 return 0;
2527}
2528_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002529rm -f conftest.$ac_objext
2530if { (ac_try="$ac_compile"
2531case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534esac
2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_compile") 2>conftest.er1
2537 ac_status=$?
2538 grep -v '^ *+' conftest.er1 >conftest.err
2539 rm -f conftest.er1
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2544 { (case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547esac
2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_try") 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_try") 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 :
Torok Edwinaec06332010-01-26 08:50:50 +00002564else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002565 echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002569 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002570 cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002575/* end confdefs.h. */
2576
2577int
2578main ()
2579{
2580
2581 ;
2582 return 0;
2583}
2584_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002585rm -f conftest.$ac_objext
2586if { (ac_try="$ac_compile"
2587case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_compile") 2>conftest.er1
2593 ac_status=$?
2594 grep -v '^ *+' conftest.er1 >conftest.err
2595 rm -f conftest.er1
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2600 { (case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603esac
2604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_try") 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613esac
2614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_try") 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002619 ac_cv_prog_cc_g=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002620else
2621 echo "$as_me: failed program was:" >&5
2622sed 's/^/| /' conftest.$ac_ext >&5
2623
2624
John Criswell3ef61af2003-06-30 21:59:07 +00002625fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002626
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00002628fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002629
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002632
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 ac_c_werror_flag=$ac_save_c_werror_flag
2635fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002636{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2637echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00002638if test "$ac_test_CFLAGS" = set; then
2639 CFLAGS=$ac_save_CFLAGS
2640elif test $ac_cv_prog_cc_g = yes; then
2641 if test "$GCC" = yes; then
2642 CFLAGS="-g -O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002643 else
Reid Spencer0241e382004-11-25 04:51:04 +00002644 CFLAGS="-g"
John Criswell3ef61af2003-06-30 21:59:07 +00002645 fi
2646else
Reid Spencer0241e382004-11-25 04:51:04 +00002647 if test "$GCC" = yes; then
2648 CFLAGS="-O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002649 else
Reid Spencer0241e382004-11-25 04:51:04 +00002650 CFLAGS=
John Criswell3ef61af2003-06-30 21:59:07 +00002651 fi
2652fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002653{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2654echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2655if test "${ac_cv_prog_cc_c89+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00002657else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002658 ac_cv_prog_cc_c89=no
Reid Spencer0241e382004-11-25 04:51:04 +00002659ac_save_CC=$CC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002660cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h. */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00002665/* end confdefs.h. */
2666#include <stdarg.h>
2667#include <stdio.h>
2668#include <sys/types.h>
2669#include <sys/stat.h>
2670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2671struct buf { int x; };
2672FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673static char *e (p, i)
2674 char **p;
2675 int i;
2676{
2677 return p[i];
2678}
2679static char *f (char * (*g) (char **, int), char **p, ...)
2680{
2681 char *s;
2682 va_list v;
2683 va_start (v,p);
2684 s = g (p, va_arg (v,int));
2685 va_end (v);
2686 return s;
2687}
2688
2689/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2690 function prototypes and stuff, but not '\xHH' hex character constants.
2691 These don't provoke an error unfortunately, instead are silently treated
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002692 as 'x'. The following induces an error, until -std is added to get
Reid Spencer0241e382004-11-25 04:51:04 +00002693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2694 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002695 that's true only with -std. */
Reid Spencer0241e382004-11-25 04:51:04 +00002696int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2697
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002698/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2699 inside strings and character constants. */
2700#define FOO(x) 'x'
2701int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2702
Reid Spencer0241e382004-11-25 04:51:04 +00002703int test (int i, double x);
2704struct s1 {int (*f) (int a);};
2705struct s2 {int (*f) (double a);};
2706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707int argc;
2708char **argv;
2709int
2710main ()
2711{
2712return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 ;
2714 return 0;
2715}
2716_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002717for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer0241e382004-11-25 04:51:04 +00002719do
2720 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002721 rm -f conftest.$ac_objext
2722if { (ac_try="$ac_compile"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compile") 2>conftest.er1
2729 ac_status=$?
2730 grep -v '^ *+' conftest.er1 >conftest.err
2731 rm -f conftest.er1
2732 cat conftest.err >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2736 { (case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_try") 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_try") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002755 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002756else
2757 echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760
Reid Spencer0241e382004-11-25 04:51:04 +00002761fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002762
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002763rm -f core conftest.err conftest.$ac_objext
2764 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer0241e382004-11-25 04:51:04 +00002765done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002766rm -f conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002767CC=$ac_save_CC
2768
2769fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002770# AC_CACHE_VAL
2771case "x$ac_cv_prog_cc_c89" in
2772 x)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002773 { echo "$as_me:$LINENO: result: none needed" >&5
2774echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002775 xno)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002776 { echo "$as_me:$LINENO: result: unsupported" >&5
2777echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002778 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002779 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002780 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2781echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002782esac
2783
John Criswell3eaf0b42003-09-10 15:17:25 +00002784
Reid Spencer0241e382004-11-25 04:51:04 +00002785ac_ext=c
2786ac_cpp='$CPP $CPPFLAGS'
2787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790
Eric Christopher58839712011-09-16 20:36:25 +00002791ac_ext=cpp
2792ac_cpp='$CXXCPP $CPPFLAGS'
2793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2796if test -z "$CXX"; then
2797 if test -n "$CCC"; then
2798 CXX=$CCC
2799 else
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in clang++ llvm-g++ g++
2802 do
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807if test "${ac_cv_prog_CXX+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 if test -n "$CXX"; then
2811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824done
2825done
2826IFS=$as_save_IFS
2827
2828fi
2829fi
2830CXX=$ac_cv_prog_CXX
2831if test -n "$CXX"; then
2832 { echo "$as_me:$LINENO: result: $CXX" >&5
2833echo "${ECHO_T}$CXX" >&6; }
2834else
2835 { echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6; }
2837fi
2838
2839
2840 test -n "$CXX" && break
2841 done
2842fi
2843if test -z "$CXX"; then
2844 ac_ct_CXX=$CXX
2845 for ac_prog in clang++ llvm-g++ g++
2846do
2847 # Extract the first word of "$ac_prog", so it can be a program name with args.
2848set dummy $ac_prog; ac_word=$2
2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
2854 if test -n "$ac_ct_CXX"; then
2855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_ac_ct_CXX="$ac_prog"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868done
2869done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2875if test -n "$ac_ct_CXX"; then
2876 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2877echo "${ECHO_T}$ac_ct_CXX" >&6; }
2878else
2879 { echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6; }
2881fi
2882
2883
2884 test -n "$ac_ct_CXX" && break
2885done
2886
2887 if test "x$ac_ct_CXX" = x; then
2888 CXX="g++"
2889 else
2890 case $cross_compiling:$ac_tool_warned in
2891yes:)
2892{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2893whose name does not start with the host triplet. If you think this
2894configuration is useful to you, please write to autoconf@gnu.org." >&5
2895echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2896whose name does not start with the host triplet. If you think this
2897configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2898ac_tool_warned=yes ;;
2899esac
2900 CXX=$ac_ct_CXX
2901 fi
2902fi
2903
2904 fi
2905fi
2906# Provide some information about the compiler.
2907echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2908ac_compiler=`set X $ac_compile; echo $2`
2909{ (ac_try="$ac_compiler --version >&5"
2910case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913esac
2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compiler --version >&5") 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }
2919{ (ac_try="$ac_compiler -v >&5"
2920case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923esac
2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compiler -v >&5") 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929{ (ac_try="$ac_compiler -V >&5"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compiler -V >&5") 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2939
2940{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2941echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2942if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 cat >conftest.$ac_ext <<_ACEOF
2946/* confdefs.h. */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h. */
2951
2952int
2953main ()
2954{
2955#ifndef __GNUC__
2956 choke me
2957#endif
2958
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext
2964if { (ac_try="$ac_compile"
2965case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_try") 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 ac_compiler_gnu=yes
2998else
2999 echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 ac_compiler_gnu=no
3003fi
3004
3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3007
3008fi
3009{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3010echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3011GXX=`test $ac_compiler_gnu = yes && echo yes`
3012ac_test_CXXFLAGS=${CXXFLAGS+set}
3013ac_save_CXXFLAGS=$CXXFLAGS
3014{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3015echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3016if test "${ac_cv_prog_cxx_g+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3020 ac_cxx_werror_flag=yes
3021 ac_cv_prog_cxx_g=no
3022 CXXFLAGS="-g"
3023 cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h. */
3029
3030int
3031main ()
3032{
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_prog_cxx_g=yes
3073else
3074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 CXXFLAGS=""
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084
3085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext
3094if { (ac_try="$ac_compile"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 :
3128else
3129 echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3133 CXXFLAGS="-g"
3134 cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h. */
3140
3141int
3142main ()
3143{
3144
3145 ;
3146 return 0;
3147}
3148_ACEOF
3149rm -f conftest.$ac_objext
3150if { (ac_try="$ac_compile"
3151case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compile") 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_prog_cxx_g=yes
3184else
3185 echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188
3189fi
3190
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3199fi
3200{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3201echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3202if test "$ac_test_CXXFLAGS" = set; then
3203 CXXFLAGS=$ac_save_CXXFLAGS
3204elif test $ac_cv_prog_cxx_g = yes; then
3205 if test "$GXX" = yes; then
3206 CXXFLAGS="-g -O2"
3207 else
3208 CXXFLAGS="-g"
3209 fi
3210else
3211 if test "$GXX" = yes; then
3212 CXXFLAGS="-O2"
3213 else
3214 CXXFLAGS=
3215 fi
3216fi
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer0241e382004-11-25 04:51:04 +00003222
Reid Spencer0241e382004-11-25 04:51:04 +00003223ac_ext=c
3224ac_cpp='$CPP $CPPFLAGS'
3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003228{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3229echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003230# On Suns, sometimes $CPP names a directory.
3231if test -n "$CPP" && test -d "$CPP"; then
3232 CPP=
3233fi
3234if test -z "$CPP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003235 if test "${ac_cv_prog_CPP+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00003237else
3238 # Double quotes because CPP needs to be expanded
3239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3240 do
3241 ac_preproc_ok=false
3242for ac_c_preproc_warn_flag in '' yes
3243do
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003255/* end confdefs.h. */
3256#ifdef __STDC__
3257# include <limits.h>
3258#else
3259# include <assert.h>
3260#endif
3261 Syntax error
3262_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003263if { (ac_try="$ac_cpp conftest.$ac_ext"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } >/dev/null; then
3276 if test -s conftest.err; then
3277 ac_cpp_err=$ac_c_preproc_warn_flag
3278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3279 else
3280 ac_cpp_err=
3281 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003282else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003283 ac_cpp_err=yes
3284fi
3285if test -z "$ac_cpp_err"; then
3286 :
3287else
3288 echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
Reid Spencer0241e382004-11-25 04:51:04 +00003291 # Broken: fails on valid input.
3292continue
3293fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003294
Reid Spencer0241e382004-11-25 04:51:04 +00003295rm -f conftest.err conftest.$ac_ext
3296
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003297 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003298 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003299 cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003304/* end confdefs.h. */
3305#include <ac_nonexistent.h>
3306_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003307if { (ac_try="$ac_cpp conftest.$ac_ext"
3308case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } >/dev/null; then
3320 if test -s conftest.err; then
3321 ac_cpp_err=$ac_c_preproc_warn_flag
3322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3323 else
3324 ac_cpp_err=
3325 fi
3326else
3327 ac_cpp_err=yes
3328fi
3329if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003330 # Broken: success on invalid input.
3331continue
3332else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003333 echo "$as_me: failed program was:" >&5
3334sed 's/^/| /' conftest.$ac_ext >&5
3335
Reid Spencer0241e382004-11-25 04:51:04 +00003336 # Passes both tests.
3337ac_preproc_ok=:
3338break
3339fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003340
Reid Spencer0241e382004-11-25 04:51:04 +00003341rm -f conftest.err conftest.$ac_ext
3342
3343done
3344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003346if $ac_preproc_ok; then
Reid Spencer0241e382004-11-25 04:51:04 +00003347 break
3348fi
3349
3350 done
3351 ac_cv_prog_CPP=$CPP
3352
3353fi
3354 CPP=$ac_cv_prog_CPP
3355else
3356 ac_cv_prog_CPP=$CPP
3357fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003358{ echo "$as_me:$LINENO: result: $CPP" >&5
3359echo "${ECHO_T}$CPP" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003360ac_preproc_ok=false
3361for ac_c_preproc_warn_flag in '' yes
3362do
3363 # Use a header file that comes with gcc, so configuring glibc
3364 # with a fresh cross-compiler works.
3365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366 # <limits.h> exists even on freestanding compilers.
3367 # On the NeXT, cc -E runs the code through the compiler's parser,
3368 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003369 cat >conftest.$ac_ext <<_ACEOF
3370/* confdefs.h. */
3371_ACEOF
3372cat confdefs.h >>conftest.$ac_ext
3373cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003374/* end confdefs.h. */
3375#ifdef __STDC__
3376# include <limits.h>
3377#else
3378# include <assert.h>
3379#endif
3380 Syntax error
3381_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003382if { (ac_try="$ac_cpp conftest.$ac_ext"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null; then
3395 if test -s conftest.err; then
3396 ac_cpp_err=$ac_c_preproc_warn_flag
3397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3398 else
3399 ac_cpp_err=
3400 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003401else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003402 ac_cpp_err=yes
3403fi
3404if test -z "$ac_cpp_err"; then
3405 :
3406else
3407 echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
Reid Spencer0241e382004-11-25 04:51:04 +00003410 # Broken: fails on valid input.
3411continue
3412fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003413
Reid Spencer0241e382004-11-25 04:51:04 +00003414rm -f conftest.err conftest.$ac_ext
3415
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003416 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003417 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003423/* end confdefs.h. */
3424#include <ac_nonexistent.h>
3425_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003426if { (ac_try="$ac_cpp conftest.$ac_ext"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3444 fi
3445else
3446 ac_cpp_err=yes
3447fi
3448if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003449 # Broken: success on invalid input.
3450continue
3451else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
Reid Spencer0241e382004-11-25 04:51:04 +00003455 # Passes both tests.
3456ac_preproc_ok=:
3457break
3458fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003459
Reid Spencer0241e382004-11-25 04:51:04 +00003460rm -f conftest.err conftest.$ac_ext
3461
3462done
3463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003465if $ac_preproc_ok; then
3466 :
Reid Spencer0241e382004-11-25 04:51:04 +00003467else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3469See \`config.log' for more details." >&5
3470echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3471See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00003473fi
3474
John Criswell3ef61af2003-06-30 21:59:07 +00003475ac_ext=c
3476ac_cpp='$CPP $CPPFLAGS'
3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
John Criswell3ef61af2003-06-30 21:59:07 +00003481
Dmitri Gribenko06358bd2013-01-09 15:25:30 +00003482if test "$CXX" = "clang++" ; then
3483 { echo "$as_me:$LINENO: checking whether clang works" >&5
3484echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3485 ac_ext=cpp
3486ac_cpp='$CXXCPP $CPPFLAGS'
3487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3490
3491
3492cat >conftest.$ac_ext <<_ACEOF
3493/* confdefs.h. */
3494_ACEOF
3495cat confdefs.h >>conftest.$ac_ext
3496cat >>conftest.$ac_ext <<_ACEOF
3497/* end confdefs.h. */
3498#include <limits>
3499#if __has_include (<cxxabi.h>)
3500#include <cxxabi.h>
3501#endif
3502#if __has_include (<unwind.h>)
3503#include <unwind.h>
3504#endif
3505
3506int
3507main ()
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
3514rm -f conftest.$ac_objext
3515if { (ac_try="$ac_compile"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3529 { (case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532esac
3533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_try") 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try='test -s conftest.$ac_objext'
3539 { (case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542esac
3543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_try") 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548
3549 { echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6; }
3551
3552else
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556
3557 { echo "$as_me:$LINENO: result: no" >&5
3558echo "${ECHO_T}no" >&6; }
3559 { { 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
3560echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3561 { (exit 1); exit 1; }; }
3562
3563fi
3564
3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_ext=c
3567ac_cpp='$CPP $CPPFLAGS'
3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
3572fi
3573
Eric Christopher58839712011-09-16 20:36:25 +00003574
3575
3576if test -d ${srcdir}/projects/llvm-gcc ; then
3577 subdirs="$subdirs projects/llvm-gcc"
3578
3579fi
3580
3581if test -d ${srcdir}/projects/test-suite ; then
3582 subdirs="$subdirs projects/test-suite"
3583
3584fi
3585
3586if test -d ${srcdir}/projects/llvm-test ; then
3587 subdirs="$subdirs projects/llvm-test"
3588
3589fi
3590
3591if test -d ${srcdir}/projects/poolalloc ; then
3592 subdirs="$subdirs projects/poolalloc"
3593
3594fi
3595
3596if test -d ${srcdir}/projects/llvm-poolalloc ; then
3597 subdirs="$subdirs projects/llvm-poolalloc"
3598
3599fi
3600
3601for i in `ls ${srcdir}/projects`
3602do
3603 if test -d ${srcdir}/projects/${i} ; then
3604 case ${i} in
3605 sample) subdirs="$subdirs projects/sample"
3606 ;;
3607 privbracket) subdirs="$subdirs projects/privbracket"
3608 ;;
3609 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3610 ;;
3611 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3612;;
3613 llvm-java) subdirs="$subdirs projects/llvm-java"
3614 ;;
3615 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3616 ;;
3617 safecode) subdirs="$subdirs projects/safecode"
3618 ;;
3619 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3620 ;;
Daniel Dunbar7ce849d2011-12-07 22:07:03 +00003621 compiler-rt) ;;
Eric Christopher58839712011-09-16 20:36:25 +00003622 llvm-gcc) ;;
3623 test-suite) ;;
3624 llvm-test) ;;
3625 poolalloc) ;;
3626 llvm-poolalloc) ;;
3627 *)
3628 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3629echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3630 ;;
3631 esac
3632 fi
3633done
3634
3635# Check whether --enable-polly was given.
3636if test "${enable_polly+set}" = set; then
3637 enableval=$enable_polly;
3638else
3639 enableval=default
3640fi
3641
3642case "$enableval" in
3643 yes) ENABLE_POLLY=1
3644 ;;
3645 no) ENABLE_POLLY=0
3646 ;;
3647 default) ENABLE_POLLY=1
3648 ;;
3649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3650echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3651 { (exit 1); exit 1; }; } ;;
3652esac
3653
3654
3655if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3656 LLVM_HAS_POLLY=1
3657
3658 subdirs="$subdirs tools/polly"
3659
3660fi
3661
3662
3663# Make sure we can run config.sub.
3664$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3665 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3666echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3667 { (exit 1); exit 1; }; }
3668
3669{ echo "$as_me:$LINENO: checking build system type" >&5
3670echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3671if test "${ac_cv_build+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 ac_build_alias=$build_alias
3675test "x$ac_build_alias" = x &&
3676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3677test "x$ac_build_alias" = x &&
3678 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3679echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3680 { (exit 1); exit 1; }; }
3681ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3682 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3683echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3684 { (exit 1); exit 1; }; }
3685
3686fi
3687{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3688echo "${ECHO_T}$ac_cv_build" >&6; }
3689case $ac_cv_build in
3690*-*-*) ;;
3691*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3692echo "$as_me: error: invalid value of canonical build" >&2;}
3693 { (exit 1); exit 1; }; };;
3694esac
3695build=$ac_cv_build
3696ac_save_IFS=$IFS; IFS='-'
3697set x $ac_cv_build
3698shift
3699build_cpu=$1
3700build_vendor=$2
3701shift; shift
3702# Remember, the first character of IFS is used to create $*,
3703# except with old shells:
3704build_os=$*
3705IFS=$ac_save_IFS
3706case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3707
3708
3709{ echo "$as_me:$LINENO: checking host system type" >&5
3710echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3711if test "${ac_cv_host+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714 if test "x$host_alias" = x; then
3715 ac_cv_host=$ac_cv_build
3716else
3717 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3718 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3719echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3720 { (exit 1); exit 1; }; }
3721fi
3722
3723fi
3724{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3725echo "${ECHO_T}$ac_cv_host" >&6; }
3726case $ac_cv_host in
3727*-*-*) ;;
3728*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3729echo "$as_me: error: invalid value of canonical host" >&2;}
3730 { (exit 1); exit 1; }; };;
3731esac
3732host=$ac_cv_host
3733ac_save_IFS=$IFS; IFS='-'
3734set x $ac_cv_host
3735shift
3736host_cpu=$1
3737host_vendor=$2
3738shift; shift
3739# Remember, the first character of IFS is used to create $*,
3740# except with old shells:
3741host_os=$*
3742IFS=$ac_save_IFS
3743case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3744
3745
3746{ echo "$as_me:$LINENO: checking target system type" >&5
3747echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3748if test "${ac_cv_target+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if test "x$target_alias" = x; then
3752 ac_cv_target=$ac_cv_host
3753else
3754 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3755 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3756echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3757 { (exit 1); exit 1; }; }
3758fi
3759
3760fi
3761{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3762echo "${ECHO_T}$ac_cv_target" >&6; }
3763case $ac_cv_target in
3764*-*-*) ;;
3765*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3766echo "$as_me: error: invalid value of canonical target" >&2;}
3767 { (exit 1); exit 1; }; };;
3768esac
3769target=$ac_cv_target
3770ac_save_IFS=$IFS; IFS='-'
3771set x $ac_cv_target
3772shift
3773target_cpu=$1
3774target_vendor=$2
3775shift; shift
3776# Remember, the first character of IFS is used to create $*,
3777# except with old shells:
3778target_os=$*
3779IFS=$ac_save_IFS
3780case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3781
3782
3783# The aliases save the names the user supplied, while $host etc.
3784# will get canonicalized.
3785test -n "$target_alias" &&
3786 test "$program_prefix$program_suffix$program_transform_name" = \
3787 NONENONEs,x,x, &&
3788 program_prefix=${target_alias}-
3789
3790{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3791echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3792if test "${llvm_cv_os_type+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 case $host in
3796 *-*-aix*)
3797 llvm_cv_link_all_option="-Wl,--whole-archive"
3798 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3799 llvm_cv_os_type="AIX"
3800 llvm_cv_platform_type="Unix" ;;
3801 *-*-irix*)
3802 llvm_cv_link_all_option="-Wl,--whole-archive"
3803 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3804 llvm_cv_os_type="IRIX"
3805 llvm_cv_platform_type="Unix" ;;
3806 *-*-cygwin*)
3807 llvm_cv_link_all_option="-Wl,--whole-archive"
3808 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809 llvm_cv_os_type="Cygwin"
3810 llvm_cv_platform_type="Unix" ;;
3811 *-*-darwin*)
3812 llvm_cv_link_all_option="-Wl,-all_load"
3813 llvm_cv_no_link_all_option="-Wl,-noall_load"
3814 llvm_cv_os_type="Darwin"
3815 llvm_cv_platform_type="Unix" ;;
3816 *-*-minix*)
3817 llvm_cv_link_all_option="-Wl,-all_load"
3818 llvm_cv_no_link_all_option="-Wl,-noall_load"
3819 llvm_cv_os_type="Minix"
3820 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003821 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopher58839712011-09-16 20:36:25 +00003822 llvm_cv_link_all_option="-Wl,--whole-archive"
3823 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3824 llvm_cv_os_type="FreeBSD"
3825 llvm_cv_platform_type="Unix" ;;
3826 *-*-openbsd*)
3827 llvm_cv_link_all_option="-Wl,--whole-archive"
3828 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3829 llvm_cv_os_type="OpenBSD"
3830 llvm_cv_platform_type="Unix" ;;
3831 *-*-netbsd*)
3832 llvm_cv_link_all_option="-Wl,--whole-archive"
3833 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834 llvm_cv_os_type="NetBSD"
3835 llvm_cv_platform_type="Unix" ;;
3836 *-*-dragonfly*)
3837 llvm_cv_link_all_option="-Wl,--whole-archive"
3838 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839 llvm_cv_os_type="DragonFly"
3840 llvm_cv_platform_type="Unix" ;;
3841 *-*-hpux*)
3842 llvm_cv_link_all_option="-Wl,--whole-archive"
3843 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844 llvm_cv_os_type="HP-UX"
3845 llvm_cv_platform_type="Unix" ;;
3846 *-*-interix*)
3847 llvm_cv_link_all_option="-Wl,--whole-archive"
3848 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849 llvm_cv_os_type="Interix"
3850 llvm_cv_platform_type="Unix" ;;
3851 *-*-linux*)
3852 llvm_cv_link_all_option="-Wl,--whole-archive"
3853 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854 llvm_cv_os_type="Linux"
3855 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003856 *-*-gnu*)
3857 llvm_cv_link_all_option="-Wl,--whole-archive"
3858 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859 llvm_cv_os_type="GNU"
3860 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003861 *-*-solaris*)
3862 llvm_cv_link_all_option="-Wl,-z,allextract"
3863 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3864 llvm_cv_os_type="SunOS"
3865 llvm_cv_platform_type="Unix" ;;
3866 *-*-auroraux*)
3867 llvm_cv_link_all_option="-Wl,-z,allextract"
3868 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3869 llvm_cv_os_type="AuroraUX"
3870 llvm_cv_platform_type="Unix" ;;
3871 *-*-win32*)
3872 llvm_cv_link_all_option="-Wl,--whole-archive"
3873 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874 llvm_cv_os_type="Win32"
3875 llvm_cv_platform_type="Win32" ;;
3876 *-*-mingw*)
3877 llvm_cv_link_all_option="-Wl,--whole-archive"
3878 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3879 llvm_cv_os_type="MingW"
3880 llvm_cv_platform_type="Win32" ;;
3881 *-*-haiku*)
3882 llvm_cv_link_all_option="-Wl,--whole-archive"
3883 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3884 llvm_cv_os_type="Haiku"
3885 llvm_cv_platform_type="Unix" ;;
3886 *-unknown-eabi*)
3887 llvm_cv_link_all_option="-Wl,--whole-archive"
3888 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889 llvm_cv_os_type="Freestanding"
3890 llvm_cv_platform_type="Unix" ;;
3891 *-unknown-elf*)
3892 llvm_cv_link_all_option="-Wl,--whole-archive"
3893 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894 llvm_cv_os_type="Freestanding"
3895 llvm_cv_platform_type="Unix" ;;
3896 *)
3897 llvm_cv_link_all_option=""
3898 llvm_cv_no_link_all_option=""
3899 llvm_cv_os_type="Unknown"
3900 llvm_cv_platform_type="Unknown" ;;
3901esac
3902fi
3903{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3904echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3905
3906{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3907echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3908if test "${llvm_cv_target_os_type+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 case $target in
3912 *-*-aix*)
3913 llvm_cv_target_os_type="AIX" ;;
3914 *-*-irix*)
3915 llvm_cv_target_os_type="IRIX" ;;
3916 *-*-cygwin*)
3917 llvm_cv_target_os_type="Cygwin" ;;
3918 *-*-darwin*)
3919 llvm_cv_target_os_type="Darwin" ;;
3920 *-*-minix*)
3921 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00003922 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopher58839712011-09-16 20:36:25 +00003923 llvm_cv_target_os_type="FreeBSD" ;;
3924 *-*-openbsd*)
3925 llvm_cv_target_os_type="OpenBSD" ;;
3926 *-*-netbsd*)
3927 llvm_cv_target_os_type="NetBSD" ;;
3928 *-*-dragonfly*)
3929 llvm_cv_target_os_type="DragonFly" ;;
3930 *-*-hpux*)
3931 llvm_cv_target_os_type="HP-UX" ;;
3932 *-*-interix*)
3933 llvm_cv_target_os_type="Interix" ;;
3934 *-*-linux*)
3935 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledrue8235fe2012-04-05 19:34:15 +00003936 *-*-gnu*)
3937 llvm_cv_target_os_type="GNU" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003938 *-*-solaris*)
3939 llvm_cv_target_os_type="SunOS" ;;
3940 *-*-auroraux*)
3941 llvm_cv_target_os_type="AuroraUX" ;;
3942 *-*-win32*)
3943 llvm_cv_target_os_type="Win32" ;;
3944 *-*-mingw*)
3945 llvm_cv_target_os_type="MingW" ;;
3946 *-*-haiku*)
3947 llvm_cv_target_os_type="Haiku" ;;
3948 *-*-rtems*)
3949 llvm_cv_target_os_type="RTEMS" ;;
3950 *-*-nacl*)
3951 llvm_cv_target_os_type="NativeClient" ;;
3952 *-unknown-eabi*)
3953 llvm_cv_target_os_type="Freestanding" ;;
3954 *)
3955 llvm_cv_target_os_type="Unknown" ;;
3956esac
3957fi
3958{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3959echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3960
3961if test "$llvm_cv_os_type" = "Unknown" ; then
3962 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3963echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3964 { (exit 1); exit 1; }; }
3965fi
3966
3967OS=$llvm_cv_os_type
3968
3969HOST_OS=$llvm_cv_os_type
3970
3971TARGET_OS=$llvm_cv_target_os_type
3972
3973
3974LINKALL=$llvm_cv_link_all_option
3975
3976NOLINKALL=$llvm_cv_no_link_all_option
3977
3978
3979case $llvm_cv_platform_type in
3980 Unix)
3981
3982cat >>confdefs.h <<\_ACEOF
3983#define LLVM_ON_UNIX 1
3984_ACEOF
3985
3986 LLVM_ON_UNIX=1
3987
3988 LLVM_ON_WIN32=0
3989
3990 ;;
3991 Win32)
3992
3993cat >>confdefs.h <<\_ACEOF
3994#define LLVM_ON_WIN32 1
3995_ACEOF
3996
3997 LLVM_ON_UNIX=0
3998
3999 LLVM_ON_WIN32=1
4000
4001 ;;
4002esac
4003
4004{ echo "$as_me:$LINENO: checking target architecture" >&5
4005echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4006if test "${llvm_cv_target_arch+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 case $target in
4010 i?86-*) llvm_cv_target_arch="x86" ;;
4011 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4012 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4013 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004014 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004015 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004016 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4017 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004018 xcore-*) llvm_cv_target_arch="XCore" ;;
4019 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004020 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004021 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00004022 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004023 *) llvm_cv_target_arch="Unknown" ;;
4024esac
4025fi
4026{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4027echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4028
4029if test "$llvm_cv_target_arch" = "Unknown" ; then
4030 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4031echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4032fi
4033
Eric Christopher58839712011-09-16 20:36:25 +00004034case "$llvm_cv_target_arch" in
4035 x86) LLVM_NATIVE_ARCH="X86" ;;
4036 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4037 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4038esac
4039
4040ARCH=$llvm_cv_target_arch
4041
4042
Danil Malyshev7c5db452012-05-17 21:07:47 +00004043case $host in
4044 i?86-*) host_arch="x86" ;;
4045 amd64-* | x86_64-*) host_arch="x86_64" ;;
4046 sparc*-*) host_arch="Sparc" ;;
4047 powerpc*-*) host_arch="PowerPC" ;;
4048 arm*-*) host_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004049 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004050 mips-* | mips64-*) host_arch="Mips" ;;
4051 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004052 xcore-*) host_arch="XCore" ;;
4053 msp430-*) host_arch="MSP430" ;;
4054 hexagon-*) host_arch="Hexagon" ;;
4055 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004056 *) host_arch="Unknown" ;;
4057esac
4058
4059if test "$host_arch" = "Unknown" ; then
4060 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4061echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4062fi
4063
4064HOST_ARCH=$host_arch
4065
4066
Eric Christopher58839712011-09-16 20:36:25 +00004067
4068
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004069{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4070echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4071if test "${ac_cv_path_GREP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00004073else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004074 # Extract the first word of "grep ggrep" to use in msg output
4075if test -z "$GREP"; then
4076set dummy grep ggrep; ac_prog_name=$2
4077if test "${ac_cv_path_GREP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004080 ac_path_GREP_found=false
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004081# Loop through the user's path and test for each of PROGNAME-LIST
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004083for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencera40c6872004-11-29 12:29:58 +00004084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004087 for ac_prog in grep ggrep; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4090 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4091 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004092 # Check for GNU $ac_path_GREP
4093case `"$ac_path_GREP" --version 2>&1` in
4094*GNU*)
4095 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4096*)
4097 ac_count=0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004098 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004099 while :
4100 do
4101 cat "conftest.in" "conftest.in" >"conftest.tmp"
4102 mv "conftest.tmp" "conftest.in"
4103 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004104 echo 'GREP' >> "conftest.nl"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004105 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004107 ac_count=`expr $ac_count + 1`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004108 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4109 # Best one so far, save it but keep looking for a better one
4110 ac_cv_path_GREP="$ac_path_GREP"
4111 ac_path_GREP_max=$ac_count
Reid Spencera40c6872004-11-29 12:29:58 +00004112 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004113 # 10*(2^10) chars as input seems more than enough
4114 test $ac_count -gt 10 && break
4115 done
4116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117esac
4118
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004119
4120 $ac_path_GREP_found && break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004121 done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004122done
4123
4124done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004125IFS=$as_save_IFS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004126
4127
4128fi
4129
4130GREP="$ac_cv_path_GREP"
4131if test -z "$GREP"; then
4132 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4133echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4134 { (exit 1); exit 1; }; }
4135fi
4136
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004137else
4138 ac_cv_path_GREP=$GREP
4139fi
Reid Spencera40c6872004-11-29 12:29:58 +00004140
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004141
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004142fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004143{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4144echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004145 GREP="$ac_cv_path_GREP"
4146
4147
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004148{ echo "$as_me:$LINENO: checking for egrep" >&5
4149echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4150if test "${ac_cv_path_EGREP+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004152else
4153 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4154 then ac_cv_path_EGREP="$GREP -E"
4155 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004156 # Extract the first word of "egrep" to use in msg output
4157if test -z "$EGREP"; then
4158set dummy egrep; ac_prog_name=$2
4159if test "${ac_cv_path_EGREP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004162 ac_path_EGREP_found=false
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004163# Loop through the user's path and test for each of PROGNAME-LIST
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004169 for ac_prog in egrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4173 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004174 # Check for GNU $ac_path_EGREP
4175case `"$ac_path_EGREP" --version 2>&1` in
4176*GNU*)
4177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4178*)
4179 ac_count=0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004180 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004186 echo 'EGREP' >> "conftest.nl"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004189 ac_count=`expr $ac_count + 1`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_EGREP="$ac_path_EGREP"
4193 ac_path_EGREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199esac
4200
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004201
4202 $ac_path_EGREP_found && break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004203 done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004204done
4205
4206done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004207IFS=$as_save_IFS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004208
4209
4210fi
4211
4212EGREP="$ac_cv_path_EGREP"
4213if test -z "$EGREP"; then
4214 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4215echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4216 { (exit 1); exit 1; }; }
4217fi
4218
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004219else
4220 ac_cv_path_EGREP=$EGREP
4221fi
4222
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004223
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004224 fi
4225fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004226{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4227echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004228 EGREP="$ac_cv_path_EGREP"
4229
4230
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004231{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4233if test "${ac_cv_header_stdc+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00004235else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004236 cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h. */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004241/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004242#include <stdlib.h>
4243#include <stdarg.h>
4244#include <string.h>
4245#include <float.h>
4246
John Criswell3eaf0b42003-09-10 15:17:25 +00004247int
4248main ()
4249{
4250
4251 ;
4252 return 0;
4253}
John Criswell3ef61af2003-06-30 21:59:07 +00004254_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004255rm -f conftest.$ac_objext
4256if { (ac_try="$ac_compile"
4257case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00004289 ac_cv_header_stdc=yes
4290else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ac_cv_header_stdc=no
John Criswell3ef61af2003-06-30 21:59:07 +00004295fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004296
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00004298
4299if test $ac_cv_header_stdc = yes; then
4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004301 cat >conftest.$ac_ext <<_ACEOF
4302/* confdefs.h. */
4303_ACEOF
4304cat confdefs.h >>conftest.$ac_ext
4305cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004306/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004307#include <string.h>
4308
4309_ACEOF
4310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004311 $EGREP "memchr" >/dev/null 2>&1; then
4312 :
John Criswell3ef61af2003-06-30 21:59:07 +00004313else
4314 ac_cv_header_stdc=no
4315fi
4316rm -f conftest*
4317
4318fi
4319
4320if test $ac_cv_header_stdc = yes; then
4321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004322 cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004327/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004328#include <stdlib.h>
4329
4330_ACEOF
4331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004332 $EGREP "free" >/dev/null 2>&1; then
4333 :
John Criswell3ef61af2003-06-30 21:59:07 +00004334else
4335 ac_cv_header_stdc=no
4336fi
4337rm -f conftest*
4338
4339fi
4340
4341if test $ac_cv_header_stdc = yes; then
4342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004343 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +00004344 :
4345else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004346 cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h. */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004351/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004352#include <ctype.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004353#include <stdlib.h>
John Criswell3ef61af2003-06-30 21:59:07 +00004354#if ((' ' & 0x0FF) == 0x020)
4355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4357#else
John Criswell3eaf0b42003-09-10 15:17:25 +00004358# define ISLOWER(c) \
Reid Spencerf184a862004-09-19 23:53:36 +00004359 (('a' <= (c) && (c) <= 'i') \
4360 || ('j' <= (c) && (c) <= 'r') \
4361 || ('s' <= (c) && (c) <= 'z'))
John Criswell3ef61af2003-06-30 21:59:07 +00004362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4363#endif
4364
4365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4366int
4367main ()
4368{
4369 int i;
4370 for (i = 0; i < 256; i++)
4371 if (XOR (islower (i), ISLOWER (i))
Reid Spencerf184a862004-09-19 23:53:36 +00004372 || toupper (i) != TOUPPER (i))
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004373 return 2;
4374 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +00004375}
4376_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004377rm -f conftest$ac_exeext
4378if { (ac_try="$ac_link"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_link") 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 :
John Criswell3ef61af2003-06-30 21:59:07 +00004398else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004399 echo "$as_me: program exited with status $ac_status" >&5
4400echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403( exit $ac_status )
4404ac_cv_header_stdc=no
John Criswell3ef61af2003-06-30 21:59:07 +00004405fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004407fi
4408
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004409
John Criswell3ef61af2003-06-30 21:59:07 +00004410fi
4411fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004412{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00004414if test $ac_cv_header_stdc = yes; then
4415
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004416cat >>confdefs.h <<\_ACEOF
4417#define STDC_HEADERS 1
4418_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00004419
4420fi
4421
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004422# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004423
4424
4425
4426
4427
4428
4429
4430
4431
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4433 inttypes.h stdint.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004434do
4435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
4447$ac_includes_default
4448
4449#include <$ac_header>
4450_ACEOF
4451rm -f conftest.$ac_objext
4452if { (ac_try="$ac_compile"
4453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_compile") 2>conftest.er1
4459 ac_status=$?
4460 grep -v '^ *+' conftest.er1 >conftest.err
4461 rm -f conftest.er1
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469esac
4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_try") 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479esac
4480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_try") 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 eval "$as_ac_Header=yes"
4486else
4487 echo "$as_me: failed program was:" >&5
4488sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 eval "$as_ac_Header=no"
4491fi
4492
4493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494fi
4495ac_res=`eval echo '${'$as_ac_Header'}'`
4496 { echo "$as_me:$LINENO: result: $ac_res" >&5
4497echo "${ECHO_T}$ac_res" >&6; }
4498if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004499 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004501_ACEOF
4502
4503fi
4504
4505done
4506
4507
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004508{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4509echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4510if test "${ac_cv_c_bigendian+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004512else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004513 # See if sys/param.h defines the BYTE_ORDER macro.
4514cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004516_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004519/* end confdefs.h. */
4520#include <sys/types.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004521#include <sys/param.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004522
4523int
4524main ()
4525{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004526#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4527 bogus endian macros
4528#endif
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004529
4530 ;
4531 return 0;
4532}
4533_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004534rm -f conftest.$ac_objext
4535if { (ac_try="$ac_compile"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 (eval "$ac_compile") 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4549 { (case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4552esac
4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_try") 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562esac
4563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_try") 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004568 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004569cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004574/* end confdefs.h. */
4575#include <sys/types.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004576#include <sys/param.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004577
4578int
4579main ()
4580{
4581#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004582 not big endian
4583#endif
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004584
4585 ;
4586 return 0;
4587}
4588_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004589rm -f conftest.$ac_objext
4590if { (ac_try="$ac_compile"
4591case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594esac
4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4604 { (case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607esac
4608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_try") 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617esac
4618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004623 ac_cv_c_bigendian=yes
4624else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004625 echo "$as_me: failed program was:" >&5
4626sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwinaec06332010-01-26 08:50:50 +00004627
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004628 ac_cv_c_bigendian=no
4629fi
4630
4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632else
4633 echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 # It does not; compile a test program.
4637if test "$cross_compiling" = yes; then
4638 # try to guess the endianness by grepping values into an object file
4639 ac_cv_c_bigendian=unknown
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
4646short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4647short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4648void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4649short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4650short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4651void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004652int
4653main ()
4654{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004655 _ascii (); _ebcdic ();
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004656 ;
4657 return 0;
4658}
4659_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004660rm -f conftest.$ac_objext
4661if { (ac_try="$ac_compile"
4662case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665esac
4666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_compile") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4675 { (case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678esac
4679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_try") 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_try") 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004695 ac_cv_c_bigendian=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004696fi
4697if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4698 if test "$ac_cv_c_bigendian" = unknown; then
4699 ac_cv_c_bigendian=no
4700 else
4701 # finding both strings is unlikely to happen, but who knows?
4702 ac_cv_c_bigendian=unknown
4703 fi
4704fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004705else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004706 echo "$as_me: failed program was:" >&5
4707sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004708
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004709
Torok Edwinaec06332010-01-26 08:50:50 +00004710fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004711
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004714 cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h. */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004719/* end confdefs.h. */
4720$ac_includes_default
4721int
4722main ()
4723{
4724
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004725 /* Are we little or big endian? From Harbison&Steele. */
4726 union
4727 {
4728 long int l;
4729 char c[sizeof (long int)];
4730 } u;
4731 u.l = 1;
4732 return u.c[sizeof (long int) - 1] == 1;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004733
4734 ;
4735 return 0;
4736}
4737_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004738rm -f conftest$ac_exeext
4739if { (ac_try="$ac_link"
4740case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743esac
4744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_link") 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004758 ac_cv_c_bigendian=no
4759else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004760 echo "$as_me: program exited with status $ac_status" >&5
4761echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764( exit $ac_status )
4765ac_cv_c_bigendian=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004766fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004768fi
4769
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004770
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004771fi
4772
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774fi
4775{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4776echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4777case $ac_cv_c_bigendian in
4778 yes)
4779 ENDIAN=big
4780 ;;
4781 no)
4782 ENDIAN=little
4783 ;;
4784 *)
4785 { { echo "$as_me:$LINENO: error: unknown endianness
4786presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4787echo "$as_me: error: unknown endianness
4788presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4789 { (exit 1); exit 1; }; } ;;
4790esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004791
4792
4793if test "$cross_compiling" = yes; then
4794 LLVM_CROSS_COMPILING=1
4795
4796
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004797{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4798echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4799if test "${ac_cv_build_exeext+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004801else
4802 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4803 ac_cv_build_exeext=.exe
4804else
4805 ac_build_prefix=${build_alias}-
4806
4807 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4808set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004813else
4814 if test -n "$BUILD_CC"; then
4815 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4816else
4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 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 +00004824 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004826 break 2
4827 fi
4828done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004829done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004830IFS=$as_save_IFS
4831
4832fi
4833fi
4834BUILD_CC=$ac_cv_prog_BUILD_CC
4835if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004836 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4837echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004838else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004839 { echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004841fi
4842
4843
4844 if test -z "$BUILD_CC"; then
4845 # Extract the first word of "gcc", so it can be a program name with args.
4846set dummy gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004851else
4852 if test -n "$BUILD_CC"; then
4853 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 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 +00004862 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004864 break 2
4865 fi
4866done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004867done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004868IFS=$as_save_IFS
4869
4870fi
4871fi
4872BUILD_CC=$ac_cv_prog_BUILD_CC
4873if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004874 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4875echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004876else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004877 { echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004879fi
4880
4881
4882 if test -z "$BUILD_CC"; then
4883 # Extract the first word of "cc", so it can be a program name with args.
4884set dummy cc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004889else
4890 if test -n "$BUILD_CC"; then
4891 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4892else
4893 ac_prog_rejected=no
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 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 +00004901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4902 ac_prog_rejected=yes
4903 continue
4904 fi
4905 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004907 break 2
4908 fi
4909done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004910done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004911IFS=$as_save_IFS
4912
4913if test $ac_prog_rejected = yes; then
4914 # We found a bogon in the path, so make sure we never use it.
4915 set dummy $ac_cv_prog_BUILD_CC
4916 shift
4917 if test $# != 0; then
4918 # We chose a different compiler from the bogus one.
4919 # However, it has the same basename, so the bogon will be chosen
4920 # first if we set BUILD_CC to just the basename; use the full file name.
4921 shift
4922 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4923 fi
4924fi
4925fi
4926fi
4927BUILD_CC=$ac_cv_prog_BUILD_CC
4928if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004929 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4930echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004931else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004932 { echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004934fi
4935
4936
4937 fi
4938 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004939 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4940echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4941 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004942 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4943 rm -f conftest*
4944 echo 'int main () { return 0; }' > conftest.$ac_ext
4945 ac_cv_build_exeext=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004946 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004947 (eval $ac_build_link) 2>&5
4948 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004951 for file in conftest.*; do
4952 case $file in
Jim Grosbachbfc70b02008-09-26 17:27:58 +00004953 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004954 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4955 esac
4956 done
4957 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004958 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4959echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4960 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004961 fi
4962 rm -f conftest*
4963 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4964fi
4965fi
4966
4967BUILD_EXEEXT=""
4968test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004969{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4970echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004971ac_build_exeext=$BUILD_EXEEXT
4972
Jim Grosbach009db892008-10-02 22:56:44 +00004973 ac_build_prefix=${build_alias}-
4974 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4975set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004980else
4981 if test -n "$BUILD_CXX"; then
4982 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4983else
4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 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 +00004991 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004993 break 2
4994 fi
4995done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004996done
Jim Grosbach009db892008-10-02 22:56:44 +00004997IFS=$as_save_IFS
4998
4999fi
5000fi
5001BUILD_CXX=$ac_cv_prog_BUILD_CXX
5002if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005003 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5004echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005005else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005006 { echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005008fi
5009
5010
5011 if test -z "$BUILD_CXX"; then
5012 # Extract the first word of "g++", so it can be a program name with args.
5013set dummy g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00005018else
5019 if test -n "$BUILD_CXX"; then
5020 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 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 +00005029 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00005031 break 2
5032 fi
5033done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005034done
Jim Grosbach009db892008-10-02 22:56:44 +00005035IFS=$as_save_IFS
5036
5037fi
5038fi
5039BUILD_CXX=$ac_cv_prog_BUILD_CXX
5040if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005041 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5042echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005043else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005044 { echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005046fi
5047
5048
5049 if test -z "$BUILD_CXX"; then
5050 # Extract the first word of "c++", so it can be a program name with args.
5051set dummy c++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00005056else
5057 if test -n "$BUILD_CXX"; then
5058 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5059else
5060 ac_prog_rejected=no
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 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 +00005068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5069 ac_prog_rejected=yes
5070 continue
5071 fi
5072 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00005074 break 2
5075 fi
5076done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005077done
Jim Grosbach009db892008-10-02 22:56:44 +00005078IFS=$as_save_IFS
5079
5080if test $ac_prog_rejected = yes; then
5081 # We found a bogon in the path, so make sure we never use it.
5082 set dummy $ac_cv_prog_BUILD_CXX
5083 shift
5084 if test $# != 0; then
5085 # We chose a different compiler from the bogus one.
5086 # However, it has the same basename, so the bogon will be chosen
5087 # first if we set BUILD_CXX to just the basename; use the full file name.
5088 shift
5089 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5090 fi
5091fi
5092fi
5093fi
5094BUILD_CXX=$ac_cv_prog_BUILD_CXX
5095if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005096 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5097echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005098else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005099 { echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005101fi
5102
5103
5104 fi
5105 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005106else
5107 LLVM_CROSS_COMPILING=0
5108
5109fi
5110
Dan Gohmande75469c2010-08-04 16:25:01 +00005111if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005112 cvsbuild="yes"
5113 optimize="no"
5114 CVSBUILD=CVSBUILD=1
5115
5116else
5117 cvsbuild="no"
5118 optimize="yes"
5119fi
5120
5121
Eric Christopher1094ded2011-11-11 22:51:42 +00005122# Check whether --enable-libcpp was given.
5123if test "${enable_libcpp+set}" = set; then
5124 enableval=$enable_libcpp;
5125else
5126 enableval=default
5127fi
5128
5129case "$enableval" in
5130 yes) ENABLE_LIBCPP=1
5131 ;;
5132 no) ENABLE_LIBCPP=0
5133 ;;
5134 default) ENABLE_LIBCPP=0
5135;;
5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5137echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5139esac
5140
Eric Christopher04e35972012-08-03 19:47:14 +00005141# Check whether --enable-cxx11 was given.
5142if test "${enable_cxx11+set}" = set; then
5143 enableval=$enable_cxx11;
5144else
5145 enableval=default
5146fi
5147
5148case "$enableval" in
5149 yes) ENABLE_CXX11=1
5150 ;;
5151 no) ENABLE_CXX11=0
5152 ;;
5153 default) ENABLE_CXX11=0
5154;;
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5156echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5158esac
5159
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005160clang_arcmt="yes"
5161# Check whether --enable-clang-arcmt was given.
5162if test "${enable_clang_arcmt+set}" = set; then
5163 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5164else
5165 enableval="yes"
5166fi
5167
5168case "$enableval" in
5169 yes) ENABLE_CLANG_ARCMT=1
5170 ;;
5171 no) ENABLE_CLANG_ARCMT=0
5172 ;;
5173 default) ENABLE_CLANG_ARCMT=1
5174;;
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5178esac
5179
5180clang_static_analyzer="yes"
5181# Check whether --enable-clang-static-analyzer was given.
5182if test "${enable_clang_static_analyzer+set}" = set; then
5183 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5184else
5185 enableval="yes"
5186fi
5187
5188case "$enableval" in
5189 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5190 ;;
5191 no) ENABLE_CLANG_STATIC_ANALYZER=0
5192 ;;
5193 default) ENABLE_CLANG_STATIC_ANALYZER=1
5194;;
5195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5196echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5197 { (exit 1); exit 1; }; } ;;
5198esac
5199
5200# Check whether --enable-clang-rewriter was given.
5201if test "${enable_clang_rewriter+set}" = set; then
5202 enableval=$enable_clang_rewriter;
5203else
5204 enableval="yes"
5205fi
5206
5207case "$enableval" in
5208 yes) ENABLE_CLANG_REWRITER=1
5209 ;;
5210 no)
Benjamin Kramerd14720d2012-12-26 10:48:49 +00005211 if test ${clang_arcmt} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005212 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5213echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5214 { (exit 1); exit 1; }; }
5215 fi
Benjamin Kramerd14720d2012-12-26 10:48:49 +00005216 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005217 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5218echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5219 { (exit 1); exit 1; }; }
5220 fi
5221 ENABLE_CLANG_REWRITER=0
5222
5223 ;;
5224 default) ENABLE_CLANG_REWRITER=1
5225;;
5226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5227echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5229esac
5230
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005231# Check whether --enable-optimized was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005232if test "${enable_optimized+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005233 enableval=$enable_optimized;
5234else
5235 enableval=$optimize
5236fi
5237
5238if test ${enableval} = "no" ; then
5239 ENABLE_OPTIMIZED=
5240
5241else
5242 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5243
5244fi
5245
David Greenec0a34a072009-04-17 14:50:39 +00005246# Check whether --enable-profiling was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005247if test "${enable_profiling+set}" = set; then
David Greenec0a34a072009-04-17 14:50:39 +00005248 enableval=$enable_profiling;
5249else
5250 enableval="no"
5251fi
5252
5253if test ${enableval} = "no" ; then
5254 ENABLE_PROFILING=
5255
5256else
5257 ENABLE_PROFILING=ENABLE_PROFILING=1
5258
5259fi
5260
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005261# Check whether --enable-assertions was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005262if test "${enable_assertions+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005263 enableval=$enable_assertions;
5264else
5265 enableval="yes"
5266fi
5267
5268if test ${enableval} = "yes" ; then
5269 DISABLE_ASSERTIONS=
5270
5271else
5272 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5273
5274fi
5275
Eric Christopher84864012012-08-03 19:58:20 +00005276# Check whether --enable-werror was given.
5277if test "${enable_werror+set}" = set; then
5278 enableval=$enable_werror;
5279else
5280 enableval="no"
5281fi
5282
5283case "$enableval" in
5284 yes) ENABLE_WERROR=1
5285 ;;
5286 no) ENABLE_WERROR=0
5287 ;;
5288 default) ENABLE_WERROR=0
5289;;
5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5291echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5293esac
5294
David Greenecbc8ddf2007-06-28 19:36:08 +00005295# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005296if test "${enable_expensive_checks+set}" = set; then
David Greenecbc8ddf2007-06-28 19:36:08 +00005297 enableval=$enable_expensive_checks;
5298else
5299 enableval="no"
5300fi
5301
5302if test ${enableval} = "yes" ; then
5303 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5304
5305 EXPENSIVE_CHECKS=yes
5306
5307else
5308 ENABLE_EXPENSIVE_CHECKS=
5309
5310 EXPENSIVE_CHECKS=no
5311
5312fi
5313
Reid Spencer4b8067f2006-11-17 03:32:33 +00005314# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005315if test "${enable_debug_runtime+set}" = set; then
Reid Spencer4b8067f2006-11-17 03:32:33 +00005316 enableval=$enable_debug_runtime;
5317else
5318 enableval=no
5319fi
5320
5321if test ${enableval} = "no" ; then
5322 DEBUG_RUNTIME=
5323
5324else
5325 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5326
5327fi
5328
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005329# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005330if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005331 enableval=$enable_debug_symbols;
5332else
5333 enableval=no
5334fi
5335
5336if test ${enableval} = "no" ; then
5337 DEBUG_SYMBOLS=
5338
5339else
5340 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5341
5342fi
5343
Daniel Dunbar39c04622012-08-14 18:14:22 +00005344# Check whether --enable-keep-symbols was given.
5345if test "${enable_keep_symbols+set}" = set; then
5346 enableval=$enable_keep_symbols;
5347else
5348 enableval=no
5349fi
5350
5351if test ${enableval} = "no" ; then
5352 KEEP_SYMBOLS=
5353
5354else
5355 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5356
5357fi
5358
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005359# Check whether --enable-jit was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005360if test "${enable_jit+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005361 enableval=$enable_jit;
5362else
5363 enableval=default
5364fi
5365
5366if test ${enableval} = "no"
5367then
5368 JIT=
5369
5370else
5371 case "$llvm_cv_target_arch" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005372 x86) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005373 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005374 Sparc) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005375 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005376 PowerPC) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005377 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005378 x86_64) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005379 ;;
Eric Christopherd8530f32009-09-14 16:38:49 +00005380 ARM) TARGET_HAS_JIT=1
Reid Spencerd7c8b3c2007-01-21 06:32:59 +00005381 ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00005382 AArch64) TARGET_HAS_JIT=0
5383 ;;
Bruno Cardoso Lopesd1d9c782011-07-21 16:28:51 +00005384 Mips) TARGET_HAS_JIT=1
Tanya Lattnerbca16c82007-08-29 16:38:16 +00005385 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005386 XCore) TARGET_HAS_JIT=0
Richard Osborneca08e062008-11-07 10:59:00 +00005387 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005388 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov9173b492009-05-03 13:42:23 +00005389 ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005390 Hexagon) TARGET_HAS_JIT=0
5391 ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005392 MBlaze) TARGET_HAS_JIT=0
5393 ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005394 NVPTX) TARGET_HAS_JIT=0
5395 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005396 *) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005397 ;;
5398 esac
5399fi
5400
Rafael Espindola7ac506d2010-11-12 19:24:06 +00005401# Check whether --enable-docs was given.
5402if test "${enable_docs+set}" = set; then
5403 enableval=$enable_docs;
5404else
5405 enableval=default
5406fi
5407
5408case "$enableval" in
5409 yes) ENABLE_DOCS=1
5410 ;;
5411 no) ENABLE_DOCS=0
5412 ;;
5413 default) ENABLE_DOCS=1
5414 ;;
5415 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5416echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5417 { (exit 1); exit 1; }; } ;;
5418esac
5419
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005420# Check whether --enable-doxygen was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005421if test "${enable_doxygen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005422 enableval=$enable_doxygen;
5423else
5424 enableval=default
5425fi
5426
5427case "$enableval" in
5428 yes) ENABLE_DOXYGEN=1
5429 ;;
5430 no) ENABLE_DOXYGEN=0
5431 ;;
5432 default) ENABLE_DOXYGEN=0
5433 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005434 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5435echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5436 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005437esac
5438
5439# Check whether --enable-threads was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005440if test "${enable_threads+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005441 enableval=$enable_threads;
5442else
Reid Spencerd549edc2006-11-05 17:08:18 +00005443 enableval=default
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005444fi
5445
5446case "$enableval" in
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005447 yes) LLVM_ENABLE_THREADS=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005448 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005449 no) LLVM_ENABLE_THREADS=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005450 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005451 default) LLVM_ENABLE_THREADS=1
Reid Spencerd549edc2006-11-05 17:08:18 +00005452 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005453 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5454echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5455 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005456esac
5457
Owen Andersonaf5db832009-05-19 22:18:56 +00005458cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005459#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersonaf5db832009-05-19 22:18:56 +00005460_ACEOF
5461
5462
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00005463# Check whether --enable-pthreads was given.
5464if test "${enable_pthreads+set}" = set; then
5465 enableval=$enable_pthreads;
5466else
5467 enableval=default
5468fi
5469
5470case "$enableval" in
5471 yes) ENABLE_PTHREADS=1
5472 ;;
5473 no) ENABLE_PTHREADS=0
5474 ;;
5475 default) ENABLE_PTHREADS=1
5476 ;;
5477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5478echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5479 { (exit 1); exit 1; }; } ;;
5480esac
5481
Reid Spencer05a1fe52006-12-16 22:07:52 +00005482# Check whether --enable-pic was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005483if test "${enable_pic+set}" = set; then
Reid Spencer05a1fe52006-12-16 22:07:52 +00005484 enableval=$enable_pic;
5485else
5486 enableval=default
5487fi
5488
5489case "$enableval" in
5490 yes) ENABLE_PIC=1
5491 ;;
5492 no) ENABLE_PIC=0
5493 ;;
Nick Lewycky38525192009-02-19 06:18:56 +00005494 default) ENABLE_PIC=1
Reid Spencer05a1fe52006-12-16 22:07:52 +00005495 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005496 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5497echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5498 { (exit 1); exit 1; }; } ;;
Reid Spencer05a1fe52006-12-16 22:07:52 +00005499esac
5500
5501cat >>confdefs.h <<_ACEOF
5502#define ENABLE_PIC $ENABLE_PIC
5503_ACEOF
5504
5505
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00005506# Check whether --enable-shared was given.
5507if test "${enable_shared+set}" = set; then
5508 enableval=$enable_shared;
5509else
5510 enableval=default
5511fi
5512
5513case "$enableval" in
5514 yes) ENABLE_SHARED=1
5515 ;;
5516 no) ENABLE_SHARED=0
5517 ;;
5518 default) ENABLE_SHARED=0
5519 ;;
5520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5521echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5523esac
5524
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005525# Check whether --enable-embed-stdcxx was given.
5526if test "${enable_embed_stdcxx+set}" = set; then
5527 enableval=$enable_embed_stdcxx;
5528else
5529 enableval=default
5530fi
5531
5532case "$enableval" in
5533 yes) ENABLE_EMBED_STDCXX=1
5534 ;;
5535 no) ENABLE_EMBED_STDCXX=0
5536 ;;
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00005537 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005538 ;;
5539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5540echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5541 { (exit 1); exit 1; }; } ;;
5542esac
5543
Daniel Dunbardac18242010-05-10 20:11:56 +00005544# Check whether --enable-timestamps was given.
5545if test "${enable_timestamps+set}" = set; then
5546 enableval=$enable_timestamps;
5547else
5548 enableval=default
5549fi
5550
5551case "$enableval" in
5552 yes) ENABLE_TIMESTAMPS=1
5553 ;;
5554 no) ENABLE_TIMESTAMPS=0
5555 ;;
5556 default) ENABLE_TIMESTAMPS=1
5557 ;;
5558 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5559echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5561esac
5562
5563cat >>confdefs.h <<_ACEOF
5564#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5565_ACEOF
5566
5567
Eric Christopher9fafe072012-09-21 23:03:29 +00005568
5569# Check whether --enable-backtraces was given.
5570if test "${enable_backtraces+set}" = set; then
5571 enableval=$enable_backtraces;
5572else
5573 enableval=default
5574fi
5575
5576case "$enableval" in
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005577 yes) ENABLE_BACKTRACES=1
Eric Christopher9fafe072012-09-21 23:03:29 +00005578 ;;
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005579 no) ENABLE_BACKTRACES=0
Eric Christopher9fafe072012-09-21 23:03:29 +00005580 ;;
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005581 default) ENABLE_BACKTRACES=1
Eric Christopher9fafe072012-09-21 23:03:29 +00005582 ;;
5583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5584echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5585 { (exit 1); exit 1; }; } ;;
5586esac
5587
5588cat >>confdefs.h <<_ACEOF
5589#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5590_ACEOF
5591
5592
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005593TARGETS_TO_BUILD=""
5594# Check whether --enable-targets was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005595if test "${enable_targets+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005596 enableval=$enable_targets;
5597else
5598 enableval=all
5599fi
5600
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005601if test "$enableval" = host-only ; then
5602 enableval=host
5603fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005604case "$enableval" in
Tim Northover43852f22013-02-04 12:32:21 +00005605 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005606 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5607 case "$a_target" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005608 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5609 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5610 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5611 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Joerg Sonnenberger981e99d2013-02-03 17:06:49 +00005612 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00005613 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005614 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindolae46f0962011-12-28 17:08:00 +00005615 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00005616 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5617 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005618 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5619 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005620 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005621 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005622 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005623 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005624 host) case "$llvm_cv_target_arch" in
5625 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5626 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5627 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5628 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005629 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5630 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005631 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005632 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5633 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005634 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005635 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005636 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5637echo "$as_me: error: Can not set target to build" >&2;}
5638 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005639 esac ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005640 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5641echo "$as_me: error: Unrecognized target $a_target" >&2;}
5642 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005643 esac
5644 done
5645 ;;
5646esac
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00005647
5648# Check whether --enable-experimental-targets was given.
5649if test "${enable_experimental_targets+set}" = set; then
5650 enableval=$enable_experimental_targets;
5651else
5652 enableval=disable
5653fi
5654
5655
5656if test ${enableval} != "disable"
5657then
5658 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5659fi
5660
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005661TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5662
5663
Douglas Gregor43613a22009-06-17 00:43:20 +00005664for a_target in $TARGETS_TO_BUILD; do
5665 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5666
5667cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005668#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5669_ACEOF
5670
5671 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5672 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng8c886a42011-07-22 21:58:54 +00005673 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christophere7a9db12010-08-30 18:34:48 +00005674 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005675 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5676 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5677 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005678 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5679 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5680 fi
Eric Christophere7a9db12010-08-30 18:34:48 +00005681
5682cat >>confdefs.h <<_ACEOF
5683#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbaredf7b8b2010-08-03 14:26:17 +00005684_ACEOF
5685
5686
5687cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005688#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5689_ACEOF
5690
5691
5692cat >>confdefs.h <<_ACEOF
Evan Cheng8c886a42011-07-22 21:58:54 +00005693#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng2129f592011-07-19 06:37:02 +00005694_ACEOF
5695
5696
5697cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005698#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor43613a22009-06-17 00:43:20 +00005699_ACEOF
5700
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005701 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödin27e07c32011-03-09 17:25:46 +00005702
5703cat >>confdefs.h <<_ACEOF
5704#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5705_ACEOF
5706
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005707 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005708 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5709
5710cat >>confdefs.h <<_ACEOF
5711#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5712_ACEOF
5713
5714 fi
Douglas Gregor43613a22009-06-17 00:43:20 +00005715 fi
5716done
5717
Douglas Gregor1b731d52009-06-16 20:12:29 +00005718LLVM_ENUM_TARGETS=""
5719LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005720LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar32027202009-11-25 04:37:28 +00005721LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1b731d52009-06-16 20:12:29 +00005722for target_to_build in $TARGETS_TO_BUILD; do
5723 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattner28776602010-11-14 19:10:47 +00005724 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach0e854f32010-10-01 22:39:28 +00005725 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5726 fi
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005727 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5728 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5729 fi
Daniel Dunbar32027202009-11-25 04:37:28 +00005730 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5731 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5732 fi
Douglas Gregor1b731d52009-06-16 20:12:29 +00005733done
5734
5735
5736
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005737
Daniel Dunbar32027202009-11-25 04:37:28 +00005738
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005739
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005740# Check whether --with-optimize-option was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005741if test "${with_optimize_option+set}" = set; then
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005742 withval=$with_optimize_option;
5743else
5744 withval=default
5745fi
5746
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005747{ echo "$as_me:$LINENO: checking optimization flags" >&5
5748echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005749case "$withval" in
5750 default)
5751 case "$llvm_cv_os_type" in
Daniel Dunbard411fcb2010-04-30 17:12:26 +00005752 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +00005753 MingW) optimize_option=-O2 ;;
5754 *) optimize_option=-O3 ;;
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005755 esac ;;
5756 *) optimize_option="$withval" ;;
5757esac
5758OPTIMIZE_OPTION=$optimize_option
5759
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005760{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5761echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005762
5763
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005764# Check whether --with-extra-options was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005765if test "${with_extra_options+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005766 withval=$with_extra_options;
5767else
5768 withval=default
5769fi
5770
5771case "$withval" in
5772 default) EXTRA_OPTIONS= ;;
5773 *) EXTRA_OPTIONS=$withval ;;
5774esac
5775EXTRA_OPTIONS=$EXTRA_OPTIONS
5776
5777
Daniel Dunbar3b95df82011-06-16 22:30:41 +00005778
5779# Check whether --with-extra-ld-options was given.
5780if test "${with_extra_ld_options+set}" = set; then
5781 withval=$with_extra_ld_options;
5782else
5783 withval=default
5784fi
5785
5786case "$withval" in
5787 default) EXTRA_LD_OPTIONS= ;;
5788 *) EXTRA_LD_OPTIONS=$withval ;;
5789esac
5790EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5791
5792
Gordon Henriksene61dd672007-10-02 09:50:32 +00005793# Check whether --enable-bindings was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005794if test "${enable_bindings+set}" = set; then
Gordon Henriksene61dd672007-10-02 09:50:32 +00005795 enableval=$enable_bindings;
5796else
5797 enableval=default
5798fi
5799
5800BINDINGS_TO_BUILD=""
5801case "$enableval" in
Gordon Henriksenacc2a832007-10-02 10:14:42 +00005802 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005803 all ) BINDINGS_TO_BUILD="ocaml" ;;
5804 none | no) BINDINGS_TO_BUILD="" ;;
5805 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5806 case "$a_binding" in
5807 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005808 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5809echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5810 { (exit 1); exit 1; }; } ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005811 esac
5812 done
5813 ;;
5814esac
5815
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005816
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005817# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005818if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005819 withval=$with_ocaml_libdir;
5820else
5821 withval=auto
5822fi
5823
5824case "$withval" in
5825 auto) with_ocaml_libdir="$withval" ;;
5826 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005827 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5828echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5829 { (exit 1); exit 1; }; } ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005830esac
5831
5832
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005833# Check whether --with-clang-srcdir was given.
5834if test "${with_clang_srcdir+set}" = set; then
5835 withval=$with_clang_srcdir;
5836else
5837 withval="-"
5838fi
5839
5840case "$withval" in
Eric Christopher7f977de2012-02-02 00:19:05 +00005841 -) clang_src_root="" ;;
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005842 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5843 *) clang_src_root="$ac_pwd/$withval" ;;
5844esac
5845CLANG_SRC_ROOT=$clang_src_root
5846
5847
5848
Chandler Carruthffae4a62010-10-19 08:21:25 +00005849# Check whether --with-clang-resource-dir was given.
5850if test "${with_clang_resource_dir+set}" = set; then
5851 withval=$with_clang_resource_dir;
5852else
5853 withval=""
5854fi
5855
5856
5857cat >>confdefs.h <<_ACEOF
5858#define CLANG_RESOURCE_DIR "$withval"
5859_ACEOF
5860
5861
5862
Rafael Espindola662908c2009-12-07 00:27:35 +00005863# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005864if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola662908c2009-12-07 00:27:35 +00005865 withval=$with_c_include_dirs;
Rafael Espindolad95960b2009-11-12 05:46:09 +00005866else
5867 withval=""
5868fi
5869
5870
5871cat >>confdefs.h <<_ACEOF
5872#define C_INCLUDE_DIRS "$withval"
5873_ACEOF
5874
5875
Rafael Espindolaec217f62012-02-03 00:59:30 +00005876# Clang normally uses the system c++ headers and libraries. With this option,
5877# clang will use the ones provided by a gcc installation instead. This option should
5878# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindolad95960b2009-11-12 05:46:09 +00005879
Rafael Espindolaec217f62012-02-03 00:59:30 +00005880# Check whether --with-gcc-toolchain was given.
5881if test "${with_gcc_toolchain+set}" = set; then
5882 withval=$with_gcc_toolchain;
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005883else
5884 withval=""
5885fi
5886
5887
5888cat >>confdefs.h <<_ACEOF
Rafael Espindolaec217f62012-02-03 00:59:30 +00005889#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005890_ACEOF
5891
5892
5893
Sebastian Pope29a6c72012-04-30 20:06:58 +00005894# Check whether --with-default-sysroot was given.
5895if test "${with_default_sysroot+set}" = set; then
5896 withval=$with_default_sysroot;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00005897else
5898 withval=""
5899fi
5900
5901
5902cat >>confdefs.h <<_ACEOF
5903#define DEFAULT_SYSROOT "$withval"
5904_ACEOF
5905
5906
5907
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005908# Check whether --with-binutils-include was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005909if test "${with_binutils_include+set}" = set; then
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005910 withval=$with_binutils_include;
5911else
5912 withval=default
5913fi
5914
5915case "$withval" in
5916 default) WITH_BINUTILS_INCDIR=default ;;
5917 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005918 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5919echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5920 { (exit 1); exit 1; }; } ;;
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005921esac
5922if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5923 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5924
5925 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5926 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005927 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5928echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5929 { (exit 1); exit 1; }; };
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005930 fi
5931fi
5932
Eric Christopher65080cc2011-07-20 17:04:49 +00005933
5934# Check whether --with-bug-report-url was given.
5935if test "${with_bug_report_url+set}" = set; then
5936 withval=$with_bug_report_url;
5937else
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00005938 withval="http://llvm.org/bugs/"
Eric Christopher65080cc2011-07-20 17:04:49 +00005939fi
5940
5941
5942cat >>confdefs.h <<_ACEOF
5943#define BUG_REPORT_URL "$withval"
5944_ACEOF
5945
5946
Nick Lewycky86679902009-06-06 06:25:09 +00005947# Check whether --enable-libffi was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005948if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005949 enableval=$enable_libffi; case "$enableval" in
5950 yes) llvm_cv_enable_libffi="yes" ;;
5951 no) llvm_cv_enable_libffi="no" ;;
5952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005953echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5954 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005955 esac
5956else
5957 llvm_cv_enable_libffi=no
5958fi
5959
Nick Lewycky86679902009-06-06 06:25:09 +00005960
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005961
Bob Wilson3f354702011-11-28 07:59:52 +00005962# Check whether --with-internal-prefix was given.
5963if test "${with_internal_prefix+set}" = set; then
5964 withval=$with_internal_prefix;
5965else
5966 withval=""
5967fi
5968
5969INTERNAL_PREFIX=$withval
5970
5971
5972
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005973{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5974echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5975if test "${lt_cv_path_NM+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005977else
5978 if test -n "$NM"; then
5979 # Let the user override the test.
5980 lt_cv_path_NM="$NM"
5981else
5982 lt_nm_to_check="${ac_tool_prefix}nm"
5983 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5984 lt_nm_to_check="$lt_nm_to_check nm"
5985 fi
5986 for lt_tmp_nm in $lt_nm_to_check; do
5987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5988 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5989 IFS="$lt_save_ifs"
5990 test -z "$ac_dir" && ac_dir=.
5991 tmp_nm="$ac_dir/$lt_tmp_nm"
5992 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5993 # Check to see if the nm accepts a BSD-compat flag.
5994 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5995 # nm: unknown option "B" ignored
5996 # Tru64's nm complains that /dev/null is an invalid object file
5997 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5998 */dev/null* | *'Invalid file or object type'*)
5999 lt_cv_path_NM="$tmp_nm -B"
6000 break
6001 ;;
6002 *)
6003 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004 */dev/null*)
6005 lt_cv_path_NM="$tmp_nm -p"
6006 break
6007 ;;
6008 *)
6009 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6010 continue # so that we can try to find one that supports BSD flags
6011 ;;
6012 esac
6013 ;;
6014 esac
6015 fi
6016 done
6017 IFS="$lt_save_ifs"
6018 done
6019 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6020fi
6021fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006022{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6023echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006024NM="$lt_cv_path_NM"
6025
6026
6027
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006028{ echo "$as_me:$LINENO: checking for GNU make" >&5
6029echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6030if test "${llvm_cv_gnu_make_command+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006032else
6033 llvm_cv_gnu_make_command=''
6034 for a in "$MAKE" make gmake gnumake ; do
6035 if test -z "$a" ; then continue ; fi ;
6036 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6037 then
6038 llvm_cv_gnu_make_command=$a ;
6039 break;
6040 fi
6041 done
6042fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006043{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6044echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006045 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6046 ifGNUmake='' ;
6047 else
6048 ifGNUmake='#' ;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006049 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6050echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006051 fi
6052
6053
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006054{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6055echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006056LN_S=$as_ln_s
6057if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006058 { echo "$as_me:$LINENO: result: yes" >&5
6059echo "${ECHO_T}yes" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006060else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006061 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6062echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006063fi
6064
6065# Extract the first word of "cmp", so it can be a program name with args.
6066set dummy cmp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069if test "${ac_cv_path_CMP+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006071else
6072 case $CMP in
6073 [\\/]* | ?:[\\/]*)
6074 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6075 ;;
6076 *)
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 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 +00006084 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006086 break 2
6087 fi
6088done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006089done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006090IFS=$as_save_IFS
6091
6092 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6093 ;;
6094esac
6095fi
6096CMP=$ac_cv_path_CMP
6097if test -n "$CMP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006098 { echo "$as_me:$LINENO: result: $CMP" >&5
6099echo "${ECHO_T}$CMP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006100else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006101 { echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006103fi
6104
6105
6106# Extract the first word of "cp", so it can be a program name with args.
6107set dummy cp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110if test "${ac_cv_path_CP+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006112else
6113 case $CP in
6114 [\\/]* | ?:[\\/]*)
6115 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6116 ;;
6117 *)
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006125 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006127 break 2
6128 fi
6129done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006130done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006131IFS=$as_save_IFS
6132
6133 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6134 ;;
6135esac
6136fi
6137CP=$ac_cv_path_CP
6138if test -n "$CP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006139 { echo "$as_me:$LINENO: result: $CP" >&5
6140echo "${ECHO_T}$CP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006141else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006142 { echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006144fi
6145
6146
6147# Extract the first word of "date", so it can be a program name with args.
6148set dummy date; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151if test "${ac_cv_path_DATE+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006153else
6154 case $DATE in
6155 [\\/]* | ?:[\\/]*)
6156 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6157 ;;
6158 *)
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 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 +00006166 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006168 break 2
6169 fi
6170done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006171done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006172IFS=$as_save_IFS
6173
6174 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6175 ;;
6176esac
6177fi
6178DATE=$ac_cv_path_DATE
6179if test -n "$DATE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006180 { echo "$as_me:$LINENO: result: $DATE" >&5
6181echo "${ECHO_T}$DATE" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006182else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006183 { echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006185fi
6186
6187
6188# Extract the first word of "find", so it can be a program name with args.
6189set dummy find; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192if test "${ac_cv_path_FIND+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006194else
6195 case $FIND in
6196 [\\/]* | ?:[\\/]*)
6197 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6198 ;;
6199 *)
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 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 +00006207 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006209 break 2
6210 fi
6211done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006212done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006213IFS=$as_save_IFS
6214
6215 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6216 ;;
6217esac
6218fi
6219FIND=$ac_cv_path_FIND
6220if test -n "$FIND"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006221 { echo "$as_me:$LINENO: result: $FIND" >&5
6222echo "${ECHO_T}$FIND" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006223else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006224 { echo "$as_me:$LINENO: result: no" >&5
6225echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006226fi
6227
6228
6229# Extract the first word of "grep", so it can be a program name with args.
6230set dummy grep; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233if test "${ac_cv_path_GREP+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006235else
6236 case $GREP in
6237 [\\/]* | ?:[\\/]*)
6238 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6239 ;;
6240 *)
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 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 +00006248 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006250 break 2
6251 fi
6252done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006253done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006254IFS=$as_save_IFS
6255
6256 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6257 ;;
6258esac
6259fi
6260GREP=$ac_cv_path_GREP
6261if test -n "$GREP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006262 { echo "$as_me:$LINENO: result: $GREP" >&5
6263echo "${ECHO_T}$GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006264else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006265 { echo "$as_me:$LINENO: result: no" >&5
6266echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006267fi
6268
6269
6270# Extract the first word of "mkdir", so it can be a program name with args.
6271set dummy mkdir; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274if test "${ac_cv_path_MKDIR+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006276else
6277 case $MKDIR in
6278 [\\/]* | ?:[\\/]*)
6279 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6280 ;;
6281 *)
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 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 +00006289 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006291 break 2
6292 fi
6293done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006294done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006295IFS=$as_save_IFS
6296
6297 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6298 ;;
6299esac
6300fi
6301MKDIR=$ac_cv_path_MKDIR
6302if test -n "$MKDIR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006303 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6304echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006305else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006306 { echo "$as_me:$LINENO: result: no" >&5
6307echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006308fi
6309
6310
6311# Extract the first word of "mv", so it can be a program name with args.
6312set dummy mv; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315if test "${ac_cv_path_MV+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006317else
6318 case $MV in
6319 [\\/]* | ?:[\\/]*)
6320 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6321 ;;
6322 *)
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 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 +00006330 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006332 break 2
6333 fi
6334done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006335done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006336IFS=$as_save_IFS
6337
6338 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6339 ;;
6340esac
6341fi
6342MV=$ac_cv_path_MV
6343if test -n "$MV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006344 { echo "$as_me:$LINENO: result: $MV" >&5
6345echo "${ECHO_T}$MV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006346else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006347 { echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006349fi
6350
6351
6352if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006359else
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 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 +00006370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006372 break 2
6373 fi
6374done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006375done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006376IFS=$as_save_IFS
6377
6378fi
6379fi
6380RANLIB=$ac_cv_prog_RANLIB
6381if test -n "$RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006384else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006385 { echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006387fi
6388
6389
6390fi
6391if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394set dummy ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006399else
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 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 +00006410 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006412 break 2
6413 fi
6414done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006415done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006416IFS=$as_save_IFS
6417
6418fi
6419fi
6420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6421if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006424else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006425 { echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006427fi
6428
6429 if test "x$ac_ct_RANLIB" = x; then
6430 RANLIB=":"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006434{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435whose name does not start with the host triplet. If you think this
6436configuration is useful to you, please write to autoconf@gnu.org." >&5
6437echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438whose name does not start with the host triplet. If you think this
6439configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006440ac_tool_warned=yes ;;
6441esac
6442 RANLIB=$ac_ct_RANLIB
6443 fi
6444else
6445 RANLIB="$ac_cv_prog_RANLIB"
6446fi
6447
Torok Edwinaec06332010-01-26 08:50:50 +00006448if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6450set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453if test "${ac_cv_prog_AR+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006455else
6456 if test -n "$AR"; then
6457 ac_cv_prog_AR="$AR" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 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 +00006466 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006468 break 2
6469 fi
6470done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006471done
Torok Edwinaec06332010-01-26 08:50:50 +00006472IFS=$as_save_IFS
6473
6474fi
6475fi
6476AR=$ac_cv_prog_AR
6477if test -n "$AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006478 { echo "$as_me:$LINENO: result: $AR" >&5
6479echo "${ECHO_T}$AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006480else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006481 { echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006483fi
6484
6485
6486fi
6487if test -z "$ac_cv_prog_AR"; then
6488 ac_ct_AR=$AR
6489 # Extract the first word of "ar", so it can be a program name with args.
6490set dummy ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6493if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006495else
6496 if test -n "$ac_ct_AR"; then
6497 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 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 +00006506 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006508 break 2
6509 fi
6510done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006511done
Torok Edwinaec06332010-01-26 08:50:50 +00006512IFS=$as_save_IFS
6513
6514fi
6515fi
6516ac_ct_AR=$ac_cv_prog_ac_ct_AR
6517if test -n "$ac_ct_AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006518 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6519echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006520else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006521 { echo "$as_me:$LINENO: result: no" >&5
6522echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006523fi
6524
6525 if test "x$ac_ct_AR" = x; then
6526 AR="false"
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006530{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6531whose name does not start with the host triplet. If you think this
6532configuration is useful to you, please write to autoconf@gnu.org." >&5
6533echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6534whose name does not start with the host triplet. If you think this
6535configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwinaec06332010-01-26 08:50:50 +00006536ac_tool_warned=yes ;;
6537esac
6538 AR=$ac_ct_AR
6539 fi
6540else
6541 AR="$ac_cv_prog_AR"
6542fi
6543
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006544# Extract the first word of "rm", so it can be a program name with args.
6545set dummy rm; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548if test "${ac_cv_path_RM+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006550else
6551 case $RM in
6552 [\\/]* | ?:[\\/]*)
6553 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6554 ;;
6555 *)
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 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 +00006563 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006565 break 2
6566 fi
6567done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006568done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006569IFS=$as_save_IFS
6570
6571 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6572 ;;
6573esac
6574fi
6575RM=$ac_cv_path_RM
6576if test -n "$RM"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006577 { echo "$as_me:$LINENO: result: $RM" >&5
6578echo "${ECHO_T}$RM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006579else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006580 { echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006582fi
6583
6584
6585# Extract the first word of "sed", so it can be a program name with args.
6586set dummy sed; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589if test "${ac_cv_path_SED+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006591else
6592 case $SED in
6593 [\\/]* | ?:[\\/]*)
6594 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6595 ;;
6596 *)
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 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 +00006604 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006606 break 2
6607 fi
6608done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006609done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006610IFS=$as_save_IFS
6611
6612 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6613 ;;
6614esac
6615fi
6616SED=$ac_cv_path_SED
6617if test -n "$SED"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006618 { echo "$as_me:$LINENO: result: $SED" >&5
6619echo "${ECHO_T}$SED" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006620else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006621 { echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006623fi
6624
6625
6626# Extract the first word of "tar", so it can be a program name with args.
6627set dummy tar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630if test "${ac_cv_path_TAR+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006632else
6633 case $TAR in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6636 ;;
6637 *)
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 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 +00006645 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006647 break 2
6648 fi
6649done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006650done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006651IFS=$as_save_IFS
6652
6653 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6654 ;;
6655esac
6656fi
6657TAR=$ac_cv_path_TAR
6658if test -n "$TAR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006659 { echo "$as_me:$LINENO: result: $TAR" >&5
6660echo "${ECHO_T}$TAR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006661else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006662 { echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006664fi
6665
6666
6667# Extract the first word of "pwd", so it can be a program name with args.
6668set dummy pwd; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_path_BINPWD+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006673else
6674 case $BINPWD in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6677 ;;
6678 *)
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 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 +00006686 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006688 break 2
6689 fi
6690done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006691done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006692IFS=$as_save_IFS
6693
6694 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6695 ;;
6696esac
6697fi
6698BINPWD=$ac_cv_path_BINPWD
6699if test -n "$BINPWD"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006700 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6701echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006702else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006703 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006705fi
6706
6707
6708
6709# Extract the first word of "Graphviz", so it can be a program name with args.
6710set dummy Graphviz; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006715else
6716 case $GRAPHVIZ in
6717 [\\/]* | ?:[\\/]*)
6718 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6719 ;;
6720 *)
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006728 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006730 break 2
6731 fi
6732done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006733done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006734IFS=$as_save_IFS
6735
6736 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6737 ;;
6738esac
6739fi
6740GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6741if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006742 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6743echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006744else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006745 { echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006747fi
6748
6749
6750if test "$GRAPHVIZ" != "echo Graphviz" ; then
6751
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006752cat >>confdefs.h <<\_ACEOF
6753#define HAVE_GRAPHVIZ 1
6754_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006755
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006756 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006757 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6758 fi
6759
6760cat >>confdefs.h <<_ACEOF
6761#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6762_ACEOF
6763
6764fi
6765# Extract the first word of "dot", so it can be a program name with args.
6766set dummy dot; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769if test "${ac_cv_path_DOT+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006771else
6772 case $DOT in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6775 ;;
6776 *)
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 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 +00006784 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006786 break 2
6787 fi
6788done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006789done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006790IFS=$as_save_IFS
6791
6792 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6793 ;;
6794esac
6795fi
6796DOT=$ac_cv_path_DOT
6797if test -n "$DOT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006798 { echo "$as_me:$LINENO: result: $DOT" >&5
6799echo "${ECHO_T}$DOT" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006800else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006803fi
6804
6805
6806if test "$DOT" != "echo dot" ; then
6807
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006808cat >>confdefs.h <<\_ACEOF
6809#define HAVE_DOT 1
6810_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006811
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006812 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006813 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814 fi
6815
6816cat >>confdefs.h <<_ACEOF
6817#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6818_ACEOF
6819
6820fi
David Greened93c40b62009-07-09 17:16:26 +00006821# Extract the first word of "fdp", so it can be a program name with args.
6822set dummy fdp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825if test "${ac_cv_path_FDP+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006827else
6828 case $FDP in
6829 [\\/]* | ?:[\\/]*)
6830 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6831 ;;
6832 *)
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 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 +00006840 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006842 break 2
6843 fi
6844done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006845done
David Greened93c40b62009-07-09 17:16:26 +00006846IFS=$as_save_IFS
6847
6848 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6849 ;;
6850esac
6851fi
6852FDP=$ac_cv_path_FDP
6853if test -n "$FDP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006854 { echo "$as_me:$LINENO: result: $FDP" >&5
6855echo "${ECHO_T}$FDP" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006856else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006857 { echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006859fi
6860
6861
6862if test "$FDP" != "echo fdp" ; then
6863
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006864cat >>confdefs.h <<\_ACEOF
6865#define HAVE_FDP 1
6866_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006867
6868 if test "$llvm_cv_os_type" = "MingW" ; then
6869 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6870 fi
6871
6872cat >>confdefs.h <<_ACEOF
6873#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6874_ACEOF
6875
6876fi
6877# Extract the first word of "neato", so it can be a program name with args.
6878set dummy neato; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881if test "${ac_cv_path_NEATO+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006883else
6884 case $NEATO in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 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 +00006896 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006898 break 2
6899 fi
6900done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006901done
David Greened93c40b62009-07-09 17:16:26 +00006902IFS=$as_save_IFS
6903
6904 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6905 ;;
6906esac
6907fi
6908NEATO=$ac_cv_path_NEATO
6909if test -n "$NEATO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006910 { echo "$as_me:$LINENO: result: $NEATO" >&5
6911echo "${ECHO_T}$NEATO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006912else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006913 { echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006915fi
6916
6917
6918if test "$NEATO" != "echo neato" ; then
6919
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006920cat >>confdefs.h <<\_ACEOF
6921#define HAVE_NEATO 1
6922_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006923
6924 if test "$llvm_cv_os_type" = "MingW" ; then
6925 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6926 fi
6927
6928cat >>confdefs.h <<_ACEOF
6929#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6930_ACEOF
6931
6932fi
6933# Extract the first word of "twopi", so it can be a program name with args.
6934set dummy twopi; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_TWOPI+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006939else
6940 case $TWOPI in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006952 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006954 break 2
6955 fi
6956done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006957done
David Greened93c40b62009-07-09 17:16:26 +00006958IFS=$as_save_IFS
6959
6960 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6961 ;;
6962esac
6963fi
6964TWOPI=$ac_cv_path_TWOPI
6965if test -n "$TWOPI"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006966 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6967echo "${ECHO_T}$TWOPI" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006968else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006969 { echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006971fi
6972
6973
6974if test "$TWOPI" != "echo twopi" ; then
6975
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006976cat >>confdefs.h <<\_ACEOF
6977#define HAVE_TWOPI 1
6978_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006979
6980 if test "$llvm_cv_os_type" = "MingW" ; then
6981 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6982 fi
6983
6984cat >>confdefs.h <<_ACEOF
6985#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6986_ACEOF
6987
6988fi
6989# Extract the first word of "circo", so it can be a program name with args.
6990set dummy circo; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993if test "${ac_cv_path_CIRCO+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006995else
6996 case $CIRCO in
6997 [\\/]* | ?:[\\/]*)
6998 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6999 ;;
7000 *)
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 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 +00007008 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00007010 break 2
7011 fi
7012done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007013done
David Greened93c40b62009-07-09 17:16:26 +00007014IFS=$as_save_IFS
7015
7016 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7017 ;;
7018esac
7019fi
7020CIRCO=$ac_cv_path_CIRCO
7021if test -n "$CIRCO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007022 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7023echo "${ECHO_T}$CIRCO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00007024else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007025 { echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00007027fi
7028
7029
7030if test "$CIRCO" != "echo circo" ; then
7031
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007032cat >>confdefs.h <<\_ACEOF
7033#define HAVE_CIRCO 1
7034_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00007035
7036 if test "$llvm_cv_os_type" = "MingW" ; then
7037 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7038 fi
7039
7040cat >>confdefs.h <<_ACEOF
7041#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7042_ACEOF
7043
7044fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007045for ac_prog in gv gsview32
7046do
7047 # Extract the first word of "$ac_prog", so it can be a program name with args.
7048set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051if test "${ac_cv_path_GV+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007053else
7054 case $GV in
7055 [\\/]* | ?:[\\/]*)
7056 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7057 ;;
7058 *)
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 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 +00007066 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007068 break 2
7069 fi
7070done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007071done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007072IFS=$as_save_IFS
7073
7074 ;;
7075esac
7076fi
7077GV=$ac_cv_path_GV
7078if test -n "$GV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007079 { echo "$as_me:$LINENO: result: $GV" >&5
7080echo "${ECHO_T}$GV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007081else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007082 { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007084fi
7085
7086
7087 test -n "$GV" && break
7088done
7089test -n "$GV" || GV="echo gv"
7090
7091if test "$GV" != "echo gv" ; then
7092
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007093cat >>confdefs.h <<\_ACEOF
7094#define HAVE_GV 1
7095_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007096
Jeff Cohenc5e5b272007-01-12 18:22:38 +00007097 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007098 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7099 fi
7100
7101cat >>confdefs.h <<_ACEOF
7102#define LLVM_PATH_GV "$GV${EXEEXT}"
7103_ACEOF
7104
7105fi
7106# Extract the first word of "dotty", so it can be a program name with args.
7107set dummy dotty; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110if test "${ac_cv_path_DOTTY+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007112else
7113 case $DOTTY in
7114 [\\/]* | ?:[\\/]*)
7115 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7116 ;;
7117 *)
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 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 +00007125 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007127 break 2
7128 fi
7129done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007130done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007131IFS=$as_save_IFS
7132
7133 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7134 ;;
7135esac
7136fi
7137DOTTY=$ac_cv_path_DOTTY
7138if test -n "$DOTTY"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007139 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7140echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007141else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007142 { echo "$as_me:$LINENO: result: no" >&5
7143echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007144fi
7145
7146
7147if test "$DOTTY" != "echo dotty" ; then
7148
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007149cat >>confdefs.h <<\_ACEOF
7150#define HAVE_DOTTY 1
7151_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007152
Jeff Cohenc5e5b272007-01-12 18:22:38 +00007153 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007154 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7155 fi
7156
7157cat >>confdefs.h <<_ACEOF
7158#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7159_ACEOF
7160
7161fi
Dan Gohmana0da8892010-09-27 16:28:34 +00007162# Extract the first word of "xdot.py", so it can be a program name with args.
7163set dummy xdot.py; ac_word=$2
7164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166if test "${ac_cv_path_XDOT_PY+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169 case $XDOT_PY in
7170 [\\/]* | ?:[\\/]*)
7171 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7172 ;;
7173 *)
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185done
7186done
7187IFS=$as_save_IFS
7188
7189 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7190 ;;
7191esac
7192fi
7193XDOT_PY=$ac_cv_path_XDOT_PY
7194if test -n "$XDOT_PY"; then
7195 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7196echo "${ECHO_T}$XDOT_PY" >&6; }
7197else
7198 { echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6; }
7200fi
7201
7202
7203if test "$XDOT_PY" != "echo xdot.py" ; then
7204
7205cat >>confdefs.h <<\_ACEOF
7206#define HAVE_XDOT_PY 1
7207_ACEOF
7208
7209 if test "$llvm_cv_os_type" = "MingW" ; then
7210 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7211 fi
7212
7213cat >>confdefs.h <<_ACEOF
7214#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7215_ACEOF
7216
7217fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007218
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007219# Find a good install program. We prefer a C program (faster),
7220# so one script is as good as another. But avoid the broken or
7221# incompatible versions:
7222# SysV /etc/install, /usr/sbin/install
7223# SunOS /usr/etc/install
7224# IRIX /sbin/install
7225# AIX /bin/install
7226# AmigaOS /C/install, which installs bootblocks on floppy discs
7227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7228# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230# OS/2's system install, which has a completely different semantic
7231# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007232{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7233echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007234if test -z "$INSTALL"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007235if test "${ac_cv_path_install+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007237else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007243 # Account for people who put trailing slashes in PATH elements.
7244case $as_dir/ in
7245 ./ | .// | /cC/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007247 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007248 /usr/ucb/* ) ;;
7249 *)
7250 # OSF1 and SCO ODT 3.0 have their own names for install.
7251 # Don't use installbsd from OSF since it installs stuff as root
7252 # by default.
7253 for ac_prog in ginstall scoinst install; do
7254 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007255 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 +00007256 if test $ac_prog = install &&
7257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7258 # AIX install. It has an incompatible calling convention.
7259 :
7260 elif test $ac_prog = install &&
7261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7262 # program-specific install script used by HP pwplus--don't use.
7263 :
7264 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7266 break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007267 fi
7268 fi
7269 done
7270 done
7271 ;;
7272esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007273done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007274IFS=$as_save_IFS
7275
7276
7277fi
7278 if test "${ac_cv_path_install+set}" = set; then
7279 INSTALL=$ac_cv_path_install
7280 else
7281 # As a last resort, use the slow shell script. Don't cache a
7282 # value for INSTALL within a source directory, because that will
7283 # break other packages using the cache if that directory is
7284 # removed, or if the value is a relative name.
7285 INSTALL=$ac_install_sh
7286 fi
7287fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007288{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7289echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007290
7291# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7292# It thinks the first close brace ends the variable substitution.
7293test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7294
7295test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7296
7297test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7298
Eric Christophere3befc72010-07-22 21:13:48 +00007299case "$INSTALL" in
7300 [\\/$]* | ?:[\\/]* ) ;;
7301 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7302esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007303
7304# Extract the first word of "bzip2", so it can be a program name with args.
7305set dummy bzip2; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308if test "${ac_cv_path_BZIP2+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007310else
7311 case $BZIP2 in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7314 ;;
7315 *)
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 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 +00007323 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007325 break 2
7326 fi
7327done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007328done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007329IFS=$as_save_IFS
7330
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007331 ;;
7332esac
7333fi
7334BZIP2=$ac_cv_path_BZIP2
7335if test -n "$BZIP2"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7337echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007338else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007339 { echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007341fi
7342
7343
mike-me08af302010-05-06 23:45:43 +00007344# Extract the first word of "cat", so it can be a program name with args.
7345set dummy cat; ac_word=$2
7346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348if test "${ac_cv_path_CAT+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 case $CAT in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368done
7369IFS=$as_save_IFS
7370
7371 ;;
7372esac
7373fi
7374CAT=$ac_cv_path_CAT
7375if test -n "$CAT"; then
7376 { echo "$as_me:$LINENO: result: $CAT" >&5
7377echo "${ECHO_T}$CAT" >&6; }
7378else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
7381fi
7382
7383
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007384# Extract the first word of "doxygen", so it can be a program name with args.
7385set dummy doxygen; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388if test "${ac_cv_path_DOXYGEN+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007390else
7391 case $DOXYGEN in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7394 ;;
7395 *)
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 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 +00007403 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007405 break 2
7406 fi
7407done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007408done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007409IFS=$as_save_IFS
7410
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007411 ;;
7412esac
7413fi
7414DOXYGEN=$ac_cv_path_DOXYGEN
7415if test -n "$DOXYGEN"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007416 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7417echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007418else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007419 { echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007421fi
7422
7423
Daniel Dunbard1888822012-05-08 18:26:07 +00007424# Extract the first word of "groff", so it can be a program name with args.
7425set dummy groff; ac_word=$2
7426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_GROFF+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431 case $GROFF in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447done
7448done
7449IFS=$as_save_IFS
7450
7451 ;;
7452esac
7453fi
7454GROFF=$ac_cv_path_GROFF
7455if test -n "$GROFF"; then
7456 { echo "$as_me:$LINENO: result: $GROFF" >&5
7457echo "${ECHO_T}$GROFF" >&6; }
7458else
7459 { echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6; }
7461fi
7462
7463
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007464# Extract the first word of "gzip", so it can be a program name with args.
7465set dummy gzip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher77560892010-12-10 01:31:51 +00007468if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007470else
Eric Christopher77560892010-12-10 01:31:51 +00007471 case $GZIPBIN in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007472 [\\/]* | ?:[\\/]*)
Eric Christopher77560892010-12-10 01:31:51 +00007473 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007474 ;;
7475 *)
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 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 +00007483 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007485 break 2
7486 fi
7487done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007488done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007489IFS=$as_save_IFS
7490
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007491 ;;
7492esac
7493fi
Eric Christopher77560892010-12-10 01:31:51 +00007494GZIPBIN=$ac_cv_path_GZIPBIN
7495if test -n "$GZIPBIN"; then
7496 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7497echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007498else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007501fi
7502
7503
Daniel Dunbard1888822012-05-08 18:26:07 +00007504# Extract the first word of "pdfroff", so it can be a program name with args.
7505set dummy pdfroff; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_PDFROFF+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 case $PDFROFF in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529IFS=$as_save_IFS
7530
7531 ;;
7532esac
7533fi
7534PDFROFF=$ac_cv_path_PDFROFF
7535if test -n "$PDFROFF"; then
7536 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7537echo "${ECHO_T}$PDFROFF" >&6; }
7538else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007544# Extract the first word of "zip", so it can be a program name with args.
7545set dummy zip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_ZIP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007550else
7551 case $ZIP in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 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 +00007563 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007565 break 2
7566 fi
7567done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007568done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007569IFS=$as_save_IFS
7570
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007571 ;;
7572esac
7573fi
7574ZIP=$ac_cv_path_ZIP
7575if test -n "$ZIP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007576 { echo "$as_me:$LINENO: result: $ZIP" >&5
7577echo "${ECHO_T}$ZIP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007578else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007581fi
7582
7583
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007584for ac_prog in ocamlc
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007585do
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_OCAMLC+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007592else
7593 case $OCAMLC in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 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 +00007605 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007607 break 2
7608 fi
7609done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007610done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007611IFS=$as_save_IFS
7612
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007613 ;;
7614esac
7615fi
7616OCAMLC=$ac_cv_path_OCAMLC
7617if test -n "$OCAMLC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007618 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7619echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007620else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007623fi
7624
7625
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007626 test -n "$OCAMLC" && break
7627done
7628
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007629for ac_prog in ocamlopt
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007630do
7631 # Extract the first word of "$ac_prog", so it can be a program name with args.
7632set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007637else
7638 case $OCAMLOPT in
7639 [\\/]* | ?:[\\/]*)
7640 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7641 ;;
7642 *)
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 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 +00007650 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007652 break 2
7653 fi
7654done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007655done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007656IFS=$as_save_IFS
7657
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007658 ;;
7659esac
7660fi
7661OCAMLOPT=$ac_cv_path_OCAMLOPT
7662if test -n "$OCAMLOPT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007663 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7664echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007665else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007666 { echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007668fi
7669
7670
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007671 test -n "$OCAMLOPT" && break
7672done
7673
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007674for ac_prog in ocamldep
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007675do
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksend1e16452007-09-20 16:48:18 +00007682else
7683 case $OCAMLDEP in
7684 [\\/]* | ?:[\\/]*)
7685 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7686 ;;
7687 *)
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 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 +00007695 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksend1e16452007-09-20 16:48:18 +00007697 break 2
7698 fi
7699done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007700done
Gordon Henriksend1e16452007-09-20 16:48:18 +00007701IFS=$as_save_IFS
7702
Gordon Henriksend1e16452007-09-20 16:48:18 +00007703 ;;
7704esac
7705fi
7706OCAMLDEP=$ac_cv_path_OCAMLDEP
7707if test -n "$OCAMLDEP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007708 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7709echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007710else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007711 { echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007713fi
7714
7715
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007716 test -n "$OCAMLDEP" && break
7717done
7718
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007719for ac_prog in ocamldoc
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007720do
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007727else
7728 case $OCAMLDOC in
7729 [\\/]* | ?:[\\/]*)
7730 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7731 ;;
7732 *)
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 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 +00007740 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007742 break 2
7743 fi
7744done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007745done
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007746IFS=$as_save_IFS
7747
7748 ;;
7749esac
7750fi
7751OCAMLDOC=$ac_cv_path_OCAMLDOC
7752if test -n "$OCAMLDOC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007753 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7754echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007755else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007756 { echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007758fi
7759
7760
7761 test -n "$OCAMLDOC" && break
7762done
7763
Daniel Dunbard1888822012-05-08 18:26:07 +00007764for ac_prog in gas as
7765do
7766 # Extract the first word of "$ac_prog", so it can be a program name with args.
7767set dummy $ac_prog; ac_word=$2
7768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7770if test "${ac_cv_path_GAS+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772else
7773 case $GAS in
7774 [\\/]* | ?:[\\/]*)
7775 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7776 ;;
7777 *)
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790done
7791IFS=$as_save_IFS
7792
7793 ;;
7794esac
7795fi
7796GAS=$ac_cv_path_GAS
7797if test -n "$GAS"; then
7798 { echo "$as_me:$LINENO: result: $GAS" >&5
7799echo "${ECHO_T}$GAS" >&6; }
7800else
7801 { echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6; }
7803fi
7804
7805
7806 test -n "$GAS" && break
7807done
7808
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007809
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007810{ echo "$as_me:$LINENO: checking for linker version" >&5
7811echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7812if test "${llvm_cv_link_version+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815
7816 version_string="$(ld -v 2>&1 | head -1)"
7817
7818 # Check for ld64.
7819 if (echo "$version_string" | grep -q "ld64"); then
Charles Davise56294d2012-02-28 02:55:41 +00007820 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007821 else
7822 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7823 fi
7824
7825fi
7826{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7827echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7828
7829cat >>confdefs.h <<_ACEOF
7830#define HOST_LINK_VERSION "$llvm_cv_link_version"
7831_ACEOF
7832
7833
7834
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007835{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7836echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7837if test "${llvm_cv_link_use_r+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007839else
7840 ac_ext=c
7841ac_cpp='$CPP $CPPFLAGS'
7842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846 oldcflags="$CFLAGS"
7847 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007848 cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h. */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007853/* end confdefs.h. */
7854
7855int
7856main ()
7857{
Dan Gohmana1c94042010-04-25 00:12:20 +00007858
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007859 ;
7860 return 0;
7861}
7862_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007863rm -f conftest.$ac_objext conftest$ac_exeext
7864if { (ac_try="$ac_link"
7865case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_link") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881esac
7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891esac
7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_try") 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007897 llvm_cv_link_use_r=yes
7898else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007899 echo "$as_me: failed program was:" >&5
7900sed 's/^/| /' conftest.$ac_ext >&5
7901
7902 llvm_cv_link_use_r=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007903fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007904
Bill Wendling02b47d92009-04-18 11:20:33 +00007905rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007906 conftest$ac_exeext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007907 CFLAGS="$oldcflags"
7908 ac_ext=c
7909ac_cpp='$CPP $CPPFLAGS'
7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914
7915fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007916{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7917echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007918if test "$llvm_cv_link_use_r" = yes ; then
7919
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007920cat >>confdefs.h <<\_ACEOF
7921#define HAVE_LINK_R 1
7922_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007923
7924 fi
7925
7926
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007927{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7928echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7929if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007931else
7932 ac_ext=c
7933ac_cpp='$CPP $CPPFLAGS'
7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938 oldcflags="$CFLAGS"
7939 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007940 cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007945/* end confdefs.h. */
7946
7947int
7948main ()
7949{
Dan Gohmana1c94042010-04-25 00:12:20 +00007950
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007951 ;
7952 return 0;
7953}
7954_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007955rm -f conftest.$ac_objext conftest$ac_exeext
7956if { (ac_try="$ac_link"
7957case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960esac
7961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973esac
7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983esac
7984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_try") 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007989 llvm_cv_link_use_export_dynamic=yes
7990else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007991 echo "$as_me: failed program was:" >&5
7992sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 llvm_cv_link_use_export_dynamic=no
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007995fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007996
Bill Wendling02b47d92009-04-18 11:20:33 +00007997rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007998 conftest$ac_exeext conftest.$ac_ext
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007999 CFLAGS="$oldcflags"
8000 ac_ext=c
8001ac_cpp='$CPP $CPPFLAGS'
8002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005
8006
8007fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008008{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8009echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008010if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8011
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008012cat >>confdefs.h <<\_ACEOF
8013#define HAVE_LINK_EXPORT_DYNAMIC 1
8014_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008015
8016 fi
8017
8018
Dan Gohmanb7edb422010-06-01 14:56:56 +00008019{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8020echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8021if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanfe051a52010-04-16 22:59:06 +00008022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024 ac_ext=c
8025ac_cpp='$CPP $CPPFLAGS'
8026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
8030 oldcflags="$CFLAGS"
8031
8032 # The following code is from the autoconf manual,
8033 # "11.13: Limitations of Usual Tools".
8034 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8035 # Use mktemp if possible; otherwise fall back on mkdir,
8036 # with $RANDOM to make collisions less likely.
8037 : ${TMPDIR=/tmp}
8038 {
8039 tmp=`
8040 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8041 ` &&
8042 test -n "$tmp" && test -d "$tmp"
8043 } || {
8044 tmp=$TMPDIR/foo$$-$RANDOM
8045 (umask 077 && mkdir "$tmp")
8046 } || exit $?
8047
Dan Gohmanb7edb422010-06-01 14:56:56 +00008048 echo "{" > "$tmp/export.map"
8049 echo " global: main;" >> "$tmp/export.map"
8050 echo " local: *;" >> "$tmp/export.map"
8051 echo "};" >> "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008052
Dan Gohmanb7edb422010-06-01 14:56:56 +00008053 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008054 cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h. */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h. */
8060
8061int
8062main ()
8063{
Dan Gohmana1c94042010-04-25 00:12:20 +00008064
Dan Gohmanfe051a52010-04-16 22:59:06 +00008065 ;
8066 return 0;
8067}
8068_ACEOF
8069rm -f conftest.$ac_objext conftest$ac_exeext
8070if { (ac_try="$ac_link"
8071case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8074esac
8075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097esac
8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
Dan Gohmanb7edb422010-06-01 14:56:56 +00008103 llvm_cv_link_use_version_script=yes
Dan Gohmanfe051a52010-04-16 22:59:06 +00008104else
8105 echo "$as_me: failed program was:" >&5
8106sed 's/^/| /' conftest.$ac_ext >&5
8107
Dan Gohmanc6998312010-06-01 16:22:27 +00008108 llvm_cv_link_use_version_script=no
Dan Gohmanfe051a52010-04-16 22:59:06 +00008109fi
8110
8111rm -f core conftest.err conftest.$ac_objext \
8112 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanb7edb422010-06-01 14:56:56 +00008113 rm "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008114 rmdir "$tmp"
8115 CFLAGS="$oldcflags"
8116 ac_ext=c
8117ac_cpp='$CPP $CPPFLAGS'
8118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
8122
8123fi
Dan Gohmanb7edb422010-06-01 14:56:56 +00008124{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8125echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8126if test "$llvm_cv_link_use_version_script" = yes ; then
8127 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanfe051a52010-04-16 22:59:06 +00008128
8129 fi
8130
8131
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008132
8133
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008134{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8135echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8136if test "${ac_cv_c_const+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008138else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008139 cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h. */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008144/* end confdefs.h. */
8145
8146int
8147main ()
8148{
8149/* FIXME: Include the comments suggested by Paul. */
8150#ifndef __cplusplus
8151 /* Ultrix mips cc rejects this. */
8152 typedef int charset[2];
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008153 const charset x;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008154 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008155 char const *const *ccp;
8156 char **p;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008157 /* NEC SVR4.0.2 mips cc rejects this. */
8158 struct point {int x, y;};
8159 static struct point const zero = {0,0};
8160 /* AIX XL C 1.02.0.0 rejects this.
8161 It does not let you subtract one const X* pointer from another in
8162 an arm of an if-expression whose if-part is not a constant
8163 expression */
8164 const char *g = "string";
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008165 ccp = &g + (g ? g-g : 0);
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008166 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008167 ++ccp;
8168 p = (char**) ccp;
8169 ccp = (char const *const *) p;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008170 { /* SCO 3.2v4 cc rejects this. */
8171 char *t;
8172 char const *s = 0 ? (char *) 0 : (char const *) 0;
8173
8174 *t++ = 0;
8175 if (s) return 0;
8176 }
8177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8178 int x[] = {25, 17};
8179 const int *foo = &x[0];
8180 ++foo;
8181 }
8182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8183 typedef const int *iptr;
8184 iptr p = 0;
8185 ++p;
8186 }
8187 { /* AIX XL C 1.02.0.0 rejects this saying
8188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8189 struct s { int j; const int *ap[3]; };
8190 struct s *b; b->j = 5;
8191 }
8192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8193 const int foo = 10;
8194 if (!foo) return 0;
8195 }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008196 return !x[0] && !zero.x;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008197#endif
8198
8199 ;
8200 return 0;
8201}
8202_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008203rm -f conftest.$ac_objext
8204if { (ac_try="$ac_compile"
8205case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208esac
8209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_compile") 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest.$ac_objext'
8228 { (case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231esac
8232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_try") 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008237 ac_cv_c_const=yes
8238else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008239 echo "$as_me: failed program was:" >&5
8240sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_c_const=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008243fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008244
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008247{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8248echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008249if test $ac_cv_c_const = no; then
8250
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008251cat >>confdefs.h <<\_ACEOF
8252#define const
8253_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008254
8255fi
8256
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008257
8258
8259
8260
8261
Reid Spencera40c6872004-11-29 12:29:58 +00008262ac_header_dirent=no
8263for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008264 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8265{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8266echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00008269else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008270 cat >conftest.$ac_ext <<_ACEOF
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00008275/* end confdefs.h. */
8276#include <sys/types.h>
8277#include <$ac_hdr>
8278
8279int
8280main ()
8281{
8282if ((DIR *) 0)
8283return 0;
8284 ;
8285 return 0;
8286}
8287_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008288rm -f conftest.$ac_objext
8289if { (ac_try="$ac_compile"
8290case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316esac
8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00008322 eval "$as_ac_Header=yes"
8323else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008324 echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 eval "$as_ac_Header=no"
Reid Spencera40c6872004-11-29 12:29:58 +00008328fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008329
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00008331fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008332ac_res=`eval echo '${'$as_ac_Header'}'`
8333 { echo "$as_me:$LINENO: result: $ac_res" >&5
8334echo "${ECHO_T}$ac_res" >&6; }
8335if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00008336 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008337#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +00008338_ACEOF
8339
8340ac_header_dirent=$ac_hdr; break
8341fi
8342
8343done
8344# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8345if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008346 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8347echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8348if test "${ac_cv_search_opendir+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00008350else
8351 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008352cat >conftest.$ac_ext <<_ACEOF
8353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00008357/* end confdefs.h. */
8358
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008359/* Override any GCC internal prototype to avoid an error.
8360 Use char because int might match the return type of a GCC
8361 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00008362#ifdef __cplusplus
8363extern "C"
8364#endif
Reid Spencera40c6872004-11-29 12:29:58 +00008365char opendir ();
8366int
8367main ()
8368{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008369return opendir ();
Reid Spencera40c6872004-11-29 12:29:58 +00008370 ;
8371 return 0;
8372}
8373_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008374for ac_lib in '' dir; do
8375 if test -z "$ac_lib"; then
8376 ac_res="none required"
8377 else
8378 ac_res=-l$ac_lib
Reid Spencera40c6872004-11-29 12:29:58 +00008379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008380 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008381 rm -f conftest.$ac_objext conftest$ac_exeext
8382if { (ac_try="$ac_link"
8383case "(($ac_try" in
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8386esac
8387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_link") 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8396 { (case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399esac
8400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_try") 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409esac
8410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_try") 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008415 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008416else
8417 echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420
Reid Spencera40c6872004-11-29 12:29:58 +00008421fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008422
Bill Wendling02b47d92009-04-18 11:20:33 +00008423rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008424 conftest$ac_exeext
8425 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008426 break
Reid Spencera40c6872004-11-29 12:29:58 +00008427fi
John Criswell3ef61af2003-06-30 21:59:07 +00008428done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008429if test "${ac_cv_search_opendir+set}" = set; then
8430 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008431else
8432 ac_cv_search_opendir=no
8433fi
8434rm conftest.$ac_ext
8435LIBS=$ac_func_search_save_LIBS
8436fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008437{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8438echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008439ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008440if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell3ef61af2003-06-30 21:59:07 +00008442
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008443fi
8444
8445else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008446 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8447echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8448if test "${ac_cv_search_opendir+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008450else
8451 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008452cat >conftest.$ac_ext <<_ACEOF
8453/* confdefs.h. */
8454_ACEOF
8455cat confdefs.h >>conftest.$ac_ext
8456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008457/* end confdefs.h. */
8458
8459/* Override any GCC internal prototype to avoid an error.
8460 Use char because int might match the return type of a GCC
8461 builtin and then its argument prototype would still apply. */
8462#ifdef __cplusplus
8463extern "C"
8464#endif
8465char opendir ();
8466int
8467main ()
8468{
8469return opendir ();
8470 ;
8471 return 0;
8472}
8473_ACEOF
8474for ac_lib in '' x; do
8475 if test -z "$ac_lib"; then
8476 ac_res="none required"
8477 else
8478 ac_res=-l$ac_lib
8479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8480 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008481 rm -f conftest.$ac_objext conftest$ac_exeext
8482if { (ac_try="$ac_link"
8483case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486esac
8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_link") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_try") 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509esac
8510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008515 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008516else
8517 echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008521fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008522
Bill Wendling02b47d92009-04-18 11:20:33 +00008523rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008524 conftest$ac_exeext
8525 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008526 break
8527fi
8528done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008529if test "${ac_cv_search_opendir+set}" = set; then
8530 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008531else
8532 ac_cv_search_opendir=no
8533fi
8534rm conftest.$ac_ext
8535LIBS=$ac_func_search_save_LIBS
8536fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008537{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8538echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008539ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008540if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8542
8543fi
8544
8545fi
John Criswell3ef61af2003-06-30 21:59:07 +00008546
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008547
John Criswell3ef61af2003-06-30 21:59:07 +00008548for ac_header in dlfcn.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008549do
8550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556fi
8557ac_res=`eval echo '${'$as_ac_Header'}'`
8558 { echo "$as_me:$LINENO: result: $ac_res" >&5
8559echo "${ECHO_T}$ac_res" >&6; }
8560else
8561 # Is the header compilable?
8562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8564cat >conftest.$ac_ext <<_ACEOF
8565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
8569/* end confdefs.h. */
8570$ac_includes_default
8571#include <$ac_header>
8572_ACEOF
8573rm -f conftest.$ac_objext
8574if { (ac_try="$ac_compile"
8575case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
8579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8588 { (case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591esac
8592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_try") 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601esac
8602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_try") 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_header_compiler=yes
8608else
8609 echo "$as_me: failed program was:" >&5
8610sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 ac_header_compiler=no
8613fi
8614
8615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617echo "${ECHO_T}$ac_header_compiler" >&6; }
8618
8619# Is the header present?
8620{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8622cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628#include <$ac_header>
8629_ACEOF
8630if { (ac_try="$ac_cpp conftest.$ac_ext"
8631case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } >/dev/null; then
8643 if test -s conftest.err; then
8644 ac_cpp_err=$ac_c_preproc_warn_flag
8645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8646 else
8647 ac_cpp_err=
8648 fi
8649else
8650 ac_cpp_err=yes
8651fi
8652if test -z "$ac_cpp_err"; then
8653 ac_header_preproc=yes
8654else
8655 echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 ac_header_preproc=no
8659fi
8660
8661rm -f conftest.err conftest.$ac_ext
8662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8663echo "${ECHO_T}$ac_header_preproc" >&6; }
8664
8665# So? What about this header?
8666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8667 yes:no: )
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8672 ac_header_preproc=yes
8673 ;;
8674 no:yes:* )
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8687 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +00008688## ------------------------------------ ##
8689## Report this to http://llvm.org/bugs/ ##
8690## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008691_ASBOX
8692 ) | sed "s/^/$as_me: WARNING: /" >&2
8693 ;;
8694esac
8695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699else
8700 eval "$as_ac_Header=\$ac_header_preproc"
8701fi
8702ac_res=`eval echo '${'$as_ac_Header'}'`
8703 { echo "$as_me:$LINENO: result: $ac_res" >&5
8704echo "${ECHO_T}$ac_res" >&6; }
8705
8706fi
8707if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +00008708 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +00008710_ACEOF
8711
8712fi
8713
8714done
8715
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008716# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008717if test "${enable_ltdl_install+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008718 enableval=$enable_ltdl_install;
8719fi
Reid Spencera40c6872004-11-29 12:29:58 +00008720
Reid Spencera40c6872004-11-29 12:29:58 +00008721
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008722
8723
8724if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencera40c6872004-11-29 12:29:58 +00008725 INSTALL_LTDL_TRUE=
8726 INSTALL_LTDL_FALSE='#'
8727else
8728 INSTALL_LTDL_TRUE='#'
8729 INSTALL_LTDL_FALSE=
8730fi
8731
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008732
8733
8734if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencera40c6872004-11-29 12:29:58 +00008735 CONVENIENCE_LTDL_TRUE=
8736 CONVENIENCE_LTDL_FALSE='#'
8737else
8738 CONVENIENCE_LTDL_TRUE='#'
8739 CONVENIENCE_LTDL_FALSE=
8740fi
8741
8742
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008743{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8744echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00008745library_names_spec=
8746libname_spec='lib$name'
8747soname_spec=
8748shrext_cmds=".so"
8749postinstall_cmds=
8750postuninstall_cmds=
8751finish_cmds=
8752finish_eval=
8753shlibpath_var=
8754shlibpath_overrides_runpath=unknown
8755version_type=none
8756dynamic_linker="$host_os ld.so"
8757sys_lib_dlsearch_path_spec="/lib /usr/lib"
8758if test "$GCC" = yes; then
8759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8761 # if the path contains ";" then we assume it to be the separator
8762 # otherwise default to the standard path separator (i.e. ":") - it is
8763 # assumed that no part of a normal pathname contains ";" but that should
8764 # okay in the real world where ";" in dirpaths is itself problematic.
8765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766 else
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8768 fi
8769else
8770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8771fi
8772need_lib_prefix=unknown
8773hardcode_into_libs=no
8774
8775# when you set need_version to no, make sure it does not cause -set_version
8776# flags to be left without arguments
8777need_version=unknown
8778
8779case $host_os in
8780aix3*)
8781 version_type=linux
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8783 shlibpath_var=LIBPATH
8784
8785 # AIX 3 has no versioning support, so we append a major version to the name.
8786 soname_spec='${libname}${release}${shared_ext}$major'
8787 ;;
8788
8789aix4* | aix5*)
8790 version_type=linux
8791 need_lib_prefix=no
8792 need_version=no
8793 hardcode_into_libs=yes
8794 if test "$host_cpu" = ia64; then
8795 # AIX 5 supports IA64
8796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8797 shlibpath_var=LD_LIBRARY_PATH
8798 else
8799 # With GCC up to 2.95.x, collect2 would create an import file
8800 # for dependence libraries. The import file would start with
8801 # the line `#! .'. This would cause the generated library to
8802 # depend on `.', always an invalid library. This was fixed in
8803 # development snapshots of GCC prior to 3.0.
8804 case $host_os in
8805 aix4 | aix4.[01] | aix4.[01].*)
8806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8807 echo ' yes '
8808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8809 :
8810 else
8811 can_build_shared=no
8812 fi
8813 ;;
8814 esac
8815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8816 # soname into executable. Probably we can add versioning support to
8817 # collect2, so additional links can be useful in future.
8818 if test "$aix_use_runtimelinking" = yes; then
8819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8820 # instead of lib<name>.a to let people know that these are not
8821 # typical AIX shared libraries.
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823 else
8824 # We preserve .a as extension for shared libraries through AIX4.2
8825 # and later when we are not doing run time linking.
8826 library_names_spec='${libname}${release}.a $libname.a'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 fi
8829 shlibpath_var=LIBPATH
8830 fi
8831 ;;
8832
8833amigaos*)
8834 library_names_spec='$libname.ixlibrary $libname.a'
8835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8836 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'
8837 ;;
8838
8839beos*)
8840 library_names_spec='${libname}${shared_ext}'
8841 dynamic_linker="$host_os ld.so"
8842 shlibpath_var=LIBRARY_PATH
8843 ;;
8844
8845bsdi[45]*)
8846 version_type=linux
8847 need_version=no
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8851 shlibpath_var=LD_LIBRARY_PATH
8852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8854 # the default ld.so.conf also contains /usr/contrib/lib and
8855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8856 # libtool to hard-code these into programs
8857 ;;
8858
8859cygwin* | mingw* | pw32*)
8860 version_type=windows
8861 shrext_cmds=".dll"
8862 need_version=no
8863 need_lib_prefix=no
8864
8865 case $GCC,$host_os in
8866 yes,cygwin* | yes,mingw* | yes,pw32*)
8867 library_names_spec='$libname.dll.a'
8868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8869 postinstall_cmds='base_file=`basename \${file}`~
8870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8871 dldir=$destdir/`dirname \$dlpath`~
8872 test -d \$dldir || mkdir -p \$dldir~
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008873 $install_prog $dir/$dlname \$dldir/$dlname~
8874 chmod a+x \$dldir/$dlname'
Reid Spencera40c6872004-11-29 12:29:58 +00008875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8876 dlpath=$dir/\$dldll~
8877 $rm \$dlpath'
8878 shlibpath_overrides_runpath=yes
8879
8880 case $host_os in
8881 cygwin*)
8882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8885 ;;
8886 mingw*)
8887 # MinGW DLLs use traditional 'lib' prefix
8888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8891 # It is most probably a Windows format PATH printed by
8892 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8893 # path with ; separators, and with drive letters. We can handle the
8894 # drive letters (cygwin fileutils understands them), so leave them,
8895 # especially as we might pass files found there to a mingw objdump,
8896 # which wouldn't understand a cygwinified path. Ahh.
8897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898 else
8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8900 fi
8901 ;;
8902 pw32*)
8903 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008904 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 +00008905 ;;
8906 esac
8907 ;;
8908
8909 *)
8910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8911 ;;
8912 esac
8913 dynamic_linker='Win32 ld.exe'
8914 # FIXME: first we should search . and the directory the executable is in
8915 shlibpath_var=PATH
8916 ;;
8917
8918darwin* | rhapsody*)
8919 dynamic_linker="$host_os dyld"
8920 version_type=darwin
8921 need_lib_prefix=no
8922 need_version=no
8923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8924 soname_spec='${libname}${release}${major}$shared_ext'
8925 shlibpath_overrides_runpath=yes
8926 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer28d3e722007-04-11 00:27:39 +00008927 shrext_cmds='.dylib'
Reid Spencera40c6872004-11-29 12:29:58 +00008928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8929 if test "$GCC" = yes; then
8930 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"`
8931 else
8932 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8933 fi
8934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8935 ;;
8936
8937dgux*)
8938 version_type=linux
8939 need_lib_prefix=no
8940 need_version=no
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 ;;
8945
Eric Christopher49709ad2011-10-26 00:42:12 +00008946freebsd1.*)
Reid Spencera40c6872004-11-29 12:29:58 +00008947 dynamic_linker=no
8948 ;;
8949
8950kfreebsd*-gnu)
8951 version_type=linux
8952 need_lib_prefix=no
8953 need_version=no
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 shlibpath_overrides_runpath=no
8958 hardcode_into_libs=yes
8959 dynamic_linker='GNU ld.so'
8960 ;;
8961
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008962freebsd* | dragonfly*)
8963 # DragonFly does not have aout. When/if they implement a new
8964 # versioning mechanism, adjust this.
8965 if test -x /usr/bin/objformat; then
8966 objformat=`/usr/bin/objformat`
8967 else
8968 case $host_os in
Eric Christopher49709ad2011-10-26 00:42:12 +00008969 freebsd[123].*) objformat=aout ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008970 *) objformat=elf ;;
8971 esac
8972 fi
Reid Spencera40c6872004-11-29 12:29:58 +00008973 version_type=freebsd-$objformat
8974 case $version_type in
8975 freebsd-elf*)
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8977 need_version=no
8978 need_lib_prefix=no
8979 ;;
8980 freebsd-*)
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8982 need_version=yes
8983 ;;
8984 esac
8985 shlibpath_var=LD_LIBRARY_PATH
8986 case $host_os in
Eric Christopher49709ad2011-10-26 00:42:12 +00008987 freebsd2.*)
Reid Spencera40c6872004-11-29 12:29:58 +00008988 shlibpath_overrides_runpath=yes
8989 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008990 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencera40c6872004-11-29 12:29:58 +00008991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8993 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencera40c6872004-11-29 12:29:58 +00008996 shlibpath_overrides_runpath=no
8997 hardcode_into_libs=yes
8998 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008999 freebsd*) # from 4.6 on
9000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9002 ;;
Reid Spencera40c6872004-11-29 12:29:58 +00009003 esac
9004 ;;
9005
9006gnu*)
9007 version_type=linux
9008 need_lib_prefix=no
9009 need_version=no
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 hardcode_into_libs=yes
9014 ;;
9015
9016hpux9* | hpux10* | hpux11*)
9017 # Give a soname corresponding to the major version so that dld.sl refuses to
9018 # link against other versions.
9019 version_type=sunos
9020 need_lib_prefix=no
9021 need_version=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009022 case $host_cpu in
Reid Spencera40c6872004-11-29 12:29:58 +00009023 ia64*)
9024 shrext_cmds='.so'
9025 hardcode_into_libs=yes
9026 dynamic_linker="$host_os dld.so"
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 if test "X$HPUX_IA64_MODE" = X32; then
9032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9033 else
9034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9035 fi
9036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9037 ;;
9038 hppa*64*)
9039 shrext_cmds='.sl'
9040 hardcode_into_libs=yes
9041 dynamic_linker="$host_os dld.sl"
9042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9048 ;;
9049 *)
9050 shrext_cmds='.sl'
9051 dynamic_linker="$host_os dld.sl"
9052 shlibpath_var=SHLIB_PATH
9053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 ;;
9057 esac
9058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9059 postinstall_cmds='chmod 555 $lib'
9060 ;;
9061
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009062interix3*)
9063 version_type=linux
9064 need_lib_prefix=no
9065 need_version=no
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=no
9071 hardcode_into_libs=yes
9072 ;;
9073
Reid Spencera40c6872004-11-29 12:29:58 +00009074irix5* | irix6* | nonstopux*)
9075 case $host_os in
9076 nonstopux*) version_type=nonstopux ;;
9077 *)
9078 if test "$lt_cv_prog_gnu_ld" = yes; then
9079 version_type=linux
9080 else
9081 version_type=irix
9082 fi ;;
9083 esac
9084 need_lib_prefix=no
9085 need_version=no
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9088 case $host_os in
9089 irix5* | nonstopux*)
9090 libsuff= shlibsuff=
9091 ;;
9092 *)
9093 case $LD in # libtool.m4 will add one of these switches to LD
9094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9095 libsuff= shlibsuff= libmagic=32-bit;;
9096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9097 libsuff=32 shlibsuff=N32 libmagic=N32;;
9098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9100 *) libsuff= shlibsuff= libmagic=never-match;;
9101 esac
9102 ;;
9103 esac
9104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9105 shlibpath_overrides_runpath=no
9106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9108 hardcode_into_libs=yes
9109 ;;
9110
9111# No shared lib support for Linux oldld, aout, or coff.
9112linux*oldld* | linux*aout* | linux*coff*)
9113 dynamic_linker=no
9114 ;;
9115
9116# This must be Linux ELF.
9117linux*)
9118 version_type=linux
9119 need_lib_prefix=no
9120 need_version=no
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=no
9126 # This implies no fast_install, which is unacceptable.
9127 # Some rework will be needed to allow for fast_install
9128 # before this can be enabled.
9129 hardcode_into_libs=yes
9130
9131 # Append ld.so.conf contents to the search path
9132 if test -f /etc/ld.so.conf; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009133 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 +00009134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9135 fi
9136
9137 # We used to test for /lib/ld.so.1 and disable shared libraries on
9138 # powerpc, because MkLinux only supported shared libraries with the
9139 # GNU dynamic linker. Since this was broken with cross compilers,
9140 # most powerpc-linux boxes support dynamic linking these days and
9141 # people can always --disable-shared, the test was removed, and we
9142 # assume the GNU/Linux dynamic linker is in use.
9143 dynamic_linker='GNU/Linux ld.so'
9144 ;;
9145
9146knetbsd*-gnu)
9147 version_type=linux
9148 need_lib_prefix=no
9149 need_version=no
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 hardcode_into_libs=yes
9155 dynamic_linker='GNU ld.so'
9156 ;;
9157
9158netbsd*)
9159 version_type=sunos
9160 need_lib_prefix=no
9161 need_version=no
9162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9165 dynamic_linker='NetBSD (a.out) ld.so'
9166 else
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 dynamic_linker='NetBSD ld.elf_so'
9170 fi
9171 shlibpath_var=LD_LIBRARY_PATH
9172 shlibpath_overrides_runpath=yes
9173 hardcode_into_libs=yes
9174 ;;
9175
9176newsos6)
9177 version_type=linux
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 shlibpath_overrides_runpath=yes
9181 ;;
9182
9183nto-qnx*)
9184 version_type=linux
9185 need_lib_prefix=no
9186 need_version=no
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=yes
9191 ;;
9192
Eric Christopher22738d02012-08-06 20:52:18 +00009193openbsd* | bitrig*)
Reid Spencera40c6872004-11-29 12:29:58 +00009194 version_type=sunos
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009195 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencera40c6872004-11-29 12:29:58 +00009196 need_lib_prefix=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9198 case $host_os in
9199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9200 *) need_version=no ;;
9201 esac
Reid Spencera40c6872004-11-29 12:29:58 +00009202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9206 case $host_os in
9207 openbsd2.[89] | openbsd2.[89].*)
9208 shlibpath_overrides_runpath=no
9209 ;;
9210 *)
9211 shlibpath_overrides_runpath=yes
9212 ;;
9213 esac
9214 else
9215 shlibpath_overrides_runpath=yes
9216 fi
9217 ;;
9218
9219os2*)
9220 libname_spec='$name'
9221 shrext_cmds=".dll"
9222 need_lib_prefix=no
9223 library_names_spec='$libname${shared_ext} $libname.a'
9224 dynamic_linker='OS/2 ld.exe'
9225 shlibpath_var=LIBPATH
9226 ;;
9227
9228osf3* | osf4* | osf5*)
9229 version_type=osf
9230 need_lib_prefix=no
9231 need_version=no
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9237 ;;
9238
Reid Spencera40c6872004-11-29 12:29:58 +00009239solaris*)
9240 version_type=linux
9241 need_lib_prefix=no
9242 need_version=no
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 shlibpath_overrides_runpath=yes
9247 hardcode_into_libs=yes
9248 # ldd complains unless libraries are executable
9249 postinstall_cmds='chmod +x $lib'
9250 ;;
9251
9252sunos4*)
9253 version_type=sunos
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9258 if test "$with_gnu_ld" = yes; then
9259 need_lib_prefix=no
9260 fi
9261 need_version=yes
9262 ;;
9263
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009264sysv4 | sysv4.3*)
Reid Spencera40c6872004-11-29 12:29:58 +00009265 version_type=linux
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 case $host_vendor in
9270 sni)
9271 shlibpath_overrides_runpath=no
9272 need_lib_prefix=no
9273 export_dynamic_flag_spec='${wl}-Blargedynsym'
9274 runpath_var=LD_RUN_PATH
9275 ;;
9276 siemens)
9277 need_lib_prefix=no
9278 ;;
9279 motorola)
9280 need_lib_prefix=no
9281 need_version=no
9282 shlibpath_overrides_runpath=no
9283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9284 ;;
9285 esac
9286 ;;
9287
9288sysv4*MP*)
9289 if test -d /usr/nec ;then
9290 version_type=linux
9291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9292 soname_spec='$libname${shared_ext}.$major'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 fi
9295 ;;
9296
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9298 version_type=freebsd-elf
9299 need_lib_prefix=no
9300 need_version=no
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 hardcode_into_libs=yes
9305 if test "$with_gnu_ld" = yes; then
9306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9307 shlibpath_overrides_runpath=no
9308 else
9309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9310 shlibpath_overrides_runpath=yes
9311 case $host_os in
9312 sco3.2v5*)
9313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9314 ;;
9315 esac
9316 fi
9317 sys_lib_dlsearch_path_spec='/usr/lib'
9318 ;;
9319
Reid Spencera40c6872004-11-29 12:29:58 +00009320uts4*)
9321 version_type=linux
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 ;;
9326
9327*)
9328 dynamic_linker=no
9329 ;;
9330esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009331{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9332echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009333test "$dynamic_linker" = no && can_build_shared=no
9334
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009335variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9336if test "$GCC" = yes; then
9337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9338fi
Reid Spencera40c6872004-11-29 12:29:58 +00009339
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009340
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009341{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9342echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9343if test "${libltdl_cv_shlibext+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009345else
9346
9347module=yes
9348eval libltdl_cv_shlibext=$shrext_cmds
9349
9350fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009351{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9352echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009353if test -n "$libltdl_cv_shlibext"; then
9354
9355cat >>confdefs.h <<_ACEOF
9356#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9357_ACEOF
9358
9359fi
9360
9361
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009362{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9363echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9364if test "${libltdl_cv_shlibpath_var+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009366else
9367 libltdl_cv_shlibpath_var="$shlibpath_var"
9368fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009369{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9370echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009371if test -n "$libltdl_cv_shlibpath_var"; then
9372
9373cat >>confdefs.h <<_ACEOF
9374#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9375_ACEOF
9376
9377fi
9378
9379
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009380{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9381echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9382if test "${libltdl_cv_sys_search_path+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009384else
9385 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9386fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009387{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9388echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009389if test -n "$libltdl_cv_sys_search_path"; then
9390 sys_search_path=
9391 for dir in $libltdl_cv_sys_search_path; do
9392 if test -z "$sys_search_path"; then
9393 sys_search_path="$dir"
9394 else
9395 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9396 fi
9397 done
9398
9399cat >>confdefs.h <<_ACEOF
9400#define LTDL_SYSSEARCHPATH "$sys_search_path"
9401_ACEOF
9402
9403fi
9404
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009405{ echo "$as_me:$LINENO: checking for objdir" >&5
9406echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9407if test "${libltdl_cv_objdir+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009409else
9410 libltdl_cv_objdir="$objdir"
9411 if test -n "$objdir"; then
9412 :
9413 else
9414 rm -f .libs 2>/dev/null
9415 mkdir .libs 2>/dev/null
9416 if test -d .libs; then
9417 libltdl_cv_objdir=.libs
9418 else
9419 # MS-DOS does not allow filenames that begin with a dot.
9420 libltdl_cv_objdir=_libs
9421 fi
9422 rmdir .libs 2>/dev/null
9423 fi
9424
9425fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009426{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9427echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009428
9429cat >>confdefs.h <<_ACEOF
9430#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9431_ACEOF
9432
9433
Reid Spencera40c6872004-11-29 12:29:58 +00009434
9435
9436
9437
9438# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009439{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9440echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9441if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009443else
9444
9445# These are sane defaults that work on at least a few old systems.
9446# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9447
9448# Character class describing NM global symbol codes.
9449symcode='[BCDEGRST]'
9450
9451# Regexp to match symbols that can be accessed directly from C.
9452sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9453
Reid Spencera40c6872004-11-29 12:29:58 +00009454# Transform an extracted symbol line into a proper C declaration
9455lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9456
9457# Transform an extracted symbol line into symbol name and symbol address
9458lt_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'"
9459
9460# Define system-specific variables.
9461case $host_os in
9462aix*)
9463 symcode='[BCDT]'
9464 ;;
9465cygwin* | mingw* | pw32*)
9466 symcode='[ABCDGISTW]'
9467 ;;
9468hpux*) # Its linker distinguishes data from code symbols
9469 if test "$host_cpu" = ia64; then
9470 symcode='[ABCDEGRST]'
9471 fi
9472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9473 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'"
9474 ;;
9475linux*)
9476 if test "$host_cpu" = ia64; then
9477 symcode='[ABCDGIRSTW]'
9478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9479 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'"
9480 fi
9481 ;;
9482irix* | nonstopux*)
9483 symcode='[BCDEGRST]'
9484 ;;
9485osf*)
9486 symcode='[BCDEGQRST]'
9487 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009488solaris*)
Reid Spencera40c6872004-11-29 12:29:58 +00009489 symcode='[BDRT]'
9490 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009491sco3.2v5*)
9492 symcode='[DT]'
9493 ;;
9494sysv4.2uw2*)
9495 symcode='[DT]'
9496 ;;
9497sysv5* | sco5v6* | unixware* | OpenUNIX*)
9498 symcode='[ABDT]'
9499 ;;
Reid Spencera40c6872004-11-29 12:29:58 +00009500sysv4)
9501 symcode='[DFNSTU]'
9502 ;;
9503esac
9504
9505# Handle CRLF in mingw tool chain
9506opt_cr=
9507case $build_os in
9508mingw*)
9509 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9510 ;;
9511esac
9512
9513# If we're using GNU nm, then use its standard symbol codes.
9514case `$NM -V 2>&1` in
9515*GNU* | *'with BFD'*)
9516 symcode='[ABCDGIRSTW]' ;;
9517esac
9518
9519# Try without a prefix undercore, then with it.
9520for ac_symprfx in "" "_"; do
9521
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009522 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9523 symxfrm="\\1 $ac_symprfx\\2 \\2"
9524
Reid Spencera40c6872004-11-29 12:29:58 +00009525 # Write the raw and C identifiers.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009526 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 +00009527
9528 # Check to see that the pipe works correctly.
9529 pipe_works=no
9530
9531 rm -f conftest*
9532 cat > conftest.$ac_ext <<EOF
9533#ifdef __cplusplus
9534extern "C" {
9535#endif
9536char nm_test_var;
9537void nm_test_func(){}
9538#ifdef __cplusplus
9539}
9540#endif
9541int main(){nm_test_var='a';nm_test_func();return(0);}
9542EOF
9543
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009545 (eval $ac_compile) 2>&5
9546 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009549 # Now try to grab the symbols.
9550 nlist=conftest.nm
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009551 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 +00009552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9553 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencera40c6872004-11-29 12:29:58 +00009556 # Try sorting and uniquifying the output.
9557 if sort "$nlist" | uniq > "$nlist"T; then
9558 mv -f "$nlist"T "$nlist"
9559 else
9560 rm -f "$nlist"T
9561 fi
9562
9563 # Make sure that we snagged all the symbols we need.
9564 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9565 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9566 cat <<EOF > conftest.$ac_ext
9567#ifdef __cplusplus
9568extern "C" {
9569#endif
9570
9571EOF
9572 # Now generate the symbol file.
9573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9574
9575 cat <<EOF >> conftest.$ac_ext
9576#if defined (__STDC__) && __STDC__
9577# define lt_ptr_t void *
9578#else
9579# define lt_ptr_t char *
9580# define const
9581#endif
9582
9583/* The mapping between symbol names and symbols. */
9584const struct {
9585 const char *name;
9586 lt_ptr_t address;
9587}
9588lt_preloaded_symbols[] =
9589{
9590EOF
9591 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9592 cat <<\EOF >> conftest.$ac_ext
9593 {0, (lt_ptr_t) 0}
9594};
9595
9596#ifdef __cplusplus
9597}
9598#endif
9599EOF
9600 # Now try linking the two files.
9601 mv conftest.$ac_objext conftstm.$ac_objext
9602 lt_save_LIBS="$LIBS"
9603 lt_save_CFLAGS="$CFLAGS"
9604 LIBS="conftstm.$ac_objext"
9605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009607 (eval $ac_link) 2>&5
9608 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencera40c6872004-11-29 12:29:58 +00009611 pipe_works=yes
9612 fi
9613 LIBS="$lt_save_LIBS"
9614 CFLAGS="$lt_save_CFLAGS"
9615 else
9616 echo "cannot find nm_test_func in $nlist" >&5
9617 fi
9618 else
9619 echo "cannot find nm_test_var in $nlist" >&5
9620 fi
9621 else
9622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9623 fi
9624 else
9625 echo "$progname: failed program was:" >&5
9626 cat conftest.$ac_ext >&5
9627 fi
9628 rm -f conftest* conftst*
9629
9630 # Do not use the global_symbol_pipe unless it works.
9631 if test "$pipe_works" = yes; then
9632 break
9633 else
9634 lt_cv_sys_global_symbol_pipe=
9635 fi
9636done
9637
9638fi
9639
9640if test -z "$lt_cv_sys_global_symbol_pipe"; then
9641 lt_cv_sys_global_symbol_to_cdecl=
9642fi
9643if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009644 { echo "$as_me:$LINENO: result: failed" >&5
9645echo "${ECHO_T}failed" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009646else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009647 { echo "$as_me:$LINENO: result: ok" >&5
9648echo "${ECHO_T}ok" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009649fi
9650
9651
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009652{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9653echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9654if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009656else
9657 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9658 libltdl_cv_preloaded_symbols=yes
9659 else
9660 libltdl_cv_preloaded_symbols=no
9661 fi
9662
9663fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009664{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9665echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009666if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9667
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009668cat >>confdefs.h <<\_ACEOF
9669#define HAVE_PRELOADED_SYMBOLS 1
9670_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009671
9672fi
9673
9674LIBADD_DL=
9675
9676ac_ext=c
9677ac_cpp='$CPP $CPPFLAGS'
9678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9680ac_compiler_gnu=$ac_cv_c_compiler_gnu
9681
9682
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009683{ echo "$as_me:$LINENO: checking for shl_load" >&5
9684echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9685if test "${ac_cv_func_shl_load+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687else
9688 cat >conftest.$ac_ext <<_ACEOF
9689/* confdefs.h. */
9690_ACEOF
9691cat confdefs.h >>conftest.$ac_ext
9692cat >>conftest.$ac_ext <<_ACEOF
9693/* end confdefs.h. */
9694/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9696#define shl_load innocuous_shl_load
Reid Spencera40c6872004-11-29 12:29:58 +00009697
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009698/* System header to define __stub macros and hopefully few prototypes,
9699 which can conflict with char shl_load (); below.
9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701 <limits.h> exists even on freestanding compilers. */
9702
9703#ifdef __STDC__
9704# include <limits.h>
9705#else
9706# include <assert.h>
9707#endif
9708
9709#undef shl_load
9710
9711/* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9714#ifdef __cplusplus
9715extern "C"
9716#endif
9717char shl_load ();
9718/* The GNU C library defines this for functions which it implements
9719 to always fail with ENOSYS. Some functions are actually named
9720 something starting with __ and the normal name is an alias. */
9721#if defined __stub_shl_load || defined __stub___shl_load
9722choke me
9723#endif
9724
9725int
9726main ()
9727{
9728return shl_load ();
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext conftest$ac_exeext
9734if { (ac_try="$ac_link"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9748 { (case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_try") 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9761esac
9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_try") 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_func_shl_load=yes
9768else
9769 echo "$as_me: failed program was:" >&5
9770sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 ac_cv_func_shl_load=no
9773fi
9774
9775rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777fi
9778{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9779echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9780if test $ac_cv_func_shl_load = yes; then
9781
9782cat >>confdefs.h <<\_ACEOF
9783#define HAVE_SHL_LOAD 1
9784_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009785
9786else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009787 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009791else
9792 ac_check_lib_save_LIBS=$LIBS
9793LIBS="-ldld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009794cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009799/* end confdefs.h. */
9800
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009801/* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00009804#ifdef __cplusplus
9805extern "C"
9806#endif
Reid Spencera40c6872004-11-29 12:29:58 +00009807char shl_load ();
9808int
9809main ()
9810{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009811return shl_load ();
Reid Spencera40c6872004-11-29 12:29:58 +00009812 ;
9813 return 0;
9814}
9815_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009816rm -f conftest.$ac_objext conftest$ac_exeext
9817if { (ac_try="$ac_link"
9818case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821esac
9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844esac
9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009850 ac_cv_lib_dld_shl_load=yes
9851else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009852 echo "$as_me: failed program was:" >&5
9853sed 's/^/| /' conftest.$ac_ext >&5
9854
9855 ac_cv_lib_dld_shl_load=no
Reid Spencera40c6872004-11-29 12:29:58 +00009856fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009857
Bill Wendling02b47d92009-04-18 11:20:33 +00009858rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009859 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00009860LIBS=$ac_check_lib_save_LIBS
9861fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009862{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9863echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9864if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00009865
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009866cat >>confdefs.h <<\_ACEOF
9867#define HAVE_SHL_LOAD 1
9868_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009869
9870 LIBADD_DL="$LIBADD_DL -ldld"
9871else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009872 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9873echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9874if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009876else
9877 ac_check_lib_save_LIBS=$LIBS
9878LIBS="-ldl $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009879cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h. */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009884/* end confdefs.h. */
9885
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009886/* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00009889#ifdef __cplusplus
9890extern "C"
9891#endif
Reid Spencera40c6872004-11-29 12:29:58 +00009892char dlopen ();
9893int
9894main ()
9895{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009896return dlopen ();
Reid Spencera40c6872004-11-29 12:29:58 +00009897 ;
9898 return 0;
9899}
9900_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009901rm -f conftest.$ac_objext conftest$ac_exeext
9902if { (ac_try="$ac_link"
9903case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_link") 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9916 { (case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919esac
9920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_try") 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try='test -s conftest$ac_exeext'
9926 { (case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9929esac
9930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_try") 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009935 ac_cv_lib_dl_dlopen=yes
9936else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009937 echo "$as_me: failed program was:" >&5
9938sed 's/^/| /' conftest.$ac_ext >&5
9939
9940 ac_cv_lib_dl_dlopen=no
Reid Spencera40c6872004-11-29 12:29:58 +00009941fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009942
Bill Wendling02b47d92009-04-18 11:20:33 +00009943rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009944 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00009945LIBS=$ac_check_lib_save_LIBS
9946fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009947{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9949if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00009950
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009951cat >>confdefs.h <<\_ACEOF
9952#define HAVE_LIBDL 1
9953_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009954
9955 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9956else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009957 cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009962/* end confdefs.h. */
9963#if HAVE_DLFCN_H
9964# include <dlfcn.h>
9965#endif
9966
9967int
9968main ()
9969{
9970dlopen(0, 0);
9971 ;
9972 return 0;
9973}
9974_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009975rm -f conftest.$ac_objext conftest$ac_exeext
9976if { (ac_try="$ac_link"
9977case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980esac
9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_link") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9990 { (case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9993esac
9994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_try") 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest$ac_exeext'
10000 { (case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10003esac
10004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_try") 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010009
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010010cat >>confdefs.h <<\_ACEOF
10011#define HAVE_LIBDL 1
10012_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010013 libltdl_cv_func_dlopen="yes"
10014else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010015 echo "$as_me: failed program was:" >&5
10016sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10019echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10020if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010022else
10023 ac_check_lib_save_LIBS=$LIBS
10024LIBS="-lsvld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010025cat >conftest.$ac_ext <<_ACEOF
10026/* confdefs.h. */
10027_ACEOF
10028cat confdefs.h >>conftest.$ac_ext
10029cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010030/* end confdefs.h. */
10031
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010032/* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010035#ifdef __cplusplus
10036extern "C"
10037#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010038char dlopen ();
10039int
10040main ()
10041{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010042return dlopen ();
Reid Spencera40c6872004-11-29 12:29:58 +000010043 ;
10044 return 0;
10045}
10046_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010047rm -f conftest.$ac_objext conftest$ac_exeext
10048if { (ac_try="$ac_link"
10049case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065esac
10066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010081 ac_cv_lib_svld_dlopen=yes
10082else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010083 echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_cv_lib_svld_dlopen=no
Reid Spencera40c6872004-11-29 12:29:58 +000010087fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010088
Bill Wendling02b47d92009-04-18 11:20:33 +000010089rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010090 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010091LIBS=$ac_check_lib_save_LIBS
10092fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010093{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10094echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10095if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010096
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010097cat >>confdefs.h <<\_ACEOF
10098#define HAVE_LIBDL 1
10099_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010100
10101 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10102else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010103 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10104echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10105if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010107else
10108 ac_check_lib_save_LIBS=$LIBS
10109LIBS="-ldld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010110cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h. */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010115/* end confdefs.h. */
10116
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010117/* Override any GCC internal prototype to avoid an error.
10118 Use char because int might match the return type of a GCC
10119 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010120#ifdef __cplusplus
10121extern "C"
10122#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010123char dld_link ();
10124int
10125main ()
10126{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010127return dld_link ();
Reid Spencera40c6872004-11-29 12:29:58 +000010128 ;
10129 return 0;
10130}
10131_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010132rm -f conftest.$ac_objext conftest$ac_exeext
10133if { (ac_try="$ac_link"
10134case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137esac
10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_link") 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10147 { (case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150esac
10151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_try") 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010166 ac_cv_lib_dld_dld_link=yes
10167else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010168 echo "$as_me: failed program was:" >&5
10169sed 's/^/| /' conftest.$ac_ext >&5
10170
10171 ac_cv_lib_dld_dld_link=no
Reid Spencera40c6872004-11-29 12:29:58 +000010172fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010173
Bill Wendling02b47d92009-04-18 11:20:33 +000010174rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010175 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010176LIBS=$ac_check_lib_save_LIBS
10177fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010178{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10179echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10180if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010181
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010182cat >>confdefs.h <<\_ACEOF
10183#define HAVE_DLD 1
10184_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010185
10186 LIBADD_DL="$LIBADD_DL -ldld"
10187else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010188 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10189echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10190if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
10193 cat >conftest.$ac_ext <<_ACEOF
10194/* confdefs.h. */
10195_ACEOF
10196cat confdefs.h >>conftest.$ac_ext
10197cat >>conftest.$ac_ext <<_ACEOF
10198/* end confdefs.h. */
10199/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10201#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencera40c6872004-11-29 12:29:58 +000010202
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010203/* System header to define __stub macros and hopefully few prototypes,
10204 which can conflict with char _dyld_func_lookup (); below.
10205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10206 <limits.h> exists even on freestanding compilers. */
Reid Spencera40c6872004-11-29 12:29:58 +000010207
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010208#ifdef __STDC__
10209# include <limits.h>
10210#else
10211# include <assert.h>
10212#endif
10213
10214#undef _dyld_func_lookup
10215
10216/* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10219#ifdef __cplusplus
10220extern "C"
10221#endif
10222char _dyld_func_lookup ();
10223/* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10227choke me
10228#endif
10229
10230int
10231main ()
10232{
10233return _dyld_func_lookup ();
10234 ;
10235 return 0;
10236}
10237_ACEOF
10238rm -f conftest.$ac_objext conftest$ac_exeext
10239if { (ac_try="$ac_link"
10240case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243esac
10244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_link") 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10253 { (case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256esac
10257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_try") 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10266esac
10267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10272 ac_cv_func__dyld_func_lookup=yes
10273else
10274 echo "$as_me: failed program was:" >&5
10275sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ac_cv_func__dyld_func_lookup=no
Reid Spencera40c6872004-11-29 12:29:58 +000010278fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010279
Bill Wendling02b47d92009-04-18 11:20:33 +000010280rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010281 conftest$ac_exeext conftest.$ac_ext
10282fi
10283{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10284echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10285if test $ac_cv_func__dyld_func_lookup = yes; then
10286
10287cat >>confdefs.h <<\_ACEOF
10288#define HAVE_DYLD 1
10289_ACEOF
10290
10291fi
10292
10293
10294fi
10295
10296
10297fi
10298
10299
10300fi
10301
10302rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010304
10305fi
10306
10307
10308fi
10309
10310
10311fi
10312
10313
10314if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10315then
10316 lt_save_LIBS="$LIBS"
10317 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010318
10319for ac_func in dlerror
10320do
10321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10322{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10324if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326else
10327 cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h. */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h. */
10333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10335#define $ac_func innocuous_$ac_func
10336
10337/* System header to define __stub macros and hopefully few prototypes,
10338 which can conflict with char $ac_func (); below.
10339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10340 <limits.h> exists even on freestanding compilers. */
10341
10342#ifdef __STDC__
10343# include <limits.h>
10344#else
10345# include <assert.h>
10346#endif
10347
10348#undef $ac_func
10349
10350/* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10353#ifdef __cplusplus
10354extern "C"
10355#endif
10356char $ac_func ();
10357/* The GNU C library defines this for functions which it implements
10358 to always fail with ENOSYS. Some functions are actually named
10359 something starting with __ and the normal name is an alias. */
10360#if defined __stub_$ac_func || defined __stub___$ac_func
10361choke me
10362#endif
10363
10364int
10365main ()
10366{
10367return $ac_func ();
10368 ;
10369 return 0;
10370}
10371_ACEOF
10372rm -f conftest.$ac_objext conftest$ac_exeext
10373if { (ac_try="$ac_link"
10374case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377esac
10378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_link") 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10387 { (case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390esac
10391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_try") 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest$ac_exeext'
10397 { (case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400esac
10401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_try") 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 eval "$as_ac_var=yes"
10407else
10408 echo "$as_me: failed program was:" >&5
10409sed 's/^/| /' conftest.$ac_ext >&5
10410
10411 eval "$as_ac_var=no"
10412fi
10413
10414rm -f core conftest.err conftest.$ac_objext \
10415 conftest$ac_exeext conftest.$ac_ext
10416fi
10417ac_res=`eval echo '${'$as_ac_var'}'`
10418 { echo "$as_me:$LINENO: result: $ac_res" >&5
10419echo "${ECHO_T}$ac_res" >&6; }
10420if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010421 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000010423_ACEOF
10424
10425fi
10426done
10427
10428 LIBS="$lt_save_LIBS"
10429fi
10430ac_ext=c
10431ac_cpp='$CPP $CPPFLAGS'
10432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10434ac_compiler_gnu=$ac_cv_c_compiler_gnu
10435
10436
10437
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010438{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10439echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10440if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010442else
10443 ac_cv_sys_symbol_underscore=no
10444 cat > conftest.$ac_ext <<EOF
10445void nm_test_func(){}
10446int main(){nm_test_func;return 0;}
10447EOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010449 (eval $ac_compile) 2>&5
10450 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010453 # Now try to grab the symbols.
10454 ac_nlist=conftest.nm
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010455 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 +000010456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10457 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencera40c6872004-11-29 12:29:58 +000010460 # See whether the symbols have a leading underscore.
10461 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10462 ac_cv_sys_symbol_underscore=yes
10463 else
10464 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10465 :
10466 else
10467 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10468 fi
10469 fi
10470 else
10471 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10472 fi
10473 else
10474 echo "configure: failed program was:" >&5
10475 cat conftest.c >&5
10476 fi
10477 rm -rf conftest*
10478
10479fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010480{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10481echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010482
10483
10484if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10485 if test x"$libltdl_cv_func_dlopen" = xyes ||
10486 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010487 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10488echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10489if test "${libltdl_cv_need_uscore+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010491else
10492 libltdl_cv_need_uscore=unknown
10493 save_LIBS="$LIBS"
10494 LIBS="$LIBS $LIBADD_DL"
10495 if test "$cross_compiling" = yes; then :
10496 libltdl_cv_need_uscore=cross
10497else
10498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10499 lt_status=$lt_dlunknown
10500 cat > conftest.$ac_ext <<EOF
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000010501#line 10501 "configure"
Reid Spencera40c6872004-11-29 12:29:58 +000010502#include "confdefs.h"
10503
10504#if HAVE_DLFCN_H
10505#include <dlfcn.h>
10506#endif
10507
10508#include <stdio.h>
10509
10510#ifdef RTLD_GLOBAL
10511# define LT_DLGLOBAL RTLD_GLOBAL
10512#else
10513# ifdef DL_GLOBAL
10514# define LT_DLGLOBAL DL_GLOBAL
10515# else
10516# define LT_DLGLOBAL 0
10517# endif
10518#endif
10519
10520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10521 find out it does not work in some platform. */
10522#ifndef LT_DLLAZY_OR_NOW
10523# ifdef RTLD_LAZY
10524# define LT_DLLAZY_OR_NOW RTLD_LAZY
10525# else
10526# ifdef DL_LAZY
10527# define LT_DLLAZY_OR_NOW DL_LAZY
10528# else
10529# ifdef RTLD_NOW
10530# define LT_DLLAZY_OR_NOW RTLD_NOW
10531# else
10532# ifdef DL_NOW
10533# define LT_DLLAZY_OR_NOW DL_NOW
10534# else
10535# define LT_DLLAZY_OR_NOW 0
10536# endif
10537# endif
10538# endif
10539# endif
10540#endif
10541
10542#ifdef __cplusplus
10543extern "C" void exit (int);
10544#endif
10545
10546void fnord() { int i=42;}
10547int main ()
10548{
10549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10550 int status = $lt_dlunknown;
10551
10552 if (self)
10553 {
10554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10556 /* dlclose (self); */
10557 }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010558 else
10559 puts (dlerror ());
Reid Spencera40c6872004-11-29 12:29:58 +000010560
10561 exit (status);
10562}
10563EOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010565 (eval $ac_link) 2>&5
10566 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010569 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencera40c6872004-11-29 12:29:58 +000010570 lt_status=$?
10571 case x$lt_status in
10572 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10573 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010574 x$lt_dlunknown|x*) ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010575 esac
10576 else :
10577 # compilation failed
10578
10579 fi
10580fi
10581rm -fr conftest*
10582
10583 LIBS="$save_LIBS"
10584
10585fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010586{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10587echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010588 fi
10589fi
10590
10591if test x"$libltdl_cv_need_uscore" = xyes; then
10592
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010593cat >>confdefs.h <<\_ACEOF
10594#define NEED_USCORE 1
10595_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010596
10597fi
10598
10599
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010600{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10601echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10602if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010604else
10605 # PORTME does your system automatically load deplibs for dlopen?
10606 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10607 # For now, we just catch OSes we know something about -- in the
10608 # future, we'll try test this programmatically.
10609 libltdl_cv_sys_dlopen_deplibs=unknown
10610 case "$host_os" in
10611 aix3*|aix4.1.*|aix4.2.*)
10612 # Unknown whether this is true for these versions of AIX, but
10613 # we want this `case' here to explicitly catch those versions.
10614 libltdl_cv_sys_dlopen_deplibs=unknown
10615 ;;
10616 aix[45]*)
10617 libltdl_cv_sys_dlopen_deplibs=yes
10618 ;;
10619 darwin*)
10620 # Assuming the user has installed a libdl from somewhere, this is true
10621 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10622 libltdl_cv_sys_dlopen_deplibs=yes
10623 ;;
10624 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10625 # GNU and its variants, using gnu ld.so (Glibc)
10626 libltdl_cv_sys_dlopen_deplibs=yes
10627 ;;
10628 hpux10*|hpux11*)
10629 libltdl_cv_sys_dlopen_deplibs=yes
10630 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010631 interix*)
10632 libltdl_cv_sys_dlopen_deplibs=yes
10633 ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010634 irix[12345]*|irix6.[01]*)
10635 # Catch all versions of IRIX before 6.2, and indicate that we don't
10636 # know how it worked for any of those versions.
10637 libltdl_cv_sys_dlopen_deplibs=unknown
10638 ;;
10639 irix*)
10640 # The case above catches anything before 6.2, and it's known that
10641 # at 6.2 and later dlopen does load deplibs.
10642 libltdl_cv_sys_dlopen_deplibs=yes
10643 ;;
10644 netbsd*)
10645 libltdl_cv_sys_dlopen_deplibs=yes
10646 ;;
10647 openbsd*)
10648 libltdl_cv_sys_dlopen_deplibs=yes
10649 ;;
10650 osf[1234]*)
10651 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10652 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner0ab5e2c2011-04-15 05:18:47 +000010653 # library depends on, so we explicitly say `no'.
Reid Spencera40c6872004-11-29 12:29:58 +000010654 libltdl_cv_sys_dlopen_deplibs=no
10655 ;;
10656 osf5.0|osf5.0a|osf5.1)
10657 # dlopen *does* load deplibs and with the right loader patch applied
10658 # it even uses RPATH in a shared library to search for shared objects
10659 # that the library depends on, but there's no easy way to know if that
10660 # patch is installed. Since this is the case, all we can really
10661 # say is unknown -- it depends on the patch being installed. If
10662 # it is, this changes to `yes'. Without it, it would be `no'.
10663 libltdl_cv_sys_dlopen_deplibs=unknown
10664 ;;
10665 osf*)
10666 # the two cases above should catch all versions of osf <= 5.1. Read
10667 # the comments above for what we know about them.
10668 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10669 # is used to find them so we can finally say `yes'.
10670 libltdl_cv_sys_dlopen_deplibs=yes
10671 ;;
10672 solaris*)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010678 esac
10679
10680fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010681{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10682echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010683if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10684
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010685cat >>confdefs.h <<\_ACEOF
10686#define LTDL_DLOPEN_DEPLIBS 1
10687_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010688
10689fi
10690
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010691
Reid Spencera40c6872004-11-29 12:29:58 +000010692for ac_header in argz.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010693do
10694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700fi
10701ac_res=`eval echo '${'$as_ac_Header'}'`
10702 { echo "$as_me:$LINENO: result: $ac_res" >&5
10703echo "${ECHO_T}$ac_res" >&6; }
10704else
10705 # Is the header compilable?
10706{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10708cat >conftest.$ac_ext <<_ACEOF
10709/* confdefs.h. */
10710_ACEOF
10711cat confdefs.h >>conftest.$ac_ext
10712cat >>conftest.$ac_ext <<_ACEOF
10713/* end confdefs.h. */
10714$ac_includes_default
10715#include <$ac_header>
10716_ACEOF
10717rm -f conftest.$ac_objext
10718if { (ac_try="$ac_compile"
10719case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
10723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_compile") 2>conftest.er1
10725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest.$ac_objext'
10742 { (case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10745esac
10746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_try") 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_header_compiler=yes
10752else
10753 echo "$as_me: failed program was:" >&5
10754sed 's/^/| /' conftest.$ac_ext >&5
10755
10756 ac_header_compiler=no
10757fi
10758
10759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10761echo "${ECHO_T}$ac_header_compiler" >&6; }
10762
10763# Is the header present?
10764{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10766cat >conftest.$ac_ext <<_ACEOF
10767/* confdefs.h. */
10768_ACEOF
10769cat confdefs.h >>conftest.$ac_ext
10770cat >>conftest.$ac_ext <<_ACEOF
10771/* end confdefs.h. */
10772#include <$ac_header>
10773_ACEOF
10774if { (ac_try="$ac_cpp conftest.$ac_ext"
10775case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778esac
10779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } >/dev/null; then
10787 if test -s conftest.err; then
10788 ac_cpp_err=$ac_c_preproc_warn_flag
10789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10790 else
10791 ac_cpp_err=
10792 fi
10793else
10794 ac_cpp_err=yes
10795fi
10796if test -z "$ac_cpp_err"; then
10797 ac_header_preproc=yes
10798else
10799 echo "$as_me: failed program was:" >&5
10800sed 's/^/| /' conftest.$ac_ext >&5
10801
10802 ac_header_preproc=no
10803fi
10804
10805rm -f conftest.err conftest.$ac_ext
10806{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10807echo "${ECHO_T}$ac_header_preproc" >&6; }
10808
10809# So? What about this header?
10810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10811 yes:no: )
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10816 ac_header_preproc=yes
10817 ;;
10818 no:yes:* )
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10826echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000010832## ------------------------------------ ##
10833## Report this to http://llvm.org/bugs/ ##
10834## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010835_ASBOX
10836 ) | sed "s/^/$as_me: WARNING: /" >&2
10837 ;;
10838esac
10839{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843else
10844 eval "$as_ac_Header=\$ac_header_preproc"
10845fi
10846ac_res=`eval echo '${'$as_ac_Header'}'`
10847 { echo "$as_me:$LINENO: result: $ac_res" >&5
10848echo "${ECHO_T}$ac_res" >&6; }
10849
10850fi
10851if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010852 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000010854_ACEOF
10855
10856fi
10857
10858done
10859
10860
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010861{ echo "$as_me:$LINENO: checking for error_t" >&5
10862echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10863if test "${ac_cv_type_error_t+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865else
10866 cat >conftest.$ac_ext <<_ACEOF
10867/* confdefs.h. */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h. */
10872#if HAVE_ARGZ_H
Reid Spencera40c6872004-11-29 12:29:58 +000010873# include <argz.h>
10874#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010875
10876typedef error_t ac__type_new_;
10877int
10878main ()
10879{
10880if ((ac__type_new_ *) 0)
10881 return 0;
10882if (sizeof (ac__type_new_))
10883 return 0;
10884 ;
10885 return 0;
10886}
10887_ACEOF
10888rm -f conftest.$ac_objext
10889if { (ac_try="$ac_compile"
10890case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903 { (case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906esac
10907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_try") 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest.$ac_objext'
10913 { (case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916esac
10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_try") 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_type_error_t=yes
10923else
10924 echo "$as_me: failed program was:" >&5
10925sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_cv_type_error_t=no
10928fi
10929
10930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931fi
10932{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10933echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10934if test $ac_cv_type_error_t = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010935
10936cat >>confdefs.h <<_ACEOF
10937#define HAVE_ERROR_T 1
10938_ACEOF
10939
10940
10941else
10942
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010943cat >>confdefs.h <<\_ACEOF
10944#define error_t int
10945_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010946
10947fi
10948
10949
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010950
10951
10952
10953
10954
Reid Spencera40c6872004-11-29 12:29:58 +000010955for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010956do
10957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10960if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10962else
10963 cat >conftest.$ac_ext <<_ACEOF
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10968/* end confdefs.h. */
10969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10971#define $ac_func innocuous_$ac_func
10972
10973/* System header to define __stub macros and hopefully few prototypes,
10974 which can conflict with char $ac_func (); below.
10975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976 <limits.h> exists even on freestanding compilers. */
10977
10978#ifdef __STDC__
10979# include <limits.h>
10980#else
10981# include <assert.h>
10982#endif
10983
10984#undef $ac_func
10985
10986/* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989#ifdef __cplusplus
10990extern "C"
10991#endif
10992char $ac_func ();
10993/* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996#if defined __stub_$ac_func || defined __stub___$ac_func
10997choke me
10998#endif
10999
11000int
11001main ()
11002{
11003return $ac_func ();
11004 ;
11005 return 0;
11006}
11007_ACEOF
11008rm -f conftest.$ac_objext conftest$ac_exeext
11009if { (ac_try="$ac_link"
11010case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013esac
11014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_link") 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11023 { (case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11026esac
11027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_try") 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest$ac_exeext'
11033 { (case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036esac
11037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_try") 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 eval "$as_ac_var=yes"
11043else
11044 echo "$as_me: failed program was:" >&5
11045sed 's/^/| /' conftest.$ac_ext >&5
11046
11047 eval "$as_ac_var=no"
11048fi
11049
11050rm -f core conftest.err conftest.$ac_objext \
11051 conftest$ac_exeext conftest.$ac_ext
11052fi
11053ac_res=`eval echo '${'$as_ac_var'}'`
11054 { echo "$as_me:$LINENO: result: $ac_res" >&5
11055echo "${ECHO_T}$ac_res" >&6; }
11056if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011057 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011059_ACEOF
11060
11061fi
11062done
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011083
11084
11085
11086
11087
11088
11089
11090
Reid Spencera40c6872004-11-29 12:29:58 +000011091for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11092 stdio.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011093do
11094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100fi
11101ac_res=`eval echo '${'$as_ac_Header'}'`
11102 { echo "$as_me:$LINENO: result: $ac_res" >&5
11103echo "${ECHO_T}$ac_res" >&6; }
11104else
11105 # Is the header compilable?
11106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114$ac_includes_default
11115#include <$ac_header>
11116_ACEOF
11117rm -f conftest.$ac_objext
11118if { (ac_try="$ac_compile"
11119case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_compile") 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_header_compiler=yes
11152else
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_header_compiler=no
11157fi
11158
11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11161echo "${ECHO_T}$ac_header_compiler" >&6; }
11162
11163# Is the header present?
11164{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11166cat >conftest.$ac_ext <<_ACEOF
11167/* confdefs.h. */
11168_ACEOF
11169cat confdefs.h >>conftest.$ac_ext
11170cat >>conftest.$ac_ext <<_ACEOF
11171/* end confdefs.h. */
11172#include <$ac_header>
11173_ACEOF
11174if { (ac_try="$ac_cpp conftest.$ac_ext"
11175case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } >/dev/null; then
11187 if test -s conftest.err; then
11188 ac_cpp_err=$ac_c_preproc_warn_flag
11189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11190 else
11191 ac_cpp_err=
11192 fi
11193else
11194 ac_cpp_err=yes
11195fi
11196if test -z "$ac_cpp_err"; then
11197 ac_header_preproc=yes
11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202 ac_header_preproc=no
11203fi
11204
11205rm -f conftest.err conftest.$ac_ext
11206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207echo "${ECHO_T}$ac_header_preproc" >&6; }
11208
11209# So? What about this header?
11210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 yes:no: )
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216 ac_header_preproc=yes
11217 ;;
11218 no:yes:* )
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011232## ------------------------------------ ##
11233## Report this to http://llvm.org/bugs/ ##
11234## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011235_ASBOX
11236 ) | sed "s/^/$as_me: WARNING: /" >&2
11237 ;;
11238esac
11239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 eval "$as_ac_Header=\$ac_header_preproc"
11245fi
11246ac_res=`eval echo '${'$as_ac_Header'}'`
11247 { echo "$as_me:$LINENO: result: $ac_res" >&5
11248echo "${ECHO_T}$ac_res" >&6; }
11249
11250fi
11251if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011252 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011254_ACEOF
11255
11256fi
11257
11258done
11259
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011260
11261
11262
11263
Reid Spencera40c6872004-11-29 12:29:58 +000011264for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011265do
11266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272fi
11273ac_res=`eval echo '${'$as_ac_Header'}'`
11274 { echo "$as_me:$LINENO: result: $ac_res" >&5
11275echo "${ECHO_T}$ac_res" >&6; }
11276else
11277 # Is the header compilable?
11278{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11280cat >conftest.$ac_ext <<_ACEOF
11281/* confdefs.h. */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h. */
11286$ac_includes_default
11287#include <$ac_header>
11288_ACEOF
11289rm -f conftest.$ac_objext
11290if { (ac_try="$ac_compile"
11291case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11304 { (case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307esac
11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_try") 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest.$ac_objext'
11314 { (case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11317esac
11318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_try") 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_header_compiler=yes
11324else
11325 echo "$as_me: failed program was:" >&5
11326sed 's/^/| /' conftest.$ac_ext >&5
11327
11328 ac_header_compiler=no
11329fi
11330
11331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11333echo "${ECHO_T}$ac_header_compiler" >&6; }
11334
11335# Is the header present?
11336{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11338cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344#include <$ac_header>
11345_ACEOF
11346if { (ac_try="$ac_cpp conftest.$ac_ext"
11347case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350esac
11351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null; then
11359 if test -s conftest.err; then
11360 ac_cpp_err=$ac_c_preproc_warn_flag
11361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11362 else
11363 ac_cpp_err=
11364 fi
11365else
11366 ac_cpp_err=yes
11367fi
11368if test -z "$ac_cpp_err"; then
11369 ac_header_preproc=yes
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 ac_header_preproc=no
11375fi
11376
11377rm -f conftest.err conftest.$ac_ext
11378{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11379echo "${ECHO_T}$ac_header_preproc" >&6; }
11380
11381# So? What about this header?
11382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 yes:no: )
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11388 ac_header_preproc=yes
11389 ;;
11390 no:yes:* )
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11394echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11398echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011404## ------------------------------------ ##
11405## Report this to http://llvm.org/bugs/ ##
11406## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011407_ASBOX
11408 ) | sed "s/^/$as_me: WARNING: /" >&2
11409 ;;
11410esac
11411{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415else
11416 eval "$as_ac_Header=\$ac_header_preproc"
11417fi
11418ac_res=`eval echo '${'$as_ac_Header'}'`
11419 { echo "$as_me:$LINENO: result: $ac_res" >&5
11420echo "${ECHO_T}$ac_res" >&6; }
11421
11422fi
11423if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011424 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011426_ACEOF
11427
11428fi
11429
11430done
11431
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011432
11433
Reid Spencera40c6872004-11-29 12:29:58 +000011434for ac_header in string.h strings.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011435do
11436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442fi
11443ac_res=`eval echo '${'$as_ac_Header'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445echo "${ECHO_T}$ac_res" >&6; }
11446else
11447 # Is the header compilable?
11448{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11450cat >conftest.$ac_ext <<_ACEOF
11451/* confdefs.h. */
11452_ACEOF
11453cat confdefs.h >>conftest.$ac_ext
11454cat >>conftest.$ac_ext <<_ACEOF
11455/* end confdefs.h. */
11456$ac_includes_default
11457#include <$ac_header>
11458_ACEOF
11459rm -f conftest.$ac_objext
11460if { (ac_try="$ac_compile"
11461case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464esac
11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474 { (case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_try") 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487esac
11488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_try") 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 ac_header_compiler=yes
11494else
11495 echo "$as_me: failed program was:" >&5
11496sed 's/^/| /' conftest.$ac_ext >&5
11497
11498 ac_header_compiler=no
11499fi
11500
11501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503echo "${ECHO_T}$ac_header_compiler" >&6; }
11504
11505# Is the header present?
11506{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11508cat >conftest.$ac_ext <<_ACEOF
11509/* confdefs.h. */
11510_ACEOF
11511cat confdefs.h >>conftest.$ac_ext
11512cat >>conftest.$ac_ext <<_ACEOF
11513/* end confdefs.h. */
11514#include <$ac_header>
11515_ACEOF
11516if { (ac_try="$ac_cpp conftest.$ac_ext"
11517case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11520esac
11521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null; then
11529 if test -s conftest.err; then
11530 ac_cpp_err=$ac_c_preproc_warn_flag
11531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11532 else
11533 ac_cpp_err=
11534 fi
11535else
11536 ac_cpp_err=yes
11537fi
11538if test -z "$ac_cpp_err"; then
11539 ac_header_preproc=yes
11540else
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 ac_header_preproc=no
11545fi
11546
11547rm -f conftest.err conftest.$ac_ext
11548{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11549echo "${ECHO_T}$ac_header_preproc" >&6; }
11550
11551# So? What about this header?
11552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553 yes:no: )
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11558 ac_header_preproc=yes
11559 ;;
11560 no:yes:* )
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11573 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011574## ------------------------------------ ##
11575## Report this to http://llvm.org/bugs/ ##
11576## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011577_ASBOX
11578 ) | sed "s/^/$as_me: WARNING: /" >&2
11579 ;;
11580esac
11581{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 eval "$as_ac_Header=\$ac_header_preproc"
11587fi
11588ac_res=`eval echo '${'$as_ac_Header'}'`
11589 { echo "$as_me:$LINENO: result: $ac_res" >&5
11590echo "${ECHO_T}$ac_res" >&6; }
11591
11592fi
11593if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011594 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011596_ACEOF
11597 break
11598fi
11599
11600done
11601
11602
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011603
11604
Reid Spencera40c6872004-11-29 12:29:58 +000011605for ac_func in strchr index
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011606do
11607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612else
11613 cat >conftest.$ac_ext <<_ACEOF
11614/* confdefs.h. */
11615_ACEOF
11616cat confdefs.h >>conftest.$ac_ext
11617cat >>conftest.$ac_ext <<_ACEOF
11618/* end confdefs.h. */
11619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11621#define $ac_func innocuous_$ac_func
11622
11623/* System header to define __stub macros and hopefully few prototypes,
11624 which can conflict with char $ac_func (); below.
11625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11626 <limits.h> exists even on freestanding compilers. */
11627
11628#ifdef __STDC__
11629# include <limits.h>
11630#else
11631# include <assert.h>
11632#endif
11633
11634#undef $ac_func
11635
11636/* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11639#ifdef __cplusplus
11640extern "C"
11641#endif
11642char $ac_func ();
11643/* The GNU C library defines this for functions which it implements
11644 to always fail with ENOSYS. Some functions are actually named
11645 something starting with __ and the normal name is an alias. */
11646#if defined __stub_$ac_func || defined __stub___$ac_func
11647choke me
11648#endif
11649
11650int
11651main ()
11652{
11653return $ac_func ();
11654 ;
11655 return 0;
11656}
11657_ACEOF
11658rm -f conftest.$ac_objext conftest$ac_exeext
11659if { (ac_try="$ac_link"
11660case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663esac
11664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_link") 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11673 { (case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676esac
11677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686esac
11687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_try") 2>&5
11689 ac_status=$?
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11692 eval "$as_ac_var=yes"
11693else
11694 echo "$as_me: failed program was:" >&5
11695sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 eval "$as_ac_var=no"
11698fi
11699
11700rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11702fi
11703ac_res=`eval echo '${'$as_ac_var'}'`
11704 { echo "$as_me:$LINENO: result: $ac_res" >&5
11705echo "${ECHO_T}$ac_res" >&6; }
11706if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011707 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011709_ACEOF
11710 break
11711fi
11712done
11713
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011714
11715
Reid Spencera40c6872004-11-29 12:29:58 +000011716for ac_func in strrchr rindex
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011717do
11718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11719{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11732#define $ac_func innocuous_$ac_func
11733
11734/* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char $ac_func (); below.
11736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737 <limits.h> exists even on freestanding compilers. */
11738
11739#ifdef __STDC__
11740# include <limits.h>
11741#else
11742# include <assert.h>
11743#endif
11744
11745#undef $ac_func
11746
11747/* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750#ifdef __cplusplus
11751extern "C"
11752#endif
11753char $ac_func ();
11754/* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757#if defined __stub_$ac_func || defined __stub___$ac_func
11758choke me
11759#endif
11760
11761int
11762main ()
11763{
11764return $ac_func ();
11765 ;
11766 return 0;
11767}
11768_ACEOF
11769rm -f conftest.$ac_objext conftest$ac_exeext
11770if { (ac_try="$ac_link"
11771case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_link") 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11784 { (case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787esac
11788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_try") 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 eval "$as_ac_var=yes"
11804else
11805 echo "$as_me: failed program was:" >&5
11806sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 eval "$as_ac_var=no"
11809fi
11810
11811rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11813fi
11814ac_res=`eval echo '${'$as_ac_var'}'`
11815 { echo "$as_me:$LINENO: result: $ac_res" >&5
11816echo "${ECHO_T}$ac_res" >&6; }
11817if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011818 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011820_ACEOF
11821 break
11822fi
11823done
11824
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011825
11826
Reid Spencera40c6872004-11-29 12:29:58 +000011827for ac_func in memcpy bcopy
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011828do
11829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11843#define $ac_func innocuous_$ac_func
11844
11845/* System header to define __stub macros and hopefully few prototypes,
11846 which can conflict with char $ac_func (); below.
11847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 <limits.h> exists even on freestanding compilers. */
11849
11850#ifdef __STDC__
11851# include <limits.h>
11852#else
11853# include <assert.h>
11854#endif
11855
11856#undef $ac_func
11857
11858/* Override any GCC internal prototype to avoid an error.
11859 Use char because int might match the return type of a GCC
11860 builtin and then its argument prototype would still apply. */
11861#ifdef __cplusplus
11862extern "C"
11863#endif
11864char $ac_func ();
11865/* The GNU C library defines this for functions which it implements
11866 to always fail with ENOSYS. Some functions are actually named
11867 something starting with __ and the normal name is an alias. */
11868#if defined __stub_$ac_func || defined __stub___$ac_func
11869choke me
11870#endif
11871
11872int
11873main ()
11874{
11875return $ac_func ();
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest.$ac_objext conftest$ac_exeext
11881if { (ac_try="$ac_link"
11882case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_link") 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11895 { (case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898esac
11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_try") 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest$ac_exeext'
11905 { (case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_try") 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 eval "$as_ac_var=yes"
11915else
11916 echo "$as_me: failed program was:" >&5
11917sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 eval "$as_ac_var=no"
11920fi
11921
11922rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924fi
11925ac_res=`eval echo '${'$as_ac_var'}'`
11926 { echo "$as_me:$LINENO: result: $ac_res" >&5
11927echo "${ECHO_T}$ac_res" >&6; }
11928if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011929 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011931_ACEOF
11932 break
11933fi
11934done
11935
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011936
11937
Reid Spencera40c6872004-11-29 12:29:58 +000011938for ac_func in memmove strcmp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011939do
11940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946 cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11954#define $ac_func innocuous_$ac_func
11955
11956/* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char $ac_func (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11960
11961#ifdef __STDC__
11962# include <limits.h>
11963#else
11964# include <assert.h>
11965#endif
11966
11967#undef $ac_func
11968
11969/* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11972#ifdef __cplusplus
11973extern "C"
11974#endif
11975char $ac_func ();
11976/* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979#if defined __stub_$ac_func || defined __stub___$ac_func
11980choke me
11981#endif
11982
11983int
11984main ()
11985{
11986return $ac_func ();
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext conftest$ac_exeext
11992if { (ac_try="$ac_link"
11993case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009esac
12010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019esac
12020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 eval "$as_ac_var=yes"
12026else
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 eval "$as_ac_var=no"
12031fi
12032
12033rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035fi
12036ac_res=`eval echo '${'$as_ac_var'}'`
12037 { echo "$as_me:$LINENO: result: $ac_res" >&5
12038echo "${ECHO_T}$ac_res" >&6; }
12039if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000012040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000012042_ACEOF
12043
12044fi
12045done
12046
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012047
12048
12049
Reid Spencera40c6872004-11-29 12:29:58 +000012050for ac_func in closedir opendir readdir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012051do
12052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 cat >conftest.$ac_ext <<_ACEOF
12059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
12064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066#define $ac_func innocuous_$ac_func
12067
12068/* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12072
12073#ifdef __STDC__
12074# include <limits.h>
12075#else
12076# include <assert.h>
12077#endif
12078
12079#undef $ac_func
12080
12081/* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12084#ifdef __cplusplus
12085extern "C"
12086#endif
12087char $ac_func ();
12088/* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091#if defined __stub_$ac_func || defined __stub___$ac_func
12092choke me
12093#endif
12094
12095int
12096main ()
12097{
12098return $ac_func ();
12099 ;
12100 return 0;
12101}
12102_ACEOF
12103rm -f conftest.$ac_objext conftest$ac_exeext
12104if { (ac_try="$ac_link"
12105case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108esac
12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121esac
12122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest$ac_exeext'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131esac
12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 eval "$as_ac_var=yes"
12138else
12139 echo "$as_me: failed program was:" >&5
12140sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 eval "$as_ac_var=no"
12143fi
12144
12145rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147fi
12148ac_res=`eval echo '${'$as_ac_var'}'`
12149 { echo "$as_me:$LINENO: result: $ac_res" >&5
12150echo "${ECHO_T}$ac_res" >&6; }
12151if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000012152 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000012154_ACEOF
12155
12156fi
12157done
12158
12159
Douglas Gregor15436612009-05-11 18:05:52 +000012160
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012161{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12162echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000012163
Reid Spencerca06c8e2004-12-08 23:07:27 +000012164ICC=no
12165IXX=no
12166case $CC in
12167 icc*|icpc*)
12168 ICC=yes
12169 IXX=yes
12170 ;;
12171 *)
12172 ;;
12173esac
12174
Duraid Madina8604de82006-02-15 07:57:42 +000012175if test "$GCC" != "yes" && test "$ICC" != "yes"
12176then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012177 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12178echo "$as_me: error: gcc|icc required but not found" >&2;}
12179 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +000012180fi
12181
12182if test "$GXX" != "yes" && test "$IXX" != "yes"
12183then
Eric Christopher8d842da2010-12-08 02:02:14 +000012184 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12185echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012186 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +000012187fi
12188
Reid Spencerca06c8e2004-12-08 23:07:27 +000012189if test "$GCC" = "yes"
12190then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012191 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000012192
12193 /* confdefs.h. */
12194_ACEOF
12195cat confdefs.h >>conftest.$ac_ext
12196cat >>conftest.$ac_ext <<_ACEOF
12197/* end confdefs.h. */
12198
12199 #if !defined(__GNUC__) || __GNUC__ < 3
12200 #error Unsupported GCC version
12201 #endif
12202
Chris Lattnere115fb52008-02-05 19:43:53 +000012203
12204_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012205rm -f conftest.$ac_objext
12206if { (ac_try="$ac_compile"
12207case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_compile") 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223esac
12224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest.$ac_objext'
12230 { (case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12233esac
12234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_try") 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 :
Chris Lattnere115fb52008-02-05 19:43:53 +000012240else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012241 echo "$as_me: failed program was:" >&5
12242sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12245echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12246 { (exit 1); exit 1; }; }
Chris Lattnere115fb52008-02-05 19:43:53 +000012247fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012248
Chris Lattnere115fb52008-02-05 19:43:53 +000012249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000012250fi
12251
12252if test -z "$llvm_cv_gnu_make_command"
12253then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012254 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12255echo "$as_me: error: GNU Make required but not found" >&2;}
12256 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +000012257fi
12258
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012259{ echo "$as_me:$LINENO: result: ok" >&5
12260echo "${ECHO_T}ok" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000012261
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012262{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12263echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithf89ffcd2013-02-08 22:55:10 +000012264NO_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 +000012265
Richard Smithf89ffcd2013-02-08 22:55:10 +000012266NO_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 +000012267
Richard Smithf89ffcd2013-02-08 22:55:10 +000012268NO_NESTED_ANON_TYPES=`$CXX -Werror -Wnested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types`
Richard Smith6c26e742013-01-31 22:19:12 +000012269
Rafael Espindola42e94d12012-02-28 23:32:06 +000012270COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12271
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000012272
12273NO_UNINITIALIZED=
12274NO_MAYBE_UNINITIALIZED=
David Greene9ff8d472013-01-09 22:11:13 +000012275if test "$GXX" = "yes"
12276then
Richard Smithf89ffcd2013-02-08 22:55:10 +000012277 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 +000012278
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000012279 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greene9ff8d472013-01-09 22:11:13 +000012280 then
Richard Smithf89ffcd2013-02-08 22:55:10 +000012281 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +000012282
David Greene9ff8d472013-01-09 22:11:13 +000012283 fi
David Greene9ff8d472013-01-09 22:11:13 +000012284fi
Richard Smith6c26e742013-01-31 22:19:12 +000012285{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12286echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
David Greene9ff8d472013-01-09 22:11:13 +000012287
Julien Lerougeb614dd32009-10-26 20:00:35 +000012288
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000012289# Check whether --with-python was given.
12290if test "${with_python+set}" = set; then
12291 withval=$with_python; PYTHON="$withval"
12292fi
12293
12294
12295if test -n "$PYTHON" && test -x "$PYTHON" ; then
12296 { echo "$as_me:$LINENO: checking for python" >&5
12297echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12298 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12299echo "${ECHO_T}user defined: $with_python" >&6; }
12300else
12301 if test -n "$PYTHON" ; then
12302 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12303echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12304 fi
12305
12306 # Extract the first word of "python python2 python26", so it can be a program name with args.
12307set dummy python python2 python26; ac_word=$2
12308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12310if test "${ac_cv_path_PYTHON+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312else
12313 case $PYTHON in
12314 [\\/]* | ?:[\\/]*)
12315 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12316 ;;
12317 *)
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319for as_dir in $PATH
12320do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12328 fi
12329done
12330done
12331IFS=$as_save_IFS
12332
12333 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12334echo "${ECHO_T}not found" >&6; }
12335 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12336echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12337 { (exit 1); exit 1; }; }"
12338 ;;
12339esac
12340fi
12341PYTHON=$ac_cv_path_PYTHON
12342if test -n "$PYTHON"; then
12343 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12344echo "${ECHO_T}$PYTHON" >&6; }
12345else
12346 { echo "$as_me:$LINENO: result: no" >&5
12347echo "${ECHO_T}no" >&6; }
12348fi
12349
12350
12351fi
12352
12353{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12354echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12355ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12356ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12357ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12358ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12359if test "$ac_python_version_major" -eq "2" \
12360 && test "$ac_python_version_minor" -ge "5" ; then
12361 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12362echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12363else
12364 { echo "$as_me:$LINENO: result: not found" >&5
12365echo "${ECHO_T}not found" >&6; }
12366 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12367See \`config.log' for more details." >&5
12368echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12369See \`config.log' for more details." >&2;}
12370 { (exit 1); exit 1; }; }
12371fi
12372
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000012373
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012374
12375{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12376echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12377if test "${ac_cv_lib_m_sin+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerec4a7f522006-01-19 08:31:08 +000012379else
12380 ac_check_lib_save_LIBS=$LIBS
12381LIBS="-lm $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012382cat >conftest.$ac_ext <<_ACEOF
12383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerec4a7f522006-01-19 08:31:08 +000012387/* end confdefs.h. */
12388
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012389/* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
Reid Spencerec4a7f522006-01-19 08:31:08 +000012392#ifdef __cplusplus
12393extern "C"
12394#endif
Reid Spencerec4a7f522006-01-19 08:31:08 +000012395char sin ();
12396int
12397main ()
12398{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012399return sin ();
Reid Spencerec4a7f522006-01-19 08:31:08 +000012400 ;
12401 return 0;
12402}
12403_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012404rm -f conftest.$ac_objext conftest$ac_exeext
12405if { (ac_try="$ac_link"
12406case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
Reid Spencerec4a7f522006-01-19 08:31:08 +000012438 ac_cv_lib_m_sin=yes
12439else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_cv_lib_m_sin=no
Reid Spencerec4a7f522006-01-19 08:31:08 +000012444fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012445
Bill Wendling02b47d92009-04-18 11:20:33 +000012446rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012447 conftest$ac_exeext conftest.$ac_ext
Reid Spencerec4a7f522006-01-19 08:31:08 +000012448LIBS=$ac_check_lib_save_LIBS
12449fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012450{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12451echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12452if test $ac_cv_lib_m_sin = yes; then
Reid Spencerec4a7f522006-01-19 08:31:08 +000012453 cat >>confdefs.h <<_ACEOF
12454#define HAVE_LIBM 1
12455_ACEOF
12456
12457 LIBS="-lm $LIBS"
12458
12459fi
12460
Jeff Cohenc5e5b272007-01-12 18:22:38 +000012461if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012462
12463{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12464echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12465if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +000012467else
12468 ac_check_lib_save_LIBS=$LIBS
12469LIBS="-limagehlp $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012470cat >conftest.$ac_ext <<_ACEOF
12471/* confdefs.h. */
12472_ACEOF
12473cat confdefs.h >>conftest.$ac_ext
12474cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +000012475/* end confdefs.h. */
12476
Reid Spencer187b4ad2006-06-01 19:03:21 +000012477
Reid Spencera16b9862006-06-01 16:55:59 +000012478int
12479main ()
12480{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012481return main ();
Reid Spencera16b9862006-06-01 16:55:59 +000012482 ;
12483 return 0;
12484}
12485_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012486rm -f conftest.$ac_objext conftest$ac_exeext
12487if { (ac_try="$ac_link"
12488case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12491esac
12492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_link") 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12501 { (case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12504esac
12505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_try") 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest$ac_exeext'
12511 { (case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12514esac
12515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_try") 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +000012520 ac_cv_lib_imagehlp_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +000012521else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012522 echo "$as_me: failed program was:" >&5
12523sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 ac_cv_lib_imagehlp_main=no
Reid Spencera16b9862006-06-01 16:55:59 +000012526fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012527
Bill Wendling02b47d92009-04-18 11:20:33 +000012528rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012529 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +000012530LIBS=$ac_check_lib_save_LIBS
12531fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012532{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12533echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12534if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +000012535 cat >>confdefs.h <<_ACEOF
12536#define HAVE_LIBIMAGEHLP 1
12537_ACEOF
12538
12539 LIBS="-limagehlp $LIBS"
12540
12541fi
12542
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012543
12544{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12545echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12546if test "${ac_cv_lib_psapi_main+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +000012548else
12549 ac_check_lib_save_LIBS=$LIBS
12550LIBS="-lpsapi $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012551cat >conftest.$ac_ext <<_ACEOF
12552/* confdefs.h. */
12553_ACEOF
12554cat confdefs.h >>conftest.$ac_ext
12555cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +000012556/* end confdefs.h. */
12557
Reid Spencer187b4ad2006-06-01 19:03:21 +000012558
Reid Spencera16b9862006-06-01 16:55:59 +000012559int
12560main ()
12561{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012562return main ();
Reid Spencera16b9862006-06-01 16:55:59 +000012563 ;
12564 return 0;
12565}
12566_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012567rm -f conftest.$ac_objext conftest$ac_exeext
12568if { (ac_try="$ac_link"
12569case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12572esac
12573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_link") 2>conftest.er1
12575 ac_status=$?
12576 grep -v '^ *+' conftest.er1 >conftest.err
12577 rm -f conftest.er1
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12582 { (case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585esac
12586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_try") 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest$ac_exeext'
12592 { (case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595esac
12596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_try") 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +000012601 ac_cv_lib_psapi_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +000012602else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012603 echo "$as_me: failed program was:" >&5
12604sed 's/^/| /' conftest.$ac_ext >&5
12605
12606 ac_cv_lib_psapi_main=no
Reid Spencera16b9862006-06-01 16:55:59 +000012607fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012608
Bill Wendling02b47d92009-04-18 11:20:33 +000012609rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012610 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +000012611LIBS=$ac_check_lib_save_LIBS
12612fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012613{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12614echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12615if test $ac_cv_lib_psapi_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +000012616 cat >>confdefs.h <<_ACEOF
12617#define HAVE_LIBPSAPI 1
12618_ACEOF
12619
12620 LIBS="-lpsapi $LIBS"
12621
12622fi
12623
12624fi
Reid Spencer1aa7d052005-07-12 15:24:20 +000012625
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012626{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12627echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12628if test "${ac_cv_search_dlopen+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000012630else
12631 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012632cat >conftest.$ac_ext <<_ACEOF
12633/* confdefs.h. */
12634_ACEOF
12635cat confdefs.h >>conftest.$ac_ext
12636cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000012637/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000012638
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012639/* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +000012642#ifdef __cplusplus
12643extern "C"
12644#endif
John Criswell3ef61af2003-06-30 21:59:07 +000012645char dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +000012646int
12647main ()
12648{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012649return dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +000012650 ;
12651 return 0;
12652}
12653_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012654for ac_lib in '' dl; do
12655 if test -z "$ac_lib"; then
12656 ac_res="none required"
12657 else
12658 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +000012659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012660 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012661 rm -f conftest.$ac_objext conftest$ac_exeext
12662if { (ac_try="$ac_link"
12663case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666esac
12667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12679esac
12680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12689esac
12690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012695 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012696else
12697 echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
12700
John Criswell3ef61af2003-06-30 21:59:07 +000012701fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012702
Bill Wendling02b47d92009-04-18 11:20:33 +000012703rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012704 conftest$ac_exeext
12705 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012706 break
John Criswell3ef61af2003-06-30 21:59:07 +000012707fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012708done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012709if test "${ac_cv_search_dlopen+set}" = set; then
12710 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012711else
12712 ac_cv_search_dlopen=no
12713fi
12714rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000012715LIBS=$ac_func_search_save_LIBS
12716fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012717{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12718echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012719ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012720if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +000012722
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012723cat >>confdefs.h <<\_ACEOF
12724#define HAVE_DLOPEN 1
12725_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000012726
12727else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012728 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12729echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000012730fi
12731
12732
Chandler Carruthef7f9682013-01-04 23:19:55 +000012733{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12734echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12735if test "${ac_cv_search_clock_gettime+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737else
12738 ac_func_search_save_LIBS=$LIBS
12739cat >conftest.$ac_ext <<_ACEOF
12740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745
12746/* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749#ifdef __cplusplus
12750extern "C"
12751#endif
12752char clock_gettime ();
12753int
12754main ()
12755{
12756return clock_gettime ();
12757 ;
12758 return 0;
12759}
12760_ACEOF
12761for ac_lib in '' rt; do
12762 if test -z "$ac_lib"; then
12763 ac_res="none required"
12764 else
12765 ac_res=-l$ac_lib
12766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12767 fi
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769if { (ac_try="$ac_link"
12770case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773esac
12774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_link") 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786esac
12787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_search_clock_gettime=$ac_res
12803else
12804 echo "$as_me: failed program was:" >&5
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
12807
12808fi
12809
12810rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext
12812 if test "${ac_cv_search_clock_gettime+set}" = set; then
12813 break
12814fi
12815done
12816if test "${ac_cv_search_clock_gettime+set}" = set; then
12817 :
12818else
12819 ac_cv_search_clock_gettime=no
12820fi
12821rm conftest.$ac_ext
12822LIBS=$ac_func_search_save_LIBS
12823fi
12824{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12825echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12826ac_res=$ac_cv_search_clock_gettime
12827if test "$ac_res" != no; then
12828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12829
Chandler Carruthef7f9682013-01-04 23:19:55 +000012830fi
12831
12832
Nick Lewycky86679902009-06-06 06:25:09 +000012833if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012834 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12835echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12836if test "${ac_cv_search_ffi_call+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky11e92142009-02-04 06:27:44 +000012838else
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012839 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012840cat >conftest.$ac_ext <<_ACEOF
12841/* confdefs.h. */
12842_ACEOF
12843cat confdefs.h >>conftest.$ac_ext
12844cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000012845/* end confdefs.h. */
12846
12847/* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12850#ifdef __cplusplus
12851extern "C"
12852#endif
12853char ffi_call ();
12854int
12855main ()
12856{
12857return ffi_call ();
12858 ;
12859 return 0;
12860}
12861_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012862for ac_lib in '' ffi; do
12863 if test -z "$ac_lib"; then
12864 ac_res="none required"
12865 else
12866 ac_res=-l$ac_lib
12867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12868 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012869 rm -f conftest.$ac_objext conftest$ac_exeext
12870if { (ac_try="$ac_link"
12871case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12874esac
12875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_link") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897esac
12898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012903 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012904else
12905 echo "$as_me: failed program was:" >&5
12906sed 's/^/| /' conftest.$ac_ext >&5
12907
12908
Nick Lewycky11e92142009-02-04 06:27:44 +000012909fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012910
Bill Wendling02b47d92009-04-18 11:20:33 +000012911rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012912 conftest$ac_exeext
12913 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012914 break
Nick Lewycky11e92142009-02-04 06:27:44 +000012915fi
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012916done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012917if test "${ac_cv_search_ffi_call+set}" = set; then
12918 :
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012919else
12920 ac_cv_search_ffi_call=no
12921fi
12922rm conftest.$ac_ext
12923LIBS=$ac_func_search_save_LIBS
12924fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012925{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12926echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012927ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012928if test "$ac_res" != no; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12930
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012931cat >>confdefs.h <<\_ACEOF
12932#define HAVE_FFI_CALL 1
12933_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012934
Nick Lewycky11e92142009-02-04 06:27:44 +000012935else
Jeffrey Yasskin914050b2010-02-09 23:03:44 +000012936 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12937echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12938 { (exit 1); exit 1; }; }
Nick Lewycky11e92142009-02-04 06:27:44 +000012939fi
12940
Nick Lewycky86679902009-06-06 06:25:09 +000012941fi
Nick Lewycky11e92142009-02-04 06:27:44 +000012942
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012943{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12944echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12945if test "${ac_cv_search_mallinfo+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000012947else
12948 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012949cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000012954/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000012955
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012956/* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +000012959#ifdef __cplusplus
12960extern "C"
12961#endif
John Criswell3ef61af2003-06-30 21:59:07 +000012962char mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +000012963int
12964main ()
12965{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012966return mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +000012967 ;
12968 return 0;
12969}
12970_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012971for ac_lib in '' malloc; do
12972 if test -z "$ac_lib"; then
12973 ac_res="none required"
12974 else
12975 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +000012976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012977 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012978 rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (ac_try="$ac_link"
12980case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12983esac
12984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996esac
12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006esac
13007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013012 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013013else
13014 echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017
John Criswell3ef61af2003-06-30 21:59:07 +000013018fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013019
Bill Wendling02b47d92009-04-18 11:20:33 +000013020rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013021 conftest$ac_exeext
13022 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013023 break
John Criswell3ef61af2003-06-30 21:59:07 +000013024fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013025done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013026if test "${ac_cv_search_mallinfo+set}" = set; then
13027 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013028else
13029 ac_cv_search_mallinfo=no
13030fi
13031rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000013032LIBS=$ac_func_search_save_LIBS
13033fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013034{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13035echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013036ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013037if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +000013039
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013040cat >>confdefs.h <<\_ACEOF
13041#define HAVE_MALLINFO 1
13042_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000013043
13044fi
13045
13046
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000013047if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013048
13049{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13050echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13051if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer1aa7d052005-07-12 15:24:20 +000013053else
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013054 ac_check_lib_save_LIBS=$LIBS
13055LIBS="-lpthread $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013056cat >conftest.$ac_ext <<_ACEOF
13057/* confdefs.h. */
13058_ACEOF
13059cat confdefs.h >>conftest.$ac_ext
13060cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +000013061/* end confdefs.h. */
13062
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013063/* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
Reid Spencer1aa7d052005-07-12 15:24:20 +000013066#ifdef __cplusplus
13067extern "C"
13068#endif
Reid Spencer1aa7d052005-07-12 15:24:20 +000013069char pthread_mutex_init ();
13070int
13071main ()
13072{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013073return pthread_mutex_init ();
Reid Spencer1aa7d052005-07-12 15:24:20 +000013074 ;
13075 return 0;
13076}
13077_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013078rm -f conftest.$ac_objext conftest$ac_exeext
13079if { (ac_try="$ac_link"
13080case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_link") 2>conftest.er1
13086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13093 { (case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096esac
13097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_try") 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; } &&
13102 { ac_try='test -s conftest$ac_exeext'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013112 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer1aa7d052005-07-12 15:24:20 +000013113else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013114 echo "$as_me: failed program was:" >&5
13115sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer1aa7d052005-07-12 15:24:20 +000013118fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013119
Bill Wendling02b47d92009-04-18 11:20:33 +000013120rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013121 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013122LIBS=$ac_check_lib_save_LIBS
Reid Spencer1aa7d052005-07-12 15:24:20 +000013123fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013124{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13125echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13126if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013127 cat >>confdefs.h <<_ACEOF
13128#define HAVE_LIBPTHREAD 1
Edward O'Callaghana5314b82009-10-13 01:01:38 +000013129_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +000013130
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013131 LIBS="-lpthread $LIBS"
13132
Reid Spencer1aa7d052005-07-12 15:24:20 +000013133fi
13134
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013135 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13136echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13137if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013139else
13140 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013141cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013146/* end confdefs.h. */
13147
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013148/* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013151#ifdef __cplusplus
13152extern "C"
13153#endif
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013154char pthread_mutex_lock ();
13155int
13156main ()
13157{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013158return pthread_mutex_lock ();
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013159 ;
13160 return 0;
13161}
13162_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013163for ac_lib in '' pthread; do
13164 if test -z "$ac_lib"; then
13165 ac_res="none required"
13166 else
13167 ac_res=-l$ac_lib
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013169 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013170 rm -f conftest.$ac_objext conftest$ac_exeext
13171if { (ac_try="$ac_link"
13172case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175esac
13176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188esac
13189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_try") 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013204 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013205else
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
13209
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013210fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013211
Bill Wendling02b47d92009-04-18 11:20:33 +000013212rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013213 conftest$ac_exeext
13214 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013215 break
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013216fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013217done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013218if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13219 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013220else
13221 ac_cv_search_pthread_mutex_lock=no
13222fi
13223rm conftest.$ac_ext
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013224LIBS=$ac_func_search_save_LIBS
13225fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013226{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13227echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013228ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013229if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013231
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013232cat >>confdefs.h <<\_ACEOF
13233#define HAVE_PTHREAD_MUTEX_LOCK 1
13234_ACEOF
John Criswell71c8d5e2004-09-24 21:19:06 +000013235
13236fi
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013237
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013238 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13239echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13240if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersona149e222009-06-16 18:20:20 +000013242else
13243 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013244cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000013249/* end confdefs.h. */
13250
13251/* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13254#ifdef __cplusplus
13255extern "C"
13256#endif
13257char pthread_rwlock_init ();
13258int
13259main ()
13260{
13261return pthread_rwlock_init ();
13262 ;
13263 return 0;
13264}
13265_ACEOF
13266for ac_lib in '' pthread; do
13267 if test -z "$ac_lib"; then
13268 ac_res="none required"
13269 else
13270 ac_res=-l$ac_lib
13271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13272 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013273 rm -f conftest.$ac_objext conftest$ac_exeext
13274if { (ac_try="$ac_link"
13275case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278esac
13279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291esac
13292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301esac
13302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
Owen Andersona149e222009-06-16 18:20:20 +000013307 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312
Owen Andersona149e222009-06-16 18:20:20 +000013313fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013314
Owen Andersona149e222009-06-16 18:20:20 +000013315rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013316 conftest$ac_exeext
13317 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersona149e222009-06-16 18:20:20 +000013318 break
13319fi
13320done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013321if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13322 :
Owen Andersona149e222009-06-16 18:20:20 +000013323else
13324 ac_cv_search_pthread_rwlock_init=no
13325fi
13326rm conftest.$ac_ext
13327LIBS=$ac_func_search_save_LIBS
13328fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013329{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13330echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersona149e222009-06-16 18:20:20 +000013331ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013332if test "$ac_res" != no; then
Owen Andersona149e222009-06-16 18:20:20 +000013333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13334
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013335cat >>confdefs.h <<\_ACEOF
13336#define HAVE_PTHREAD_RWLOCK_INIT 1
13337_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000013338
13339fi
13340
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013341 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13342echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13343if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson11549832009-06-25 23:10:26 +000013345else
13346 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013347cat >conftest.$ac_ext <<_ACEOF
13348/* confdefs.h. */
13349_ACEOF
13350cat confdefs.h >>conftest.$ac_ext
13351cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000013352/* end confdefs.h. */
13353
13354/* Override any GCC internal prototype to avoid an error.
13355 Use char because int might match the return type of a GCC
13356 builtin and then its argument prototype would still apply. */
13357#ifdef __cplusplus
13358extern "C"
13359#endif
13360char pthread_getspecific ();
13361int
13362main ()
13363{
13364return pthread_getspecific ();
13365 ;
13366 return 0;
13367}
13368_ACEOF
13369for ac_lib in '' pthread; do
13370 if test -z "$ac_lib"; then
13371 ac_res="none required"
13372 else
13373 ac_res=-l$ac_lib
13374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13375 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013376 rm -f conftest.$ac_objext conftest$ac_exeext
13377if { (ac_try="$ac_link"
13378case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381esac
13382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_link") 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13391 { (case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13394esac
13395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_try") 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try='test -s conftest$ac_exeext'
13401 { (case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404esac
13405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_try") 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
Owen Anderson11549832009-06-25 23:10:26 +000013410 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013411else
13412 echo "$as_me: failed program was:" >&5
13413sed 's/^/| /' conftest.$ac_ext >&5
13414
13415
Owen Anderson11549832009-06-25 23:10:26 +000013416fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013417
Owen Anderson11549832009-06-25 23:10:26 +000013418rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013419 conftest$ac_exeext
13420 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson11549832009-06-25 23:10:26 +000013421 break
13422fi
13423done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013424if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13425 :
Owen Anderson11549832009-06-25 23:10:26 +000013426else
13427 ac_cv_search_pthread_getspecific=no
13428fi
13429rm conftest.$ac_ext
13430LIBS=$ac_func_search_save_LIBS
13431fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013432{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13433echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson11549832009-06-25 23:10:26 +000013434ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013435if test "$ac_res" != no; then
Owen Anderson11549832009-06-25 23:10:26 +000013436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13437
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013438cat >>confdefs.h <<\_ACEOF
13439#define HAVE_PTHREAD_GETSPECIFIC 1
13440_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000013441
13442fi
13443
Reid Spencerf85fabeb2005-08-24 10:07:20 +000013444fi
Brian Gaeked3de6c02004-02-23 21:30:37 +000013445
Reid Spencer0241e382004-11-25 04:51:04 +000013446
Reid Spencere5f3de32007-01-19 17:41:47 +000013447# Check whether --with-udis86 was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013448if test "${with_udis86+set}" = set; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013449 withval=$with_udis86;
13450 USE_UDIS86=1
13451
13452 case "$withval" in
Reid Spencerdfda0612007-01-20 07:48:49 +000013453 /usr/lib|yes) ;;
Reid Spencere5f3de32007-01-19 17:41:47 +000013454 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13455 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013456
13457{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13458echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13459if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencere5f3de32007-01-19 17:41:47 +000013461else
13462 ac_check_lib_save_LIBS=$LIBS
13463LIBS="-ludis86 $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013464cat >conftest.$ac_ext <<_ACEOF
13465/* confdefs.h. */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
Reid Spencere5f3de32007-01-19 17:41:47 +000013469/* end confdefs.h. */
13470
13471/* Override any GCC internal prototype to avoid an error.
13472 Use char because int might match the return type of a GCC
13473 builtin and then its argument prototype would still apply. */
13474#ifdef __cplusplus
13475extern "C"
13476#endif
13477char ud_init ();
13478int
13479main ()
13480{
13481return ud_init ();
13482 ;
13483 return 0;
13484}
13485_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013486rm -f conftest.$ac_objext conftest$ac_exeext
13487if { (ac_try="$ac_link"
13488case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491esac
13492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_link") 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest$ac_exeext'
13511 { (case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514esac
13515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_try") 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013520 ac_cv_lib_udis86_ud_init=yes
13521else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013522 echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 ac_cv_lib_udis86_ud_init=no
Reid Spencere5f3de32007-01-19 17:41:47 +000013526fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013527
Bill Wendling02b47d92009-04-18 11:20:33 +000013528rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013529 conftest$ac_exeext conftest.$ac_ext
Reid Spencere5f3de32007-01-19 17:41:47 +000013530LIBS=$ac_check_lib_save_LIBS
13531fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013532{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13533echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13534if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013535 cat >>confdefs.h <<_ACEOF
13536#define HAVE_LIBUDIS86 1
13537_ACEOF
13538
13539 LIBS="-ludis86 $LIBS"
13540
13541else
13542
13543 echo "Error! You need to have libudis86 around."
13544 exit -1
13545
13546fi
13547
13548
13549else
13550 USE_UDIS86=0
13551
13552fi
13553
13554
13555cat >>confdefs.h <<_ACEOF
13556#define USE_UDIS86 $USE_UDIS86
13557_ACEOF
13558
13559
13560
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013561# Check whether --with-oprofile was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013562if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013563 withval=$with_oprofile;
13564 USE_OPROFILE=1
13565
13566 case "$withval" in
13567 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013568 no) llvm_cv_oppath=
13569 USE_OPROFILE=0
13570 ;;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013571 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher46342fe2012-08-03 17:45:31 +000013572 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013573 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000013574 case $llvm_cv_os_type in
13575 Linux)
13576 if test -n "$llvm_cv_oppath" ; then
13577 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13578 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013579echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13580if test "${ac_cv_search_bfd_init+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013582else
13583 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013584cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013589/* end confdefs.h. */
13590
13591/* Override any GCC internal prototype to avoid an error.
13592 Use char because int might match the return type of a GCC
13593 builtin and then its argument prototype would still apply. */
13594#ifdef __cplusplus
13595extern "C"
13596#endif
13597char bfd_init ();
13598int
13599main ()
13600{
13601return bfd_init ();
13602 ;
13603 return 0;
13604}
13605_ACEOF
13606for ac_lib in '' bfd; do
13607 if test -z "$ac_lib"; then
13608 ac_res="none required"
13609 else
13610 ac_res=-l$ac_lib
13611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13612 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013613 rm -f conftest.$ac_objext conftest$ac_exeext
13614if { (ac_try="$ac_link"
13615case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13618esac
13619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_link") 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628 { (case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631esac
13632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_try") 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; } &&
13637 { ac_try='test -s conftest$ac_exeext'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641esac
13642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013647 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013648else
13649 echo "$as_me: failed program was:" >&5
13650sed 's/^/| /' conftest.$ac_ext >&5
13651
13652
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013653fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013654
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013655rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013656 conftest$ac_exeext
13657 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013658 break
13659fi
13660done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013661if test "${ac_cv_search_bfd_init+set}" = set; then
13662 :
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013663else
13664 ac_cv_search_bfd_init=no
13665fi
13666rm conftest.$ac_ext
13667LIBS=$ac_func_search_save_LIBS
13668fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013669{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13670echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013671ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013672if test "$ac_res" != no; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13674
13675fi
13676
Eli Bendersky5262ad22012-03-13 08:33:15 +000013677 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013678echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13679if test "${ac_cv_search_op_open_agent+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013681else
13682 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013688/* end confdefs.h. */
13689
13690/* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693#ifdef __cplusplus
13694extern "C"
13695#endif
13696char op_open_agent ();
13697int
13698main ()
13699{
13700return op_open_agent ();
13701 ;
13702 return 0;
13703}
13704_ACEOF
13705for ac_lib in '' opagent; do
13706 if test -z "$ac_lib"; then
13707 ac_res="none required"
13708 else
13709 ac_res=-l$ac_lib
13710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13711 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013712 rm -f conftest.$ac_objext conftest$ac_exeext
13713if { (ac_try="$ac_link"
13714case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717esac
13718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_link") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013746 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013747else
13748 echo "$as_me: failed program was:" >&5
13749sed 's/^/| /' conftest.$ac_ext >&5
13750
13751
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013752fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013753
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013754rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013755 conftest$ac_exeext
13756 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013757 break
13758fi
13759done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013760if test "${ac_cv_search_op_open_agent+set}" = set; then
13761 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013762else
13763 ac_cv_search_op_open_agent=no
13764fi
13765rm conftest.$ac_ext
13766LIBS=$ac_func_search_save_LIBS
13767fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013768{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13769echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013770ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013771if test "$ac_res" != no; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13773
13774else
13775
Eli Bendersky5262ad22012-03-13 08:33:15 +000013776 echo "Error! You need to have libopagent around."
13777 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013778
13779fi
13780
Eli Bendersky5262ad22012-03-13 08:33:15 +000013781 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013782 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13783echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13784if test "${ac_cv_header_opagent_h+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786fi
13787{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13788echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13789else
13790 # Is the header compilable?
13791{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13792echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13793cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799$ac_includes_default
13800#include <opagent.h>
13801_ACEOF
13802rm -f conftest.$ac_objext
13803if { (ac_try="$ac_compile"
13804case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807esac
13808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_compile") 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820esac
13821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_header_compiler=yes
13837else
13838 echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013840
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013841 ac_header_compiler=no
13842fi
13843
13844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13846echo "${ECHO_T}$ac_header_compiler" >&6; }
13847
13848# Is the header present?
13849{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13850echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13851cat >conftest.$ac_ext <<_ACEOF
13852/* confdefs.h. */
13853_ACEOF
13854cat confdefs.h >>conftest.$ac_ext
13855cat >>conftest.$ac_ext <<_ACEOF
13856/* end confdefs.h. */
13857#include <opagent.h>
13858_ACEOF
13859if { (ac_try="$ac_cpp conftest.$ac_ext"
13860case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13863esac
13864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } >/dev/null; then
13872 if test -s conftest.err; then
13873 ac_cpp_err=$ac_c_preproc_warn_flag
13874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13875 else
13876 ac_cpp_err=
13877 fi
13878else
13879 ac_cpp_err=yes
13880fi
13881if test -z "$ac_cpp_err"; then
13882 ac_header_preproc=yes
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 ac_header_preproc=no
13888fi
13889
13890rm -f conftest.err conftest.$ac_ext
13891{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13892echo "${ECHO_T}$ac_header_preproc" >&6; }
13893
13894# So? What about this header?
13895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13896 yes:no: )
13897 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13898echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13899 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13900echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13901 ac_header_preproc=yes
13902 ;;
13903 no:yes:* )
13904 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13905echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13907echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13908 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13909echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13911echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13913echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13914 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13915echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13916 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013917## ------------------------------------ ##
13918## Report this to http://llvm.org/bugs/ ##
13919## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013920_ASBOX
13921 ) | sed "s/^/$as_me: WARNING: /" >&2
13922 ;;
13923esac
13924{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13925echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13926if test "${ac_cv_header_opagent_h+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928else
13929 ac_cv_header_opagent_h=$ac_header_preproc
13930fi
13931{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13932echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13933
13934fi
13935if test $ac_cv_header_opagent_h = yes; then
13936 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013937else
13938
Eli Bendersky5262ad22012-03-13 08:33:15 +000013939 echo "Error! You need to have opagent.h around."
13940 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013941
13942fi
13943
13944
Eli Bendersky5262ad22012-03-13 08:33:15 +000013945 fi ;;
13946 *)
13947 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13948echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13949 { (exit 1); exit 1; }; } ;;
13950 esac
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013951
13952else
13953
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013954 USE_OPROFILE=0
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013955
13956
13957fi
13958
13959
13960cat >>confdefs.h <<_ACEOF
Eli Bendersky5262ad22012-03-13 08:33:15 +000013961#define LLVM_USE_OPROFILE $USE_OPROFILE
13962_ACEOF
13963
13964
13965
13966# Check whether --with-intel-jitevents was given.
13967if test "${with_intel_jitevents+set}" = set; then
13968 withval=$with_intel_jitevents;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000013969 case "$withval" in
13970 yes) USE_INTEL_JITEVENTS=1
13971;;
13972 no) USE_INTEL_JITEVENTS=0
13973;;
13974 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13975echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13976 { (exit 1); exit 1; }; };;
13977 esac
13978
Eli Bendersky5262ad22012-03-13 08:33:15 +000013979 case $llvm_cv_os_type in
13980 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000013981 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13982echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13983 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000013984 esac
13985
Eli Bendersky5262ad22012-03-13 08:33:15 +000013986 case "$llvm_cv_target_arch" in
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000013987 x86|x86_64) ;;
13988 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13989echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13990 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000013991 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000013992
13993else
13994
13995 USE_INTEL_JITEVENTS=0
13996
13997
13998fi
13999
14000
14001cat >>confdefs.h <<_ACEOF
14002#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014003_ACEOF
14004
14005
Eric Christopherc807c532012-08-03 19:47:19 +000014006for ac_prog in xml2-config
14007do
14008 # Extract the first word of "$ac_prog", so it can be a program name with args.
14009set dummy $ac_prog; ac_word=$2
14010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14012if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014else
14015 if test -n "$XML2CONFIG"; then
14016 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14017else
14018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019for as_dir in $PATH
14020do
14021 IFS=$as_save_IFS
14022 test -z "$as_dir" && as_dir=.
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14025 ac_cv_prog_XML2CONFIG="$ac_prog"
14026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 break 2
14028 fi
14029done
14030done
14031IFS=$as_save_IFS
14032
14033fi
14034fi
14035XML2CONFIG=$ac_cv_prog_XML2CONFIG
14036if test -n "$XML2CONFIG"; then
14037 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14038echo "${ECHO_T}$XML2CONFIG" >&6; }
14039else
14040 { echo "$as_me:$LINENO: result: no" >&5
14041echo "${ECHO_T}no" >&6; }
14042fi
14043
14044
14045 test -n "$XML2CONFIG" && break
14046done
14047
14048
14049{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14050echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14051if test "x$XML2CONFIG" = "x"; then
14052 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14053echo "${ECHO_T}xml2-config not found" >&6; }
14054else
14055 LIBXML2_INC=`$XML2CONFIG --cflags`
14056 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14057echo "${ECHO_T}$LIBXML2_INC" >&6; }
14058 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14059echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14060if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063 ac_check_lib_save_LIBS=$LIBS
14064LIBS="-lxml2 $LIBS"
14065cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
14071
14072/* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14075#ifdef __cplusplus
14076extern "C"
14077#endif
14078char xmlReadFile ();
14079int
14080main ()
14081{
14082return xmlReadFile ();
14083 ;
14084 return 0;
14085}
14086_ACEOF
14087rm -f conftest.$ac_objext conftest$ac_exeext
14088if { (ac_try="$ac_link"
14089case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092esac
14093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_link") 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14102 { (case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105esac
14106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_try") 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest$ac_exeext'
14112 { (case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14115esac
14116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_try") 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_cv_lib_xml2_xmlReadFile=yes
14122else
14123 echo "$as_me: failed program was:" >&5
14124sed 's/^/| /' conftest.$ac_ext >&5
14125
14126 ac_cv_lib_xml2_xmlReadFile=no
14127fi
14128
14129rm -f core conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14131LIBS=$ac_check_lib_save_LIBS
14132fi
14133{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14134echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14135if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14136
14137cat >>confdefs.h <<\_ACEOF
14138#define CLANG_HAVE_LIBXML 1
14139_ACEOF
14140
14141 LIBXML2_LIBS="-lxml2"
14142fi
14143
14144fi
14145
14146
14147
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014148
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014149
14150
14151
14152
14153
Reid Spencer8bc110c2004-12-25 07:31:29 +000014154ac_header_dirent=no
14155for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014156 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14157{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14158echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014161else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014162 cat >conftest.$ac_ext <<_ACEOF
14163/* confdefs.h. */
14164_ACEOF
14165cat confdefs.h >>conftest.$ac_ext
14166cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014167/* end confdefs.h. */
14168#include <sys/types.h>
14169#include <$ac_hdr>
14170
14171int
14172main ()
14173{
14174if ((DIR *) 0)
14175return 0;
14176 ;
14177 return 0;
14178}
14179_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014180rm -f conftest.$ac_objext
14181if { (ac_try="$ac_compile"
14182case "(($ac_try" in
14183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14185esac
14186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14187 (eval "$ac_compile") 2>conftest.er1
14188 ac_status=$?
14189 grep -v '^ *+' conftest.er1 >conftest.err
14190 rm -f conftest.er1
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14195 { (case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198esac
14199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_try") 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest.$ac_objext'
14205 { (case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208esac
14209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_try") 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014214 eval "$as_ac_Header=yes"
14215else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014216 echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
14218
14219 eval "$as_ac_Header=no"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014220fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014221
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014223fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014224ac_res=`eval echo '${'$as_ac_Header'}'`
14225 { echo "$as_me:$LINENO: result: $ac_res" >&5
14226echo "${ECHO_T}$ac_res" >&6; }
14227if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014228 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014229#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000014230_ACEOF
14231
14232ac_header_dirent=$ac_hdr; break
14233fi
14234
14235done
14236# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14237if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014238 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14239echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14240if test "${ac_cv_search_opendir+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014242else
14243 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014244cat >conftest.$ac_ext <<_ACEOF
14245/* confdefs.h. */
14246_ACEOF
14247cat confdefs.h >>conftest.$ac_ext
14248cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014249/* end confdefs.h. */
14250
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014251/* Override any GCC internal prototype to avoid an error.
14252 Use char because int might match the return type of a GCC
14253 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000014254#ifdef __cplusplus
14255extern "C"
14256#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014257char opendir ();
14258int
14259main ()
14260{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014261return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000014262 ;
14263 return 0;
14264}
14265_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014266for ac_lib in '' dir; do
14267 if test -z "$ac_lib"; then
14268 ac_res="none required"
14269 else
14270 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000014271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014272 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014273 rm -f conftest.$ac_objext conftest$ac_exeext
14274if { (ac_try="$ac_link"
14275case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278esac
14279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_link") 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14288 { (case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14291esac
14292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_try") 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; } &&
14297 { ac_try='test -s conftest$ac_exeext'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301esac
14302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014307 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014308else
14309 echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312
Reid Spencer8bc110c2004-12-25 07:31:29 +000014313fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014314
Bill Wendling02b47d92009-04-18 11:20:33 +000014315rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014316 conftest$ac_exeext
14317 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014318 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000014319fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014320done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014321if test "${ac_cv_search_opendir+set}" = set; then
14322 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014323else
14324 ac_cv_search_opendir=no
14325fi
14326rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014327LIBS=$ac_func_search_save_LIBS
14328fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014329{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14330echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014331ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014332if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014334
14335fi
14336
14337else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014338 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14339echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14340if test "${ac_cv_search_opendir+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014342else
14343 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014344cat >conftest.$ac_ext <<_ACEOF
14345/* confdefs.h. */
14346_ACEOF
14347cat confdefs.h >>conftest.$ac_ext
14348cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014349/* end confdefs.h. */
14350
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014351/* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000014354#ifdef __cplusplus
14355extern "C"
14356#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014357char opendir ();
14358int
14359main ()
14360{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014361return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000014362 ;
14363 return 0;
14364}
14365_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014366for ac_lib in '' x; do
14367 if test -z "$ac_lib"; then
14368 ac_res="none required"
14369 else
14370 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000014371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014372 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014373 rm -f conftest.$ac_objext conftest$ac_exeext
14374if { (ac_try="$ac_link"
14375case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14378esac
14379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14380 (eval "$ac_link") 2>conftest.er1
14381 ac_status=$?
14382 grep -v '^ *+' conftest.er1 >conftest.err
14383 rm -f conftest.er1
14384 cat conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14388 { (case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391esac
14392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_try") 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest$ac_exeext'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014407 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014408else
14409 echo "$as_me: failed program was:" >&5
14410sed 's/^/| /' conftest.$ac_ext >&5
14411
14412
Reid Spencer8bc110c2004-12-25 07:31:29 +000014413fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014414
Bill Wendling02b47d92009-04-18 11:20:33 +000014415rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014416 conftest$ac_exeext
14417 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014418 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000014419fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014420done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014421if test "${ac_cv_search_opendir+set}" = set; then
14422 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014423else
14424 ac_cv_search_opendir=no
14425fi
14426rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014427LIBS=$ac_func_search_save_LIBS
14428fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014429{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14430echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014431ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014432if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014434
14435fi
14436
14437fi
14438
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014439{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14440echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14441if test "${ac_cv_header_mmap_anon+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014443else
14444 ac_ext=c
14445ac_cpp='$CPP $CPPFLAGS'
14446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14448ac_compiler_gnu=$ac_cv_c_compiler_gnu
14449
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014450 cat >conftest.$ac_ext <<_ACEOF
14451/* confdefs.h. */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014455/* end confdefs.h. */
14456#include <sys/mman.h>
14457#include <unistd.h>
14458#include <fcntl.h>
14459int
14460main ()
14461{
14462mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14463 ;
14464 return 0;
14465}
14466_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014467rm -f conftest.$ac_objext
14468if { (ac_try="$ac_compile"
14469case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14472esac
14473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_compile") 2>conftest.er1
14475 ac_status=$?
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014501 ac_cv_header_mmap_anon=yes
14502else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014503 echo "$as_me: failed program was:" >&5
14504sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 ac_cv_header_mmap_anon=no
Reid Spencer8bc110c2004-12-25 07:31:29 +000014507fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014508
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014510 ac_ext=c
14511ac_cpp='$CPP $CPPFLAGS'
14512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514ac_compiler_gnu=$ac_cv_c_compiler_gnu
14515
14516
14517fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014518{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14519echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000014520if test "$ac_cv_header_mmap_anon" = yes; then
14521
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014522cat >>confdefs.h <<\_ACEOF
14523#define HAVE_MMAP_ANONYMOUS 1
14524_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014525
14526fi
14527
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014528{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14529echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14530if test "${ac_cv_header_stat_broken+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014532else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014533 cat >conftest.$ac_ext <<_ACEOF
14534/* confdefs.h. */
14535_ACEOF
14536cat confdefs.h >>conftest.$ac_ext
14537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014538/* end confdefs.h. */
14539#include <sys/types.h>
14540#include <sys/stat.h>
14541
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014542#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014543# if S_ISBLK (S_IFDIR)
14544You lose.
14545# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014546#endif
14547
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014548#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014549# if S_ISBLK (S_IFCHR)
14550You lose.
14551# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014552#endif
14553
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014554#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014555# if S_ISLNK (S_IFREG)
14556You lose.
14557# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014558#endif
14559
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014560#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014561# if S_ISSOCK (S_IFREG)
14562You lose.
14563# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014564#endif
14565
14566_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14568 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwinaec06332010-01-26 08:50:50 +000014569 ac_cv_header_stat_broken=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014570else
14571 ac_cv_header_stat_broken=no
Mikhail Glushenkov4308aa52009-04-18 09:59:26 +000014572fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014573rm -f conftest*
14574
Reid Spencer8bc110c2004-12-25 07:31:29 +000014575fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014576{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14577echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000014578if test $ac_cv_header_stat_broken = yes; then
14579
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014580cat >>confdefs.h <<\_ACEOF
14581#define STAT_MACROS_BROKEN 1
14582_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014583
14584fi
14585
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014586{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14587echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14588if test "${ac_cv_header_sys_wait_h+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000014590else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014591 cat >conftest.$ac_ext <<_ACEOF
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000014596/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000014597#include <sys/types.h>
14598#include <sys/wait.h>
14599#ifndef WEXITSTATUS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014600# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell3ef61af2003-06-30 21:59:07 +000014601#endif
14602#ifndef WIFEXITED
14603# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14604#endif
14605
John Criswell3ef61af2003-06-30 21:59:07 +000014606int
14607main ()
14608{
14609 int s;
14610 wait (&s);
14611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14612 ;
14613 return 0;
14614}
14615_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014616rm -f conftest.$ac_objext
14617if { (ac_try="$ac_compile"
14618case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621esac
14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_compile") 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14631 { (case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14634esac
14635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_try") 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest.$ac_objext'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
14645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000014650 ac_cv_header_sys_wait_h=yes
14651else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014652 echo "$as_me: failed program was:" >&5
14653sed 's/^/| /' conftest.$ac_ext >&5
14654
14655 ac_cv_header_sys_wait_h=no
John Criswell3ef61af2003-06-30 21:59:07 +000014656fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014657
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000014659fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014660{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14661echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000014662if test $ac_cv_header_sys_wait_h = yes; then
14663
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014664cat >>confdefs.h <<\_ACEOF
14665#define HAVE_SYS_WAIT_H 1
14666_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000014667
14668fi
14669
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014670{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14671echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14672if test "${ac_cv_header_time+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014674else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014675 cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h. */
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014680/* end confdefs.h. */
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014681#include <sys/types.h>
Reid Spencer0241e382004-11-25 04:51:04 +000014682#include <sys/time.h>
14683#include <time.h>
14684
14685int
14686main ()
14687{
14688if ((struct tm *) 0)
14689return 0;
14690 ;
14691 return 0;
14692}
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014693_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014694rm -f conftest.$ac_objext
14695if { (ac_try="$ac_compile"
14696case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699esac
14700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_compile") 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14709 { (case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14712esac
14713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_try") 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14722esac
14723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724 (eval "$ac_try") 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000014728 ac_cv_header_time=yes
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014729else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014730 echo "$as_me: failed program was:" >&5
14731sed 's/^/| /' conftest.$ac_ext >&5
14732
14733 ac_cv_header_time=no
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014734fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014735
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000014737fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014738{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14739echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000014740if test $ac_cv_header_time = yes; then
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014741
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014742cat >>confdefs.h <<\_ACEOF
14743#define TIME_WITH_SYS_TIME 1
14744_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014745
14746fi
14747
Reid Spencer0241e382004-11-25 04:51:04 +000014748
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014749
14750
14751
14752
14753
14754
Reid Spencer8bc110c2004-12-25 07:31:29 +000014755for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014756do
14757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14763fi
14764ac_res=`eval echo '${'$as_ac_Header'}'`
14765 { echo "$as_me:$LINENO: result: $ac_res" >&5
14766echo "${ECHO_T}$ac_res" >&6; }
14767else
14768 # Is the header compilable?
14769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14771cat >conftest.$ac_ext <<_ACEOF
14772/* confdefs.h. */
14773_ACEOF
14774cat confdefs.h >>conftest.$ac_ext
14775cat >>conftest.$ac_ext <<_ACEOF
14776/* end confdefs.h. */
14777$ac_includes_default
14778#include <$ac_header>
14779_ACEOF
14780rm -f conftest.$ac_objext
14781if { (ac_try="$ac_compile"
14782case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785esac
14786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_compile") 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14795 { (case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798esac
14799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_try") 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808esac
14809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_try") 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 ac_header_compiler=yes
14815else
14816 echo "$as_me: failed program was:" >&5
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_header_compiler=no
14820fi
14821
14822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824echo "${ECHO_T}$ac_header_compiler" >&6; }
14825
14826# Is the header present?
14827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14829cat >conftest.$ac_ext <<_ACEOF
14830/* confdefs.h. */
14831_ACEOF
14832cat confdefs.h >>conftest.$ac_ext
14833cat >>conftest.$ac_ext <<_ACEOF
14834/* end confdefs.h. */
14835#include <$ac_header>
14836_ACEOF
14837if { (ac_try="$ac_cpp conftest.$ac_ext"
14838case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841esac
14842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } >/dev/null; then
14850 if test -s conftest.err; then
14851 ac_cpp_err=$ac_c_preproc_warn_flag
14852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14853 else
14854 ac_cpp_err=
14855 fi
14856else
14857 ac_cpp_err=yes
14858fi
14859if test -z "$ac_cpp_err"; then
14860 ac_header_preproc=yes
14861else
14862 echo "$as_me: failed program was:" >&5
14863sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 ac_header_preproc=no
14866fi
14867
14868rm -f conftest.err conftest.$ac_ext
14869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14870echo "${ECHO_T}$ac_header_preproc" >&6; }
14871
14872# So? What about this header?
14873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14874 yes:no: )
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14879 ac_header_preproc=yes
14880 ;;
14881 no:yes:* )
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14894 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000014895## ------------------------------------ ##
14896## Report this to http://llvm.org/bugs/ ##
14897## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014898_ASBOX
14899 ) | sed "s/^/$as_me: WARNING: /" >&2
14900 ;;
14901esac
14902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906else
14907 eval "$as_ac_Header=\$ac_header_preproc"
14908fi
14909ac_res=`eval echo '${'$as_ac_Header'}'`
14910 { echo "$as_me:$LINENO: result: $ac_res" >&5
14911echo "${ECHO_T}$ac_res" >&6; }
14912
14913fi
14914if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014915 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0241e382004-11-25 04:51:04 +000014917_ACEOF
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014918
14919fi
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014920
Reid Spencer8bc110c2004-12-25 07:31:29 +000014921done
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014922
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014923
14924
14925
14926
14927
14928
Douglas Gregorb81294d2009-05-18 17:21:34 +000014929for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014930do
14931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937fi
14938ac_res=`eval echo '${'$as_ac_Header'}'`
14939 { echo "$as_me:$LINENO: result: $ac_res" >&5
14940echo "${ECHO_T}$ac_res" >&6; }
14941else
14942 # Is the header compilable?
14943{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14945cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h. */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h. */
14951$ac_includes_default
14952#include <$ac_header>
14953_ACEOF
14954rm -f conftest.$ac_objext
14955if { (ac_try="$ac_compile"
14956case "(($ac_try" in
14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14959esac
14960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961 (eval "$ac_compile") 2>conftest.er1
14962 ac_status=$?
14963 grep -v '^ *+' conftest.er1 >conftest.err
14964 rm -f conftest.er1
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
14968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14969 { (case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972esac
14973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_try") 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
14979 { (case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982esac
14983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_try") 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_header_compiler=yes
14989else
14990 echo "$as_me: failed program was:" >&5
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
14993 ac_header_compiler=no
14994fi
14995
14996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14998echo "${ECHO_T}$ac_header_compiler" >&6; }
14999
15000# Is the header present?
15001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15003cat >conftest.$ac_ext <<_ACEOF
15004/* confdefs.h. */
15005_ACEOF
15006cat confdefs.h >>conftest.$ac_ext
15007cat >>conftest.$ac_ext <<_ACEOF
15008/* end confdefs.h. */
15009#include <$ac_header>
15010_ACEOF
15011if { (ac_try="$ac_cpp conftest.$ac_ext"
15012case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015esac
15016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } >/dev/null; then
15024 if test -s conftest.err; then
15025 ac_cpp_err=$ac_c_preproc_warn_flag
15026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15027 else
15028 ac_cpp_err=
15029 fi
15030else
15031 ac_cpp_err=yes
15032fi
15033if test -z "$ac_cpp_err"; then
15034 ac_header_preproc=yes
15035else
15036 echo "$as_me: failed program was:" >&5
15037sed 's/^/| /' conftest.$ac_ext >&5
15038
15039 ac_header_preproc=no
15040fi
15041
15042rm -f conftest.err conftest.$ac_ext
15043{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15044echo "${ECHO_T}$ac_header_preproc" >&6; }
15045
15046# So? What about this header?
15047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15048 yes:no: )
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15053 ac_header_preproc=yes
15054 ;;
15055 no:yes:* )
15056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15068 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015069## ------------------------------------ ##
15070## Report this to http://llvm.org/bugs/ ##
15071## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015072_ASBOX
15073 ) | sed "s/^/$as_me: WARNING: /" >&2
15074 ;;
15075esac
15076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15080else
15081 eval "$as_ac_Header=\$ac_header_preproc"
15082fi
15083ac_res=`eval echo '${'$as_ac_Header'}'`
15084 { echo "$as_me:$LINENO: result: $ac_res" >&5
15085echo "${ECHO_T}$ac_res" >&6; }
15086
15087fi
15088if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000015089 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000015091_ACEOF
15092
15093fi
15094
15095done
15096
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015097
15098
Douglas Gregorb81294d2009-05-18 17:21:34 +000015099for ac_header in utime.h windows.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015100do
15101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107fi
15108ac_res=`eval echo '${'$as_ac_Header'}'`
15109 { echo "$as_me:$LINENO: result: $ac_res" >&5
15110echo "${ECHO_T}$ac_res" >&6; }
15111else
15112 # Is the header compilable?
15113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15115cat >conftest.$ac_ext <<_ACEOF
15116/* confdefs.h. */
15117_ACEOF
15118cat confdefs.h >>conftest.$ac_ext
15119cat >>conftest.$ac_ext <<_ACEOF
15120/* end confdefs.h. */
15121$ac_includes_default
15122#include <$ac_header>
15123_ACEOF
15124rm -f conftest.$ac_objext
15125if { (ac_try="$ac_compile"
15126case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129esac
15130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_compile") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142esac
15143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152esac
15153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_header_compiler=yes
15159else
15160 echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
15163 ac_header_compiler=no
15164fi
15165
15166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15168echo "${ECHO_T}$ac_header_compiler" >&6; }
15169
15170# Is the header present?
15171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15173cat >conftest.$ac_ext <<_ACEOF
15174/* confdefs.h. */
15175_ACEOF
15176cat confdefs.h >>conftest.$ac_ext
15177cat >>conftest.$ac_ext <<_ACEOF
15178/* end confdefs.h. */
15179#include <$ac_header>
15180_ACEOF
15181if { (ac_try="$ac_cpp conftest.$ac_ext"
15182case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185esac
15186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15188 ac_status=$?
15189 grep -v '^ *+' conftest.er1 >conftest.err
15190 rm -f conftest.er1
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } >/dev/null; then
15194 if test -s conftest.err; then
15195 ac_cpp_err=$ac_c_preproc_warn_flag
15196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15197 else
15198 ac_cpp_err=
15199 fi
15200else
15201 ac_cpp_err=yes
15202fi
15203if test -z "$ac_cpp_err"; then
15204 ac_header_preproc=yes
15205else
15206 echo "$as_me: failed program was:" >&5
15207sed 's/^/| /' conftest.$ac_ext >&5
15208
15209 ac_header_preproc=no
15210fi
15211
15212rm -f conftest.err conftest.$ac_ext
15213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15214echo "${ECHO_T}$ac_header_preproc" >&6; }
15215
15216# So? What about this header?
15217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15218 yes:no: )
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15223 ac_header_preproc=yes
15224 ;;
15225 no:yes:* )
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15238 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015239## ------------------------------------ ##
15240## Report this to http://llvm.org/bugs/ ##
15241## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015242_ASBOX
15243 ) | sed "s/^/$as_me: WARNING: /" >&2
15244 ;;
15245esac
15246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15250else
15251 eval "$as_ac_Header=\$ac_header_preproc"
15252fi
15253ac_res=`eval echo '${'$as_ac_Header'}'`
15254 { echo "$as_me:$LINENO: result: $ac_res" >&5
15255echo "${ECHO_T}$ac_res" >&6; }
15256
15257fi
15258if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000015259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000015261_ACEOF
15262
15263fi
15264
15265done
Reid Spencer8bc110c2004-12-25 07:31:29 +000015266
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015267
15268
15269
15270
Daniel Dunbar7840c542011-02-03 02:40:02 +000015271
15272for 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 +000015273do
15274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
15280fi
15281ac_res=`eval echo '${'$as_ac_Header'}'`
15282 { echo "$as_me:$LINENO: result: $ac_res" >&5
15283echo "${ECHO_T}$ac_res" >&6; }
15284else
15285 # Is the header compilable?
15286{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15288cat >conftest.$ac_ext <<_ACEOF
15289/* confdefs.h. */
15290_ACEOF
15291cat confdefs.h >>conftest.$ac_ext
15292cat >>conftest.$ac_ext <<_ACEOF
15293/* end confdefs.h. */
15294$ac_includes_default
15295#include <$ac_header>
15296_ACEOF
15297rm -f conftest.$ac_objext
15298if { (ac_try="$ac_compile"
15299case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315esac
15316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_header_compiler=yes
15332else
15333 echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ac_header_compiler=no
15337fi
15338
15339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15341echo "${ECHO_T}$ac_header_compiler" >&6; }
15342
15343# Is the header present?
15344{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15346cat >conftest.$ac_ext <<_ACEOF
15347/* confdefs.h. */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
15351/* end confdefs.h. */
15352#include <$ac_header>
15353_ACEOF
15354if { (ac_try="$ac_cpp conftest.$ac_ext"
15355case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358esac
15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } >/dev/null; then
15367 if test -s conftest.err; then
15368 ac_cpp_err=$ac_c_preproc_warn_flag
15369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15370 else
15371 ac_cpp_err=
15372 fi
15373else
15374 ac_cpp_err=yes
15375fi
15376if test -z "$ac_cpp_err"; then
15377 ac_header_preproc=yes
15378else
15379 echo "$as_me: failed program was:" >&5
15380sed 's/^/| /' conftest.$ac_ext >&5
15381
15382 ac_header_preproc=no
15383fi
15384
15385rm -f conftest.err conftest.$ac_ext
15386{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15387echo "${ECHO_T}$ac_header_preproc" >&6; }
15388
15389# So? What about this header?
15390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15391 yes:no: )
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15393echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15395echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15396 ac_header_preproc=yes
15397 ;;
15398 no:yes:* )
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15400echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15402echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15404echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15406echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15410echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15411 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015412## ------------------------------------ ##
15413## Report this to http://llvm.org/bugs/ ##
15414## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015415_ASBOX
15416 ) | sed "s/^/$as_me: WARNING: /" >&2
15417 ;;
15418esac
15419{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15423else
15424 eval "$as_ac_Header=\$ac_header_preproc"
15425fi
15426ac_res=`eval echo '${'$as_ac_Header'}'`
15427 { echo "$as_me:$LINENO: result: $ac_res" >&5
15428echo "${ECHO_T}$ac_res" >&6; }
15429
15430fi
15431if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000015432 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswellb92c7c22004-07-19 16:12:29 +000015434_ACEOF
John Criswellb92c7c22004-07-19 16:12:29 +000015435
15436fi
John Criswellb92c7c22004-07-19 16:12:29 +000015437
Reid Spencer0241e382004-11-25 04:51:04 +000015438done
15439
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015440
15441
15442
15443
Douglas Gregor15436612009-05-11 18:05:52 +000015444for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015445do
15446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452fi
15453ac_res=`eval echo '${'$as_ac_Header'}'`
15454 { echo "$as_me:$LINENO: result: $ac_res" >&5
15455echo "${ECHO_T}$ac_res" >&6; }
15456else
15457 # Is the header compilable?
15458{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15459echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15460cat >conftest.$ac_ext <<_ACEOF
15461/* confdefs.h. */
15462_ACEOF
15463cat confdefs.h >>conftest.$ac_ext
15464cat >>conftest.$ac_ext <<_ACEOF
15465/* end confdefs.h. */
15466$ac_includes_default
15467#include <$ac_header>
15468_ACEOF
15469rm -f conftest.$ac_objext
15470if { (ac_try="$ac_compile"
15471case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15474esac
15475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_compile") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15484 { (case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487esac
15488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_try") 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_header_compiler=yes
15504else
15505 echo "$as_me: failed program was:" >&5
15506sed 's/^/| /' conftest.$ac_ext >&5
15507
15508 ac_header_compiler=no
15509fi
15510
15511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15512{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15513echo "${ECHO_T}$ac_header_compiler" >&6; }
15514
15515# Is the header present?
15516{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15518cat >conftest.$ac_ext <<_ACEOF
15519/* confdefs.h. */
15520_ACEOF
15521cat confdefs.h >>conftest.$ac_ext
15522cat >>conftest.$ac_ext <<_ACEOF
15523/* end confdefs.h. */
15524#include <$ac_header>
15525_ACEOF
15526if { (ac_try="$ac_cpp conftest.$ac_ext"
15527case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15530esac
15531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } >/dev/null; then
15539 if test -s conftest.err; then
15540 ac_cpp_err=$ac_c_preproc_warn_flag
15541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15542 else
15543 ac_cpp_err=
15544 fi
15545else
15546 ac_cpp_err=yes
15547fi
15548if test -z "$ac_cpp_err"; then
15549 ac_header_preproc=yes
15550else
15551 echo "$as_me: failed program was:" >&5
15552sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 ac_header_preproc=no
15555fi
15556
15557rm -f conftest.err conftest.$ac_ext
15558{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15559echo "${ECHO_T}$ac_header_preproc" >&6; }
15560
15561# So? What about this header?
15562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15563 yes:no: )
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15568 ac_header_preproc=yes
15569 ;;
15570 no:yes:* )
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15583 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015584## ------------------------------------ ##
15585## Report this to http://llvm.org/bugs/ ##
15586## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015587_ASBOX
15588 ) | sed "s/^/$as_me: WARNING: /" >&2
15589 ;;
15590esac
15591{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595else
15596 eval "$as_ac_Header=\$ac_header_preproc"
15597fi
15598ac_res=`eval echo '${'$as_ac_Header'}'`
15599 { echo "$as_me:$LINENO: result: $ac_res" >&5
15600echo "${ECHO_T}$ac_res" >&6; }
15601
15602fi
15603if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner973917a2005-11-14 06:57:34 +000015604 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner973917a2005-11-14 06:57:34 +000015606_ACEOF
15607
15608fi
15609
15610done
15611
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000015612
15613for ac_header in valgrind/valgrind.h
15614do
15615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621fi
15622ac_res=`eval echo '${'$as_ac_Header'}'`
15623 { echo "$as_me:$LINENO: result: $ac_res" >&5
15624echo "${ECHO_T}$ac_res" >&6; }
15625else
15626 # Is the header compilable?
15627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15629cat >conftest.$ac_ext <<_ACEOF
15630/* confdefs.h. */
15631_ACEOF
15632cat confdefs.h >>conftest.$ac_ext
15633cat >>conftest.$ac_ext <<_ACEOF
15634/* end confdefs.h. */
15635$ac_includes_default
15636#include <$ac_header>
15637_ACEOF
15638rm -f conftest.$ac_objext
15639if { (ac_try="$ac_compile"
15640case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15643esac
15644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_compile") 2>conftest.er1
15646 ac_status=$?
15647 grep -v '^ *+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15653 { (case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656esac
15657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_try") 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666esac
15667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_try") 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_header_compiler=yes
15673else
15674 echo "$as_me: failed program was:" >&5
15675sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 ac_header_compiler=no
15678fi
15679
15680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15682echo "${ECHO_T}$ac_header_compiler" >&6; }
15683
15684# Is the header present?
15685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15687cat >conftest.$ac_ext <<_ACEOF
15688/* confdefs.h. */
15689_ACEOF
15690cat confdefs.h >>conftest.$ac_ext
15691cat >>conftest.$ac_ext <<_ACEOF
15692/* end confdefs.h. */
15693#include <$ac_header>
15694_ACEOF
15695if { (ac_try="$ac_cpp conftest.$ac_ext"
15696case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699esac
15700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } >/dev/null; then
15708 if test -s conftest.err; then
15709 ac_cpp_err=$ac_c_preproc_warn_flag
15710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15711 else
15712 ac_cpp_err=
15713 fi
15714else
15715 ac_cpp_err=yes
15716fi
15717if test -z "$ac_cpp_err"; then
15718 ac_header_preproc=yes
15719else
15720 echo "$as_me: failed program was:" >&5
15721sed 's/^/| /' conftest.$ac_ext >&5
15722
15723 ac_header_preproc=no
15724fi
15725
15726rm -f conftest.err conftest.$ac_ext
15727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728echo "${ECHO_T}$ac_header_preproc" >&6; }
15729
15730# So? What about this header?
15731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15732 yes:no: )
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737 ac_header_preproc=yes
15738 ;;
15739 no:yes:* )
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15752 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015753## ------------------------------------ ##
15754## Report this to http://llvm.org/bugs/ ##
15755## ------------------------------------ ##
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000015756_ASBOX
15757 ) | sed "s/^/$as_me: WARNING: /" >&2
15758 ;;
15759esac
15760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764else
15765 eval "$as_ac_Header=\$ac_header_preproc"
15766fi
15767ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769echo "${ECHO_T}$ac_res" >&6; }
15770
15771fi
15772if test `eval echo '${'$as_ac_Header'}'` = yes; then
15773 cat >>confdefs.h <<_ACEOF
15774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15775_ACEOF
15776
15777fi
15778
15779done
15780
Dan Gohmandf257772010-09-17 20:08:35 +000015781
15782for ac_header in fenv.h
15783do
15784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790fi
15791ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793echo "${ECHO_T}$ac_res" >&6; }
15794else
15795 # Is the header compilable?
15796{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15798cat >conftest.$ac_ext <<_ACEOF
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804$ac_includes_default
15805#include <$ac_header>
15806_ACEOF
15807rm -f conftest.$ac_objext
15808if { (ac_try="$ac_compile"
15809case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15812esac
15813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15822 { (case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15825esac
15826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_try") 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15835esac
15836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_try") 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 ac_header_compiler=yes
15842else
15843 echo "$as_me: failed program was:" >&5
15844sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 ac_header_compiler=no
15847fi
15848
15849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15851echo "${ECHO_T}$ac_header_compiler" >&6; }
15852
15853# Is the header present?
15854{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15856cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h. */
15862#include <$ac_header>
15863_ACEOF
15864if { (ac_try="$ac_cpp conftest.$ac_ext"
15865case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868esac
15869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } >/dev/null; then
15877 if test -s conftest.err; then
15878 ac_cpp_err=$ac_c_preproc_warn_flag
15879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15880 else
15881 ac_cpp_err=
15882 fi
15883else
15884 ac_cpp_err=yes
15885fi
15886if test -z "$ac_cpp_err"; then
15887 ac_header_preproc=yes
15888else
15889 echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892 ac_header_preproc=no
15893fi
15894
15895rm -f conftest.err conftest.$ac_ext
15896{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15897echo "${ECHO_T}$ac_header_preproc" >&6; }
15898
15899# So? What about this header?
15900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15901 yes:no: )
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15906 ac_header_preproc=yes
15907 ;;
15908 no:yes:* )
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15921 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015922## ------------------------------------ ##
15923## Report this to http://llvm.org/bugs/ ##
15924## ------------------------------------ ##
Dan Gohmandf257772010-09-17 20:08:35 +000015925_ASBOX
15926 ) | sed "s/^/$as_me: WARNING: /" >&2
15927 ;;
15928esac
15929{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15933else
15934 eval "$as_ac_Header=\$ac_header_preproc"
15935fi
15936ac_res=`eval echo '${'$as_ac_Header'}'`
15937 { echo "$as_me:$LINENO: result: $ac_res" >&5
15938echo "${ECHO_T}$ac_res" >&6; }
15939
15940fi
15941if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15944_ACEOF
15945
15946fi
15947
15948done
15949
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000015950if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015951
15952for ac_header in pthread.h
15953do
15954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960fi
15961ac_res=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963echo "${ECHO_T}$ac_res" >&6; }
15964else
15965 # Is the header compilable?
15966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974$ac_includes_default
15975#include <$ac_header>
15976_ACEOF
15977rm -f conftest.$ac_objext
15978if { (ac_try="$ac_compile"
15979case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982esac
15983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_compile") 2>conftest.er1
15985 ac_status=$?
15986 grep -v '^ *+' conftest.er1 >conftest.err
15987 rm -f conftest.er1
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992 { (case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995esac
15996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_try") 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005esac
16006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_header_compiler=yes
16012else
16013 echo "$as_me: failed program was:" >&5
16014sed 's/^/| /' conftest.$ac_ext >&5
16015
16016 ac_header_compiler=no
16017fi
16018
16019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16021echo "${ECHO_T}$ac_header_compiler" >&6; }
16022
16023# Is the header present?
16024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16026cat >conftest.$ac_ext <<_ACEOF
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032#include <$ac_header>
16033_ACEOF
16034if { (ac_try="$ac_cpp conftest.$ac_ext"
16035case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } >/dev/null; then
16047 if test -s conftest.err; then
16048 ac_cpp_err=$ac_c_preproc_warn_flag
16049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16050 else
16051 ac_cpp_err=
16052 fi
16053else
16054 ac_cpp_err=yes
16055fi
16056if test -z "$ac_cpp_err"; then
16057 ac_header_preproc=yes
16058else
16059 echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 ac_header_preproc=no
16063fi
16064
16065rm -f conftest.err conftest.$ac_ext
16066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067echo "${ECHO_T}$ac_header_preproc" >&6; }
16068
16069# So? What about this header?
16070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071 yes:no: )
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076 ac_header_preproc=yes
16077 ;;
16078 no:yes:* )
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16091 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016092## ------------------------------------ ##
16093## Report this to http://llvm.org/bugs/ ##
16094## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016095_ASBOX
16096 ) | sed "s/^/$as_me: WARNING: /" >&2
16097 ;;
16098esac
16099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103else
16104 eval "$as_ac_Header=\$ac_header_preproc"
16105fi
16106ac_res=`eval echo '${'$as_ac_Header'}'`
16107 { echo "$as_me:$LINENO: result: $ac_res" >&5
16108echo "${ECHO_T}$ac_res" >&6; }
16109
16110fi
16111if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000016112 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000016114_ACEOF
16115 HAVE_PTHREAD=1
Reid Spencerd4399922006-12-01 00:37:14 +000016116
16117else
16118 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000016119
16120fi
16121
Reid Spencerb8135562007-08-17 05:45:26 +000016122done
Reid Spencerd4399922006-12-01 00:37:14 +000016123
16124else
16125 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000016126
16127fi
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000016128
Nick Lewycky86679902009-06-06 06:25:09 +000016129if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016130
16131
16132for ac_header in ffi.h ffi/ffi.h
16133do
16134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140fi
16141ac_res=`eval echo '${'$as_ac_Header'}'`
16142 { echo "$as_me:$LINENO: result: $ac_res" >&5
16143echo "${ECHO_T}$ac_res" >&6; }
16144else
16145 # Is the header compilable?
16146{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16148cat >conftest.$ac_ext <<_ACEOF
16149/* confdefs.h. */
16150_ACEOF
16151cat confdefs.h >>conftest.$ac_ext
16152cat >>conftest.$ac_ext <<_ACEOF
16153/* end confdefs.h. */
16154$ac_includes_default
16155#include <$ac_header>
16156_ACEOF
16157rm -f conftest.$ac_objext
16158if { (ac_try="$ac_compile"
16159case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
16163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_compile") 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175esac
16176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_header_compiler=yes
16192else
16193 echo "$as_me: failed program was:" >&5
16194sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 ac_header_compiler=no
16197fi
16198
16199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16201echo "${ECHO_T}$ac_header_compiler" >&6; }
16202
16203# Is the header present?
16204{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16206cat >conftest.$ac_ext <<_ACEOF
16207/* confdefs.h. */
16208_ACEOF
16209cat confdefs.h >>conftest.$ac_ext
16210cat >>conftest.$ac_ext <<_ACEOF
16211/* end confdefs.h. */
16212#include <$ac_header>
16213_ACEOF
16214if { (ac_try="$ac_cpp conftest.$ac_ext"
16215case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16218esac
16219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16221 ac_status=$?
16222 grep -v '^ *+' conftest.er1 >conftest.err
16223 rm -f conftest.er1
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } >/dev/null; then
16227 if test -s conftest.err; then
16228 ac_cpp_err=$ac_c_preproc_warn_flag
16229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16230 else
16231 ac_cpp_err=
16232 fi
16233else
16234 ac_cpp_err=yes
16235fi
16236if test -z "$ac_cpp_err"; then
16237 ac_header_preproc=yes
16238else
16239 echo "$as_me: failed program was:" >&5
16240sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 ac_header_preproc=no
16243fi
16244
16245rm -f conftest.err conftest.$ac_ext
16246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16247echo "${ECHO_T}$ac_header_preproc" >&6; }
16248
16249# So? What about this header?
16250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16251 yes:no: )
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16256 ac_header_preproc=yes
16257 ;;
16258 no:yes:* )
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16271 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016272## ------------------------------------ ##
16273## Report this to http://llvm.org/bugs/ ##
16274## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016275_ASBOX
16276 ) | sed "s/^/$as_me: WARNING: /" >&2
16277 ;;
16278esac
16279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16283else
16284 eval "$as_ac_Header=\$ac_header_preproc"
16285fi
16286ac_res=`eval echo '${'$as_ac_Header'}'`
16287 { echo "$as_me:$LINENO: result: $ac_res" >&5
16288echo "${ECHO_T}$ac_res" >&6; }
16289
16290fi
16291if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky11e92142009-02-04 06:27:44 +000016292 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky11e92142009-02-04 06:27:44 +000016294_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000016295
16296fi
16297
16298done
16299
Nick Lewycky86679902009-06-06 06:25:09 +000016300fi
Nick Lewycky11e92142009-02-04 06:27:44 +000016301
Nick Lewyckyc94134d2009-01-20 00:52:24 +000016302
Eric Christophere9c1bb62010-06-22 21:01:04 +000016303for ac_header in CrashReporterClient.h
16304do
16305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311fi
16312ac_res=`eval echo '${'$as_ac_Header'}'`
16313 { echo "$as_me:$LINENO: result: $ac_res" >&5
16314echo "${ECHO_T}$ac_res" >&6; }
16315else
16316 # Is the header compilable?
16317{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16319cat >conftest.$ac_ext <<_ACEOF
16320/* confdefs.h. */
16321_ACEOF
16322cat confdefs.h >>conftest.$ac_ext
16323cat >>conftest.$ac_ext <<_ACEOF
16324/* end confdefs.h. */
16325$ac_includes_default
16326#include <$ac_header>
16327_ACEOF
16328rm -f conftest.$ac_objext
16329if { (ac_try="$ac_compile"
16330case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16333esac
16334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_compile") 2>conftest.er1
16336 ac_status=$?
16337 grep -v '^ *+' conftest.er1 >conftest.err
16338 rm -f conftest.er1
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16343 { (case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346esac
16347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_try") 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
16353 { (case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356esac
16357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_try") 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_header_compiler=yes
16363else
16364 echo "$as_me: failed program was:" >&5
16365sed 's/^/| /' conftest.$ac_ext >&5
16366
16367 ac_header_compiler=no
16368fi
16369
16370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16372echo "${ECHO_T}$ac_header_compiler" >&6; }
16373
16374# Is the header present?
16375{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16377cat >conftest.$ac_ext <<_ACEOF
16378/* confdefs.h. */
16379_ACEOF
16380cat confdefs.h >>conftest.$ac_ext
16381cat >>conftest.$ac_ext <<_ACEOF
16382/* end confdefs.h. */
16383#include <$ac_header>
16384_ACEOF
16385if { (ac_try="$ac_cpp conftest.$ac_ext"
16386case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16389esac
16390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } >/dev/null; then
16398 if test -s conftest.err; then
16399 ac_cpp_err=$ac_c_preproc_warn_flag
16400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16401 else
16402 ac_cpp_err=
16403 fi
16404else
16405 ac_cpp_err=yes
16406fi
16407if test -z "$ac_cpp_err"; then
16408 ac_header_preproc=yes
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 ac_header_preproc=no
16414fi
16415
16416rm -f conftest.err conftest.$ac_ext
16417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16418echo "${ECHO_T}$ac_header_preproc" >&6; }
16419
16420# So? What about this header?
16421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16422 yes:no: )
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16427 ac_header_preproc=yes
16428 ;;
16429 no:yes:* )
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16437echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16442 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016443## ------------------------------------ ##
16444## Report this to http://llvm.org/bugs/ ##
16445## ------------------------------------ ##
Eric Christophere9c1bb62010-06-22 21:01:04 +000016446_ASBOX
16447 ) | sed "s/^/$as_me: WARNING: /" >&2
16448 ;;
16449esac
16450{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454else
16455 eval "$as_ac_Header=\$ac_header_preproc"
16456fi
16457ac_res=`eval echo '${'$as_ac_Header'}'`
16458 { echo "$as_me:$LINENO: result: $ac_res" >&5
16459echo "${ECHO_T}$ac_res" >&6; }
16460
16461fi
16462if test `eval echo '${'$as_ac_Header'}'` = yes; then
16463 cat >>confdefs.h <<_ACEOF
16464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16465_ACEOF
16466
16467fi
16468
16469done
16470
16471
Eric Christopherba4f7722010-12-07 02:05:42 +000016472{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16473echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000016474cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016475
16476 /* confdefs.h. */
Eric Christopherca466732010-12-03 07:45:22 +000016477_ACEOF
16478cat confdefs.h >>conftest.$ac_ext
16479cat >>conftest.$ac_ext <<_ACEOF
16480/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016481
16482 extern const char *__crashreporter_info__;
16483 int main() {
16484 __crashreporter_info__ = "test";
16485 return 0;
16486 }
16487
Eric Christopherca466732010-12-03 07:45:22 +000016488
Eric Christopherca466732010-12-03 07:45:22 +000016489_ACEOF
16490rm -f conftest.$ac_objext conftest$ac_exeext
16491if { (ac_try="$ac_link"
16492case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495esac
16496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_link") 2>conftest.er1
16498 ac_status=$?
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508esac
16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest$ac_exeext'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518esac
16519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016524
Eric Christopherba4f7722010-12-07 02:05:42 +000016525 { echo "$as_me:$LINENO: result: yes" >&5
16526echo "${ECHO_T}yes" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000016527
16528cat >>confdefs.h <<\_ACEOF
16529#define HAVE_CRASHREPORTER_INFO 1
16530_ACEOF
16531
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016532
Eric Christopherba4f7722010-12-07 02:05:42 +000016533else
16534 echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
16536
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016537
16538 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopherba4f7722010-12-07 02:05:42 +000016539echo "${ECHO_T}no" >&6; }
16540
16541cat >>confdefs.h <<\_ACEOF
16542#define HAVE_CRASHREPORTER_INFO 0
16543_ACEOF
16544
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016545
Eric Christopherca466732010-12-03 07:45:22 +000016546fi
Eric Christophere9c1bb62010-06-22 21:01:04 +000016547
Eric Christopherba4f7722010-12-07 02:05:42 +000016548rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550
16551
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000016552
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016553 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16554echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16555if test "${ac_cv_huge_val_sanity+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer128ae102006-11-03 18:04:08 +000016557else
16558
Reid Spencer7b7ab9c2006-11-03 19:49:16 +000016559 ac_ext=cpp
16560ac_cpp='$CXXCPP $CPPFLAGS'
16561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencer128ae102006-11-03 18:04:08 +000016564
Eric Christopherf0ee6a12010-03-02 05:06:54 +000016565 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher8e52bdc2012-04-02 06:54:01 +000016566 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016567 if test "$cross_compiling" = yes; then
Reid Spencer128ae102006-11-03 18:04:08 +000016568 ac_cv_huge_val_sanity=yes
16569else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016570 cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer128ae102006-11-03 18:04:08 +000016575/* end confdefs.h. */
16576#include <math.h>
16577int
16578main ()
16579{
16580double x = HUGE_VAL; return x != x;
16581 ;
16582 return 0;
16583}
16584_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016585rm -f conftest$ac_exeext
16586if { (ac_try="$ac_link"
16587case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16590esac
16591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_link") 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
Reid Spencer128ae102006-11-03 18:04:08 +000016605 ac_cv_huge_val_sanity=yes
16606else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016607 echo "$as_me: program exited with status $ac_status" >&5
16608echo "$as_me: failed program was:" >&5
16609sed 's/^/| /' conftest.$ac_ext >&5
16610
16611( exit $ac_status )
16612ac_cv_huge_val_sanity=no
Reid Spencer128ae102006-11-03 18:04:08 +000016613fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016614rm -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 +000016615fi
16616
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016617
Eric Christopherf0ee6a12010-03-02 05:06:54 +000016618 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencer128ae102006-11-03 18:04:08 +000016619 ac_ext=c
16620ac_cpp='$CPP $CPPFLAGS'
16621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623ac_compiler_gnu=$ac_cv_c_compiler_gnu
16624
16625
16626fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016627{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16628echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencer128ae102006-11-03 18:04:08 +000016629 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16630
16631
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016632{ echo "$as_me:$LINENO: checking for pid_t" >&5
16633echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16634if test "${ac_cv_type_pid_t+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637 cat >conftest.$ac_ext <<_ACEOF
16638/* confdefs.h. */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h. */
16643$ac_includes_default
16644typedef pid_t ac__type_new_;
16645int
16646main ()
16647{
16648if ((ac__type_new_ *) 0)
16649 return 0;
16650if (sizeof (ac__type_new_))
16651 return 0;
16652 ;
16653 return 0;
16654}
16655_ACEOF
16656rm -f conftest.$ac_objext
16657if { (ac_try="$ac_compile"
16658case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_compile") 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671 { (case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16674esac
16675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_try") 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; } &&
16680 { ac_try='test -s conftest.$ac_objext'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684esac
16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_cv_type_pid_t=yes
16691else
16692 echo "$as_me: failed program was:" >&5
16693sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000016694
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016695 ac_cv_type_pid_t=no
16696fi
16697
16698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699fi
16700{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16701echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16702if test $ac_cv_type_pid_t = yes; then
16703 :
John Criswell3ef61af2003-06-30 21:59:07 +000016704else
16705
16706cat >>confdefs.h <<_ACEOF
16707#define pid_t int
16708_ACEOF
16709
16710fi
16711
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016712{ echo "$as_me:$LINENO: checking for size_t" >&5
16713echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16714if test "${ac_cv_type_size_t+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16716else
16717 cat >conftest.$ac_ext <<_ACEOF
16718/* confdefs.h. */
16719_ACEOF
16720cat confdefs.h >>conftest.$ac_ext
16721cat >>conftest.$ac_ext <<_ACEOF
16722/* end confdefs.h. */
16723$ac_includes_default
16724typedef size_t ac__type_new_;
16725int
16726main ()
16727{
16728if ((ac__type_new_ *) 0)
16729 return 0;
16730if (sizeof (ac__type_new_))
16731 return 0;
16732 ;
16733 return 0;
16734}
16735_ACEOF
16736rm -f conftest.$ac_objext
16737if { (ac_try="$ac_compile"
16738case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741esac
16742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_compile") 2>conftest.er1
16744 ac_status=$?
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754esac
16755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest.$ac_objext'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16764esac
16765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 ac_cv_type_size_t=yes
16771else
16772 echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000016774
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016775 ac_cv_type_size_t=no
16776fi
16777
16778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779fi
16780{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16781echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16782if test $ac_cv_type_size_t = yes; then
16783 :
John Criswell3ef61af2003-06-30 21:59:07 +000016784else
16785
16786cat >>confdefs.h <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000016787#define size_t unsigned int
John Criswell3ef61af2003-06-30 21:59:07 +000016788_ACEOF
16789
16790fi
16791
Reid Spencer0241e382004-11-25 04:51:04 +000016792
16793cat >>confdefs.h <<_ACEOF
Torok Edwinaec06332010-01-26 08:50:50 +000016794#define RETSIGTYPE void
Reid Spencer0241e382004-11-25 04:51:04 +000016795_ACEOF
16796
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016797{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16798echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16799if test "${ac_cv_struct_tm+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000016801else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016802 cat >conftest.$ac_ext <<_ACEOF
16803/* confdefs.h. */
16804_ACEOF
16805cat confdefs.h >>conftest.$ac_ext
16806cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000016807/* end confdefs.h. */
16808#include <sys/types.h>
16809#include <time.h>
16810
16811int
16812main ()
16813{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016814struct tm *tp; tp->tm_sec;
Reid Spencer0241e382004-11-25 04:51:04 +000016815 ;
16816 return 0;
16817}
16818_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016819rm -f conftest.$ac_objext
16820if { (ac_try="$ac_compile"
16821case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837esac
16838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000016853 ac_cv_struct_tm=time.h
16854else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016855 echo "$as_me: failed program was:" >&5
16856sed 's/^/| /' conftest.$ac_ext >&5
16857
16858 ac_cv_struct_tm=sys/time.h
Reid Spencer0241e382004-11-25 04:51:04 +000016859fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016860
Reid Spencer0b52e2f2006-08-04 18:18:08 +000016861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000016862fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016863{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16864echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000016865if test $ac_cv_struct_tm = sys/time.h; then
16866
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016867cat >>confdefs.h <<\_ACEOF
16868#define TM_IN_SYS_TIME 1
16869_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000016870
16871fi
16872
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016873{ echo "$as_me:$LINENO: checking for int64_t" >&5
16874echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16875if test "${ac_cv_type_int64_t+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16877else
16878 cat >conftest.$ac_ext <<_ACEOF
16879/* confdefs.h. */
16880_ACEOF
16881cat confdefs.h >>conftest.$ac_ext
16882cat >>conftest.$ac_ext <<_ACEOF
16883/* end confdefs.h. */
16884$ac_includes_default
16885typedef int64_t ac__type_new_;
16886int
16887main ()
16888{
16889if ((ac__type_new_ *) 0)
16890 return 0;
16891if (sizeof (ac__type_new_))
16892 return 0;
16893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest.$ac_objext
16898if { (ac_try="$ac_compile"
16899case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_compile") 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_type_int64_t=yes
16932else
16933 echo "$as_me: failed program was:" >&5
16934sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 ac_cv_type_int64_t=no
16937fi
16938
16939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940fi
16941{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16942echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16943if test $ac_cv_type_int64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000016944
16945cat >>confdefs.h <<_ACEOF
16946#define HAVE_INT64_T 1
16947_ACEOF
16948
16949
16950else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016951 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16952echo "$as_me: error: Type int64_t required but not found" >&2;}
16953 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000016954fi
16955
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016956{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16957echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16958if test "${ac_cv_type_uint64_t+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16960else
16961 cat >conftest.$ac_ext <<_ACEOF
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
16967$ac_includes_default
16968typedef uint64_t ac__type_new_;
16969int
16970main ()
16971{
16972if ((ac__type_new_ *) 0)
16973 return 0;
16974if (sizeof (ac__type_new_))
16975 return 0;
16976 ;
16977 return 0;
16978}
16979_ACEOF
16980rm -f conftest.$ac_objext
16981if { (ac_try="$ac_compile"
16982case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008esac
17009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_cv_type_uint64_t=yes
17015else
17016 echo "$as_me: failed program was:" >&5
17017sed 's/^/| /' conftest.$ac_ext >&5
17018
17019 ac_cv_type_uint64_t=no
17020fi
17021
17022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023fi
17024{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17025echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17026if test $ac_cv_type_uint64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017027
17028cat >>confdefs.h <<_ACEOF
17029#define HAVE_UINT64_T 1
17030_ACEOF
17031
17032
17033else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017034 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17035echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17036if test "${ac_cv_type_u_int64_t+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17038else
17039 cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045$ac_includes_default
17046typedef u_int64_t ac__type_new_;
17047int
17048main ()
17049{
17050if ((ac__type_new_ *) 0)
17051 return 0;
17052if (sizeof (ac__type_new_))
17053 return 0;
17054 ;
17055 return 0;
17056}
17057_ACEOF
17058rm -f conftest.$ac_objext
17059if { (ac_try="$ac_compile"
17060case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17063esac
17064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_compile") 2>conftest.er1
17066 ac_status=$?
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17073 { (case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076esac
17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_try") 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086esac
17087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_try") 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_type_u_int64_t=yes
17093else
17094 echo "$as_me: failed program was:" >&5
17095sed 's/^/| /' conftest.$ac_ext >&5
17096
17097 ac_cv_type_u_int64_t=no
17098fi
17099
17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101fi
17102{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17103echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17104if test $ac_cv_type_u_int64_t = yes; then
John Criswelld672a3d2004-09-02 18:44:44 +000017105
17106cat >>confdefs.h <<_ACEOF
17107#define HAVE_U_INT64_T 1
17108_ACEOF
17109
17110
Misha Brukmancb46e662004-09-02 23:02:30 +000017111else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017112 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17113echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17114 { (exit 1); exit 1; }; }
Misha Brukmancb46e662004-09-02 23:02:30 +000017115fi
17116
John Criswelld672a3d2004-09-02 18:44:44 +000017117fi
17118
Reid Spencer0241e382004-11-25 04:51:04 +000017119
17120
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017121
17122
17123
17124
17125
17126
17127
Reid Spencera609b652006-01-23 08:15:53 +000017128for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017129do
17130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17131{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17133if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135else
17136 cat >conftest.$ac_ext <<_ACEOF
17137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
17142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17144#define $ac_func innocuous_$ac_func
17145
17146/* System header to define __stub macros and hopefully few prototypes,
17147 which can conflict with char $ac_func (); below.
17148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149 <limits.h> exists even on freestanding compilers. */
17150
17151#ifdef __STDC__
17152# include <limits.h>
17153#else
17154# include <assert.h>
17155#endif
17156
17157#undef $ac_func
17158
17159/* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17162#ifdef __cplusplus
17163extern "C"
17164#endif
17165char $ac_func ();
17166/* The GNU C library defines this for functions which it implements
17167 to always fail with ENOSYS. Some functions are actually named
17168 something starting with __ and the normal name is an alias. */
17169#if defined __stub_$ac_func || defined __stub___$ac_func
17170choke me
17171#endif
17172
17173int
17174main ()
17175{
17176return $ac_func ();
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext conftest$ac_exeext
17182if { (ac_try="$ac_link"
17183case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_link") 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199esac
17200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 eval "$as_ac_var=yes"
17216else
17217 echo "$as_me: failed program was:" >&5
17218sed 's/^/| /' conftest.$ac_ext >&5
17219
17220 eval "$as_ac_var=no"
17221fi
17222
17223rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225fi
17226ac_res=`eval echo '${'$as_ac_var'}'`
17227 { echo "$as_me:$LINENO: result: $ac_res" >&5
17228echo "${ECHO_T}$ac_res" >&6; }
17229if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000017230 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000017232_ACEOF
17233
17234fi
Reid Spencer0241e382004-11-25 04:51:04 +000017235done
John Criswell3ef61af2003-06-30 21:59:07 +000017236
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017237
17238
17239
17240
Reid Spencerdf523642007-07-13 10:05:30 +000017241for ac_func in powf fmodf strtof round
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017242do
17243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17244{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17246if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17248else
17249 cat >conftest.$ac_ext <<_ACEOF
17250/* confdefs.h. */
17251_ACEOF
17252cat confdefs.h >>conftest.$ac_ext
17253cat >>conftest.$ac_ext <<_ACEOF
17254/* end confdefs.h. */
17255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17257#define $ac_func innocuous_$ac_func
17258
17259/* System header to define __stub macros and hopefully few prototypes,
17260 which can conflict with char $ac_func (); below.
17261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17262 <limits.h> exists even on freestanding compilers. */
17263
17264#ifdef __STDC__
17265# include <limits.h>
17266#else
17267# include <assert.h>
17268#endif
17269
17270#undef $ac_func
17271
17272/* Override any GCC internal prototype to avoid an error.
17273 Use char because int might match the return type of a GCC
17274 builtin and then its argument prototype would still apply. */
17275#ifdef __cplusplus
17276extern "C"
17277#endif
17278char $ac_func ();
17279/* The GNU C library defines this for functions which it implements
17280 to always fail with ENOSYS. Some functions are actually named
17281 something starting with __ and the normal name is an alias. */
17282#if defined __stub_$ac_func || defined __stub___$ac_func
17283choke me
17284#endif
17285
17286int
17287main ()
17288{
17289return $ac_func ();
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294rm -f conftest.$ac_objext conftest$ac_exeext
17295if { (ac_try="$ac_link"
17296case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17299esac
17300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_link") 2>conftest.er1
17302 ac_status=$?
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17309 { (case "(($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_try") 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest$ac_exeext'
17319 { (case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17322esac
17323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_try") 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 eval "$as_ac_var=yes"
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 eval "$as_ac_var=no"
17334fi
17335
17336rm -f core conftest.err conftest.$ac_objext \
17337 conftest$ac_exeext conftest.$ac_ext
17338fi
17339ac_res=`eval echo '${'$as_ac_var'}'`
17340 { echo "$as_me:$LINENO: result: $ac_res" >&5
17341echo "${ECHO_T}$ac_res" >&6; }
17342if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf523642007-07-13 10:05:30 +000017343 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf523642007-07-13 10:05:30 +000017345_ACEOF
17346
17347fi
17348done
17349
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017350
17351
17352
17353
17354
Owen Anderson132ae8b2013-02-07 00:21:34 +000017355for ac_func in log log2 log10 exp exp2
17356do
17357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17358{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17360if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362else
17363 cat >conftest.$ac_ext <<_ACEOF
17364/* confdefs.h. */
17365_ACEOF
17366cat confdefs.h >>conftest.$ac_ext
17367cat >>conftest.$ac_ext <<_ACEOF
17368/* end confdefs.h. */
17369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17371#define $ac_func innocuous_$ac_func
17372
17373/* System header to define __stub macros and hopefully few prototypes,
17374 which can conflict with char $ac_func (); below.
17375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17376 <limits.h> exists even on freestanding compilers. */
17377
17378#ifdef __STDC__
17379# include <limits.h>
17380#else
17381# include <assert.h>
17382#endif
17383
17384#undef $ac_func
17385
17386/* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
17389#ifdef __cplusplus
17390extern "C"
17391#endif
17392char $ac_func ();
17393/* The GNU C library defines this for functions which it implements
17394 to always fail with ENOSYS. Some functions are actually named
17395 something starting with __ and the normal name is an alias. */
17396#if defined __stub_$ac_func || defined __stub___$ac_func
17397choke me
17398#endif
17399
17400int
17401main ()
17402{
17403return $ac_func ();
17404 ;
17405 return 0;
17406}
17407_ACEOF
17408rm -f conftest.$ac_objext conftest$ac_exeext
17409if { (ac_try="$ac_link"
17410case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17413esac
17414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_link") 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17423 { (case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17426esac
17427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_try") 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest$ac_exeext'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17442 eval "$as_ac_var=yes"
17443else
17444 echo "$as_me: failed program was:" >&5
17445sed 's/^/| /' conftest.$ac_ext >&5
17446
17447 eval "$as_ac_var=no"
17448fi
17449
17450rm -f core conftest.err conftest.$ac_objext \
17451 conftest$ac_exeext conftest.$ac_ext
17452fi
17453ac_res=`eval echo '${'$as_ac_var'}'`
17454 { echo "$as_me:$LINENO: result: $ac_res" >&5
17455echo "${ECHO_T}$ac_res" >&6; }
17456if test `eval echo '${'$as_ac_var'}'` = yes; then
17457 cat >>confdefs.h <<_ACEOF
17458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17459_ACEOF
17460
17461fi
17462done
17463
17464
17465
17466
17467
17468
Reid Spenceredd2ccc2007-02-16 19:17:20 +000017469for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017470do
17471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17476else
17477 cat >conftest.$ac_ext <<_ACEOF
17478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
17483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17485#define $ac_func innocuous_$ac_func
17486
17487/* System header to define __stub macros and hopefully few prototypes,
17488 which can conflict with char $ac_func (); below.
17489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490 <limits.h> exists even on freestanding compilers. */
17491
17492#ifdef __STDC__
17493# include <limits.h>
17494#else
17495# include <assert.h>
17496#endif
17497
17498#undef $ac_func
17499
17500/* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply. */
17503#ifdef __cplusplus
17504extern "C"
17505#endif
17506char $ac_func ();
17507/* The GNU C library defines this for functions which it implements
17508 to always fail with ENOSYS. Some functions are actually named
17509 something starting with __ and the normal name is an alias. */
17510#if defined __stub_$ac_func || defined __stub___$ac_func
17511choke me
17512#endif
17513
17514int
17515main ()
17516{
17517return $ac_func ();
17518 ;
17519 return 0;
17520}
17521_ACEOF
17522rm -f conftest.$ac_objext conftest$ac_exeext
17523if { (ac_try="$ac_link"
17524case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540esac
17541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest$ac_exeext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 eval "$as_ac_var=yes"
17557else
17558 echo "$as_me: failed program was:" >&5
17559sed 's/^/| /' conftest.$ac_ext >&5
17560
17561 eval "$as_ac_var=no"
17562fi
17563
17564rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17566fi
17567ac_res=`eval echo '${'$as_ac_var'}'`
17568 { echo "$as_me:$LINENO: result: $ac_res" >&5
17569echo "${ECHO_T}$ac_res" >&6; }
17570if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spenceredd2ccc2007-02-16 19:17:20 +000017571 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spenceredd2ccc2007-02-16 19:17:20 +000017573_ACEOF
17574
17575fi
17576done
17577
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017578
17579
17580
Reid Spenceredd2ccc2007-02-16 19:17:20 +000017581for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017582do
17583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17584{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17586if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17588else
17589 cat >conftest.$ac_ext <<_ACEOF
17590/* confdefs.h. */
17591_ACEOF
17592cat confdefs.h >>conftest.$ac_ext
17593cat >>conftest.$ac_ext <<_ACEOF
17594/* end confdefs.h. */
17595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17597#define $ac_func innocuous_$ac_func
17598
17599/* System header to define __stub macros and hopefully few prototypes,
17600 which can conflict with char $ac_func (); below.
17601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17602 <limits.h> exists even on freestanding compilers. */
17603
17604#ifdef __STDC__
17605# include <limits.h>
17606#else
17607# include <assert.h>
17608#endif
17609
17610#undef $ac_func
17611
17612/* Override any GCC internal prototype to avoid an error.
17613 Use char because int might match the return type of a GCC
17614 builtin and then its argument prototype would still apply. */
17615#ifdef __cplusplus
17616extern "C"
17617#endif
17618char $ac_func ();
17619/* The GNU C library defines this for functions which it implements
17620 to always fail with ENOSYS. Some functions are actually named
17621 something starting with __ and the normal name is an alias. */
17622#if defined __stub_$ac_func || defined __stub___$ac_func
17623choke me
17624#endif
17625
17626int
17627main ()
17628{
17629return $ac_func ();
17630 ;
17631 return 0;
17632}
17633_ACEOF
17634rm -f conftest.$ac_objext conftest$ac_exeext
17635if { (ac_try="$ac_link"
17636case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_link") 2>conftest.er1
17642 ac_status=$?
17643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17649 { (case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652esac
17653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_try") 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest$ac_exeext'
17659 { (case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662esac
17663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_try") 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17669else
17670 echo "$as_me: failed program was:" >&5
17671sed 's/^/| /' conftest.$ac_ext >&5
17672
17673 eval "$as_ac_var=no"
17674fi
17675
17676rm -f core conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17678fi
17679ac_res=`eval echo '${'$as_ac_var'}'`
17680 { echo "$as_me:$LINENO: result: $ac_res" >&5
17681echo "${ECHO_T}$ac_res" >&6; }
17682if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera609b652006-01-23 08:15:53 +000017683 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017684#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera609b652006-01-23 08:15:53 +000017685_ACEOF
17686
17687fi
17688done
17689
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017690
17691
17692
17693
17694
Eric Christopherdea3bda2010-04-16 05:14:21 +000017695
Benjamin Kramere1effb02011-11-22 12:31:53 +000017696
17697for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017698do
17699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17700{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17702if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704else
17705 cat >conftest.$ac_ext <<_ACEOF
17706/* confdefs.h. */
17707_ACEOF
17708cat confdefs.h >>conftest.$ac_ext
17709cat >>conftest.$ac_ext <<_ACEOF
17710/* end confdefs.h. */
17711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17713#define $ac_func innocuous_$ac_func
17714
17715/* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char $ac_func (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
17719
17720#ifdef __STDC__
17721# include <limits.h>
17722#else
17723# include <assert.h>
17724#endif
17725
17726#undef $ac_func
17727
17728/* Override any GCC internal prototype to avoid an error.
17729 Use char because int might match the return type of a GCC
17730 builtin and then its argument prototype would still apply. */
17731#ifdef __cplusplus
17732extern "C"
17733#endif
17734char $ac_func ();
17735/* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738#if defined __stub_$ac_func || defined __stub___$ac_func
17739choke me
17740#endif
17741
17742int
17743main ()
17744{
17745return $ac_func ();
17746 ;
17747 return 0;
17748}
17749_ACEOF
17750rm -f conftest.$ac_objext conftest$ac_exeext
17751if { (ac_try="$ac_link"
17752case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17755esac
17756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_link") 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17765 { (case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17768esac
17769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_try") 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778esac
17779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 eval "$as_ac_var=yes"
17785else
17786 echo "$as_me: failed program was:" >&5
17787sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 eval "$as_ac_var=no"
17790fi
17791
17792rm -f core conftest.err conftest.$ac_objext \
17793 conftest$ac_exeext conftest.$ac_ext
17794fi
17795ac_res=`eval echo '${'$as_ac_var'}'`
17796 { echo "$as_me:$LINENO: result: $ac_res" >&5
17797echo "${ECHO_T}$ac_res" >&6; }
17798if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000017799 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000017801_ACEOF
17802
17803fi
17804done
Reid Spencera609b652006-01-23 08:15:53 +000017805
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017806
17807
17808
Daniel Dunbar407a85e2012-05-05 16:36:16 +000017809
17810for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017811do
17812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17813{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17815if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17816 echo $ECHO_N "(cached) $ECHO_C" >&6
17817else
17818 cat >conftest.$ac_ext <<_ACEOF
17819/* confdefs.h. */
17820_ACEOF
17821cat confdefs.h >>conftest.$ac_ext
17822cat >>conftest.$ac_ext <<_ACEOF
17823/* end confdefs.h. */
17824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17826#define $ac_func innocuous_$ac_func
17827
17828/* System header to define __stub macros and hopefully few prototypes,
17829 which can conflict with char $ac_func (); below.
17830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17831 <limits.h> exists even on freestanding compilers. */
17832
17833#ifdef __STDC__
17834# include <limits.h>
17835#else
17836# include <assert.h>
17837#endif
17838
17839#undef $ac_func
17840
17841/* Override any GCC internal prototype to avoid an error.
17842 Use char because int might match the return type of a GCC
17843 builtin and then its argument prototype would still apply. */
17844#ifdef __cplusplus
17845extern "C"
17846#endif
17847char $ac_func ();
17848/* The GNU C library defines this for functions which it implements
17849 to always fail with ENOSYS. Some functions are actually named
17850 something starting with __ and the normal name is an alias. */
17851#if defined __stub_$ac_func || defined __stub___$ac_func
17852choke me
17853#endif
17854
17855int
17856main ()
17857{
17858return $ac_func ();
17859 ;
17860 return 0;
17861}
17862_ACEOF
17863rm -f conftest.$ac_objext conftest$ac_exeext
17864if { (ac_try="$ac_link"
17865case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868esac
17869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_link") 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878 { (case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881esac
17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_try") 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest$ac_exeext'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891esac
17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 eval "$as_ac_var=yes"
17898else
17899 echo "$as_me: failed program was:" >&5
17900sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 eval "$as_ac_var=no"
17903fi
17904
17905rm -f core conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17907fi
17908ac_res=`eval echo '${'$as_ac_var'}'`
17909 { echo "$as_me:$LINENO: result: $ac_res" >&5
17910echo "${ECHO_T}$ac_res" >&6; }
17911if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb6681582004-12-27 06:15:02 +000017912 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb6681582004-12-27 06:15:02 +000017914_ACEOF
17915
17916fi
17917done
17918
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017919
17920
17921
17922
Chris Lattner81479022005-11-14 07:25:50 +000017923for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017924do
17925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17928if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17930else
17931 cat >conftest.$ac_ext <<_ACEOF
17932/* confdefs.h. */
17933_ACEOF
17934cat confdefs.h >>conftest.$ac_ext
17935cat >>conftest.$ac_ext <<_ACEOF
17936/* end confdefs.h. */
17937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17939#define $ac_func innocuous_$ac_func
17940
17941/* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func (); below.
17943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944 <limits.h> exists even on freestanding compilers. */
17945
17946#ifdef __STDC__
17947# include <limits.h>
17948#else
17949# include <assert.h>
17950#endif
17951
17952#undef $ac_func
17953
17954/* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17957#ifdef __cplusplus
17958extern "C"
17959#endif
17960char $ac_func ();
17961/* The GNU C library defines this for functions which it implements
17962 to always fail with ENOSYS. Some functions are actually named
17963 something starting with __ and the normal name is an alias. */
17964#if defined __stub_$ac_func || defined __stub___$ac_func
17965choke me
17966#endif
17967
17968int
17969main ()
17970{
17971return $ac_func ();
17972 ;
17973 return 0;
17974}
17975_ACEOF
17976rm -f conftest.$ac_objext conftest$ac_exeext
17977if { (ac_try="$ac_link"
17978case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17981esac
17982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_link") 2>conftest.er1
17984 ac_status=$?
17985 grep -v '^ *+' conftest.er1 >conftest.err
17986 rm -f conftest.er1
17987 cat conftest.err >&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } &&
17990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17991 { (case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17994esac
17995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_try") 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest$ac_exeext'
18001 { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18004esac
18005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_try") 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 eval "$as_ac_var=yes"
18011else
18012 echo "$as_me: failed program was:" >&5
18013sed 's/^/| /' conftest.$ac_ext >&5
18014
18015 eval "$as_ac_var=no"
18016fi
18017
18018rm -f core conftest.err conftest.$ac_objext \
18019 conftest$ac_exeext conftest.$ac_ext
18020fi
18021ac_res=`eval echo '${'$as_ac_var'}'`
18022 { echo "$as_me:$LINENO: result: $ac_res" >&5
18023echo "${ECHO_T}$ac_res" >&6; }
18024if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000018025 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018027_ACEOF
18028
18029fi
Reid Spencer0241e382004-11-25 04:51:04 +000018030done
John Criswell3ef61af2003-06-30 21:59:07 +000018031
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018032
18033
18034
18035
Daniel Dunbar7840c542011-02-03 02:40:02 +000018036
18037for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018038do
18039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18040{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18042if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044else
18045 cat >conftest.$ac_ext <<_ACEOF
18046/* confdefs.h. */
18047_ACEOF
18048cat confdefs.h >>conftest.$ac_ext
18049cat >>conftest.$ac_ext <<_ACEOF
18050/* end confdefs.h. */
18051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18053#define $ac_func innocuous_$ac_func
18054
18055/* System header to define __stub macros and hopefully few prototypes,
18056 which can conflict with char $ac_func (); below.
18057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18058 <limits.h> exists even on freestanding compilers. */
18059
18060#ifdef __STDC__
18061# include <limits.h>
18062#else
18063# include <assert.h>
18064#endif
18065
18066#undef $ac_func
18067
18068/* Override any GCC internal prototype to avoid an error.
18069 Use char because int might match the return type of a GCC
18070 builtin and then its argument prototype would still apply. */
18071#ifdef __cplusplus
18072extern "C"
18073#endif
18074char $ac_func ();
18075/* The GNU C library defines this for functions which it implements
18076 to always fail with ENOSYS. Some functions are actually named
18077 something starting with __ and the normal name is an alias. */
18078#if defined __stub_$ac_func || defined __stub___$ac_func
18079choke me
18080#endif
18081
18082int
18083main ()
18084{
18085return $ac_func ();
18086 ;
18087 return 0;
18088}
18089_ACEOF
18090rm -f conftest.$ac_objext conftest$ac_exeext
18091if { (ac_try="$ac_link"
18092case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18095esac
18096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_link") 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18105 { (case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18108esac
18109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_try") 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest$ac_exeext'
18115 { (case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18118esac
18119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_try") 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 eval "$as_ac_var=yes"
18125else
18126 echo "$as_me: failed program was:" >&5
18127sed 's/^/| /' conftest.$ac_ext >&5
18128
18129 eval "$as_ac_var=no"
18130fi
18131
18132rm -f core conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134fi
18135ac_res=`eval echo '${'$as_ac_var'}'`
18136 { echo "$as_me:$LINENO: result: $ac_res" >&5
18137echo "${ECHO_T}$ac_res" >&6; }
18138if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera31ac4e2006-06-05 16:11:07 +000018139 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera31ac4e2006-06-05 16:11:07 +000018141_ACEOF
18142
18143fi
18144done
18145
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018146{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18147echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18148if test "${llvm_cv_c_printf_a+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000018150else
Reid Spencerf184a862004-09-19 23:53:36 +000018151 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000018152ac_cpp='$CPP $CPPFLAGS'
18153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155ac_compiler_gnu=$ac_cv_c_compiler_gnu
18156
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018157 if test "$cross_compiling" = yes; then
Reid Spencer8de46052004-11-27 22:01:43 +000018158 llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000018159else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018160 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerf184a862004-09-19 23:53:36 +000018161
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018162 /* confdefs.h. */
18163_ACEOF
18164cat confdefs.h >>conftest.$ac_ext
18165cat >>conftest.$ac_ext <<_ACEOF
18166/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000018167
John Criswell42859552003-10-13 16:22:01 +000018168#include <stdio.h>
Reid Spencerf184a862004-09-19 23:53:36 +000018169#include <stdlib.h>
18170
John Criswell42859552003-10-13 16:22:01 +000018171int
18172main ()
18173{
18174
Reid Spencerf184a862004-09-19 23:53:36 +000018175volatile double A, B;
18176char Buffer[100];
18177A = 1;
18178A /= 10.0;
18179sprintf(Buffer, "%a", A);
18180B = atof(Buffer);
18181if (A != B)
18182 return (1);
18183if (A != 0x1.999999999999ap-4)
18184 return (1);
18185return (0);
John Criswell42859552003-10-13 16:22:01 +000018186 ;
18187 return 0;
18188}
18189_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018190rm -f conftest$ac_exeext
18191if { (ac_try="$ac_link"
18192case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18204esac
18205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
Reid Spencer8de46052004-11-27 22:01:43 +000018210 llvm_cv_c_printf_a=yes
John Criswell42859552003-10-13 16:22:01 +000018211else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018212 echo "$as_me: program exited with status $ac_status" >&5
18213echo "$as_me: failed program was:" >&5
18214sed 's/^/| /' conftest.$ac_ext >&5
18215
18216( exit $ac_status )
18217llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000018218fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018219rm -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 +000018220fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018221
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018222
Reid Spencerf184a862004-09-19 23:53:36 +000018223 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000018224ac_cpp='$CPP $CPPFLAGS'
18225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18227ac_compiler_gnu=$ac_cv_c_compiler_gnu
18228
Reid Spencer0241e382004-11-25 04:51:04 +000018229fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018230{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18231echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer8de46052004-11-27 22:01:43 +000018232 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswell42859552003-10-13 16:22:01 +000018233
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018234cat >>confdefs.h <<\_ACEOF
18235#define HAVE_PRINTF_A 1
18236_ACEOF
John Criswell42859552003-10-13 16:22:01 +000018237
Reid Spencerf184a862004-09-19 23:53:36 +000018238 fi
John Criswell42859552003-10-13 16:22:01 +000018239
Reid Spencer0241e382004-11-25 04:51:04 +000018240
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018241
18242 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018243echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18244if test "${ac_cv_func_rand48+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000018246else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018247
18248 ac_ext=cpp
Reid Spencer0241e382004-11-25 04:51:04 +000018249ac_cpp='$CXXCPP $CPPFLAGS'
18250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18253
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018254 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000018259/* end confdefs.h. */
18260#include <stdlib.h>
18261int
18262main ()
18263{
18264srand48(0);lrand48();drand48();
18265 ;
18266 return 0;
18267}
18268_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018269rm -f conftest.$ac_objext
18270if { (ac_try="$ac_compile"
18271case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18274esac
18275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_compile") 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287esac
18288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297esac
18298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000018303 ac_cv_func_rand48=yes
18304else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018305 echo "$as_me: failed program was:" >&5
18306sed 's/^/| /' conftest.$ac_ext >&5
18307
18308 ac_cv_func_rand48=no
Reid Spencer0241e382004-11-25 04:51:04 +000018309fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018310
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018312 ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +000018313ac_cpp='$CPP $CPPFLAGS'
18314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316ac_compiler_gnu=$ac_cv_c_compiler_gnu
18317
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018318
Reid Spencer0241e382004-11-25 04:51:04 +000018319fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018320{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18321echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000018322
18323if test "$ac_cv_func_rand48" = "yes" ; then
18324
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018325cat >>confdefs.h <<\_ACEOF
18326#define HAVE_RAND48 1
18327_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000018328
18329fi
John Criswell3b4195f32004-02-13 21:57:29 +000018330
18331
NAKAMURA Takumi189111802011-02-09 04:18:48 +000018332{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18333echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18334if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18336else
18337 cat >conftest.$ac_ext <<_ACEOF
18338/* confdefs.h. */
18339_ACEOF
18340cat confdefs.h >>conftest.$ac_ext
18341cat >>conftest.$ac_ext <<_ACEOF
18342/* end confdefs.h. */
18343$ac_includes_default
18344int
18345main ()
18346{
18347#ifndef strerror_s
18348 char *p = (char *) strerror_s;
18349 return !p;
18350#endif
18351
18352 ;
18353 return 0;
18354}
18355_ACEOF
18356rm -f conftest.$ac_objext
18357if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 ac_cv_have_decl_strerror_s=yes
18391else
18392 echo "$as_me: failed program was:" >&5
18393sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_cv_have_decl_strerror_s=no
18396fi
18397
18398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399fi
18400{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18401echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18402if test $ac_cv_have_decl_strerror_s = yes; then
18403
18404cat >>confdefs.h <<_ACEOF
18405#define HAVE_DECL_STRERROR_S 1
18406_ACEOF
18407
18408
18409else
18410 cat >>confdefs.h <<_ACEOF
18411#define HAVE_DECL_STRERROR_S 0
18412_ACEOF
18413
18414
18415fi
18416
18417
18418
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000018419if test "$llvm_cv_os_type" = "MingW" ; then
18420 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18421echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18422if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18424else
18425 ac_check_lib_save_LIBS=$LIBS
18426LIBS="-lgcc $LIBS"
18427cat >conftest.$ac_ext <<_ACEOF
18428/* confdefs.h. */
18429_ACEOF
18430cat confdefs.h >>conftest.$ac_ext
18431cat >>conftest.$ac_ext <<_ACEOF
18432/* end confdefs.h. */
18433
18434/* Override any GCC internal prototype to avoid an error.
18435 Use char because int might match the return type of a GCC
18436 builtin and then its argument prototype would still apply. */
18437#ifdef __cplusplus
18438extern "C"
18439#endif
18440char _alloca ();
18441int
18442main ()
18443{
18444return _alloca ();
18445 ;
18446 return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext conftest$ac_exeext
18450if { (ac_try="$ac_link"
18451case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18454esac
18455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_link") 2>conftest.er1
18457 ac_status=$?
18458 grep -v '^ *+' conftest.er1 >conftest.err
18459 rm -f conftest.er1
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18467esac
18468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest$ac_exeext'
18474 { (case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18477esac
18478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_try") 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_cv_lib_gcc__alloca=yes
18484else
18485 echo "$as_me: failed program was:" >&5
18486sed 's/^/| /' conftest.$ac_ext >&5
18487
18488 ac_cv_lib_gcc__alloca=no
18489fi
18490
18491rm -f core conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18493LIBS=$ac_check_lib_save_LIBS
18494fi
18495{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18496echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18497if test $ac_cv_lib_gcc__alloca = yes; then
18498
18499cat >>confdefs.h <<\_ACEOF
18500#define HAVE__ALLOCA 1
18501_ACEOF
18502
18503fi
18504
18505 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18506echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18507if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509else
18510 ac_check_lib_save_LIBS=$LIBS
18511LIBS="-lgcc $LIBS"
18512cat >conftest.$ac_ext <<_ACEOF
18513/* confdefs.h. */
18514_ACEOF
18515cat confdefs.h >>conftest.$ac_ext
18516cat >>conftest.$ac_ext <<_ACEOF
18517/* end confdefs.h. */
18518
18519/* Override any GCC internal prototype to avoid an error.
18520 Use char because int might match the return type of a GCC
18521 builtin and then its argument prototype would still apply. */
18522#ifdef __cplusplus
18523extern "C"
18524#endif
18525char __alloca ();
18526int
18527main ()
18528{
18529return __alloca ();
18530 ;
18531 return 0;
18532}
18533_ACEOF
18534rm -f conftest.$ac_objext conftest$ac_exeext
18535if { (ac_try="$ac_link"
18536case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539esac
18540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_link") 2>conftest.er1
18542 ac_status=$?
18543 grep -v '^ *+' conftest.er1 >conftest.err
18544 rm -f conftest.er1
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552esac
18553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562esac
18563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_try") 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18568 ac_cv_lib_gcc___alloca=yes
18569else
18570 echo "$as_me: failed program was:" >&5
18571sed 's/^/| /' conftest.$ac_ext >&5
18572
18573 ac_cv_lib_gcc___alloca=no
18574fi
18575
18576rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18578LIBS=$ac_check_lib_save_LIBS
18579fi
18580{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18581echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18582if test $ac_cv_lib_gcc___alloca = yes; then
18583
18584cat >>confdefs.h <<\_ACEOF
18585#define HAVE___ALLOCA 1
18586_ACEOF
18587
18588fi
18589
18590 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18591echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18592if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594else
18595 ac_check_lib_save_LIBS=$LIBS
18596LIBS="-lgcc $LIBS"
18597cat >conftest.$ac_ext <<_ACEOF
18598/* confdefs.h. */
18599_ACEOF
18600cat confdefs.h >>conftest.$ac_ext
18601cat >>conftest.$ac_ext <<_ACEOF
18602/* end confdefs.h. */
18603
18604/* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18607#ifdef __cplusplus
18608extern "C"
18609#endif
18610char __chkstk ();
18611int
18612main ()
18613{
18614return __chkstk ();
18615 ;
18616 return 0;
18617}
18618_ACEOF
18619rm -f conftest.$ac_objext conftest$ac_exeext
18620if { (ac_try="$ac_link"
18621case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18624esac
18625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_link") 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
18633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637esac
18638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; } &&
18643 { ac_try='test -s conftest$ac_exeext'
18644 { (case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647esac
18648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_try") 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; }; then
18653 ac_cv_lib_gcc___chkstk=yes
18654else
18655 echo "$as_me: failed program was:" >&5
18656sed 's/^/| /' conftest.$ac_ext >&5
18657
18658 ac_cv_lib_gcc___chkstk=no
18659fi
18660
18661rm -f core conftest.err conftest.$ac_objext \
18662 conftest$ac_exeext conftest.$ac_ext
18663LIBS=$ac_check_lib_save_LIBS
18664fi
18665{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18666echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18667if test $ac_cv_lib_gcc___chkstk = yes; then
18668
18669cat >>confdefs.h <<\_ACEOF
18670#define HAVE___CHKSTK 1
18671_ACEOF
18672
18673fi
18674
18675 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18676echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18677if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679else
18680 ac_check_lib_save_LIBS=$LIBS
18681LIBS="-lgcc $LIBS"
18682cat >conftest.$ac_ext <<_ACEOF
18683/* confdefs.h. */
18684_ACEOF
18685cat confdefs.h >>conftest.$ac_ext
18686cat >>conftest.$ac_ext <<_ACEOF
18687/* end confdefs.h. */
18688
18689/* Override any GCC internal prototype to avoid an error.
18690 Use char because int might match the return type of a GCC
18691 builtin and then its argument prototype would still apply. */
18692#ifdef __cplusplus
18693extern "C"
18694#endif
18695char ___chkstk ();
18696int
18697main ()
18698{
18699return ___chkstk ();
18700 ;
18701 return 0;
18702}
18703_ACEOF
18704rm -f conftest.$ac_objext conftest$ac_exeext
18705if { (ac_try="$ac_link"
18706case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18709esac
18710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_link") 2>conftest.er1
18712 ac_status=$?
18713 grep -v '^ *+' conftest.er1 >conftest.err
18714 rm -f conftest.er1
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722esac
18723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest$ac_exeext'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732esac
18733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_lib_gcc____chkstk=yes
18739else
18740 echo "$as_me: failed program was:" >&5
18741sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ac_cv_lib_gcc____chkstk=no
18744fi
18745
18746rm -f core conftest.err conftest.$ac_objext \
18747 conftest$ac_exeext conftest.$ac_ext
18748LIBS=$ac_check_lib_save_LIBS
18749fi
18750{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18751echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18752if test $ac_cv_lib_gcc____chkstk = yes; then
18753
18754cat >>confdefs.h <<\_ACEOF
18755#define HAVE____CHKSTK 1
18756_ACEOF
18757
18758fi
18759
18760
18761 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18762echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18763if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18765else
18766 ac_check_lib_save_LIBS=$LIBS
18767LIBS="-lgcc $LIBS"
18768cat >conftest.$ac_ext <<_ACEOF
18769/* confdefs.h. */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h. */
18774
18775/* Override any GCC internal prototype to avoid an error.
18776 Use char because int might match the return type of a GCC
18777 builtin and then its argument prototype would still apply. */
18778#ifdef __cplusplus
18779extern "C"
18780#endif
18781char __ashldi3 ();
18782int
18783main ()
18784{
18785return __ashldi3 ();
18786 ;
18787 return 0;
18788}
18789_ACEOF
18790rm -f conftest.$ac_objext conftest$ac_exeext
18791if { (ac_try="$ac_link"
18792case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795esac
18796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_link") 2>conftest.er1
18798 ac_status=$?
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
18804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808esac
18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; } &&
18814 { ac_try='test -s conftest$ac_exeext'
18815 { (case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18818esac
18819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_try") 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_cv_lib_gcc___ashldi3=yes
18825else
18826 echo "$as_me: failed program was:" >&5
18827sed 's/^/| /' conftest.$ac_ext >&5
18828
18829 ac_cv_lib_gcc___ashldi3=no
18830fi
18831
18832rm -f core conftest.err conftest.$ac_objext \
18833 conftest$ac_exeext conftest.$ac_ext
18834LIBS=$ac_check_lib_save_LIBS
18835fi
18836{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18837echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18838if test $ac_cv_lib_gcc___ashldi3 = yes; then
18839
18840cat >>confdefs.h <<\_ACEOF
18841#define HAVE___ASHLDI3 1
18842_ACEOF
18843
18844fi
18845
18846 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18847echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18848if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18849 echo $ECHO_N "(cached) $ECHO_C" >&6
18850else
18851 ac_check_lib_save_LIBS=$LIBS
18852LIBS="-lgcc $LIBS"
18853cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859
18860/* Override any GCC internal prototype to avoid an error.
18861 Use char because int might match the return type of a GCC
18862 builtin and then its argument prototype would still apply. */
18863#ifdef __cplusplus
18864extern "C"
18865#endif
18866char __ashrdi3 ();
18867int
18868main ()
18869{
18870return __ashrdi3 ();
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875rm -f conftest.$ac_objext conftest$ac_exeext
18876if { (ac_try="$ac_link"
18877case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880esac
18881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_link") 2>conftest.er1
18883 ac_status=$?
18884 grep -v '^ *+' conftest.er1 >conftest.err
18885 rm -f conftest.er1
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893esac
18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903esac
18904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 ac_cv_lib_gcc___ashrdi3=yes
18910else
18911 echo "$as_me: failed program was:" >&5
18912sed 's/^/| /' conftest.$ac_ext >&5
18913
18914 ac_cv_lib_gcc___ashrdi3=no
18915fi
18916
18917rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919LIBS=$ac_check_lib_save_LIBS
18920fi
18921{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18922echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18923if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18924
18925cat >>confdefs.h <<\_ACEOF
18926#define HAVE___ASHRDI3 1
18927_ACEOF
18928
18929fi
18930
18931 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18932echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18933if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18935else
18936 ac_check_lib_save_LIBS=$LIBS
18937LIBS="-lgcc $LIBS"
18938cat >conftest.$ac_ext <<_ACEOF
18939/* confdefs.h. */
18940_ACEOF
18941cat confdefs.h >>conftest.$ac_ext
18942cat >>conftest.$ac_ext <<_ACEOF
18943/* end confdefs.h. */
18944
18945/* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18948#ifdef __cplusplus
18949extern "C"
18950#endif
18951char __divdi3 ();
18952int
18953main ()
18954{
18955return __divdi3 ();
18956 ;
18957 return 0;
18958}
18959_ACEOF
18960rm -f conftest.$ac_objext conftest$ac_exeext
18961if { (ac_try="$ac_link"
18962case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965esac
18966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18968 ac_status=$?
18969 grep -v '^ *+' conftest.er1 >conftest.err
18970 rm -f conftest.er1
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } &&
18974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18975 { (case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978esac
18979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_try") 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; } &&
18984 { ac_try='test -s conftest$ac_exeext'
18985 { (case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988esac
18989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_try") 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_cv_lib_gcc___divdi3=yes
18995else
18996 echo "$as_me: failed program was:" >&5
18997sed 's/^/| /' conftest.$ac_ext >&5
18998
18999 ac_cv_lib_gcc___divdi3=no
19000fi
19001
19002rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
19004LIBS=$ac_check_lib_save_LIBS
19005fi
19006{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19007echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19008if test $ac_cv_lib_gcc___divdi3 = yes; then
19009
19010cat >>confdefs.h <<\_ACEOF
19011#define HAVE___DIVDI3 1
19012_ACEOF
19013
19014fi
19015
19016 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19017echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19018if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19020else
19021 ac_check_lib_save_LIBS=$LIBS
19022LIBS="-lgcc $LIBS"
19023cat >conftest.$ac_ext <<_ACEOF
19024/* confdefs.h. */
19025_ACEOF
19026cat confdefs.h >>conftest.$ac_ext
19027cat >>conftest.$ac_ext <<_ACEOF
19028/* end confdefs.h. */
19029
19030/* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19033#ifdef __cplusplus
19034extern "C"
19035#endif
19036char __fixdfdi ();
19037int
19038main ()
19039{
19040return __fixdfdi ();
19041 ;
19042 return 0;
19043}
19044_ACEOF
19045rm -f conftest.$ac_objext conftest$ac_exeext
19046if { (ac_try="$ac_link"
19047case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
19053 ac_status=$?
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063esac
19064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest$ac_exeext'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073esac
19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_lib_gcc___fixdfdi=yes
19080else
19081 echo "$as_me: failed program was:" >&5
19082sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 ac_cv_lib_gcc___fixdfdi=no
19085fi
19086
19087rm -f core conftest.err conftest.$ac_objext \
19088 conftest$ac_exeext conftest.$ac_ext
19089LIBS=$ac_check_lib_save_LIBS
19090fi
19091{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19092echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19093if test $ac_cv_lib_gcc___fixdfdi = yes; then
19094
19095cat >>confdefs.h <<\_ACEOF
19096#define HAVE___FIXDFDI 1
19097_ACEOF
19098
19099fi
19100
19101 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19102echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19103if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19105else
19106 ac_check_lib_save_LIBS=$LIBS
19107LIBS="-lgcc $LIBS"
19108cat >conftest.$ac_ext <<_ACEOF
19109/* confdefs.h. */
19110_ACEOF
19111cat confdefs.h >>conftest.$ac_ext
19112cat >>conftest.$ac_ext <<_ACEOF
19113/* end confdefs.h. */
19114
19115/* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19118#ifdef __cplusplus
19119extern "C"
19120#endif
19121char __fixsfdi ();
19122int
19123main ()
19124{
19125return __fixsfdi ();
19126 ;
19127 return 0;
19128}
19129_ACEOF
19130rm -f conftest.$ac_objext conftest$ac_exeext
19131if { (ac_try="$ac_link"
19132case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19135esac
19136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_link") 2>conftest.er1
19138 ac_status=$?
19139 grep -v '^ *+' conftest.er1 >conftest.err
19140 rm -f conftest.er1
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19148esac
19149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest$ac_exeext'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19158esac
19159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_cv_lib_gcc___fixsfdi=yes
19165else
19166 echo "$as_me: failed program was:" >&5
19167sed 's/^/| /' conftest.$ac_ext >&5
19168
19169 ac_cv_lib_gcc___fixsfdi=no
19170fi
19171
19172rm -f core conftest.err conftest.$ac_objext \
19173 conftest$ac_exeext conftest.$ac_ext
19174LIBS=$ac_check_lib_save_LIBS
19175fi
19176{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19177echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19178if test $ac_cv_lib_gcc___fixsfdi = yes; then
19179
19180cat >>confdefs.h <<\_ACEOF
19181#define HAVE___FIXSFDI 1
19182_ACEOF
19183
19184fi
19185
19186 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19187echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19188if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190else
19191 ac_check_lib_save_LIBS=$LIBS
19192LIBS="-lgcc $LIBS"
19193cat >conftest.$ac_ext <<_ACEOF
19194/* confdefs.h. */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h. */
19199
19200/* Override any GCC internal prototype to avoid an error.
19201 Use char because int might match the return type of a GCC
19202 builtin and then its argument prototype would still apply. */
19203#ifdef __cplusplus
19204extern "C"
19205#endif
19206char __floatdidf ();
19207int
19208main ()
19209{
19210return __floatdidf ();
19211 ;
19212 return 0;
19213}
19214_ACEOF
19215rm -f conftest.$ac_objext conftest$ac_exeext
19216if { (ac_try="$ac_link"
19217case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19220esac
19221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_link") 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19233esac
19234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest$ac_exeext'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243esac
19244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_cv_lib_gcc___floatdidf=yes
19250else
19251 echo "$as_me: failed program was:" >&5
19252sed 's/^/| /' conftest.$ac_ext >&5
19253
19254 ac_cv_lib_gcc___floatdidf=no
19255fi
19256
19257rm -f core conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19259LIBS=$ac_check_lib_save_LIBS
19260fi
19261{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19262echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19263if test $ac_cv_lib_gcc___floatdidf = yes; then
19264
19265cat >>confdefs.h <<\_ACEOF
19266#define HAVE___FLOATDIDF 1
19267_ACEOF
19268
19269fi
19270
19271 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19272echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19273if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19275else
19276 ac_check_lib_save_LIBS=$LIBS
19277LIBS="-lgcc $LIBS"
19278cat >conftest.$ac_ext <<_ACEOF
19279/* confdefs.h. */
19280_ACEOF
19281cat confdefs.h >>conftest.$ac_ext
19282cat >>conftest.$ac_ext <<_ACEOF
19283/* end confdefs.h. */
19284
19285/* Override any GCC internal prototype to avoid an error.
19286 Use char because int might match the return type of a GCC
19287 builtin and then its argument prototype would still apply. */
19288#ifdef __cplusplus
19289extern "C"
19290#endif
19291char __lshrdi3 ();
19292int
19293main ()
19294{
19295return __lshrdi3 ();
19296 ;
19297 return 0;
19298}
19299_ACEOF
19300rm -f conftest.$ac_objext conftest$ac_exeext
19301if { (ac_try="$ac_link"
19302case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19305esac
19306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_link") 2>conftest.er1
19308 ac_status=$?
19309 grep -v '^ *+' conftest.er1 >conftest.err
19310 rm -f conftest.er1
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } &&
19314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19315 { (case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19318esac
19319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_try") 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; } &&
19324 { ac_try='test -s conftest$ac_exeext'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328esac
19329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_cv_lib_gcc___lshrdi3=yes
19335else
19336 echo "$as_me: failed program was:" >&5
19337sed 's/^/| /' conftest.$ac_ext >&5
19338
19339 ac_cv_lib_gcc___lshrdi3=no
19340fi
19341
19342rm -f core conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
19344LIBS=$ac_check_lib_save_LIBS
19345fi
19346{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19347echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19348if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19349
19350cat >>confdefs.h <<\_ACEOF
19351#define HAVE___LSHRDI3 1
19352_ACEOF
19353
19354fi
19355
19356 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19357echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19358if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360else
19361 ac_check_lib_save_LIBS=$LIBS
19362LIBS="-lgcc $LIBS"
19363cat >conftest.$ac_ext <<_ACEOF
19364/* confdefs.h. */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h. */
19369
19370/* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19373#ifdef __cplusplus
19374extern "C"
19375#endif
19376char __moddi3 ();
19377int
19378main ()
19379{
19380return __moddi3 ();
19381 ;
19382 return 0;
19383}
19384_ACEOF
19385rm -f conftest.$ac_objext conftest$ac_exeext
19386if { (ac_try="$ac_link"
19387case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19390esac
19391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_link") 2>conftest.er1
19393 ac_status=$?
19394 grep -v '^ *+' conftest.er1 >conftest.err
19395 rm -f conftest.er1
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403esac
19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest$ac_exeext'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413esac
19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 ac_cv_lib_gcc___moddi3=yes
19420else
19421 echo "$as_me: failed program was:" >&5
19422sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 ac_cv_lib_gcc___moddi3=no
19425fi
19426
19427rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19429LIBS=$ac_check_lib_save_LIBS
19430fi
19431{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19432echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19433if test $ac_cv_lib_gcc___moddi3 = yes; then
19434
19435cat >>confdefs.h <<\_ACEOF
19436#define HAVE___MODDI3 1
19437_ACEOF
19438
19439fi
19440
19441 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19442echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19443if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445else
19446 ac_check_lib_save_LIBS=$LIBS
19447LIBS="-lgcc $LIBS"
19448cat >conftest.$ac_ext <<_ACEOF
19449/* confdefs.h. */
19450_ACEOF
19451cat confdefs.h >>conftest.$ac_ext
19452cat >>conftest.$ac_ext <<_ACEOF
19453/* end confdefs.h. */
19454
19455/* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19458#ifdef __cplusplus
19459extern "C"
19460#endif
19461char __udivdi3 ();
19462int
19463main ()
19464{
19465return __udivdi3 ();
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext conftest$ac_exeext
19471if { (ac_try="$ac_link"
19472case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475esac
19476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19485 { (case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19488esac
19489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_try") 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest$ac_exeext'
19495 { (case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498esac
19499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_try") 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_lib_gcc___udivdi3=yes
19505else
19506 echo "$as_me: failed program was:" >&5
19507sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_cv_lib_gcc___udivdi3=no
19510fi
19511
19512rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19514LIBS=$ac_check_lib_save_LIBS
19515fi
19516{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19517echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19518if test $ac_cv_lib_gcc___udivdi3 = yes; then
19519
19520cat >>confdefs.h <<\_ACEOF
19521#define HAVE___UDIVDI3 1
19522_ACEOF
19523
19524fi
19525
19526 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19527echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19528if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19530else
19531 ac_check_lib_save_LIBS=$LIBS
19532LIBS="-lgcc $LIBS"
19533cat >conftest.$ac_ext <<_ACEOF
19534/* confdefs.h. */
19535_ACEOF
19536cat confdefs.h >>conftest.$ac_ext
19537cat >>conftest.$ac_ext <<_ACEOF
19538/* end confdefs.h. */
19539
19540/* Override any GCC internal prototype to avoid an error.
19541 Use char because int might match the return type of a GCC
19542 builtin and then its argument prototype would still apply. */
19543#ifdef __cplusplus
19544extern "C"
19545#endif
19546char __umoddi3 ();
19547int
19548main ()
19549{
19550return __umoddi3 ();
19551 ;
19552 return 0;
19553}
19554_ACEOF
19555rm -f conftest.$ac_objext conftest$ac_exeext
19556if { (ac_try="$ac_link"
19557case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19560esac
19561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_link") 2>conftest.er1
19563 ac_status=$?
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19573esac
19574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest$ac_exeext'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583esac
19584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_lib_gcc___umoddi3=yes
19590else
19591 echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_lib_gcc___umoddi3=no
19595fi
19596
19597rm -f core conftest.err conftest.$ac_objext \
19598 conftest$ac_exeext conftest.$ac_ext
19599LIBS=$ac_check_lib_save_LIBS
19600fi
19601{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19602echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19603if test $ac_cv_lib_gcc___umoddi3 = yes; then
19604
19605cat >>confdefs.h <<\_ACEOF
19606#define HAVE___UMODDI3 1
19607_ACEOF
19608
19609fi
19610
19611
19612 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19613echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19614if test "${ac_cv_lib_gcc___main+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616else
19617 ac_check_lib_save_LIBS=$LIBS
19618LIBS="-lgcc $LIBS"
19619cat >conftest.$ac_ext <<_ACEOF
19620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
19625
19626/* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19629#ifdef __cplusplus
19630extern "C"
19631#endif
19632char __main ();
19633int
19634main ()
19635{
19636return __main ();
19637 ;
19638 return 0;
19639}
19640_ACEOF
19641rm -f conftest.$ac_objext conftest$ac_exeext
19642if { (ac_try="$ac_link"
19643case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19646esac
19647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_link") 2>conftest.er1
19649 ac_status=$?
19650 grep -v '^ *+' conftest.er1 >conftest.err
19651 rm -f conftest.er1
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } &&
19655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19656 { (case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659esac
19660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_try") 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest$ac_exeext'
19666 { (case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19669esac
19670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_try") 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 ac_cv_lib_gcc___main=yes
19676else
19677 echo "$as_me: failed program was:" >&5
19678sed 's/^/| /' conftest.$ac_ext >&5
19679
19680 ac_cv_lib_gcc___main=no
19681fi
19682
19683rm -f core conftest.err conftest.$ac_objext \
19684 conftest$ac_exeext conftest.$ac_ext
19685LIBS=$ac_check_lib_save_LIBS
19686fi
19687{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19688echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19689if test $ac_cv_lib_gcc___main = yes; then
19690
19691cat >>confdefs.h <<\_ACEOF
19692#define HAVE___MAIN 1
19693_ACEOF
19694
19695fi
19696
19697 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19698echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19699if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701else
19702 ac_check_lib_save_LIBS=$LIBS
19703LIBS="-lgcc $LIBS"
19704cat >conftest.$ac_ext <<_ACEOF
19705/* confdefs.h. */
19706_ACEOF
19707cat confdefs.h >>conftest.$ac_ext
19708cat >>conftest.$ac_ext <<_ACEOF
19709/* end confdefs.h. */
19710
19711/* Override any GCC internal prototype to avoid an error.
19712 Use char because int might match the return type of a GCC
19713 builtin and then its argument prototype would still apply. */
19714#ifdef __cplusplus
19715extern "C"
19716#endif
19717char __cmpdi2 ();
19718int
19719main ()
19720{
19721return __cmpdi2 ();
19722 ;
19723 return 0;
19724}
19725_ACEOF
19726rm -f conftest.$ac_objext conftest$ac_exeext
19727if { (ac_try="$ac_link"
19728case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731esac
19732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_link") 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19741 { (case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744esac
19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_try") 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; } &&
19750 { ac_try='test -s conftest$ac_exeext'
19751 { (case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19754esac
19755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_try") 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_cv_lib_gcc___cmpdi2=yes
19761else
19762 echo "$as_me: failed program was:" >&5
19763sed 's/^/| /' conftest.$ac_ext >&5
19764
19765 ac_cv_lib_gcc___cmpdi2=no
19766fi
19767
19768rm -f core conftest.err conftest.$ac_objext \
19769 conftest$ac_exeext conftest.$ac_ext
19770LIBS=$ac_check_lib_save_LIBS
19771fi
19772{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19773echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19774if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19775
19776cat >>confdefs.h <<\_ACEOF
19777#define HAVE___CMPDI2 1
19778_ACEOF
19779
19780fi
19781
19782fi
19783
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000019784if test "$llvm_cv_os_type" = "MingW" ; then
19785 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19786echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19787 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019788
19789 /* confdefs.h. */
19790_ACEOF
19791cat confdefs.h >>conftest.$ac_ext
19792cat >>conftest.$ac_ext <<_ACEOF
19793/* end confdefs.h. */
19794
19795 #include <windows.h>
19796 #include <imagehlp.h>
19797 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19798 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19799
19800
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000019801_ACEOF
19802rm -f conftest.$ac_objext
19803if { (ac_try="$ac_compile"
19804case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807esac
19808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_compile") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } &&
19816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820esac
19821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest.$ac_objext'
19827 { (case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830esac
19831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_try") 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836
19837 { echo "$as_me:$LINENO: result: yes" >&5
19838echo "${ECHO_T}yes" >&6; }
19839 llvm_cv_win32_elmcb_pcstr="PCSTR"
19840
19841else
19842 echo "$as_me: failed program was:" >&5
19843sed 's/^/| /' conftest.$ac_ext >&5
19844
19845
19846 { echo "$as_me:$LINENO: result: no" >&5
19847echo "${ECHO_T}no" >&6; }
19848 llvm_cv_win32_elmcb_pcstr="PSTR"
19849
19850fi
19851
19852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853
19854cat >>confdefs.h <<_ACEOF
19855#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19856_ACEOF
19857
19858fi
19859
Torok Edwinaec06332010-01-26 08:50:50 +000019860
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019861
19862 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019863echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19864if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000019866else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019867
19868 ac_ext=cpp
John Criswell3ef61af2003-06-30 21:59:07 +000019869ac_cpp='$CXXCPP $CPPFLAGS'
19870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19873
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019874 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019875/* confdefs.h. */
19876_ACEOF
19877cat confdefs.h >>conftest.$ac_ext
19878cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000019879/* end confdefs.h. */
19880#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000019881int
19882main ()
19883{
19884float f; isnan(f);
19885 ;
19886 return 0;
19887}
Brian Gaekec77683c2004-06-22 23:47:13 +000019888_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019889rm -f conftest.$ac_objext
19890if { (ac_try="$ac_compile"
19891case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894esac
19895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_compile") 2>conftest.er1
19897 ac_status=$?
19898 grep -v '^ *+' conftest.er1 >conftest.err
19899 rm -f conftest.er1
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
19903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19904 { (case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19907esac
19908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_try") 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917esac
19918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_try") 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000019923 ac_cv_func_isnan_in_math_h=yes
19924else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019925 echo "$as_me: failed program was:" >&5
19926sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ac_cv_func_isnan_in_math_h=no
Brian Gaekec77683c2004-06-22 23:47:13 +000019929fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019930
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019932 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000019933ac_cpp='$CPP $CPPFLAGS'
19934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19936ac_compiler_gnu=$ac_cv_c_compiler_gnu
19937
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019938
Brian Gaekec77683c2004-06-22 23:47:13 +000019939fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019940{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19941echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000019942
19943
19944if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000019945
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019946cat >>confdefs.h <<\_ACEOF
19947#define HAVE_ISNAN_IN_MATH_H 1
19948_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000019949
Reid Spencerf9676532004-10-27 23:03:44 +000019950fi
19951
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019952
19953 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019954echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19955if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000019957else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019958
19959 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000019960ac_cpp='$CXXCPP $CPPFLAGS'
19961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19964
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019965 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019966/* confdefs.h. */
19967_ACEOF
19968cat confdefs.h >>conftest.$ac_ext
19969cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000019970/* end confdefs.h. */
19971#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000019972int
19973main ()
19974{
19975float f; isnan(f);
19976 ;
19977 return 0;
19978}
Brian Gaekec77683c2004-06-22 23:47:13 +000019979_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019980rm -f conftest.$ac_objext
19981if { (ac_try="$ac_compile"
19982case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985esac
19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19995 { (case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_try") 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest.$ac_objext'
20005 { (case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008esac
20009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_try") 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020014 ac_cv_func_isnan_in_cmath=yes
20015else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020016 echo "$as_me: failed program was:" >&5
20017sed 's/^/| /' conftest.$ac_ext >&5
20018
20019 ac_cv_func_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020020fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020021
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020023 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020024ac_cpp='$CPP $CPPFLAGS'
20025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20027ac_compiler_gnu=$ac_cv_c_compiler_gnu
20028
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020029
Brian Gaekec77683c2004-06-22 23:47:13 +000020030fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020031{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20032echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020033
20034if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020035
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020036cat >>confdefs.h <<\_ACEOF
20037#define HAVE_ISNAN_IN_CMATH 1
20038_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020039
Reid Spencerf9676532004-10-27 23:03:44 +000020040fi
20041
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020042
20043 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020044echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20045if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000020047else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020048
20049 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000020050ac_cpp='$CXXCPP $CPPFLAGS'
20051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20054
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020055 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020056/* confdefs.h. */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020060/* end confdefs.h. */
20061#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020062int
20063main ()
20064{
20065float f; std::isnan(f);
20066 ;
20067 return 0;
20068}
Brian Gaekec77683c2004-06-22 23:47:13 +000020069_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020070rm -f conftest.$ac_objext
20071if { (ac_try="$ac_compile"
20072case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075esac
20076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_compile") 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20085 { (case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088esac
20089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_try") 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098esac
20099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_try") 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020104 ac_cv_func_std_isnan_in_cmath=yes
20105else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020106 echo "$as_me: failed program was:" >&5
20107sed 's/^/| /' conftest.$ac_ext >&5
20108
20109 ac_cv_func_std_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020110fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020111
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020113 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020114ac_cpp='$CPP $CPPFLAGS'
20115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20117ac_compiler_gnu=$ac_cv_c_compiler_gnu
20118
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020119
Brian Gaekec77683c2004-06-22 23:47:13 +000020120fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020121{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20122echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020123
20124if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020125
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020126cat >>confdefs.h <<\_ACEOF
20127#define HAVE_STD_ISNAN_IN_CMATH 1
20128_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020129
Reid Spencerf9676532004-10-27 23:03:44 +000020130fi
Brian Gaekec77683c2004-06-22 23:47:13 +000020131
20132
NAKAMURA Takumif7148bd2013-01-30 01:37:49 +000020133
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020134
20135 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020136echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20137if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020139else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020140
20141 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020142ac_cpp='$CXXCPP $CPPFLAGS'
20143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20146
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020147 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020148/* confdefs.h. */
20149_ACEOF
20150cat confdefs.h >>conftest.$ac_ext
20151cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020152/* end confdefs.h. */
20153#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000020154int
20155main ()
20156{
20157float f; isinf(f);
20158 ;
20159 return 0;
20160}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020161_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020162rm -f conftest.$ac_objext
20163if { (ac_try="$ac_compile"
20164case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20167esac
20168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20177 { (case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20180esac
20181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_try") 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
20187 { (case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190esac
20191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_try") 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020196 ac_cv_func_isinf_in_math_h=yes
20197else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020198 echo "$as_me: failed program was:" >&5
20199sed 's/^/| /' conftest.$ac_ext >&5
20200
20201 ac_cv_func_isinf_in_math_h=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020202fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020203
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020205 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020206ac_cpp='$CPP $CPPFLAGS'
20207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20209ac_compiler_gnu=$ac_cv_c_compiler_gnu
20210
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020211
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020212fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020213{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20214echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020215
20216if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020217
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020218cat >>confdefs.h <<\_ACEOF
20219#define HAVE_ISINF_IN_MATH_H 1
20220_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020221
Reid Spencerf9676532004-10-27 23:03:44 +000020222fi
20223
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020224
20225 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020226echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20227if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020229else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020230
20231 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020232ac_cpp='$CXXCPP $CPPFLAGS'
20233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20236
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020237 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020242/* end confdefs.h. */
20243#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020244int
20245main ()
20246{
20247float f; isinf(f);
20248 ;
20249 return 0;
20250}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020251_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020252rm -f conftest.$ac_objext
20253if { (ac_try="$ac_compile"
20254case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20257esac
20258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_compile") 2>conftest.er1
20260 ac_status=$?
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20267 { (case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270esac
20271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_try") 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; } &&
20276 { ac_try='test -s conftest.$ac_objext'
20277 { (case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20280esac
20281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_try") 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020286 ac_cv_func_isinf_in_cmath=yes
20287else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020288 echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291 ac_cv_func_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020292fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020293
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020295 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020296ac_cpp='$CPP $CPPFLAGS'
20297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20299ac_compiler_gnu=$ac_cv_c_compiler_gnu
20300
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020301
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020302fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020303{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20304echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020305
20306if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020307
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020308cat >>confdefs.h <<\_ACEOF
20309#define HAVE_ISINF_IN_CMATH 1
20310_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020311
Reid Spencerf9676532004-10-27 23:03:44 +000020312fi
20313
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020314
20315 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020316echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20317if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020319else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020320
20321 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020322ac_cpp='$CXXCPP $CPPFLAGS'
20323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20326
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020327 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020332/* end confdefs.h. */
20333#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020334int
20335main ()
20336{
Eric Christophereb75cc22012-03-26 02:09:01 +000020337float f; std::isinf(f);
Reid Spencerf9676532004-10-27 23:03:44 +000020338 ;
20339 return 0;
20340}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020341_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020342rm -f conftest.$ac_objext
20343if { (ac_try="$ac_compile"
20344case "(($ac_try" in
20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346 *) ac_try_echo=$ac_try;;
20347esac
20348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349 (eval "$ac_compile") 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20357 { (case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20360esac
20361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_try") 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; } &&
20366 { ac_try='test -s conftest.$ac_objext'
20367 { (case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20370esac
20371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_try") 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020376 ac_cv_func_std_isinf_in_cmath=yes
20377else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020378 echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020382fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020383
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020385 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020386ac_cpp='$CPP $CPPFLAGS'
20387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389ac_compiler_gnu=$ac_cv_c_compiler_gnu
20390
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020391
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020392fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020393{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20394echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020395
20396if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020397
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020398cat >>confdefs.h <<\_ACEOF
20399#define HAVE_STD_ISINF_IN_CMATH 1
20400_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020401
Reid Spencerf9676532004-10-27 23:03:44 +000020402fi
20403
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020404
20405 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020406echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20407if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekea8704452004-07-21 03:33:58 +000020409else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020410
20411 ac_ext=cpp
Brian Gaekea8704452004-07-21 03:33:58 +000020412ac_cpp='$CXXCPP $CPPFLAGS'
20413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20416
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020417 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020418/* confdefs.h. */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000020422/* end confdefs.h. */
20423#include <ieeefp.h>
Reid Spencerf9676532004-10-27 23:03:44 +000020424int
20425main ()
20426{
20427float f; finite(f);
20428 ;
20429 return 0;
20430}
Brian Gaekea8704452004-07-21 03:33:58 +000020431_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020432rm -f conftest.$ac_objext
20433if { (ac_try="$ac_compile"
20434case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437esac
20438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_compile") 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
20446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20447 { (case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450esac
20451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_try") 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; } &&
20456 { ac_try='test -s conftest.$ac_objext'
20457 { (case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460esac
20461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_try") 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
Brian Gaekea8704452004-07-21 03:33:58 +000020466 ac_cv_func_finite_in_ieeefp_h=yes
20467else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020468 echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaekea8704452004-07-21 03:33:58 +000020472fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020473
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020475 ac_ext=c
Brian Gaekea8704452004-07-21 03:33:58 +000020476ac_cpp='$CPP $CPPFLAGS'
20477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020481
Brian Gaekea8704452004-07-21 03:33:58 +000020482fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020483{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20484echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020485
Brian Gaekeae050e02004-10-28 05:06:45 +000020486if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaekea8704452004-07-21 03:33:58 +000020487
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020488cat >>confdefs.h <<\_ACEOF
20489#define HAVE_FINITE_IN_IEEEFP_H 1
20490_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000020491
Reid Spencerf9676532004-10-27 23:03:44 +000020492fi
20493
20494
20495
Reid Spencerdfda0612007-01-20 07:48:49 +000020496if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell3ef61af2003-06-30 21:59:07 +000020497
20498
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020499for ac_header in stdlib.h unistd.h
20500do
20501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20507fi
20508ac_res=`eval echo '${'$as_ac_Header'}'`
20509 { echo "$as_me:$LINENO: result: $ac_res" >&5
20510echo "${ECHO_T}$ac_res" >&6; }
20511else
20512 # Is the header compilable?
20513{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20515cat >conftest.$ac_ext <<_ACEOF
20516/* confdefs.h. */
20517_ACEOF
20518cat confdefs.h >>conftest.$ac_ext
20519cat >>conftest.$ac_ext <<_ACEOF
20520/* end confdefs.h. */
20521$ac_includes_default
20522#include <$ac_header>
20523_ACEOF
20524rm -f conftest.$ac_objext
20525if { (ac_try="$ac_compile"
20526case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529esac
20530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_compile") 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
20538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20539 { (case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542esac
20543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_try") 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20552esac
20553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554 (eval "$ac_try") 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ac_header_compiler=yes
20559else
20560 echo "$as_me: failed program was:" >&5
20561sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000020562
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020563 ac_header_compiler=no
20564fi
20565
20566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20568echo "${ECHO_T}$ac_header_compiler" >&6; }
20569
20570# Is the header present?
20571{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20573cat >conftest.$ac_ext <<_ACEOF
20574/* confdefs.h. */
20575_ACEOF
20576cat confdefs.h >>conftest.$ac_ext
20577cat >>conftest.$ac_ext <<_ACEOF
20578/* end confdefs.h. */
20579#include <$ac_header>
20580_ACEOF
20581if { (ac_try="$ac_cpp conftest.$ac_ext"
20582case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20588 ac_status=$?
20589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } >/dev/null; then
20594 if test -s conftest.err; then
20595 ac_cpp_err=$ac_c_preproc_warn_flag
20596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20597 else
20598 ac_cpp_err=
20599 fi
20600else
20601 ac_cpp_err=yes
20602fi
20603if test -z "$ac_cpp_err"; then
20604 ac_header_preproc=yes
20605else
20606 echo "$as_me: failed program was:" >&5
20607sed 's/^/| /' conftest.$ac_ext >&5
20608
20609 ac_header_preproc=no
20610fi
20611
20612rm -f conftest.err conftest.$ac_ext
20613{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20614echo "${ECHO_T}$ac_header_preproc" >&6; }
20615
20616# So? What about this header?
20617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20618 yes:no: )
20619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20623 ac_header_preproc=yes
20624 ;;
20625 no:yes:* )
20626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20638 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000020639## ------------------------------------ ##
20640## Report this to http://llvm.org/bugs/ ##
20641## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020642_ASBOX
20643 ) | sed "s/^/$as_me: WARNING: /" >&2
20644 ;;
20645esac
20646{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650else
20651 eval "$as_ac_Header=\$ac_header_preproc"
20652fi
20653ac_res=`eval echo '${'$as_ac_Header'}'`
20654 { echo "$as_me:$LINENO: result: $ac_res" >&5
20655echo "${ECHO_T}$ac_res" >&6; }
20656
20657fi
20658if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000020659 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000020661_ACEOF
20662
20663fi
20664
20665done
20666
20667
20668for ac_func in getpagesize
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020669do
20670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675else
20676 cat >conftest.$ac_ext <<_ACEOF
20677/* confdefs.h. */
20678_ACEOF
20679cat confdefs.h >>conftest.$ac_ext
20680cat >>conftest.$ac_ext <<_ACEOF
20681/* end confdefs.h. */
20682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20684#define $ac_func innocuous_$ac_func
20685
20686/* System header to define __stub macros and hopefully few prototypes,
20687 which can conflict with char $ac_func (); below.
20688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20689 <limits.h> exists even on freestanding compilers. */
20690
20691#ifdef __STDC__
20692# include <limits.h>
20693#else
20694# include <assert.h>
20695#endif
20696
20697#undef $ac_func
20698
20699/* Override any GCC internal prototype to avoid an error.
20700 Use char because int might match the return type of a GCC
20701 builtin and then its argument prototype would still apply. */
20702#ifdef __cplusplus
20703extern "C"
20704#endif
20705char $ac_func ();
20706/* The GNU C library defines this for functions which it implements
20707 to always fail with ENOSYS. Some functions are actually named
20708 something starting with __ and the normal name is an alias. */
20709#if defined __stub_$ac_func || defined __stub___$ac_func
20710choke me
20711#endif
20712
20713int
20714main ()
20715{
20716return $ac_func ();
20717 ;
20718 return 0;
20719}
20720_ACEOF
20721rm -f conftest.$ac_objext conftest$ac_exeext
20722if { (ac_try="$ac_link"
20723case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20726esac
20727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_link") 2>conftest.er1
20729 ac_status=$?
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } &&
20735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20736 { (case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20739esac
20740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741 (eval "$ac_try") 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest$ac_exeext'
20746 { (case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749esac
20750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_try") 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 eval "$as_ac_var=yes"
20756else
20757 echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 eval "$as_ac_var=no"
20761fi
20762
20763rm -f core conftest.err conftest.$ac_objext \
20764 conftest$ac_exeext conftest.$ac_ext
20765fi
20766ac_res=`eval echo '${'$as_ac_var'}'`
20767 { echo "$as_me:$LINENO: result: $ac_res" >&5
20768echo "${ECHO_T}$ac_res" >&6; }
20769if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000020770 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000020772_ACEOF
20773
20774fi
20775done
20776
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020777{ echo "$as_me:$LINENO: checking for working mmap" >&5
20778echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20779if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000020781else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020782 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000020783 ac_cv_func_mmap_fixed_mapped=no
20784else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020785 cat >conftest.$ac_ext <<_ACEOF
20786/* confdefs.h. */
20787_ACEOF
20788cat confdefs.h >>conftest.$ac_ext
20789cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000020790/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000020791$ac_includes_default
20792/* malloc might have been renamed as rpl_malloc. */
20793#undef malloc
20794
20795/* Thanks to Mike Haertel and Jim Avera for this test.
20796 Here is a matrix of mmap possibilities:
20797 mmap private not fixed
20798 mmap private fixed at somewhere currently unmapped
20799 mmap private fixed at somewhere already mapped
20800 mmap shared not fixed
20801 mmap shared fixed at somewhere currently unmapped
20802 mmap shared fixed at somewhere already mapped
20803 For private mappings, we should verify that changes cannot be read()
20804 back from the file, nor mmap's back from the file at a different
20805 address. (There have been systems where private was not correctly
20806 implemented like the infamous i386 svr4.0, and systems where the
20807 VM page cache was not coherent with the file system buffer cache
20808 like early versions of FreeBSD and possibly contemporary NetBSD.)
20809 For shared mappings, we should conversely verify that changes get
20810 propagated back to all the places they're supposed to be.
20811
20812 Grep wants private fixed already mapped.
20813 The main things grep needs to know about mmap are:
20814 * does it exist and is it safe to write into the mmap'd area
20815 * how to use it (BSD variants) */
20816
20817#include <fcntl.h>
20818#include <sys/mman.h>
20819
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020820#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +000020821char *malloc ();
20822#endif
20823
20824/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020825#if !HAVE_GETPAGESIZE
20826/* Assume that all systems that can run configure have sys/param.h. */
20827# if !HAVE_SYS_PARAM_H
20828# define HAVE_SYS_PARAM_H 1
20829# endif
20830
John Criswell3ef61af2003-06-30 21:59:07 +000020831# ifdef _SC_PAGESIZE
20832# define getpagesize() sysconf(_SC_PAGESIZE)
20833# else /* no _SC_PAGESIZE */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020834# if HAVE_SYS_PARAM_H
John Criswell3ef61af2003-06-30 21:59:07 +000020835# include <sys/param.h>
20836# ifdef EXEC_PAGESIZE
20837# define getpagesize() EXEC_PAGESIZE
20838# else /* no EXEC_PAGESIZE */
20839# ifdef NBPG
20840# define getpagesize() NBPG * CLSIZE
20841# ifndef CLSIZE
20842# define CLSIZE 1
20843# endif /* no CLSIZE */
20844# else /* no NBPG */
20845# ifdef NBPC
20846# define getpagesize() NBPC
20847# else /* no NBPC */
20848# ifdef PAGESIZE
20849# define getpagesize() PAGESIZE
20850# endif /* PAGESIZE */
20851# endif /* no NBPC */
20852# endif /* no NBPG */
20853# endif /* no EXEC_PAGESIZE */
20854# else /* no HAVE_SYS_PARAM_H */
20855# define getpagesize() 8192 /* punt totally */
20856# endif /* no HAVE_SYS_PARAM_H */
20857# endif /* no _SC_PAGESIZE */
20858
20859#endif /* no HAVE_GETPAGESIZE */
20860
20861int
20862main ()
20863{
20864 char *data, *data2, *data3;
20865 int i, pagesize;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020866 int fd;
John Criswell3ef61af2003-06-30 21:59:07 +000020867
20868 pagesize = getpagesize ();
20869
20870 /* First, make a file with some known garbage in it. */
20871 data = (char *) malloc (pagesize);
20872 if (!data)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020873 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000020874 for (i = 0; i < pagesize; ++i)
20875 *(data + i) = rand ();
20876 umask (0);
20877 fd = creat ("conftest.mmap", 0600);
20878 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020879 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000020880 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020881 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000020882 close (fd);
20883
20884 /* Next, try to mmap the file at a fixed address which already has
20885 something else allocated at it. If we can, also make sure that
20886 we see the same garbage. */
20887 fd = open ("conftest.mmap", O_RDWR);
20888 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020889 return 1;
20890 data2 = (char *) malloc (2 * pagesize);
20891 if (!data2)
20892 return 1;
20893 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell3ef61af2003-06-30 21:59:07 +000020894 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencerf184a862004-09-19 23:53:36 +000020895 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020896 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000020897 for (i = 0; i < pagesize; ++i)
20898 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020899 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000020900
20901 /* Finally, make sure that changes to the mapped area do not
20902 percolate back to the file as seen by read(). (This is a bug on
20903 some variants of i386 svr4.0.) */
20904 for (i = 0; i < pagesize; ++i)
20905 *(data2 + i) = *(data2 + i) + 1;
20906 data3 = (char *) malloc (pagesize);
20907 if (!data3)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020908 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000020909 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020910 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000020911 for (i = 0; i < pagesize; ++i)
20912 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020913 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000020914 close (fd);
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020915 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +000020916}
20917_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020918rm -f conftest$ac_exeext
20919if { (ac_try="$ac_link"
20920case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923esac
20924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_link") 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20929 { (case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20932esac
20933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_try") 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000020938 ac_cv_func_mmap_fixed_mapped=yes
20939else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020940 echo "$as_me: program exited with status $ac_status" >&5
20941echo "$as_me: failed program was:" >&5
20942sed 's/^/| /' conftest.$ac_ext >&5
20943
20944( exit $ac_status )
20945ac_cv_func_mmap_fixed_mapped=no
John Criswell3ef61af2003-06-30 21:59:07 +000020946fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020947rm -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 +000020948fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020949
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020950
John Criswell3ef61af2003-06-30 21:59:07 +000020951fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020952{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20953echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000020954if test $ac_cv_func_mmap_fixed_mapped = yes; then
20955
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020956cat >>confdefs.h <<\_ACEOF
20957#define HAVE_MMAP 1
20958_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020959
20960fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020961rm -f conftest.mmap
John Criswell3ef61af2003-06-30 21:59:07 +000020962
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020963 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20964echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20965if test "${ac_cv_func_mmap_file+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000020967else
Reid Spencerf184a862004-09-19 23:53:36 +000020968 ac_ext=c
John Criswell3ef61af2003-06-30 21:59:07 +000020969ac_cpp='$CPP $CPPFLAGS'
20970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972ac_compiler_gnu=$ac_cv_c_compiler_gnu
20973
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020974 if test "$cross_compiling" = yes; then
Reid Spencer5a6815d2004-09-21 17:14:44 +000020975 ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000020976else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020977 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerac16ea92004-09-20 04:09:56 +000020978
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020979 /* confdefs.h. */
20980_ACEOF
20981cat confdefs.h >>conftest.$ac_ext
20982cat >>conftest.$ac_ext <<_ACEOF
20983/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000020984
John Criswell3ef61af2003-06-30 21:59:07 +000020985#include <sys/types.h>
John Criswelle3a9bd82003-10-09 15:44:28 +000020986#include <sys/mman.h>
John Criswell3ef61af2003-06-30 21:59:07 +000020987#include <fcntl.h>
Reid Spencerac16ea92004-09-20 04:09:56 +000020988
20989int
20990main ()
20991{
John Criswell3ef61af2003-06-30 21:59:07 +000020992
20993 int fd;
Reid Spencerac16ea92004-09-20 04:09:56 +000020994 fd = creat ("foo",0777);
20995 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20996 unlink ("foo");
Reid Spencer5a6815d2004-09-21 17:14:44 +000020997 return (fd != (int) MAP_FAILED);
Reid Spencerac16ea92004-09-20 04:09:56 +000020998 ;
20999 return 0;
21000}
John Criswell3ef61af2003-06-30 21:59:07 +000021001_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021002rm -f conftest$ac_exeext
21003if { (ac_try="$ac_link"
21004case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21007esac
21008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_link") 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
John Criswell3ef61af2003-06-30 21:59:07 +000021022 ac_cv_func_mmap_file=yes
21023else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021024 echo "$as_me: program exited with status $ac_status" >&5
21025echo "$as_me: failed program was:" >&5
21026sed 's/^/| /' conftest.$ac_ext >&5
21027
21028( exit $ac_status )
21029ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000021030fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021031rm -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 +000021032fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021033
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021034
John Criswell3ef61af2003-06-30 21:59:07 +000021035 ac_ext=c
21036ac_cpp='$CPP $CPPFLAGS'
21037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040
21041
21042fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021043{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21044echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000021045if test "$ac_cv_func_mmap_file" = yes; then
John Criswelle3a9bd82003-10-09 15:44:28 +000021046
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021047cat >>confdefs.h <<\_ACEOF
21048#define HAVE_MMAP_FILE
21049_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021050
21051 MMAP_FILE=yes
21052
21053fi
21054
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021055 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21056echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21057if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6681582004-12-27 06:15:02 +000021059else
Reid Spencer3d745d42004-12-29 07:07:57 +000021060 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencerb6681582004-12-27 06:15:02 +000021061 ac_cv_need_dev_zero_for_mmap=yes
21062 else
21063 ac_cv_need_dev_zero_for_mmap=no
21064 fi
21065
21066fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021067{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21068echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencerb6681582004-12-27 06:15:02 +000021069if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21070
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021071cat >>confdefs.h <<\_ACEOF
21072#define NEED_DEV_ZERO_FOR_MMAP 1
21073_ACEOF
Reid Spencerb6681582004-12-27 06:15:02 +000021074
21075fi
Reid Spencerf184a862004-09-19 23:53:36 +000021076
Reid Spencerdfda0612007-01-20 07:48:49 +000021077 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21078 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021079 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21080echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000021081 fi
21082 if test "$ac_cv_func_mmap_file" = "no"
21083 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021084 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21085echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000021086 fi
John Criswellb65ddad2003-07-22 21:00:24 +000021087fi
John Criswell3ef61af2003-06-30 21:59:07 +000021088
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021089{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21090echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7eb8112010-07-28 20:26:43 +000021091ac_ext=cpp
21092ac_cpp='$CXXCPP $CPPFLAGS'
21093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21096
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021097cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021098
21099 /* confdefs.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonb9509c52009-05-18 23:58:51 +000021103/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021104
21105 int main() {
21106 volatile unsigned long val = 1;
21107 __sync_synchronize();
21108 __sync_val_compare_and_swap(&val, 1, 0);
21109 __sync_add_and_fetch(&val, 1);
21110 __sync_sub_and_fetch(&val, 1);
21111 return 0;
21112 }
21113
Owen Andersonb9509c52009-05-18 23:58:51 +000021114
21115_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021116rm -f conftest.$ac_objext conftest$ac_exeext
21117if { (ac_try="$ac_link"
21118case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21121esac
21122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_link") 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } &&
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021131 { (case "(($ac_try" in
21132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21134esac
21135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_try") 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; } &&
21140 { ac_try='test -s conftest$ac_exeext'
21141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144esac
21145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
Eric Christopherf7eb8112010-07-28 20:26:43 +000021150
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021151 { echo "$as_me:$LINENO: result: yes" >&5
21152echo "${ECHO_T}yes" >&6; }
Owen Andersonaf5db832009-05-19 22:18:56 +000021153
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021154cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000021155#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021156_ACEOF
Owen Andersonaf5db832009-05-19 22:18:56 +000021157
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021158
Owen Andersonb9509c52009-05-18 23:58:51 +000021159else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021160 echo "$as_me: failed program was:" >&5
21161sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonb9509c52009-05-18 23:58:51 +000021162
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021163
21164 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021165echo "${ECHO_T}no" >&6; }
Owen Andersonb9509c52009-05-18 23:58:51 +000021166
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021167cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000021168#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021169_ACEOF
21170
21171 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21172echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021173
Owen Andersonb9509c52009-05-18 23:58:51 +000021174fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021175
Owen Andersonb9509c52009-05-18 23:58:51 +000021176rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021177 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021178ac_ext=c
21179ac_cpp='$CPP $CPPFLAGS'
21180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182ac_compiler_gnu=$ac_cv_c_compiler_gnu
21183
Owen Andersonb9509c52009-05-18 23:58:51 +000021184
John Criswell3ef61af2003-06-30 21:59:07 +000021185
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021186if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021187 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21188echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21189if test "${llvm_cv_linux_mixed+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021191else
21192 ac_ext=c
21193ac_cpp='$CPP $CPPFLAGS'
21194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196ac_compiler_gnu=$ac_cv_c_compiler_gnu
21197
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021198 cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021203/* end confdefs.h. */
21204#ifndef __x86_64__
21205 error: Not x86-64 even if uname says so!
21206 #endif
21207
21208int
21209main ()
21210{
21211
21212 ;
21213 return 0;
21214}
21215_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021216rm -f conftest.$ac_objext
21217if { (ac_try="$ac_compile"
21218case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21221esac
21222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_compile") 2>conftest.er1
21224 ac_status=$?
21225 grep -v '^ *+' conftest.er1 >conftest.err
21226 rm -f conftest.er1
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21231 { (case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21234esac
21235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_try") 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
21241 { (case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21244esac
21245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_try") 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021250 llvm_cv_linux_mixed=no
21251else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021252 echo "$as_me: failed program was:" >&5
21253sed 's/^/| /' conftest.$ac_ext >&5
21254
21255 llvm_cv_linux_mixed=yes
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021256fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021257
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259 ac_ext=c
21260ac_cpp='$CPP $CPPFLAGS'
21261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21263ac_compiler_gnu=$ac_cv_c_compiler_gnu
21264
21265
21266fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021267{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21268echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021269
21270 if test "$llvm_cv_linux_mixed" = "yes"; then
21271 llvm_cv_target_arch="x86"
21272 ARCH="x86"
21273 fi
21274fi
21275
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021276
Reid Spencer32046f72007-07-30 20:13:24 +000021277for ac_func in __dso_handle
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021278do
21279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284else
21285 cat >conftest.$ac_ext <<_ACEOF
21286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
21290/* end confdefs.h. */
21291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21293#define $ac_func innocuous_$ac_func
21294
21295/* System header to define __stub macros and hopefully few prototypes,
21296 which can conflict with char $ac_func (); below.
21297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21298 <limits.h> exists even on freestanding compilers. */
21299
21300#ifdef __STDC__
21301# include <limits.h>
21302#else
21303# include <assert.h>
21304#endif
21305
21306#undef $ac_func
21307
21308/* Override any GCC internal prototype to avoid an error.
21309 Use char because int might match the return type of a GCC
21310 builtin and then its argument prototype would still apply. */
21311#ifdef __cplusplus
21312extern "C"
21313#endif
21314char $ac_func ();
21315/* The GNU C library defines this for functions which it implements
21316 to always fail with ENOSYS. Some functions are actually named
21317 something starting with __ and the normal name is an alias. */
21318#if defined __stub_$ac_func || defined __stub___$ac_func
21319choke me
21320#endif
21321
21322int
21323main ()
21324{
21325return $ac_func ();
21326 ;
21327 return 0;
21328}
21329_ACEOF
21330rm -f conftest.$ac_objext conftest$ac_exeext
21331if { (ac_try="$ac_link"
21332case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21335esac
21336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_link") 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
21344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21345 { (case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348esac
21349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_try") 2>&5
21351 ac_status=$?
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; } &&
21354 { ac_try='test -s conftest$ac_exeext'
21355 { (case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358esac
21359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_try") 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 eval "$as_ac_var=yes"
21365else
21366 echo "$as_me: failed program was:" >&5
21367sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 eval "$as_ac_var=no"
21370fi
21371
21372rm -f core conftest.err conftest.$ac_objext \
21373 conftest$ac_exeext conftest.$ac_ext
21374fi
21375ac_res=`eval echo '${'$as_ac_var'}'`
21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377echo "${ECHO_T}$ac_res" >&6; }
21378if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer32046f72007-07-30 20:13:24 +000021379 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer32046f72007-07-30 20:13:24 +000021381_ACEOF
21382
21383fi
21384done
21385
21386
Reid Spencera40c6872004-11-29 12:29:58 +000021387SHLIBEXT=$libltdl_cv_shlibext
Brian Gaekea2404522004-01-21 19:39:29 +000021388
21389
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000021390SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21391
21392
Jeff Cohenc5e5b272007-01-12 18:22:38 +000021393if test "${prefix}" = "NONE" ; then
Reid Spencer40f1b132006-05-16 08:53:32 +000021394 prefix="/usr/local"
21395fi
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021396eval LLVM_PREFIX="${prefix}";
21397eval LLVM_BINDIR="${prefix}/bin";
21398eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer0194c9a2004-11-29 04:56:35 +000021399eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb3762a02010-03-02 05:17:21 +000021400eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer0194c9a2004-11-29 04:56:35 +000021401eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021402eval LLVM_INCLUDEDIR="${prefix}/include";
21403eval LLVM_INFODIR="${prefix}/info";
21404eval LLVM_MANDIR="${prefix}/man";
21405LLVM_CONFIGTIME=`date`
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
Daniel Dunbar9370ecf2012-03-02 16:24:21 +000021417if test "${ENABLE_TIMESTAMPS}" = "0"; then
21418 LLVM_CONFIGTIME="(timestamp not enabled)"
21419fi
21420
Reid Spencer0241e382004-11-25 04:51:04 +000021421
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021422cat >>confdefs.h <<_ACEOF
21423#define LLVM_PREFIX "$LLVM_PREFIX"
21424_ACEOF
21425
21426
21427cat >>confdefs.h <<_ACEOF
21428#define LLVM_BINDIR "$LLVM_BINDIR"
21429_ACEOF
21430
21431
21432cat >>confdefs.h <<_ACEOF
21433#define LLVM_LIBDIR "$LLVM_LIBDIR"
21434_ACEOF
21435
21436
21437cat >>confdefs.h <<_ACEOF
21438#define LLVM_DATADIR "$LLVM_DATADIR"
21439_ACEOF
21440
21441
21442cat >>confdefs.h <<_ACEOF
Gordon Henriksen80f35e02007-10-03 12:07:14 +000021443#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021444_ACEOF
21445
21446
21447cat >>confdefs.h <<_ACEOF
Reid Spencer288adf12004-08-20 09:10:31 +000021448#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021449_ACEOF
21450
21451
21452cat >>confdefs.h <<_ACEOF
21453#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21454_ACEOF
21455
21456
21457cat >>confdefs.h <<_ACEOF
21458#define LLVM_INFODIR "$LLVM_INFODIR"
21459_ACEOF
21460
21461
21462cat >>confdefs.h <<_ACEOF
21463#define LLVM_MANDIR "$LLVM_MANDIR"
21464_ACEOF
21465
21466
21467cat >>confdefs.h <<_ACEOF
21468#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21469_ACEOF
21470
21471
Eric Christophere62b4412007-12-01 00:34:39 +000021472cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi43652ae2012-07-22 03:04:52 +000021473#define LLVM_HOSTTRIPLE "$host"
21474_ACEOF
21475
21476
21477cat >>confdefs.h <<_ACEOF
Sebastian Popec2fb222011-11-01 21:31:44 +000021478#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christophere62b4412007-12-01 00:34:39 +000021479_ACEOF
21480
21481
Gordon Henriksene61dd672007-10-02 09:50:32 +000021482if test "$BINDINGS_TO_BUILD" = auto ; then
21483 BINDINGS_TO_BUILD=""
21484 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21485 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21486 fi
21487fi
21488BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21489
21490
Gordon Henriksene61dd672007-10-02 09:50:32 +000021491ALL_BINDINGS=ocaml
21492
21493
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000021494binding_prereqs_failed=0
21495for a_binding in $BINDINGS_TO_BUILD ; do
21496 case "$a_binding" in
21497 ocaml)
21498 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021499 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21500echo "$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 +000021501 binding_prereqs_failed=1
21502 fi
21503 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021504 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21505echo "$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 +000021506 binding_prereqs_failed=1
21507 fi
21508 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021509 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21510echo "$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 +000021511 fi
21512 if test "x$with_ocaml_libdir" != xauto ; then
21513 OCAML_LIBDIR=$with_ocaml_libdir
21514
21515 else
21516 ocaml_stdlib="`"$OCAMLC" -where`"
21517 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21518 then
21519 # ocaml stdlib is beneath our prefix; use stdlib
21520 OCAML_LIBDIR=$ocaml_stdlib
21521
21522 else
21523 # ocaml stdlib is outside our prefix; use libdir/ocaml
21524 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21525
21526 fi
21527 fi
21528 ;;
21529 esac
21530done
21531if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021532 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21533echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21534 { (exit 1); exit 1; }; }
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000021535fi
21536
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021537{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21538echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21539if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbar8eec9852008-08-30 01:16:19 +000021541else
21542 ac_ext=cpp
21543ac_cpp='$CXXCPP $CPPFLAGS'
21544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21547
21548 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi652e0132012-02-19 12:05:12 +000021549 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021550 cat >conftest.$ac_ext <<_ACEOF
21551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbar8eec9852008-08-30 01:16:19 +000021555/* end confdefs.h. */
Benjamin Kramer54671a72011-12-22 22:50:44 +000021556template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbar8eec9852008-08-30 01:16:19 +000021557int
21558main ()
21559{
Benjamin Kramer942b2872011-12-22 22:25:26 +000021560X<int>().f();
Daniel Dunbar8eec9852008-08-30 01:16:19 +000021561 ;
21562 return 0;
21563}
21564_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021565rm -f conftest.$ac_objext
21566if { (ac_try="$ac_compile"
21567case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21570esac
21571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_compile") 2>conftest.er1
21573 ac_status=$?
21574 grep -v '^ *+' conftest.er1 >conftest.err
21575 rm -f conftest.er1
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
21579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21580 { (case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21583esac
21584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_try") 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; } &&
21589 { ac_try='test -s conftest.$ac_objext'
21590 { (case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593esac
21594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_try") 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
Daniel Dunbar8eec9852008-08-30 01:16:19 +000021599 llvm_cv_cxx_visibility_inlines_hidden=yes
21600else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021601 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
21604 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbar8eec9852008-08-30 01:16:19 +000021605fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021606
Daniel Dunbar8eec9852008-08-30 01:16:19 +000021607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21608 CXXFLAGS="$oldcxxflags"
21609 ac_ext=c
21610ac_cpp='$CPP $CPPFLAGS'
21611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21613ac_compiler_gnu=$ac_cv_c_compiler_gnu
21614
21615
21616fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021617{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21618echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbar8eec9852008-08-30 01:16:19 +000021619if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21620 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21621
21622else
21623 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21624
21625fi
21626
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000021627
Nick Lewyckyc540cc62009-03-05 08:20:44 +000021628if test "$llvm_cv_link_use_r" = "yes" ; then
21629 RPATH="-Wl,-R"
21630else
21631 RPATH="-Wl,-rpath"
21632fi
21633
21634
21635if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21636 RDYNAMIC="-Wl,-export-dynamic"
21637else
21638 RDYNAMIC=""
21639fi
Nick Lewyckyed8472e2009-03-03 04:55:29 +000021640
21641
Reid Spencer0241e382004-11-25 04:51:04 +000021642
Eric Christopher97014d82010-08-08 02:44:25 +000021643ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer0241e382004-11-25 04:51:04 +000021644
Eric Christopher41983c62010-08-08 09:20:39 +000021645
21646
21647
21648
21649
Douglas Gregor1b731d52009-06-16 20:12:29 +000021650ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21651
21652ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21653
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000021654ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21655
Daniel Dunbar32027202009-11-25 04:37:28 +000021656ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21657
Michael J. Spencer447762d2010-11-29 18:16:10 +000021658ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer0241e382004-11-25 04:51:04 +000021659
Reid Spencer0241e382004-11-25 04:51:04 +000021660
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021661ac_config_files="$ac_config_files Makefile.config"
Reid Spencer0241e382004-11-25 04:51:04 +000021662
Eric Christopher49709ad2011-10-26 00:42:12 +000021663
Reid Spencer1277ba22006-08-16 00:45:38 +000021664ac_config_files="$ac_config_files llvm.spec"
21665
21666
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000021667ac_config_files="$ac_config_files docs/doxygen.cfg"
21668
Eric Christopherf1329892012-02-02 00:16:55 +000021669
Dylan Noblesmithe21a3b22012-02-04 02:41:36 +000021670if test "${clang_src_root}" = ""; then
Eric Christopherdc51a5d2012-02-02 01:11:30 +000021671 clang_src_root="$srcdir/tools/clang"
Eric Christopher7f977de2012-02-02 00:19:05 +000021672fi
Eric Christopherf1329892012-02-02 00:16:55 +000021673if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000021674 configh="include/clang/Config/config.h"
21675 doxy="docs/doxygen.cfg"
21676 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopherf1329892012-02-02 00:16:55 +000021677
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000021678 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000021679
21680fi
21681
Torok Edwin229f8d72011-10-14 20:38:02 +000021682ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencer6f682b72006-03-22 15:59:55 +000021683
Eric Christopher49709ad2011-10-26 00:42:12 +000021684
Jordan Rose3c837ab2012-10-01 18:40:32 +000021685test "x$program_prefix" = "xNONE" && program_prefix=""
21686
21687
21688
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021689ac_config_commands="$ac_config_commands setup"
Reid Spencereeedeaf2005-02-24 19:05:19 +000021690
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021691ac_config_commands="$ac_config_commands Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000021692
21693
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021694ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer0241e382004-11-25 04:51:04 +000021695
21696
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021697ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000021698
21699
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021700ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000021701
21702
Reid Spencer4b8067f2006-11-17 03:32:33 +000021703ac_config_commands="$ac_config_commands runtime/Makefile"
21704
21705
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021706ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000021707
21708
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021709ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer0241e382004-11-25 04:51:04 +000021710
21711
Bill Wendling7c53a182009-01-04 23:12:30 +000021712ac_config_commands="$ac_config_commands unittests/Makefile"
21713
21714
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021715ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000021716
21717
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021718ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000021719
21720
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021721ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000021722
21723
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000021724ac_config_commands="$ac_config_commands bindings/Makefile"
21725
21726
21727ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21728
21729
Reid Spencer0241e382004-11-25 04:51:04 +000021730
John Criswell3ef61af2003-06-30 21:59:07 +000021731cat >confcache <<\_ACEOF
21732# This file is a shell script that caches the results of configure
21733# tests run on this system so they can be shared between configure
21734# scripts and configure runs, see configure's option --config-cache.
21735# It is not useful on other systems. If it contains results you don't
21736# want to keep, you may remove or edit it.
21737#
21738# config.status only pays attention to the cache file if you give it
21739# the --recheck option to rerun configure.
21740#
John Criswell3eaf0b42003-09-10 15:17:25 +000021741# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell3ef61af2003-06-30 21:59:07 +000021742# loading this file, other *unset* `ac_cv_foo' will be assigned the
21743# following values.
21744
21745_ACEOF
21746
21747# The following way of writing the cache mishandles newlines in values,
21748# but we know of no workaround that is simple, portable, and efficient.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021749# So, we kill variables containing newlines.
John Criswell3ef61af2003-06-30 21:59:07 +000021750# Ultrix sh set writes to stderr and can't be redirected directly,
21751# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021752(
21753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21754 eval ac_val=\$$ac_var
21755 case $ac_val in #(
21756 *${as_nl}*)
21757 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021758 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21759echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021760 esac
21761 case $ac_var in #(
21762 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021763 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021764 esac ;;
21765 esac
21766 done
21767
John Criswell3ef61af2003-06-30 21:59:07 +000021768 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021769 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21770 *${as_nl}ac_space=\ *)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021771 # `set' does not quote correctly, so add quotes (double-quote
21772 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell3ef61af2003-06-30 21:59:07 +000021773 sed -n \
Reid Spencerf184a862004-09-19 23:53:36 +000021774 "s/'/'\\\\''/g;
21775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021776 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +000021777 *)
21778 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +000021780 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021781 esac |
21782 sort
21783) |
John Criswell3ef61af2003-06-30 21:59:07 +000021784 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021785 /^ac_cv_env_/b end
John Criswell3ef61af2003-06-30 21:59:07 +000021786 t clear
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021787 :clear
John Criswell3ef61af2003-06-30 21:59:07 +000021788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21789 t end
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021790 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21791 :end' >>confcache
21792if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21793 if test -w "$cache_file"; then
21794 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021795 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21796echo "$as_me: updating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000021797 cat confcache >$cache_file
21798 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021799 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21800echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000021801 fi
21802fi
21803rm -f confcache
21804
21805test "x$prefix" = xNONE && prefix=$ac_default_prefix
21806# Let make expand exec_prefix.
21807test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21808
John Criswell3ef61af2003-06-30 21:59:07 +000021809DEFS=-DHAVE_CONFIG_H
21810
John Criswell3eaf0b42003-09-10 15:17:25 +000021811ac_libobjs=
21812ac_ltlibobjs=
21813for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21814 # 1. Remove the extension, and $U if already installed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021815 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021816 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021817 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21818 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021819 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21820 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell3eaf0b42003-09-10 15:17:25 +000021821done
21822LIBOBJS=$ac_libobjs
21823
21824LTLIBOBJS=$ac_ltlibobjs
21825
21826
Reid Spencera40c6872004-11-29 12:29:58 +000021827if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021828 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21829Usually this means the macro was only invoked conditionally." >&5
21830echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21831Usually this means the macro was only invoked conditionally." >&2;}
21832 { (exit 1); exit 1; }; }
Reid Spencera40c6872004-11-29 12:29:58 +000021833fi
21834if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021835 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21836Usually this means the macro was only invoked conditionally." >&5
21837echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21838Usually this means the macro was only invoked conditionally." >&2;}
21839 { (exit 1); exit 1; }; }
Reid Spencera40c6872004-11-29 12:29:58 +000021840fi
John Criswell3ef61af2003-06-30 21:59:07 +000021841
21842: ${CONFIG_STATUS=./config.status}
21843ac_clean_files_save=$ac_clean_files
21844ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021845{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21846echo "$as_me: creating $CONFIG_STATUS" >&6;}
21847cat >$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021848#! $SHELL
21849# Generated by $as_me.
21850# Run this file to recreate the current configuration.
21851# Compiler output produced by configure, useful for debugging
21852# configure, is in config.log if it exists.
21853
21854debug=false
John Criswell3eaf0b42003-09-10 15:17:25 +000021855ac_cs_recheck=false
21856ac_cs_silent=false
John Criswell3ef61af2003-06-30 21:59:07 +000021857SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021858_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021859
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021860cat >>$CONFIG_STATUS <<\_ACEOF
21861## --------------------- ##
21862## M4sh Initialization. ##
21863## --------------------- ##
21864
21865# Be Bourne compatible
21866if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3ef61af2003-06-30 21:59:07 +000021867 emulate sh
21868 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021869 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000021870 # is contrary to our usage. Disable this feature.
21871 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021872 setopt NO_GLOB_SUBST
21873else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021874 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3ef61af2003-06-30 21:59:07 +000021875fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021876BIN_SH=xpg4; export BIN_SH # for Tru64
21877DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3ef61af2003-06-30 21:59:07 +000021878
John Criswell3ef61af2003-06-30 21:59:07 +000021879
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021880# PATH needs CR
21881# Avoid depending upon Character Ranges.
21882as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21883as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21884as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21885as_cr_digits='0123456789'
21886as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3ef61af2003-06-30 21:59:07 +000021887
21888# The user is always right.
21889if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021890 echo "#! /bin/sh" >conf$$.sh
21891 echo "exit 0" >>conf$$.sh
21892 chmod +x conf$$.sh
21893 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21894 PATH_SEPARATOR=';'
21895 else
21896 PATH_SEPARATOR=:
21897 fi
21898 rm -f conf$$.sh
21899fi
21900
21901# Support unset when possible.
21902if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21903 as_unset=unset
21904else
21905 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021906fi
John Criswell3ef61af2003-06-30 21:59:07 +000021907
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021908
21909# IFS
21910# We need space, tab and new line, in precisely that order. Quoting is
21911# there to prevent editors from complaining about space-tab.
21912# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21913# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021914as_nl='
21915'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021916IFS=" "" $as_nl"
21917
21918# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021919case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021920 *[\\/]* ) as_myself=$0 ;;
21921 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3ef61af2003-06-30 21:59:07 +000021922for as_dir in $PATH
21923do
21924 IFS=$as_save_IFS
21925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021926 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21927done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021928IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +000021929
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021930 ;;
21931esac
21932# We did not find ourselves, most probably we were run as `sh COMMAND'
21933# in which case we are not to be found in the path.
21934if test "x$as_myself" = x; then
21935 as_myself=$0
21936fi
21937if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021938 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21939 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021940fi
21941
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021942# Work around bugs in pre-3.0 UWIN ksh.
21943for as_var in ENV MAIL MAILPATH
21944do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021945done
21946PS1='$ '
21947PS2='> '
21948PS4='+ '
21949
21950# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021951for as_var in \
21952 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21953 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21954 LC_TELEPHONE LC_TIME
21955do
21956 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21957 eval $as_var=C; export $as_var
21958 else
21959 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +000021960 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021961done
Torok Edwinaec06332010-01-26 08:50:50 +000021962
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021963# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021964if expr a : '\(a\)' >/dev/null 2>&1 &&
21965 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21966 as_expr=expr
21967else
21968 as_expr=false
21969fi
21970
21971if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21972 as_basename=basename
21973else
21974 as_basename=false
21975fi
21976
21977
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021978# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021979as_me=`$as_basename -- "$0" ||
21980$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21981 X"$0" : 'X\(//\)$' \| \
21982 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021983echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021984 sed '/^.*\/\([^/][^/]*\)\/*$/{
21985 s//\1/
21986 q
21987 }
21988 /^X\/\(\/\/\)$/{
21989 s//\1/
21990 q
21991 }
21992 /^X\/\(\/\).*/{
21993 s//\1/
21994 q
21995 }
21996 s/.*/./; q'`
21997
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021998# CDPATH.
21999$as_unset CDPATH
22000
22001
22002
22003 as_lineno_1=$LINENO
22004 as_lineno_2=$LINENO
22005 test "x$as_lineno_1" != "x$as_lineno_2" &&
22006 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22007
22008 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22009 # uniformly replaced by the line number. The first 'sed' inserts a
22010 # line-number line after each line using $LINENO; the second 'sed'
22011 # does the real work. The second script uses 'N' to pair each
22012 # line-number line with the line containing $LINENO, and appends
22013 # trailing '-' during substitution so that $LINENO is not a special
22014 # case at line end.
22015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22016 # scripts with optimization help from Paolo Bonzini. Blame Lee
22017 # E. McMahon (1931-1989) for sed's syntax. :-)
22018 sed -n '
22019 p
22020 /[$]LINENO/=
22021 ' <$as_myself |
22022 sed '
22023 s/[$]LINENO.*/&-/
22024 t lineno
22025 b
22026 :lineno
22027 N
22028 :loop
22029 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22030 t loop
22031 s/-\n.*//
22032 ' >$as_me.lineno &&
22033 chmod +x "$as_me.lineno" ||
22034 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22035 { (exit 1); exit 1; }; }
22036
22037 # Don't try to exec as it changes $[0], causing all sort of problems
22038 # (the dirname of $[0] is not the place where we might find the
22039 # original and so on. Autoconf is especially sensitive to this).
22040 . "./$as_me.lineno"
22041 # Exit status is that of the last command.
22042 exit
22043}
22044
22045
22046if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22047 as_dirname=dirname
22048else
22049 as_dirname=false
22050fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022051
22052ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022053case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022054-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022055 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022057 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022058 esac;;
22059*)
22060 ECHO_N='-n';;
John Criswell3ef61af2003-06-30 21:59:07 +000022061esac
22062
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022063if expr a : '\(a\)' >/dev/null 2>&1 &&
22064 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22065 as_expr=expr
22066else
22067 as_expr=false
22068fi
22069
John Criswell3ef61af2003-06-30 21:59:07 +000022070rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022071if test -d conf$$.dir; then
22072 rm -f conf$$.dir/conf$$.file
22073else
22074 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022075 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022076fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022077echo >conf$$.file
22078if ln -s conf$$.file conf$$ 2>/dev/null; then
22079 as_ln_s='ln -s'
22080 # ... but there are two gotchas:
22081 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22082 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22083 # In both cases, we have to default to `cp -p'.
22084 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3ef61af2003-06-30 21:59:07 +000022085 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022086elif ln conf$$.file conf$$ 2>/dev/null; then
22087 as_ln_s=ln
John Criswell3ef61af2003-06-30 21:59:07 +000022088else
22089 as_ln_s='cp -p'
22090fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022091rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22092rmdir conf$$.dir 2>/dev/null
John Criswell3ef61af2003-06-30 21:59:07 +000022093
John Criswell3eaf0b42003-09-10 15:17:25 +000022094if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022095 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +000022096else
Reid Spencerf184a862004-09-19 23:53:36 +000022097 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +000022098 as_mkdir_p=false
22099fi
22100
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022101# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22102# systems may use methods other than mode bits to determine executability.
22103cat >conf$$.file <<_ASEOF
22104#! /bin/sh
22105exit 0
22106_ASEOF
22107chmod +x conf$$.file
22108if test -x conf$$.file >/dev/null 2>&1; then
22109 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022110else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022111 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022112fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022113rm -f conf$$.file
John Criswell3ef61af2003-06-30 21:59:07 +000022114
22115# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +000022116as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000022117
22118# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +000022119as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000022120
22121
John Criswell3ef61af2003-06-30 21:59:07 +000022122exec 6>&1
22123
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022124# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell3ef61af2003-06-30 21:59:07 +000022125# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022126# values after options handling.
22127ac_log="
Benjamin Kramer6900a4a2012-11-17 22:01:08 +000022128This file was extended by LLVM $as_me 3.3svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022129generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +000022130
22131 CONFIG_FILES = $CONFIG_FILES
22132 CONFIG_HEADERS = $CONFIG_HEADERS
22133 CONFIG_LINKS = $CONFIG_LINKS
22134 CONFIG_COMMANDS = $CONFIG_COMMANDS
22135 $ $0 $@
22136
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022137on `(hostname || uname -n) 2>/dev/null | sed 1q`
22138"
22139
John Criswell3ef61af2003-06-30 21:59:07 +000022140_ACEOF
22141
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022142cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022143# Files that config.status was made for.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022144config_files="$ac_config_files"
22145config_headers="$ac_config_headers"
22146config_commands="$ac_config_commands"
John Criswell3ef61af2003-06-30 21:59:07 +000022147
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022148_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022149
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022150cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022151ac_cs_usage="\
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022152\`$as_me' instantiates files from templates according to the
22153current configuration.
John Criswell3ef61af2003-06-30 21:59:07 +000022154
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022155Usage: $0 [OPTIONS] [FILE]...
John Criswell3ef61af2003-06-30 21:59:07 +000022156
22157 -h, --help print this help, then exit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022158 -V, --version print version number, then exit
22159 -q, --quiet do not print progress messages
John Criswell3ef61af2003-06-30 21:59:07 +000022160 -d, --debug don't remove temporary files
22161 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022162 --file=FILE[:TEMPLATE]
22163 instantiate the configuration file FILE
22164 --header=FILE[:TEMPLATE]
22165 instantiate the configuration header FILE
John Criswell3ef61af2003-06-30 21:59:07 +000022166
22167Configuration files:
22168$config_files
22169
22170Configuration headers:
22171$config_headers
22172
John Criswell3bac9bc2003-09-06 15:17:13 +000022173Configuration commands:
22174$config_commands
22175
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022176Report bugs to <bug-autoconf@gnu.org>."
John Criswell3ef61af2003-06-30 21:59:07 +000022177
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022178_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022179cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022180ac_cs_version="\\
Benjamin Kramer6900a4a2012-11-17 22:01:08 +000022181LLVM config.status 3.3svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022182configured by $0, generated by GNU Autoconf 2.60,
22183 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell3ef61af2003-06-30 21:59:07 +000022184
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022185Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +000022186This config.status script is free software; the Free Software Foundation
22187gives unlimited permission to copy, distribute and modify it."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022188
22189ac_pwd='$ac_pwd'
22190srcdir='$srcdir'
22191INSTALL='$INSTALL'
John Criswell3ef61af2003-06-30 21:59:07 +000022192_ACEOF
22193
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022194cat >>$CONFIG_STATUS <<\_ACEOF
22195# If no file are specified by the user, then we need to provide default
22196# value. By we need to know if files were specified by the user.
John Criswell3ef61af2003-06-30 21:59:07 +000022197ac_need_defaults=:
22198while test $# != 0
22199do
22200 case $1 in
22201 --*=*)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022202 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22203 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell3eaf0b42003-09-10 15:17:25 +000022204 ac_shift=:
John Criswell3ef61af2003-06-30 21:59:07 +000022205 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022206 *)
John Criswell3eaf0b42003-09-10 15:17:25 +000022207 ac_option=$1
22208 ac_optarg=$2
22209 ac_shift=shift
22210 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022211 esac
22212
John Criswell3eaf0b42003-09-10 15:17:25 +000022213 case $ac_option in
John Criswell3ef61af2003-06-30 21:59:07 +000022214 # Handling of the options.
John Criswell3eaf0b42003-09-10 15:17:25 +000022215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22216 ac_cs_recheck=: ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022217 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022218 echo "$ac_cs_version"; exit ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022219 --debug | --debu | --deb | --de | --d | -d )
John Criswell3ef61af2003-06-30 21:59:07 +000022220 debug=: ;;
22221 --file | --fil | --fi | --f )
John Criswell3eaf0b42003-09-10 15:17:25 +000022222 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022223 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000022224 ac_need_defaults=false;;
22225 --header | --heade | --head | --hea )
John Criswell3eaf0b42003-09-10 15:17:25 +000022226 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022227 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000022228 ac_need_defaults=false;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022229 --he | --h)
22230 # Conflict between --help and --header
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022231 { echo "$as_me: error: ambiguous option: $1
22232Try \`$0 --help' for more information." >&2
22233 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022234 --help | --hel | -h )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022235 echo "$ac_cs_usage"; exit ;;
John Criswell3eaf0b42003-09-10 15:17:25 +000022236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22238 ac_cs_silent=: ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022239
22240 # This is an error.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022241 -*) { echo "$as_me: error: unrecognized option: $1
22242Try \`$0 --help' for more information." >&2
22243 { (exit 1); exit 1; }; } ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022244
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022245 *) ac_config_targets="$ac_config_targets $1"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022246 ac_need_defaults=false ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022247
22248 esac
22249 shift
22250done
22251
John Criswell3eaf0b42003-09-10 15:17:25 +000022252ac_configure_extra_args=
22253
22254if $ac_cs_silent; then
22255 exec 6>/dev/null
22256 ac_configure_extra_args="$ac_configure_extra_args --silent"
22257fi
22258
22259_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022260cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000022261if \$ac_cs_recheck; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022262 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22263 CONFIG_SHELL=$SHELL
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022264 export CONFIG_SHELL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022265 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell3eaf0b42003-09-10 15:17:25 +000022266fi
22267
John Criswell3ef61af2003-06-30 21:59:07 +000022268_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022269cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022270exec 5>>config.log
22271{
22272 echo
22273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22274## Running $as_me. ##
22275_ASBOX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022276 echo "$ac_log"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022277} >&5
John Criswell3ef61af2003-06-30 21:59:07 +000022278
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022279_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022280cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3bac9bc2003-09-06 15:17:13 +000022281#
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022282# INIT-COMMANDS
John Criswell3bac9bc2003-09-06 15:17:13 +000022283#
Reid Spencereeedeaf2005-02-24 19:05:19 +000022284llvm_src="${srcdir}"
John Criswell3bac9bc2003-09-06 15:17:13 +000022285
22286_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022287
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022288cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022289
22290# Handling of arguments.
John Criswell3ef61af2003-06-30 21:59:07 +000022291for ac_config_target in $ac_config_targets
22292do
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022293 case $ac_config_target in
22294 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christopher97014d82010-08-08 02:44:25 +000022295 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1b731d52009-06-16 20:12:29 +000022296 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22297 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000022298 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar32027202009-11-25 04:37:28 +000022299 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer447762d2010-11-29 18:16:10 +000022300 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022301 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1277ba22006-08-16 00:45:38 +000022302 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000022303 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000022304 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22305 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher49709ad2011-10-26 00:42:12 +000022306 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022307 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22308 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22309 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22310 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22311 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer4b8067f2006-11-17 03:32:33 +000022312 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022313 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22314 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000022315 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022316 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22317 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22318 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000022319 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22320 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022321
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022322 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22323echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22324 { (exit 1); exit 1; }; };;
John Criswell3ef61af2003-06-30 21:59:07 +000022325 esac
22326done
22327
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022328
John Criswell3ef61af2003-06-30 21:59:07 +000022329# If the user did not use the arguments to specify the items to instantiate,
22330# then the envvar interface is used. Set only those that are not.
22331# We use the long form for the default assignment because of an extremely
22332# bizarre bug on SunOS 4.1.3.
22333if $ac_need_defaults; then
22334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswell3bac9bc2003-09-06 15:17:13 +000022336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell3ef61af2003-06-30 21:59:07 +000022337fi
22338
John Criswell3eaf0b42003-09-10 15:17:25 +000022339# Have a temporary directory for convenience. Make it in the build tree
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022340# simply because there is no reason against having it here, and in addition,
John Criswell3eaf0b42003-09-10 15:17:25 +000022341# creating and moving files from /tmp can sometimes cause problems.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022342# Hook for its removal unless debugging.
22343# Note that there is a small window in which the directory will not be cleaned:
22344# after its creation but before its name has been assigned to `$tmp'.
John Criswell3ef61af2003-06-30 21:59:07 +000022345$debug ||
22346{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022347 tmp=
22348 trap 'exit_status=$?
22349 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22350' 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022351 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell3ef61af2003-06-30 21:59:07 +000022352}
John Criswell3ef61af2003-06-30 21:59:07 +000022353# Create a (secure) tmp directory for tmp files.
John Criswell3eaf0b42003-09-10 15:17:25 +000022354
John Criswell3ef61af2003-06-30 21:59:07 +000022355{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022356 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell3ef61af2003-06-30 21:59:07 +000022357 test -n "$tmp" && test -d "$tmp"
22358} ||
22359{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022360 tmp=./conf$$-$RANDOM
22361 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022362} ||
22363{
22364 echo "$me: cannot create a temporary directory in ." >&2
22365 { (exit 1); exit 1; }
22366}
John Criswell3ef61af2003-06-30 21:59:07 +000022367
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022368#
22369# Set up the sed scripts for CONFIG_FILES section.
22370#
22371
22372# No need to generate the scripts if there are no CONFIG_FILES.
22373# This happens for instance when ./config.status config.h
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022374if test -n "$CONFIG_FILES"; then
John Criswell3ef61af2003-06-30 21:59:07 +000022375
22376_ACEOF
22377
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022378
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022379
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022380ac_delim='%!_!# '
22381for ac_last_try in false false false false false :; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022382 cat >conf$$subs.sed <<_ACEOF
22383SHELL!$SHELL$ac_delim
22384PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22385PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22386PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22387PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22388PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22389PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22390exec_prefix!$exec_prefix$ac_delim
22391prefix!$prefix$ac_delim
22392program_transform_name!$program_transform_name$ac_delim
22393bindir!$bindir$ac_delim
22394sbindir!$sbindir$ac_delim
22395libexecdir!$libexecdir$ac_delim
22396datarootdir!$datarootdir$ac_delim
22397datadir!$datadir$ac_delim
22398sysconfdir!$sysconfdir$ac_delim
22399sharedstatedir!$sharedstatedir$ac_delim
22400localstatedir!$localstatedir$ac_delim
22401includedir!$includedir$ac_delim
22402oldincludedir!$oldincludedir$ac_delim
22403docdir!$docdir$ac_delim
22404infodir!$infodir$ac_delim
22405htmldir!$htmldir$ac_delim
22406dvidir!$dvidir$ac_delim
22407pdfdir!$pdfdir$ac_delim
22408psdir!$psdir$ac_delim
22409libdir!$libdir$ac_delim
22410localedir!$localedir$ac_delim
22411mandir!$mandir$ac_delim
22412DEFS!$DEFS$ac_delim
22413ECHO_C!$ECHO_C$ac_delim
22414ECHO_N!$ECHO_N$ac_delim
22415ECHO_T!$ECHO_T$ac_delim
22416LIBS!$LIBS$ac_delim
22417build_alias!$build_alias$ac_delim
22418host_alias!$host_alias$ac_delim
22419target_alias!$target_alias$ac_delim
22420LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000022421CC!$CC$ac_delim
22422CFLAGS!$CFLAGS$ac_delim
22423LDFLAGS!$LDFLAGS$ac_delim
22424CPPFLAGS!$CPPFLAGS$ac_delim
22425ac_ct_CC!$ac_ct_CC$ac_delim
22426EXEEXT!$EXEEXT$ac_delim
22427OBJEXT!$OBJEXT$ac_delim
22428CXX!$CXX$ac_delim
22429CXXFLAGS!$CXXFLAGS$ac_delim
22430ac_ct_CXX!$ac_ct_CXX$ac_delim
22431CPP!$CPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022432subdirs!$subdirs$ac_delim
Tobias Grosserea9dca42010-10-30 00:54:26 +000022433ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22434LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022435build!$build$ac_delim
22436build_cpu!$build_cpu$ac_delim
22437build_vendor!$build_vendor$ac_delim
22438build_os!$build_os$ac_delim
22439host!$host$ac_delim
22440host_cpu!$host_cpu$ac_delim
22441host_vendor!$host_vendor$ac_delim
22442host_os!$host_os$ac_delim
22443target!$target$ac_delim
22444target_cpu!$target_cpu$ac_delim
22445target_vendor!$target_vendor$ac_delim
22446target_os!$target_os$ac_delim
22447OS!$OS$ac_delim
22448HOST_OS!$HOST_OS$ac_delim
22449TARGET_OS!$TARGET_OS$ac_delim
22450LINKALL!$LINKALL$ac_delim
22451NOLINKALL!$NOLINKALL$ac_delim
22452LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22453LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22454ARCH!$ARCH$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000022455HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022456ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022457GREP!$GREP$ac_delim
22458EGREP!$EGREP$ac_delim
22459LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22460BUILD_CC!$BUILD_CC$ac_delim
22461BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22462BUILD_CXX!$BUILD_CXX$ac_delim
22463CVSBUILD!$CVSBUILD$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000022464ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000022465ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022466ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22467ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22468ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022469ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22470ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22471DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000022472ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022473ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22474EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22475DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22476DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000022477KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022478JIT!$JIT$ac_delim
22479TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022480_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022481
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022482 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022483 break
22484 elif $ac_last_try; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022485 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22486echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22487 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022488 else
22489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell3ef61af2003-06-30 21:59:07 +000022490 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022491done
22492
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022493ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22494if test -n "$ac_eof"; then
22495 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22496 ac_eof=`expr $ac_eof + 1`
22497fi
22498
22499cat >>$CONFIG_STATUS <<_ACEOF
22500cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22501/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022502_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022503sed '
22504s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22505s/^/s,@/; s/!/@,|#_!!_#|/
22506:n
22507t n
22508s/'"$ac_delim"'$/,g/; t
22509s/$/\\/; p
22510N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22511' >>$CONFIG_STATUS <conf$$subs.sed
22512rm -f conf$$subs.sed
22513cat >>$CONFIG_STATUS <<_ACEOF
22514CEOF$ac_eof
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022515_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022516
22517
22518ac_delim='%!_!# '
22519for ac_last_try in false false false false false :; do
22520 cat >conf$$subs.sed <<_ACEOF
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022521ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22522ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22523LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000022524ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000022525ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000022526ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000022527ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000022528ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherc6c2b9b2012-11-19 19:31:02 +000022529ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000022530TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22531LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22532LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +000022533LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumic6fce172010-12-29 03:59:03 +000022534LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000022535OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000022536EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbar3b95df82011-06-16 22:30:41 +000022537EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumi914f1922011-10-16 02:54:26 +000022538CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000022539BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilson3f354702011-11-28 07:59:52 +000022540INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022541NM!$NM$ac_delim
22542ifGNUmake!$ifGNUmake$ac_delim
22543LN_S!$LN_S$ac_delim
22544CMP!$CMP$ac_delim
22545CP!$CP$ac_delim
22546DATE!$DATE$ac_delim
22547FIND!$FIND$ac_delim
22548MKDIR!$MKDIR$ac_delim
22549MV!$MV$ac_delim
22550RANLIB!$RANLIB$ac_delim
22551AR!$AR$ac_delim
22552RM!$RM$ac_delim
22553SED!$SED$ac_delim
22554TAR!$TAR$ac_delim
22555BINPWD!$BINPWD$ac_delim
22556GRAPHVIZ!$GRAPHVIZ$ac_delim
22557DOT!$DOT$ac_delim
22558FDP!$FDP$ac_delim
22559NEATO!$NEATO$ac_delim
22560TWOPI!$TWOPI$ac_delim
22561CIRCO!$CIRCO$ac_delim
22562GV!$GV$ac_delim
22563DOTTY!$DOTTY$ac_delim
Dan Gohmana0da8892010-09-27 16:28:34 +000022564XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022565INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22566INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22567INSTALL_DATA!$INSTALL_DATA$ac_delim
22568BZIP2!$BZIP2$ac_delim
mike-me08af302010-05-06 23:45:43 +000022569CAT!$CAT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022570DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000022571GROFF!$GROFF$ac_delim
Eric Christopher77560892010-12-10 01:31:51 +000022572GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000022573PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022574ZIP!$ZIP$ac_delim
22575OCAMLC!$OCAMLC$ac_delim
22576OCAMLOPT!$OCAMLOPT$ac_delim
22577OCAMLDEP!$OCAMLDEP$ac_delim
22578OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000022579GAS!$GAS$ac_delim
Dan Gohmanb7edb422010-06-01 14:56:56 +000022580HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022581INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22582INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22583CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22584CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22585LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022586NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22587NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Richard Smith6c26e742013-01-31 22:19:12 +000022588NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim
Rafael Espindola42e94d12012-02-28 23:32:06 +000022589COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000022590NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22591NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000022592PYTHON!$PYTHON$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022593USE_UDIS86!$USE_UDIS86$ac_delim
22594USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky5262ad22012-03-13 08:33:15 +000022595USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopherc807c532012-08-03 19:47:19 +000022596XML2CONFIG!$XML2CONFIG$ac_delim
22597LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22598LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022599HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22600HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22601MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022602SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000022603SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022604LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22605LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22606LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22607LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22608LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22609LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22610LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22611LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22612LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22613LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22614BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22615ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christopher155137b2011-09-20 23:58:15 +000022616OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22617ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022618_ACEOF
22619
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022620 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022621 break
22622 elif $ac_last_try; then
22623 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22624echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22625 { (exit 1); exit 1; }; }
22626 else
22627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22628 fi
22629done
22630
22631ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22632if test -n "$ac_eof"; then
22633 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22634 ac_eof=`expr $ac_eof + 1`
22635fi
22636
22637cat >>$CONFIG_STATUS <<_ACEOF
22638cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022639/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22640_ACEOF
22641sed '
22642s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22643s/^/s,@/; s/!/@,|#_!!_#|/
22644:n
22645t n
22646s/'"$ac_delim"'$/,g/; t
22647s/$/\\/; p
22648N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22649' >>$CONFIG_STATUS <conf$$subs.sed
22650rm -f conf$$subs.sed
22651cat >>$CONFIG_STATUS <<_ACEOF
22652CEOF$ac_eof
22653_ACEOF
22654
22655
22656ac_delim='%!_!# '
22657for ac_last_try in false false false false false :; do
22658 cat >conf$$subs.sed <<_ACEOF
Richard Smithf47dc0b2013-01-31 23:02:23 +000022659RPATH!$RPATH$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000022660RDYNAMIC!$RDYNAMIC$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000022661program_prefix!$program_prefix$ac_delim
22662LIBOBJS!$LIBOBJS$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022663LTLIBOBJS!$LTLIBOBJS$ac_delim
22664_ACEOF
22665
Richard Smithf47dc0b2013-01-31 23:02:23 +000022666 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022667 break
22668 elif $ac_last_try; then
22669 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22670echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22671 { (exit 1); exit 1; }; }
22672 else
22673 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22674 fi
22675done
22676
22677ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22678if test -n "$ac_eof"; then
22679 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22680 ac_eof=`expr $ac_eof + 1`
22681fi
22682
22683cat >>$CONFIG_STATUS <<_ACEOF
22684cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose2998d252012-09-26 00:01:00 +000022685/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grosser61cb2452010-11-10 16:31:34 +000022686_ACEOF
22687sed '
22688s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22689s/^/s,@/; s/!/@,|#_!!_#|/
22690:n
22691t n
22692s/'"$ac_delim"'$/,g/; t
22693s/$/\\/; p
22694N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22695' >>$CONFIG_STATUS <conf$$subs.sed
22696rm -f conf$$subs.sed
22697cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose2998d252012-09-26 00:01:00 +000022698:end
22699s/|#_!!_#|//g
Tobias Grosser61cb2452010-11-10 16:31:34 +000022700CEOF$ac_eof
22701_ACEOF
22702
22703
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022704# VPATH may cause trouble with some makes, so we remove $(srcdir),
22705# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22706# trailing colons and then remove the whole line if VPATH becomes empty
22707# (actually we leave an empty line to preserve line numbers).
22708if test "x$srcdir" = x.; then
22709 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22710s/:*\$(srcdir):*/:/
22711s/:*\${srcdir}:*/:/
22712s/:*@srcdir@:*/:/
22713s/^\([^=]*=[ ]*\):*/\1/
22714s/:*$//
22715s/^[^=]*=[ ]*$//
22716}'
22717fi
22718
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022719cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022720fi # test -n "$CONFIG_FILES"
22721
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022722
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022723for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022724do
22725 case $ac_tag in
22726 :[FHLC]) ac_mode=$ac_tag; continue;;
22727 esac
22728 case $ac_mode$ac_tag in
22729 :[FHL]*:*);;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022730 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22731echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22732 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022733 :[FH]-) ac_tag=-:-;;
22734 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22735 esac
22736 ac_save_IFS=$IFS
22737 IFS=:
22738 set x $ac_tag
22739 IFS=$ac_save_IFS
22740 shift
22741 ac_file=$1
22742 shift
22743
22744 case $ac_mode in
22745 :L) ac_source=$1;;
22746 :[FH])
22747 ac_file_inputs=
22748 for ac_f
22749 do
22750 case $ac_f in
22751 -) ac_f="$tmp/stdin";;
22752 *) # Look for the file first in the build tree, then in the source tree
22753 # (if the path is not absolute). The absolute path cannot be DOS-style,
22754 # because $ac_f cannot contain `:'.
22755 test -f "$ac_f" ||
22756 case $ac_f in
22757 [\\/$]*) false;;
22758 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22759 esac ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022760 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22761echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22762 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022763 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022764 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022765 done
22766
22767 # Let's still pretend it is `configure' which instantiates (i.e., don't
22768 # use $as_me), people would be surprised to read:
22769 # /* config.h. Generated by config.status. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022770 configure_input="Generated from "`IFS=:
22771 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022772 if test x"$ac_file" != x-; then
22773 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022774 { echo "$as_me:$LINENO: creating $ac_file" >&5
22775echo "$as_me: creating $ac_file" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022776 fi
22777
22778 case $ac_tag in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022779 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022780 esac
22781 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022782 esac
22783
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022784 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell3ef61af2003-06-30 21:59:07 +000022785$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencerf184a862004-09-19 23:53:36 +000022786 X"$ac_file" : 'X\(//\)[^/]' \| \
22787 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022788 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022789echo X"$ac_file" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22791 s//\1/
22792 q
22793 }
22794 /^X\(\/\/\)[^/].*/{
22795 s//\1/
22796 q
22797 }
22798 /^X\(\/\/\)$/{
22799 s//\1/
22800 q
22801 }
22802 /^X\(\/\).*/{
22803 s//\1/
22804 q
22805 }
22806 s/.*/./; q'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022807 { as_dir="$ac_dir"
22808 case $as_dir in #(
22809 -*) as_dir=./$as_dir;;
22810 esac
22811 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22812 as_dirs=
22813 while :; do
22814 case $as_dir in #(
22815 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22816 *) as_qdir=$as_dir;;
22817 esac
22818 as_dirs="'$as_qdir' $as_dirs"
22819 as_dir=`$as_dirname -- "$as_dir" ||
22820$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22821 X"$as_dir" : 'X\(//\)[^/]' \| \
22822 X"$as_dir" : 'X\(//\)$' \| \
22823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22824echo X"$as_dir" |
22825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22826 s//\1/
22827 q
22828 }
22829 /^X\(\/\/\)[^/].*/{
22830 s//\1/
22831 q
22832 }
22833 /^X\(\/\/\)$/{
22834 s//\1/
22835 q
22836 }
22837 /^X\(\/\).*/{
22838 s//\1/
22839 q
22840 }
22841 s/.*/./; q'`
22842 test -d "$as_dir" && break
22843 done
22844 test -z "$as_dirs" || eval "mkdir $as_dirs"
22845 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22846echo "$as_me: error: cannot create directory $as_dir" >&2;}
22847 { (exit 1); exit 1; }; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000022848 ac_builddir=.
22849
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022850case "$ac_dir" in
22851.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22852*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022854 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022855 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022856 case $ac_top_builddir_sub in
22857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22859 esac ;;
22860esac
22861ac_abs_top_builddir=$ac_pwd
22862ac_abs_builddir=$ac_pwd$ac_dir_suffix
22863# for backward compatibility:
22864ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +000022865
22866case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022867 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +000022868 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022869 ac_top_srcdir=$ac_top_builddir_sub
22870 ac_abs_top_srcdir=$ac_pwd ;;
22871 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +000022872 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022873 ac_top_srcdir=$srcdir
22874 ac_abs_top_srcdir=$srcdir ;;
22875 *) # Relative name.
22876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22877 ac_top_srcdir=$ac_top_build_prefix$srcdir
22878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022879esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022880ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +000022881
John Criswell3ef61af2003-06-30 21:59:07 +000022882
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022883 case $ac_mode in
22884 :F)
22885 #
22886 # CONFIG_FILE
22887 #
John Criswell3ef61af2003-06-30 21:59:07 +000022888
22889 case $INSTALL in
22890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022891 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022892 esac
John Criswell3ef61af2003-06-30 21:59:07 +000022893_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022894
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022895cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022896# If the template does not know about datarootdir, expand it.
22897# FIXME: This hack should be removed a few years after 2.60.
22898ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022899
22900case `sed -n '/datarootdir/ {
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022901 p
22902 q
22903}
22904/@datadir@/p
22905/@docdir@/p
22906/@infodir@/p
22907/@localedir@/p
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022908/@mandir@/p
22909' $ac_file_inputs` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022910*datarootdir*) ac_datarootdir_seen=yes;;
22911*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022912 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22913echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022914_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022915cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022916 ac_datarootdir_hack='
22917 s&@datadir@&$datadir&g
22918 s&@docdir@&$docdir&g
22919 s&@infodir@&$infodir&g
22920 s&@localedir@&$localedir&g
22921 s&@mandir@&$mandir&g
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022922 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022923esac
22924_ACEOF
22925
22926# Neutralize VPATH when `$srcdir' = `.'.
22927# Shell code in configure.ac might set extrasub.
22928# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022929cat >>$CONFIG_STATUS <<_ACEOF
22930 sed "$ac_vpsub
John Criswell3ef61af2003-06-30 21:59:07 +000022931$extrasub
22932_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022933cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022934:t
22935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022936s&@configure_input@&$configure_input&;t t
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022937s&@top_builddir@&$ac_top_builddir_sub&;t t
22938s&@srcdir@&$ac_srcdir&;t t
22939s&@abs_srcdir@&$ac_abs_srcdir&;t t
22940s&@top_srcdir@&$ac_top_srcdir&;t t
22941s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22942s&@builddir@&$ac_builddir&;t t
22943s&@abs_builddir@&$ac_abs_builddir&;t t
22944s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22945s&@INSTALL@&$ac_INSTALL&;t t
22946$ac_datarootdir_hack
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022947" $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 +000022948
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022949test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22950 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022952 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022953which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022954echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022955which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000022956
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022957 rm -f "$tmp/stdin"
John Criswell3ef61af2003-06-30 21:59:07 +000022958 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022959 -) cat "$tmp/out"; rm -f "$tmp/out";;
22960 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22961 esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022962 ;;
22963 :H)
22964 #
22965 # CONFIG_HEADER
22966 #
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022967_ACEOF
22968
22969# Transform confdefs.h into a sed script `conftest.defines', that
22970# substitutes the proper values into config.h.in to produce config.h.
22971rm -f conftest.defines conftest.tail
22972# First, append a space to every undef/define line, to ease matching.
22973echo 's/$/ /' >conftest.defines
22974# Then, protect against being on the right side of a sed subst, or in
22975# an unquoted here document, in config.status. If some macros were
22976# called several times there might be several #defines for the same
22977# symbol, which is useless. But do not sort them, since the last
22978# AC_DEFINE must be honored.
22979ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22980# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22981# NAME is the cpp macro being defined, VALUE is the value it is being given.
22982# PARAMS is the parameter list in the macro definition--in most cases, it's
22983# just an empty string.
22984ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22985ac_dB='\\)[ (].*,\\1define\\2'
22986ac_dC=' '
22987ac_dD=' ,'
22988
22989uniq confdefs.h |
22990 sed -n '
22991 t rset
22992 :rset
22993 s/^[ ]*#[ ]*define[ ][ ]*//
22994 t ok
22995 d
22996 :ok
22997 s/[\\&,]/\\&/g
22998 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22999 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23000 ' >>conftest.defines
23001
23002# Remove the space that was appended to ease matching.
23003# Then replace #undef with comments. This is necessary, for
23004# example, in the case of _POSIX_SOURCE, which is predefined and required
23005# on some systems where configure will not decide to define it.
23006# (The regexp can be short, since the line contains either #define or #undef.)
23007echo 's/ $//
23008s,^[ #]*u.*,/* & */,' >>conftest.defines
23009
23010# Break up conftest.defines:
23011ac_max_sed_lines=50
23012
23013# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23014# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23015# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23016# et cetera.
23017ac_in='$ac_file_inputs'
23018ac_out='"$tmp/out1"'
23019ac_nxt='"$tmp/out2"'
23020
23021while :
23022do
23023 # Write a here document:
23024 cat >>$CONFIG_STATUS <<_ACEOF
23025 # First, check the format of the line:
23026 cat >"\$tmp/defines.sed" <<\\CEOF
23027/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23028/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23029b
23030:def
23031_ACEOF
23032 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23033 echo 'CEOF
23034 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23035 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23036 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23037 grep . conftest.tail >/dev/null || break
23038 rm -f conftest.defines
23039 mv conftest.tail conftest.defines
23040done
23041rm -f conftest.defines conftest.tail
23042
23043echo "ac_result=$ac_in" >>$CONFIG_STATUS
23044cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023045 if test x"$ac_file" != x-; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023046 echo "/* $configure_input */" >"$tmp/config.h"
23047 cat "$ac_result" >>"$tmp/config.h"
23048 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23049 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23050echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000023051 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023052 rm -f $ac_file
23053 mv "$tmp/config.h" $ac_file
John Criswell3ef61af2003-06-30 21:59:07 +000023054 fi
23055 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023056 echo "/* $configure_input */"
23057 cat "$ac_result"
John Criswell3ef61af2003-06-30 21:59:07 +000023058 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023059 rm -f "$tmp/out12"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023060 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000023061
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023062 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23063echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023064 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000023065 esac
John Criswell3ef61af2003-06-30 21:59:07 +000023066
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023067
23068 case $ac_file$ac_mode in
23069 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023070 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023071 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwind70eebe2009-08-28 16:12:48 +000023072 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023073 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023074 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023075 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023076 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer4b8067f2006-11-17 03:32:33 +000023077 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023078 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023079 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023080 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023081 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwind70eebe2009-08-28 16:12:48 +000023082 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000023083 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023084 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023085 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023086 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023087 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023088 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023089 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023090 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023091 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023092 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023093 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwind70eebe2009-08-28 16:12:48 +000023094 ${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 +000023095
23096 esac
23097done # for ac_tag
23098
John Criswell3ef61af2003-06-30 21:59:07 +000023099
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023100{ (exit 0); exit 0; }
John Criswell3ef61af2003-06-30 21:59:07 +000023101_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023102chmod +x $CONFIG_STATUS
John Criswell3ef61af2003-06-30 21:59:07 +000023103ac_clean_files=$ac_clean_files_save
23104
23105
23106# configure is writing to config.log, and then calls config.status.
23107# config.status does its own redirection, appending to config.log.
23108# Unfortunately, on DOS this fails, as config.log is still kept open
23109# by configure, so config.status won't be able to write to it; its
23110# output is simply discarded. So we exec the FD to /dev/null,
23111# effectively closing config.log, so it can be properly (re)opened and
23112# appended to by config.status. When coming back to configure, we
23113# need to make the FD available again.
23114if test "$no_create" != yes; then
23115 ac_cs_success=:
John Criswell3eaf0b42003-09-10 15:17:25 +000023116 ac_config_status_args=
23117 test "$silent" = yes &&
23118 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell3ef61af2003-06-30 21:59:07 +000023119 exec 5>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +000023120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell3ef61af2003-06-30 21:59:07 +000023121 exec 5>>config.log
23122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23123 # would make configure fail if this is the last instruction.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023124 $ac_cs_success || { (exit 1); exit 1; }
John Criswell3ef61af2003-06-30 21:59:07 +000023125fi
23126
John Criswell2b3771e2003-09-30 15:55:44 +000023127#
23128# CONFIG_SUBDIRS section.
23129#
23130if test "$no_recursion" != yes; then
23131
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023132 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell2b3771e2003-09-30 15:55:44 +000023133 ac_sub_configure_args=
23134 ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023135 eval "set x $ac_configure_args"
23136 shift
23137 for ac_arg
23138 do
John Criswell2b3771e2003-09-30 15:55:44 +000023139 if test -n "$ac_prev"; then
23140 ac_prev=
23141 continue
23142 fi
23143 case $ac_arg in
23144 -cache-file | --cache-file | --cache-fil | --cache-fi \
23145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23146 ac_prev=cache_file ;;
23147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23149 | --c=*)
23150 ;;
23151 --config-cache | -C)
23152 ;;
23153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23154 ac_prev=srcdir ;;
23155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23156 ;;
23157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23158 ac_prev=prefix ;;
23159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23160 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023161 *)
23162 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023163 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023164 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023165 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell2b3771e2003-09-30 15:55:44 +000023166 esac
23167 done
23168
23169 # Always prepend --prefix to ensure using the same prefix
23170 # in subdir configurations.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023171 ac_arg="--prefix=$prefix"
23172 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023173 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023174 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023175 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell2b3771e2003-09-30 15:55:44 +000023176
23177 ac_popdir=`pwd`
23178 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23179
23180 # Do not complain, so a configure script can configure whichever
23181 # parts of a large source tree are present.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023182 test -d "$srcdir/$ac_dir" || continue
John Criswell2b3771e2003-09-30 15:55:44 +000023183
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023184 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023185 echo "$as_me:$LINENO: $ac_msg" >&5
23186 echo "$ac_msg" >&6
23187 { as_dir="$ac_dir"
23188 case $as_dir in #(
23189 -*) as_dir=./$as_dir;;
23190 esac
23191 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23192 as_dirs=
23193 while :; do
23194 case $as_dir in #(
23195 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23196 *) as_qdir=$as_dir;;
23197 esac
23198 as_dirs="'$as_qdir' $as_dirs"
23199 as_dir=`$as_dirname -- "$as_dir" ||
23200$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23201 X"$as_dir" : 'X\(//\)[^/]' \| \
23202 X"$as_dir" : 'X\(//\)$' \| \
23203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23204echo X"$as_dir" |
23205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23206 s//\1/
23207 q
23208 }
23209 /^X\(\/\/\)[^/].*/{
23210 s//\1/
23211 q
23212 }
23213 /^X\(\/\/\)$/{
23214 s//\1/
23215 q
23216 }
23217 /^X\(\/\).*/{
23218 s//\1/
23219 q
23220 }
23221 s/.*/./; q'`
23222 test -d "$as_dir" && break
23223 done
23224 test -z "$as_dirs" || eval "mkdir $as_dirs"
23225 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23226echo "$as_me: error: cannot create directory $as_dir" >&2;}
23227 { (exit 1); exit 1; }; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000023228 ac_builddir=.
23229
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023230case "$ac_dir" in
23231.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23232*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023234 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023235 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023236 case $ac_top_builddir_sub in
23237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23239 esac ;;
23240esac
23241ac_abs_top_builddir=$ac_pwd
23242ac_abs_builddir=$ac_pwd$ac_dir_suffix
23243# for backward compatibility:
23244ac_top_builddir=$ac_top_build_prefix
John Criswell2b3771e2003-09-30 15:55:44 +000023245
23246case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023247 .) # We are building in place.
John Criswell2b3771e2003-09-30 15:55:44 +000023248 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023249 ac_top_srcdir=$ac_top_builddir_sub
23250 ac_abs_top_srcdir=$ac_pwd ;;
23251 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell2b3771e2003-09-30 15:55:44 +000023252 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023253 ac_top_srcdir=$srcdir
23254 ac_abs_top_srcdir=$srcdir ;;
23255 *) # Relative name.
23256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23257 ac_top_srcdir=$ac_top_build_prefix$srcdir
23258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell2b3771e2003-09-30 15:55:44 +000023259esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023260ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell2b3771e2003-09-30 15:55:44 +000023261
23262
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023263 cd "$ac_dir"
John Criswell2b3771e2003-09-30 15:55:44 +000023264
23265 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023266 if test -f "$ac_srcdir/configure.gnu"; then
23267 ac_sub_configure=$ac_srcdir/configure.gnu
23268 elif test -f "$ac_srcdir/configure"; then
23269 ac_sub_configure=$ac_srcdir/configure
23270 elif test -f "$ac_srcdir/configure.in"; then
23271 # This should be Cygnus configure.
23272 ac_sub_configure=$ac_aux_dir/configure
John Criswell2b3771e2003-09-30 15:55:44 +000023273 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023274 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23275echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell2b3771e2003-09-30 15:55:44 +000023276 ac_sub_configure=
23277 fi
23278
23279 # The recursion is here.
23280 if test -n "$ac_sub_configure"; then
23281 # Make the cache file name correct relative to the subdirectory.
23282 case $cache_file in
23283 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023284 *) # Relative name.
23285 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell2b3771e2003-09-30 15:55:44 +000023286 esac
23287
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023288 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23289echo "$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 +000023290 # The eval makes quoting arguments work.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023291 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23292 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023293 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23294echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23295 { (exit 1); exit 1; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000023296 fi
23297
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023298 cd "$ac_popdir"
John Criswell2b3771e2003-09-30 15:55:44 +000023299 done
23300fi
23301