blob: 6fbc47c72a7ec940dcd203ae399d6bcc6b595381 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-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 Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000688ENABLE_OPTIMIZED
689ENABLE_PROFILING
690DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000691ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_EXPENSIVE_CHECKS
693EXPENSIVE_CHECKS
694DEBUG_RUNTIME
695DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000696KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697JIT
698TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000699ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000701LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000702ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000704ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000705ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000706ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000707TARGETS_TO_BUILD
708LLVM_ENUM_TARGETS
709LLVM_ENUM_ASM_PRINTERS
710LLVM_ENUM_ASM_PARSERS
711LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712OPTIMIZE_OPTION
713EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000714EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000715CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000717INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000718NM
719ifGNUmake
720LN_S
721CMP
722CP
723DATE
724FIND
725MKDIR
726MV
727RANLIB
728AR
729RM
730SED
731TAR
732BINPWD
733GRAPHVIZ
734DOT
735FDP
736NEATO
737TWOPI
738CIRCO
739GV
740DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000741XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000742INSTALL_PROGRAM
743INSTALL_SCRIPT
744INSTALL_DATA
745BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000746CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000748GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000749GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000750PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000756GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000757HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766USE_UDIS86
767USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000768USE_INTEL_JITEVENTS
769INTEL_JITEVENTS_INCDIR
770INTEL_JITEVENTS_LIBDIR
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000771XML2CONFIG
772LIBXML2_LIBS
773LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774HAVE_PTHREAD
775HUGE_VAL_SANITY
776MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000778SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVM_PREFIX
780LLVM_BINDIR
781LLVM_LIBDIR
782LLVM_DATADIR
783LLVM_DOCSDIR
784LLVM_ETCDIR
785LLVM_INCLUDEDIR
786LLVM_INFODIR
787LLVM_MANDIR
788LLVM_CONFIGTIME
789BINDINGS_TO_BUILD
790ALL_BINDINGS
791OCAML_LIBDIR
792ENABLE_VISIBILITY_INLINES_HIDDEN
793RPATH
794RDYNAMIC
795LIBOBJS
796LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000797ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000805CXX
806CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000807CCC
808CPP'
John Criswell0157f502010-03-19 21:31:39 +0000809ac_subdirs_all='projects/llvm-gcc
810projects/test-suite
811projects/llvm-test
812projects/poolalloc
813projects/llvm-poolalloc
814projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000816projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-java
819projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000820projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000821projects/llvm-kernel
822tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000823
824# Initialize some variables set by options.
825ac_init_help=
826ac_init_version=false
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000849# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000858includedir='${prefix}/include'
859oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000869
870ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000871ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000872for ac_option
873do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000876 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000877 ac_prev=
878 continue
879 fi
880
Reid Spencera773bd52006-08-04 18:18:08 +0000881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
Reid Spencera773bd52006-08-04 18:18:08 +0000888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000913 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000915 datadir=$ac_optarg ;;
916
Reid Spencera773bd52006-08-04 18:18:08 +0000917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
John Criswell7a73b802003-06-30 21:59:07 +0000924 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000926 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000942
943 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000945 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000946 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948 { (exit 1); exit 1; }; }
949 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
950 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
Reid Spencera773bd52006-08-04 18:18:08 +0000977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
John Criswell7a73b802003-06-30 21:59:07 +0000983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
Reid Spencera773bd52006-08-04 18:18:08 +00001007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
John Criswell7a73b802003-06-30 21:59:07 +00001012 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
Reid Spencera773bd52006-08-04 18:18:08 +00001081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
John Criswell7a73b802003-06-30 21:59:07 +00001091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001142 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package| sed 's/-/_/g'`
1147 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001148
1149 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001151 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/-/_/g'`
1156 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001176 -*) { echo "$as_me: error: unrecognized option: $ac_option
1177Try \`$0 --help' for more information." >&2
1178 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001179 ;;
1180
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001187 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203 { echo "$as_me: error: missing argument to $ac_option" >&2
1204 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001205fi
1206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001207# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001212do
Reid Spencera773bd52006-08-04 18:18:08 +00001213 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001214 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001217 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
Reid Spencera773bd52006-08-04 18:18:08 +00001246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: Working directory cannot be determined" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001252 { echo "$as_me: error: pwd does not report name of working directory" >&2
1253 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001254
1255
John Criswell7a73b802003-06-30 21:59:07 +00001256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001259 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 ac_confdir=`$as_dirname -- "$0" ||
1261$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$0" : 'X\(//\)[^/]' \| \
1263 X"$0" : 'X\(//\)$' \| \
1264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001284 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001285 srcdir=..
1286 fi
1287else
1288 ac_srcdir_defaulted=no
1289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001294fi
Reid Spencera773bd52006-08-04 18:18:08 +00001295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001299 pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
John Criswell7a73b802003-06-30 21:59:07 +00001316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001324\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
John Criswell7a73b802003-06-30 21:59:07 +00001344Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001348 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001372 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001377_ACEOF
1378
1379 cat <<\_ACEOF
1380
1381System types:
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001390 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001391 esac
1392 cat <<\_ACEOF
1393
1394Optional Features:
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001397 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001398 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001399 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 --enable-optimized Compile with optimizations enabled (default is NO)
1401 --enable-profiling Compile with profiling enabled (default is NO)
1402 --enable-assertions Compile with assertion checks enabled (default is
1403 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001404 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001405 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 Compile with expensive debug checks enabled (default
1407 is NO)
1408 --enable-debug-runtime Build runtime libs with debug symbols (default is
1409 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001410 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1411 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001412 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001413 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001414 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001415 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001416 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001417 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001418 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001419 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001420 --enable-shared Build a shared library and link tools against it
1421 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001422 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001423 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001424 --enable-timestamps Enable embedding timestamp information in build
1425 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001426 --enable-targets Build specific host targets: all or
1427 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001428 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001429 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001430 --enable-experimental-targets
1431 Build experimental host targets: disable or
1432 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001433 --enable-bindings Build specific language bindings:
1434 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001435 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001436 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001437
1438Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001441 --with-optimize-option Select the compiler options to use for optimized
1442 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001443 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001444 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001445 --with-ocaml-libdir Specify install location for ocaml bindings (default
1446 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001447 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001448 --with-clang-resource-dir
1449 Relative directory from the Clang binary for
1450 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001451 --with-c-include-dirs Colon separated list of directories clang will
1452 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001453 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001454 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001455 --with-binutils-include Specify path to binutils/include/ containing
1456 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001457 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001458 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001459 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001460 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001461 --with-oprofile=<prefix>
1462 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001463 --with-intel-jitevents=<vtune-amplifier-dir>
1464 Specify location of run-time support library for
1465 Intel JIT API
1466 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001469 CC C compiler command
1470 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001473 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001474 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001477 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001478
1479Use these variables to override the choices made by `configure' or to help
1480it to find libraries and programs with nonstandard names/locations.
1481
Eric Christopherf33ab862011-12-21 00:52:44 +00001482Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001483_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001484ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001485fi
1486
1487if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001491 ac_builddir=.
1492
Reid Spencera773bd52006-08-04 18:18:08 +00001493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001497 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001508
1509case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001510 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001511 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001515 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001522esac
Reid Spencera773bd52006-08-04 18:18:08 +00001523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001524
Reid Spencera773bd52006-08-04 18:18:08 +00001525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001533 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001537 done
1538fi
1539
Reid Spencera773bd52006-08-04 18:18:08 +00001540test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001541if $ac_init_version; then
1542 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001543LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001544generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001546Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001550
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001551Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001553 exit
John Criswell7a73b802003-06-30 21:59:07 +00001554fi
Reid Spencera773bd52006-08-04 18:18:08 +00001555cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001556This file contains any messages produced by compilers while
1557running configure, to aid debugging if configure makes a mistake.
1558
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001559It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001560generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001561
1562 $ $0 $@
1563
1564_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001565exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001566{
1567cat <<_ASUNAME
1568## --------- ##
1569## Platform. ##
1570## --------- ##
1571
1572hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1573uname -m = `(uname -m) 2>/dev/null || echo unknown`
1574uname -r = `(uname -r) 2>/dev/null || echo unknown`
1575uname -s = `(uname -s) 2>/dev/null || echo unknown`
1576uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577
1578/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1579/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580
1581/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1582/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1583/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001584/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001585/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1586/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1587/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588
1589_ASUNAME
1590
1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592for as_dir in $PATH
1593do
1594 IFS=$as_save_IFS
1595 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001596 echo "PATH: $as_dir"
1597done
Reid Spencera773bd52006-08-04 18:18:08 +00001598IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001599
1600} >&5
1601
1602cat >&5 <<_ACEOF
1603
1604
1605## ----------- ##
1606## Core tests. ##
1607## ----------- ##
1608
1609_ACEOF
1610
1611
1612# Keep a trace of the command line.
1613# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001614# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001615# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001616# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001617ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001618ac_configure_args0=
1619ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001620ac_must_keep_next=false
1621for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001622do
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 for ac_arg
1624 do
1625 case $ac_arg in
1626 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1628 | -silent | --silent | --silen | --sile | --sil)
1629 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001630 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001631 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 esac
1633 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001634 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001636 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001638 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001640 case $ac_arg in
1641 *=* | --config-cache | -C | -disable-* | --disable-* \
1642 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1643 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1644 | -with-* | --with-* | -without-* | --without-* | --x)
1645 case "$ac_configure_args0 " in
1646 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1647 esac
1648 ;;
1649 -* ) ac_must_keep_next=true ;;
1650 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001651 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001652 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ;;
1654 esac
1655 done
John Criswell7a73b802003-06-30 21:59:07 +00001656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001657$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1658$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001659
1660# When interrupted or exit'd, cleanup temporary files, and complete
1661# config.log. We remove comments because anyway the quotes in there
1662# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001663# WARNING: Use '\'' to represent an apostrophe within the trap.
1664# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001665trap 'exit_status=$?
1666 # Save into config.log some information that might help in debugging.
1667 {
1668 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001669
John Criswell7a73b802003-06-30 21:59:07 +00001670 cat <<\_ASBOX
1671## ---------------- ##
1672## Cache variables. ##
1673## ---------------- ##
1674_ASBOX
1675 echo
1676 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001677(
1678 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1679 eval ac_val=\$$ac_var
1680 case $ac_val in #(
1681 *${as_nl}*)
1682 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001683 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1684echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001685 esac
1686 case $ac_var in #(
1687 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001688 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001689 esac ;;
1690 esac
1691 done
John Criswell7a73b802003-06-30 21:59:07 +00001692 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001693 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1694 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001695 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001696 "s/'\''/'\''\\\\'\'''\''/g;
1697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1698 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001699 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001702 esac |
1703 sort
1704)
John Criswell7a73b802003-06-30 21:59:07 +00001705 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001706
1707 cat <<\_ASBOX
1708## ----------------- ##
1709## Output variables. ##
1710## ----------------- ##
1711_ASBOX
1712 echo
1713 for ac_var in $ac_subst_vars
1714 do
Reid Spencera773bd52006-08-04 18:18:08 +00001715 eval ac_val=\$$ac_var
1716 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001717 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001718 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001719 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001720 done | sort
1721 echo
1722
1723 if test -n "$ac_subst_files"; then
1724 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001725## ------------------- ##
1726## File substitutions. ##
1727## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001728_ASBOX
1729 echo
1730 for ac_var in $ac_subst_files
1731 do
Reid Spencera773bd52006-08-04 18:18:08 +00001732 eval ac_val=\$$ac_var
1733 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001735 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001736 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 done | sort
1738 echo
1739 fi
1740
John Criswell7a73b802003-06-30 21:59:07 +00001741 if test -s confdefs.h; then
1742 cat <<\_ASBOX
1743## ----------- ##
1744## confdefs.h. ##
1745## ----------- ##
1746_ASBOX
1747 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001748 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001749 echo
1750 fi
1751 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001752 echo "$as_me: caught signal $ac_signal"
1753 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001754 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001755 rm -f core *.core core.conftest.* &&
1756 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001757 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001758' 0
John Criswell7a73b802003-06-30 21:59:07 +00001759for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001760 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001761done
1762ac_signal=0
1763
1764# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001765rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001766
1767# Predefined preprocessor variables.
1768
1769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_NAME "$PACKAGE_NAME"
1771_ACEOF
1772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773
John Criswell7a73b802003-06-30 21:59:07 +00001774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1776_ACEOF
1777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_VERSION "$PACKAGE_VERSION"
1781_ACEOF
1782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783
John Criswell7a73b802003-06-30 21:59:07 +00001784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_STRING "$PACKAGE_STRING"
1786_ACEOF
1787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1791_ACEOF
1792
1793
1794# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001796if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001798elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 set x "$ac_default_prefix/share/config.site" \
1802 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001804shift
1805for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001806do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 if test -r "$ac_site_file"; then
1808 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1809echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001810 sed 's/^/| /' "$ac_site_file" >&5
1811 . "$ac_site_file"
1812 fi
1813done
1814
1815if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 # Some versions of bash will fail to source /dev/null (special
1817 # files actually), so we avoid doing that.
1818 if test -f "$cache_file"; then
1819 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1820echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001821 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001822 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1823 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001824 esac
1825 fi
1826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001827 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1828echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001829 >$cache_file
1830fi
1831
1832# Check that the precious variables saved in the cache have kept the same
1833# value.
1834ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001835for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001836 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1837 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001838 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1839 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001840 case $ac_old_set,$ac_new_set in
1841 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1843echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001844 ac_cache_corrupted=: ;;
1845 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1847echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001848 ac_cache_corrupted=: ;;
1849 ,);;
1850 *)
1851 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1853echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1854 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1855echo "$as_me: former value: $ac_old_val" >&2;}
1856 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1857echo "$as_me: current value: $ac_new_val" >&2;}
1858 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001859 fi;;
1860 esac
1861 # Pass precious variables to config.status.
1862 if test "$ac_new_set" = set; then
1863 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001865 *) ac_arg=$ac_var=$ac_new_val ;;
1866 esac
1867 case " $ac_configure_args " in
1868 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001869 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001870 esac
1871 fi
1872done
1873if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001874 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1875echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1876 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1877echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1878 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
Reid Spencera773bd52006-08-04 18:18:08 +00001904
John Criswell7a73b802003-06-30 21:59:07 +00001905ac_ext=c
1906ac_cpp='$CPP $CPPFLAGS'
1907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910
1911
1912
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001913cat >>confdefs.h <<\_ACEOF
1914#define LLVM_VERSION_MAJOR 3
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001919#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001920_ACEOF
1921
1922
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001923LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001924
1925
1926
1927
1928
1929
1930
John Criswell7a73b802003-06-30 21:59:07 +00001931ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001932for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001933 if test -f "$ac_dir/install-sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
1937 elif test -f "$ac_dir/install.sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
1941 elif test -f "$ac_dir/shtool"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1945 fi
John Criswell7a73b802003-06-30 21:59:07 +00001946done
1947if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1949echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1950 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001951fi
Reid Spencera773bd52006-08-04 18:18:08 +00001952
1953# These three variables are undocumented and unsupported,
1954# and are intended to be withdrawn in a future Autoconf release.
1955# They can cause serious problems if a builder's source tree is in a directory
1956# whose full name contains unusual characters.
1957ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1960
John Criswell7a73b802003-06-30 21:59:07 +00001961
John Criswell392aaa32003-07-22 19:18:09 +00001962
Reid Spencer2706f8c2004-09-19 23:53:36 +00001963if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001964 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001965 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1966echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1967 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001968 fi
John Criswell93e1c722003-09-15 17:04:06 +00001969fi
1970
Nick Lewycky83fc4472009-09-29 05:48:51 +00001971ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001972ac_cpp='$CPP $CPPFLAGS'
1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001976if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001977 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001978 do
1979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1983if test "${ac_cv_prog_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001985else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001998 break 2
1999 fi
2000done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002001done
Reid Spencera773bd52006-08-04 18:18:08 +00002002IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002003
2004fi
2005fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002006CC=$ac_cv_prog_CC
2007if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { echo "$as_me:$LINENO: result: $CC" >&5
2009echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011 { echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002013fi
2014
Reid Spencera773bd52006-08-04 18:18:08 +00002015
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002016 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002017 done
2018fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002019if test -z "$CC"; then
2020 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002021 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002022do
2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
2024set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002029else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002032else
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002042 break 2
2043 fi
2044done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002045done
Reid Spencera773bd52006-08-04 18:18:08 +00002046IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002047
2048fi
2049fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002055 { echo "$as_me:$LINENO: result: no" >&5
2056echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002057fi
2058
Reid Spencera773bd52006-08-04 18:18:08 +00002059
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002061done
John Criswell7a73b802003-06-30 21:59:07 +00002062
Reid Spencera773bd52006-08-04 18:18:08 +00002063 if test "x$ac_ct_CC" = x; then
2064 CC=""
2065 else
2066 case $cross_compiling:$ac_tool_warned in
2067yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2069whose name does not start with the host triplet. If you think this
2070configuration is useful to you, please write to autoconf@gnu.org." >&5
2071echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2072whose name does not start with the host triplet. If you think this
2073configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002074ac_tool_warned=yes ;;
2075esac
2076 CC=$ac_ct_CC
2077 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078fi
2079
John Criswell7a73b802003-06-30 21:59:07 +00002080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: no acceptable C compiler found in \$PATH
2084See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002086
John Criswell7a73b802003-06-30 21:59:07 +00002087# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088echo "$as_me:$LINENO: checking for C compiler version" >&5
2089ac_compiler=`set X $ac_compile; echo $2`
2090{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002097 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100{ (ac_try="$ac_compiler -v >&5"
2101case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104esac
2105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -v >&5") 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110{ (ac_try="$ac_compiler -V >&5"
2111case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114esac
2115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler -V >&5") 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121cat >conftest.$ac_ext <<_ACEOF
2122/* confdefs.h. */
2123_ACEOF
2124cat confdefs.h >>conftest.$ac_ext
2125cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002126/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002127
John Criswell7a73b802003-06-30 21:59:07 +00002128int
2129main ()
2130{
2131
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002137ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002138# Try to create an executable without -o first, disregard a.out.
2139# It will help us diagnose broken compilers, and finding out an intuition
2140# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002141{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2143ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144#
2145# List of possible output files, starting from the most likely.
2146# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2147# only as a last resort. b.out is created by i960 compilers.
2148ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149#
2150# The IRIX 6 linker writes into existing files which may not be
2151# executable, retaining their permissions. Remove them first so a
2152# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002153ac_rmfiles=
2154for ac_file in $ac_files
2155do
2156 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2159 esac
2160done
2161rm -f $ac_rmfiles
2162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002163if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002164case "(($ac_try" in
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2167esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002169 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002170 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002173 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2174# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2175# in a Makefile. We should not override ac_cv_exeext if it was cached,
2176# so that the user can short-circuit this test for compilers unknown to
2177# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002178for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002179do
2180 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002181 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002184 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 # We found the default executable, but exeext='' is most
2186 # certainly right.
2187 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002188 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002190 then :; else
2191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 fi
2193 # We set ac_cv_exeext here because the later test for it is not
2194 # safe: cross compilers may not add the suffix if given an `-o'
2195 # argument, so we may need to know it at that point already.
2196 # Even if this section looks crufty: it has the advantage of
2197 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002198 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002199 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002200 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002201 esac
2202done
Reid Spencera773bd52006-08-04 18:18:08 +00002203test "$ac_cv_exeext" = no && ac_cv_exeext=
2204
John Criswell7a73b802003-06-30 21:59:07 +00002205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002207sed 's/^/| /' conftest.$ac_ext >&5
2208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002209{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210See \`config.log' for more details." >&5
2211echo "$as_me: error: C compiler cannot create executables
2212See \`config.log' for more details." >&2;}
2213 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002214fi
John Criswell7a73b802003-06-30 21:59:07 +00002215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002216ac_exeext=$ac_cv_exeext
2217{ echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6; }
2219
2220# Check that the compiler produces executables we can run. If not, either
2221# the compiler is broken, or we cross compile.
2222{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2224# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225# If not cross compiling, check that we can run a simple program.
2226if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231esac
2232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233 (eval "$ac_try") 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 cross_compiling=no
2238 else
2239 if test "$cross_compiling" = maybe; then
2240 cross_compiling=yes
2241 else
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2249 fi
2250 fi
2251fi
2252{ echo "$as_me:$LINENO: result: yes" >&5
2253echo "${ECHO_T}yes" >&6; }
2254
2255rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002256ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257# Check that the compiler produces executables we can run. If not, either
2258# the compiler is broken, or we cross compile.
2259{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2261{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262echo "${ECHO_T}$cross_compiling" >&6; }
2263
2264{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2266if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002267case "(($ac_try" in
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2270esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002272 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002273 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2278# work properly (i.e., refer to `conftest.exe'), while it won't with
2279# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002280for ac_file in conftest.exe conftest conftest.*; do
2281 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002282 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002285 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002286 * ) break;;
2287 esac
2288done
2289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002290 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002296
2297rm -f conftest$ac_cv_exeext
2298{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002300
2301rm -f conftest.$ac_ext
2302EXEEXT=$ac_cv_exeext
2303ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2306if test "${ac_cv_objext+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002309 cat >conftest.$ac_ext <<_ACEOF
2310/* confdefs.h. */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002315
John Criswell7a73b802003-06-30 21:59:07 +00002316int
2317main ()
2318{
2319
2320 ;
2321 return 0;
2322}
2323_ACEOF
2324rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002326case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002331 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002332 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002335 for ac_file in conftest.o conftest.obj conftest.*; do
2336 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002337 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340 break;;
2341 esac
2342done
2343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002345sed 's/^/| /' conftest.$ac_ext >&5
2346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&5
2349echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002353
John Criswell7a73b802003-06-30 21:59:07 +00002354rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002358OBJEXT=$ac_cv_objext
2359ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002360{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2362if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002365 cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h. */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002371
John Criswell7a73b802003-06-30 21:59:07 +00002372int
2373main ()
2374{
2375#ifndef __GNUC__
2376 choke me
2377#endif
2378
2379 ;
2380 return 0;
2381}
2382_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002383rm -f conftest.$ac_objext
2384if { (ac_try="$ac_compile"
2385case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2388esac
2389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_compile") 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2398 { (case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401esac
2402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_try") 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_try") 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002417 ac_compiler_gnu=yes
2418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419 echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424
Reid Spencera773bd52006-08-04 18:18:08 +00002425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002427
2428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002429{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2430echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2431GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432ac_test_CFLAGS=${CFLAGS+set}
2433ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2436if test "${ac_cv_prog_cc_g+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002438else
Reid Spencera773bd52006-08-04 18:18:08 +00002439 ac_save_c_werror_flag=$ac_c_werror_flag
2440 ac_c_werror_flag=yes
2441 ac_cv_prog_cc_g=no
2442 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002443 cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h. */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002449
John Criswell7a73b802003-06-30 21:59:07 +00002450int
2451main ()
2452{
2453
2454 ;
2455 return 0;
2456}
2457_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458rm -f conftest.$ac_objext
2459if { (ac_try="$ac_compile"
2460case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463esac
2464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compile") 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476esac
2477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486esac
2487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002492 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002493else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494 echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 CFLAGS=""
2498 cat >conftest.$ac_ext <<_ACEOF
2499/* confdefs.h. */
2500_ACEOF
2501cat confdefs.h >>conftest.$ac_ext
2502cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002503/* end confdefs.h. */
2504
2505int
2506main ()
2507{
2508
2509 ;
2510 return 0;
2511}
2512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002513rm -f conftest.$ac_objext
2514if { (ac_try="$ac_compile"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compile") 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541esac
2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_try") 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 :
Torok Edwin871384f2010-01-26 08:50:50 +00002548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002553 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002554 cat >conftest.$ac_ext <<_ACEOF
2555/* confdefs.h. */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002559/* end confdefs.h. */
2560
2561int
2562main ()
2563{
2564
2565 ;
2566 return 0;
2567}
2568_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002569rm -f conftest.$ac_objext
2570if { (ac_try="$ac_compile"
2571case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574esac
2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_compile") 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_try") 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002603 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604else
2605 echo "$as_me: failed program was:" >&5
2606sed 's/^/| /' conftest.$ac_ext >&5
2607
2608
John Criswell7a73b802003-06-30 21:59:07 +00002609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610
Reid Spencera773bd52006-08-04 18:18:08 +00002611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002612fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002613
Reid Spencera773bd52006-08-04 18:18:08 +00002614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616
Reid Spencera773bd52006-08-04 18:18:08 +00002617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 ac_c_werror_flag=$ac_save_c_werror_flag
2619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2621echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622if test "$ac_test_CFLAGS" = set; then
2623 CFLAGS=$ac_save_CFLAGS
2624elif test $ac_cv_prog_cc_g = yes; then
2625 if test "$GCC" = yes; then
2626 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002627 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002629 fi
2630else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 if test "$GCC" = yes; then
2632 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002633 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002635 fi
2636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002637{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2638echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2639if test "${ac_cv_prog_cc_c89+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641else
Reid Spencera773bd52006-08-04 18:18:08 +00002642 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002644cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h. */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649/* end confdefs.h. */
2650#include <stdarg.h>
2651#include <stdio.h>
2652#include <sys/types.h>
2653#include <sys/stat.h>
2654/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2655struct buf { int x; };
2656FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657static char *e (p, i)
2658 char **p;
2659 int i;
2660{
2661 return p[i];
2662}
2663static char *f (char * (*g) (char **, int), char **p, ...)
2664{
2665 char *s;
2666 va_list v;
2667 va_start (v,p);
2668 s = g (p, va_arg (v,int));
2669 va_end (v);
2670 return s;
2671}
2672
2673/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2674 function prototypes and stuff, but not '\xHH' hex character constants.
2675 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002676 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2678 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002679 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681
Reid Spencera773bd52006-08-04 18:18:08 +00002682/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2683 inside strings and character constants. */
2684#define FOO(x) 'x'
2685int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687int test (int i, double x);
2688struct s1 {int (*f) (int a);};
2689struct s2 {int (*f) (double a);};
2690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2691int argc;
2692char **argv;
2693int
2694main ()
2695{
2696return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2697 ;
2698 return 0;
2699}
2700_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002701for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703do
2704 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705 rm -f conftest.$ac_objext
2706if { (ac_try="$ac_compile"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_try") 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002739 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740else
2741 echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002746
Reid Spencera773bd52006-08-04 18:18:08 +00002747rm -f core conftest.err conftest.$ac_objext
2748 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749done
Reid Spencera773bd52006-08-04 18:18:08 +00002750rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002751CC=$ac_save_CC
2752
2753fi
Reid Spencera773bd52006-08-04 18:18:08 +00002754# AC_CACHE_VAL
2755case "x$ac_cv_prog_cc_c89" in
2756 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002757 { echo "$as_me:$LINENO: result: none needed" >&5
2758echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002759 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002760 { echo "$as_me:$LINENO: result: unsupported" >&5
2761echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002762 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002763 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2765echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002766esac
2767
John Criswell0c38eaf2003-09-10 15:17:25 +00002768
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002769ac_ext=c
2770ac_cpp='$CPP $CPPFLAGS'
2771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774
Eric Christopherffee5722011-09-16 20:36:25 +00002775ac_ext=cpp
2776ac_cpp='$CXXCPP $CPPFLAGS'
2777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2780if test -z "$CXX"; then
2781 if test -n "$CCC"; then
2782 CXX=$CCC
2783 else
2784 if test -n "$ac_tool_prefix"; then
2785 for ac_prog in clang++ llvm-g++ g++
2786 do
2787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791if test "${ac_cv_prog_CXX+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793else
2794 if test -n "$CXX"; then
2795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809done
2810IFS=$as_save_IFS
2811
2812fi
2813fi
2814CXX=$ac_cv_prog_CXX
2815if test -n "$CXX"; then
2816 { echo "$as_me:$LINENO: result: $CXX" >&5
2817echo "${ECHO_T}$CXX" >&6; }
2818else
2819 { echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6; }
2821fi
2822
2823
2824 test -n "$CXX" && break
2825 done
2826fi
2827if test -z "$CXX"; then
2828 ac_ct_CXX=$CXX
2829 for ac_prog in clang++ llvm-g++ g++
2830do
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832set dummy $ac_prog; ac_word=$2
2833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838 if test -n "$ac_ct_CXX"; then
2839 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_ac_ct_CXX="$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852done
2853done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2859if test -n "$ac_ct_CXX"; then
2860 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2861echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862else
2863 { echo "$as_me:$LINENO: result: no" >&5
2864echo "${ECHO_T}no" >&6; }
2865fi
2866
2867
2868 test -n "$ac_ct_CXX" && break
2869done
2870
2871 if test "x$ac_ct_CXX" = x; then
2872 CXX="g++"
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877whose name does not start with the host triplet. If you think this
2878configuration is useful to you, please write to autoconf@gnu.org." >&5
2879echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880whose name does not start with the host triplet. If you think this
2881configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882ac_tool_warned=yes ;;
2883esac
2884 CXX=$ac_ct_CXX
2885 fi
2886fi
2887
2888 fi
2889fi
2890# Provide some information about the compiler.
2891echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2892ac_compiler=`set X $ac_compile; echo $2`
2893{ (ac_try="$ac_compiler --version >&5"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler --version >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903{ (ac_try="$ac_compiler -v >&5"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -v >&5") 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913{ (ac_try="$ac_compiler -V >&5"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler -V >&5") 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2923
2924{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2925echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2926if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928else
2929 cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
2935
2936int
2937main ()
2938{
2939#ifndef __GNUC__
2940 choke me
2941#endif
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext
2948if { (ac_try="$ac_compile"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_try") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_compiler_gnu=yes
2982else
2983 echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 ac_compiler_gnu=no
2987fi
2988
2989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2991
2992fi
2993{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2994echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2995GXX=`test $ac_compiler_gnu = yes && echo yes`
2996ac_test_CXXFLAGS=${CXXFLAGS+set}
2997ac_save_CXXFLAGS=$CXXFLAGS
2998{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2999echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3000if test "${ac_cv_prog_cxx_g+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3004 ac_cxx_werror_flag=yes
3005 ac_cv_prog_cxx_g=no
3006 CXXFLAGS="-g"
3007 cat >conftest.$ac_ext <<_ACEOF
3008/* confdefs.h. */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h. */
3013
3014int
3015main ()
3016{
3017
3018 ;
3019 return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (ac_try="$ac_compile"
3024case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_prog_cxx_g=yes
3057else
3058 echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 CXXFLAGS=""
3062 cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h. */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h. */
3068
3069int
3070main ()
3071{
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext
3078if { (ac_try="$ac_compile"
3079case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 :
3112else
3113 echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 CXXFLAGS="-g"
3118 cat >conftest.$ac_ext <<_ACEOF
3119/* confdefs.h. */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h. */
3124
3125int
3126main ()
3127{
3128
3129 ;
3130 return 0;
3131}
3132_ACEOF
3133rm -f conftest.$ac_objext
3134if { (ac_try="$ac_compile"
3135case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_prog_cxx_g=yes
3168else
3169 echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172
3173fi
3174
3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176fi
3177
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183fi
3184{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3185echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3186if test "$ac_test_CXXFLAGS" = set; then
3187 CXXFLAGS=$ac_save_CXXFLAGS
3188elif test $ac_cv_prog_cxx_g = yes; then
3189 if test "$GXX" = yes; then
3190 CXXFLAGS="-g -O2"
3191 else
3192 CXXFLAGS="-g"
3193 fi
3194else
3195 if test "$GXX" = yes; then
3196 CXXFLAGS="-O2"
3197 else
3198 CXXFLAGS=
3199 fi
3200fi
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003206
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003212{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3213echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003214# On Suns, sometimes $CPP names a directory.
3215if test -n "$CPP" && test -d "$CPP"; then
3216 CPP=
3217fi
3218if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003219 if test "${ac_cv_prog_CPP+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221else
3222 # Double quotes because CPP needs to be expanded
3223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224 do
3225 ac_preproc_ok=false
3226for ac_c_preproc_warn_flag in '' yes
3227do
3228 # Use a header file that comes with gcc, so configuring glibc
3229 # with a fresh cross-compiler works.
3230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3231 # <limits.h> exists even on freestanding compilers.
3232 # On the NeXT, cc -E runs the code through the compiler's parser,
3233 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003234 cat >conftest.$ac_ext <<_ACEOF
3235/* confdefs.h. */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003239/* end confdefs.h. */
3240#ifdef __STDC__
3241# include <limits.h>
3242#else
3243# include <assert.h>
3244#endif
3245 Syntax error
3246_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247if { (ac_try="$ac_cpp conftest.$ac_ext"
3248case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251esac
3252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 else
3264 ac_cpp_err=
3265 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003267 ac_cpp_err=yes
3268fi
3269if test -z "$ac_cpp_err"; then
3270 :
3271else
3272 echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275 # Broken: fails on valid input.
3276continue
3277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003278
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279rm -f conftest.err conftest.$ac_ext
3280
Reid Spencera773bd52006-08-04 18:18:08 +00003281 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003283 cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288/* end confdefs.h. */
3289#include <ac_nonexistent.h>
3290_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003291if { (ac_try="$ac_cpp conftest.$ac_ext"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307 else
3308 ac_cpp_err=
3309 fi
3310else
3311 ac_cpp_err=yes
3312fi
3313if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 # Broken: success on invalid input.
3315continue
3316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003317 echo "$as_me: failed program was:" >&5
3318sed 's/^/| /' conftest.$ac_ext >&5
3319
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320 # Passes both tests.
3321ac_preproc_ok=:
3322break
3323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003324
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325rm -f conftest.err conftest.$ac_ext
3326
3327done
3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003330if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331 break
3332fi
3333
3334 done
3335 ac_cv_prog_CPP=$CPP
3336
3337fi
3338 CPP=$ac_cv_prog_CPP
3339else
3340 ac_cv_prog_CPP=$CPP
3341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003342{ echo "$as_me:$LINENO: result: $CPP" >&5
3343echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344ac_preproc_ok=false
3345for ac_c_preproc_warn_flag in '' yes
3346do
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003353 cat >conftest.$ac_ext <<_ACEOF
3354/* confdefs.h. */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358/* end confdefs.h. */
3359#ifdef __STDC__
3360# include <limits.h>
3361#else
3362# include <assert.h>
3363#endif
3364 Syntax error
3365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003366if { (ac_try="$ac_cpp conftest.$ac_ext"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382 else
3383 ac_cpp_err=
3384 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003386 ac_cpp_err=yes
3387fi
3388if test -z "$ac_cpp_err"; then
3389 :
3390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394 # Broken: fails on valid input.
3395continue
3396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003397
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398rm -f conftest.err conftest.$ac_ext
3399
Reid Spencera773bd52006-08-04 18:18:08 +00003400 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402 cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407/* end confdefs.h. */
3408#include <ac_nonexistent.h>
3409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003410if { (ac_try="$ac_cpp conftest.$ac_ext"
3411case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
3415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426 else
3427 ac_cpp_err=
3428 fi
3429else
3430 ac_cpp_err=yes
3431fi
3432if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433 # Broken: success on invalid input.
3434continue
3435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003436 echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439 # Passes both tests.
3440ac_preproc_ok=:
3441break
3442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003443
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444rm -f conftest.err conftest.$ac_ext
3445
3446done
3447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003449if $ac_preproc_ok; then
3450 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003452 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3453See \`config.log' for more details." >&5
3454echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3455See \`config.log' for more details." >&2;}
3456 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003457fi
3458
John Criswell7a73b802003-06-30 21:59:07 +00003459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
John Criswell7a73b802003-06-30 21:59:07 +00003465
Eric Christopherffee5722011-09-16 20:36:25 +00003466
3467
3468if test -d ${srcdir}/projects/llvm-gcc ; then
3469 subdirs="$subdirs projects/llvm-gcc"
3470
3471fi
3472
3473if test -d ${srcdir}/projects/test-suite ; then
3474 subdirs="$subdirs projects/test-suite"
3475
3476fi
3477
3478if test -d ${srcdir}/projects/llvm-test ; then
3479 subdirs="$subdirs projects/llvm-test"
3480
3481fi
3482
3483if test -d ${srcdir}/projects/poolalloc ; then
3484 subdirs="$subdirs projects/poolalloc"
3485
3486fi
3487
3488if test -d ${srcdir}/projects/llvm-poolalloc ; then
3489 subdirs="$subdirs projects/llvm-poolalloc"
3490
3491fi
3492
3493for i in `ls ${srcdir}/projects`
3494do
3495 if test -d ${srcdir}/projects/${i} ; then
3496 case ${i} in
3497 sample) subdirs="$subdirs projects/sample"
3498 ;;
3499 privbracket) subdirs="$subdirs projects/privbracket"
3500 ;;
3501 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3502 ;;
3503 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3504;;
3505 llvm-java) subdirs="$subdirs projects/llvm-java"
3506 ;;
3507 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3508 ;;
3509 safecode) subdirs="$subdirs projects/safecode"
3510 ;;
3511 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3512 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003513 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003514 llvm-gcc) ;;
3515 test-suite) ;;
3516 llvm-test) ;;
3517 poolalloc) ;;
3518 llvm-poolalloc) ;;
3519 *)
3520 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3521echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3522 ;;
3523 esac
3524 fi
3525done
3526
3527# Check whether --enable-polly was given.
3528if test "${enable_polly+set}" = set; then
3529 enableval=$enable_polly;
3530else
3531 enableval=default
3532fi
3533
3534case "$enableval" in
3535 yes) ENABLE_POLLY=1
3536 ;;
3537 no) ENABLE_POLLY=0
3538 ;;
3539 default) ENABLE_POLLY=1
3540 ;;
3541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3542echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3543 { (exit 1); exit 1; }; } ;;
3544esac
3545
3546
3547if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3548 LLVM_HAS_POLLY=1
3549
3550 subdirs="$subdirs tools/polly"
3551
3552fi
3553
3554
3555# Make sure we can run config.sub.
3556$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3557 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3558echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3559 { (exit 1); exit 1; }; }
3560
3561{ echo "$as_me:$LINENO: checking build system type" >&5
3562echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3563if test "${ac_cv_build+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566 ac_build_alias=$build_alias
3567test "x$ac_build_alias" = x &&
3568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3569test "x$ac_build_alias" = x &&
3570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3571echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3572 { (exit 1); exit 1; }; }
3573ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3574 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3575echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3576 { (exit 1); exit 1; }; }
3577
3578fi
3579{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3580echo "${ECHO_T}$ac_cv_build" >&6; }
3581case $ac_cv_build in
3582*-*-*) ;;
3583*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3584echo "$as_me: error: invalid value of canonical build" >&2;}
3585 { (exit 1); exit 1; }; };;
3586esac
3587build=$ac_cv_build
3588ac_save_IFS=$IFS; IFS='-'
3589set x $ac_cv_build
3590shift
3591build_cpu=$1
3592build_vendor=$2
3593shift; shift
3594# Remember, the first character of IFS is used to create $*,
3595# except with old shells:
3596build_os=$*
3597IFS=$ac_save_IFS
3598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599
3600
3601{ echo "$as_me:$LINENO: checking host system type" >&5
3602echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3603if test "${ac_cv_host+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 if test "x$host_alias" = x; then
3607 ac_cv_host=$ac_cv_build
3608else
3609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3611echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3612 { (exit 1); exit 1; }; }
3613fi
3614
3615fi
3616{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3617echo "${ECHO_T}$ac_cv_host" >&6; }
3618case $ac_cv_host in
3619*-*-*) ;;
3620*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3621echo "$as_me: error: invalid value of canonical host" >&2;}
3622 { (exit 1); exit 1; }; };;
3623esac
3624host=$ac_cv_host
3625ac_save_IFS=$IFS; IFS='-'
3626set x $ac_cv_host
3627shift
3628host_cpu=$1
3629host_vendor=$2
3630shift; shift
3631# Remember, the first character of IFS is used to create $*,
3632# except with old shells:
3633host_os=$*
3634IFS=$ac_save_IFS
3635case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3636
3637
3638{ echo "$as_me:$LINENO: checking target system type" >&5
3639echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3640if test "${ac_cv_target+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643 if test "x$target_alias" = x; then
3644 ac_cv_target=$ac_cv_host
3645else
3646 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3647 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3648echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3649 { (exit 1); exit 1; }; }
3650fi
3651
3652fi
3653{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3654echo "${ECHO_T}$ac_cv_target" >&6; }
3655case $ac_cv_target in
3656*-*-*) ;;
3657*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3658echo "$as_me: error: invalid value of canonical target" >&2;}
3659 { (exit 1); exit 1; }; };;
3660esac
3661target=$ac_cv_target
3662ac_save_IFS=$IFS; IFS='-'
3663set x $ac_cv_target
3664shift
3665target_cpu=$1
3666target_vendor=$2
3667shift; shift
3668# Remember, the first character of IFS is used to create $*,
3669# except with old shells:
3670target_os=$*
3671IFS=$ac_save_IFS
3672case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3673
3674
3675# The aliases save the names the user supplied, while $host etc.
3676# will get canonicalized.
3677test -n "$target_alias" &&
3678 test "$program_prefix$program_suffix$program_transform_name" = \
3679 NONENONEs,x,x, &&
3680 program_prefix=${target_alias}-
3681
3682{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3683echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3684if test "${llvm_cv_os_type+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687 case $host in
3688 *-*-aix*)
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="AIX"
3692 llvm_cv_platform_type="Unix" ;;
3693 *-*-irix*)
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="IRIX"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-cygwin*)
3699 llvm_cv_link_all_option="-Wl,--whole-archive"
3700 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3701 llvm_cv_os_type="Cygwin"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-darwin*)
3704 llvm_cv_link_all_option="-Wl,-all_load"
3705 llvm_cv_no_link_all_option="-Wl,-noall_load"
3706 llvm_cv_os_type="Darwin"
3707 llvm_cv_platform_type="Unix" ;;
3708 *-*-minix*)
3709 llvm_cv_link_all_option="-Wl,-all_load"
3710 llvm_cv_no_link_all_option="-Wl,-noall_load"
3711 llvm_cv_os_type="Minix"
3712 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003713 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="FreeBSD"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-*-openbsd*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="OpenBSD"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-*-netbsd*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="NetBSD"
3727 llvm_cv_platform_type="Unix" ;;
3728 *-*-dragonfly*)
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="DragonFly"
3732 llvm_cv_platform_type="Unix" ;;
3733 *-*-hpux*)
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="HP-UX"
3737 llvm_cv_platform_type="Unix" ;;
3738 *-*-interix*)
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="Interix"
3742 llvm_cv_platform_type="Unix" ;;
3743 *-*-linux*)
3744 llvm_cv_link_all_option="-Wl,--whole-archive"
3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746 llvm_cv_os_type="Linux"
3747 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003748 *-*-gnu*)
3749 llvm_cv_link_all_option="-Wl,--whole-archive"
3750 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3751 llvm_cv_os_type="GNU"
3752 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003753 *-*-solaris*)
3754 llvm_cv_link_all_option="-Wl,-z,allextract"
3755 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3756 llvm_cv_os_type="SunOS"
3757 llvm_cv_platform_type="Unix" ;;
3758 *-*-auroraux*)
3759 llvm_cv_link_all_option="-Wl,-z,allextract"
3760 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3761 llvm_cv_os_type="AuroraUX"
3762 llvm_cv_platform_type="Unix" ;;
3763 *-*-win32*)
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="Win32"
3767 llvm_cv_platform_type="Win32" ;;
3768 *-*-mingw*)
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="MingW"
3772 llvm_cv_platform_type="Win32" ;;
3773 *-*-haiku*)
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Haiku"
3777 llvm_cv_platform_type="Unix" ;;
3778 *-unknown-eabi*)
3779 llvm_cv_link_all_option="-Wl,--whole-archive"
3780 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3781 llvm_cv_os_type="Freestanding"
3782 llvm_cv_platform_type="Unix" ;;
3783 *-unknown-elf*)
3784 llvm_cv_link_all_option="-Wl,--whole-archive"
3785 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3786 llvm_cv_os_type="Freestanding"
3787 llvm_cv_platform_type="Unix" ;;
3788 *)
3789 llvm_cv_link_all_option=""
3790 llvm_cv_no_link_all_option=""
3791 llvm_cv_os_type="Unknown"
3792 llvm_cv_platform_type="Unknown" ;;
3793esac
3794fi
3795{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3796echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3797
3798{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3799echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3800if test "${llvm_cv_target_os_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803 case $target in
3804 *-*-aix*)
3805 llvm_cv_target_os_type="AIX" ;;
3806 *-*-irix*)
3807 llvm_cv_target_os_type="IRIX" ;;
3808 *-*-cygwin*)
3809 llvm_cv_target_os_type="Cygwin" ;;
3810 *-*-darwin*)
3811 llvm_cv_target_os_type="Darwin" ;;
3812 *-*-minix*)
3813 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003814 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003815 llvm_cv_target_os_type="FreeBSD" ;;
3816 *-*-openbsd*)
3817 llvm_cv_target_os_type="OpenBSD" ;;
3818 *-*-netbsd*)
3819 llvm_cv_target_os_type="NetBSD" ;;
3820 *-*-dragonfly*)
3821 llvm_cv_target_os_type="DragonFly" ;;
3822 *-*-hpux*)
3823 llvm_cv_target_os_type="HP-UX" ;;
3824 *-*-interix*)
3825 llvm_cv_target_os_type="Interix" ;;
3826 *-*-linux*)
3827 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003828 *-*-gnu*)
3829 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003830 *-*-solaris*)
3831 llvm_cv_target_os_type="SunOS" ;;
3832 *-*-auroraux*)
3833 llvm_cv_target_os_type="AuroraUX" ;;
3834 *-*-win32*)
3835 llvm_cv_target_os_type="Win32" ;;
3836 *-*-mingw*)
3837 llvm_cv_target_os_type="MingW" ;;
3838 *-*-haiku*)
3839 llvm_cv_target_os_type="Haiku" ;;
3840 *-*-rtems*)
3841 llvm_cv_target_os_type="RTEMS" ;;
3842 *-*-nacl*)
3843 llvm_cv_target_os_type="NativeClient" ;;
3844 *-unknown-eabi*)
3845 llvm_cv_target_os_type="Freestanding" ;;
3846 *)
3847 llvm_cv_target_os_type="Unknown" ;;
3848esac
3849fi
3850{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3851echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3852
3853if test "$llvm_cv_os_type" = "Unknown" ; then
3854 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3855echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3856 { (exit 1); exit 1; }; }
3857fi
3858
3859OS=$llvm_cv_os_type
3860
3861HOST_OS=$llvm_cv_os_type
3862
3863TARGET_OS=$llvm_cv_target_os_type
3864
3865
3866LINKALL=$llvm_cv_link_all_option
3867
3868NOLINKALL=$llvm_cv_no_link_all_option
3869
3870
3871case $llvm_cv_platform_type in
3872 Unix)
3873
3874cat >>confdefs.h <<\_ACEOF
3875#define LLVM_ON_UNIX 1
3876_ACEOF
3877
3878 LLVM_ON_UNIX=1
3879
3880 LLVM_ON_WIN32=0
3881
3882 ;;
3883 Win32)
3884
3885cat >>confdefs.h <<\_ACEOF
3886#define LLVM_ON_WIN32 1
3887_ACEOF
3888
3889 LLVM_ON_UNIX=0
3890
3891 LLVM_ON_WIN32=1
3892
3893 ;;
3894esac
3895
3896{ echo "$as_me:$LINENO: checking target architecture" >&5
3897echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3898if test "${llvm_cv_target_arch+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901 case $target in
3902 i?86-*) llvm_cv_target_arch="x86" ;;
3903 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3904 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3905 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003906 arm*-*) llvm_cv_target_arch="ARM" ;;
3907 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003908 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003909 xcore-*) llvm_cv_target_arch="XCore" ;;
3910 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003911 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003912 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003913 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003914 *) llvm_cv_target_arch="Unknown" ;;
3915esac
3916fi
3917{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3918echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3919
3920if test "$llvm_cv_target_arch" = "Unknown" ; then
3921 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3922echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3923fi
3924
Eric Christopherffee5722011-09-16 20:36:25 +00003925case "$llvm_cv_target_arch" in
3926 x86) LLVM_NATIVE_ARCH="X86" ;;
3927 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3928 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3929esac
3930
3931ARCH=$llvm_cv_target_arch
3932
3933
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003934case $host in
3935 i?86-*) host_arch="x86" ;;
3936 amd64-* | x86_64-*) host_arch="x86_64" ;;
3937 sparc*-*) host_arch="Sparc" ;;
3938 powerpc*-*) host_arch="PowerPC" ;;
3939 arm*-*) host_arch="ARM" ;;
3940 mips-*) host_arch="Mips" ;;
3941 mipsel-*) host_arch="Mips" ;;
3942 xcore-*) host_arch="XCore" ;;
3943 msp430-*) host_arch="MSP430" ;;
3944 hexagon-*) host_arch="Hexagon" ;;
3945 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003946 *) host_arch="Unknown" ;;
3947esac
3948
3949if test "$host_arch" = "Unknown" ; then
3950 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3951echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3952fi
3953
3954HOST_ARCH=$host_arch
3955
3956
Eric Christopherffee5722011-09-16 20:36:25 +00003957
3958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961if test "${ac_cv_path_GREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 # Extract the first word of "grep ggrep" to use in msg output
3965if test -z "$GREP"; then
3966set dummy grep ggrep; ac_prog_name=$2
3967if test "${ac_cv_path_GREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
Reid Spencera773bd52006-08-04 18:18:08 +00003970 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971# Loop through the user's path and test for each of PROGNAME-LIST
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977 for ac_prog in grep ggrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3981 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003982 # Check for GNU $ac_path_GREP
3983case `"$ac_path_GREP" --version 2>&1` in
3984*GNU*)
3985 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986*)
3987 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003989 while :
3990 do
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003994 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003995 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003998 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_GREP="$ac_path_GREP"
4001 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004002 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4005 done
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007esac
4008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004009
4010 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004011 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012done
4013
4014done
Reid Spencera773bd52006-08-04 18:18:08 +00004015IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004016
4017
4018fi
4019
4020GREP="$ac_cv_path_GREP"
4021if test -z "$GREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4025fi
4026
Reid Spencera773bd52006-08-04 18:18:08 +00004027else
4028 ac_cv_path_GREP=$GREP
4029fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031
Reid Spencera773bd52006-08-04 18:18:08 +00004032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004035 GREP="$ac_cv_path_GREP"
4036
4037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038{ echo "$as_me:$LINENO: checking for egrep" >&5
4039echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004042else
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4045 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046 # Extract the first word of "egrep" to use in msg output
4047if test -z "$EGREP"; then
4048set dummy egrep; ac_prog_name=$2
4049if test "${ac_cv_path_EGREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
Reid Spencera773bd52006-08-04 18:18:08 +00004052 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004053# Loop through the user's path and test for each of PROGNAME-LIST
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059 for ac_prog in egrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4063 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004064 # Check for GNU $ac_path_EGREP
4065case `"$ac_path_EGREP" --version 2>&1` in
4066*GNU*)
4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068*)
4069 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004071 while :
4072 do
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_EGREP="$ac_path_EGREP"
4083 ac_path_EGREP_max=$ac_count
4084 fi
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4087 done
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089esac
4090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091
4092 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004093 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094done
4095
4096done
Reid Spencera773bd52006-08-04 18:18:08 +00004097IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004098
4099
4100fi
4101
4102EGREP="$ac_cv_path_EGREP"
4103if test -z "$EGREP"; then
4104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106 { (exit 1); exit 1; }; }
4107fi
4108
Reid Spencera773bd52006-08-04 18:18:08 +00004109else
4110 ac_cv_path_EGREP=$EGREP
4111fi
4112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004113
Reid Spencera773bd52006-08-04 18:18:08 +00004114 fi
4115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004118 EGREP="$ac_cv_path_EGREP"
4119
4120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4123if test "${ac_cv_header_stdc+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004126 cat >conftest.$ac_ext <<_ACEOF
4127/* confdefs.h. */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004132#include <stdlib.h>
4133#include <stdarg.h>
4134#include <string.h>
4135#include <float.h>
4136
John Criswell0c38eaf2003-09-10 15:17:25 +00004137int
4138main ()
4139{
4140
4141 ;
4142 return 0;
4143}
John Criswell7a73b802003-06-30 21:59:07 +00004144_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145rm -f conftest.$ac_objext
4146if { (ac_try="$ac_compile"
4147case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004179 ac_cv_header_stdc=yes
4180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004186
Reid Spencera773bd52006-08-04 18:18:08 +00004187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004188
4189if test $ac_cv_header_stdc = yes; then
4190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004191 cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h. */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004196/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004197#include <string.h>
4198
4199_ACEOF
4200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 $EGREP "memchr" >/dev/null 2>&1; then
4202 :
John Criswell7a73b802003-06-30 21:59:07 +00004203else
4204 ac_cv_header_stdc=no
4205fi
4206rm -f conftest*
4207
4208fi
4209
4210if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004218#include <stdlib.h>
4219
4220_ACEOF
4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004222 $EGREP "free" >/dev/null 2>&1; then
4223 :
John Criswell7a73b802003-06-30 21:59:07 +00004224else
4225 ac_cv_header_stdc=no
4226fi
4227rm -f conftest*
4228
4229fi
4230
4231if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004233 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004234 :
4235else
Jeffrey Yasskin1611ebb2010-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 Criswell0c38eaf2003-09-10 15:17:25 +00004241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004242#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004243#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004244#if ((' ' & 0x0FF) == 0x020)
4245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004248# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253#endif
4254
4255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256int
4257main ()
4258{
4259 int i;
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004262 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004263 return 2;
4264 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004265}
4266_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004267rm -f conftest$ac_exeext
4268if { (ac_try="$ac_link"
4269case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_link") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_try") 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 :
John Criswell7a73b802003-06-30 21:59:07 +00004288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289 echo "$as_me: program exited with status $ac_status" >&5
4290echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293( exit $ac_status )
4294ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004297fi
4298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004299
John Criswell7a73b802003-06-30 21:59:07 +00004300fi
4301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004304if test $ac_cv_header_stdc = yes; then
4305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004306cat >>confdefs.h <<\_ACEOF
4307#define STDC_HEADERS 1
4308_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004309
4310fi
4311
Reid Spencera773bd52006-08-04 18:18:08 +00004312# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004313
4314
4315
4316
4317
4318
4319
4320
4321
Reid Spencera773bd52006-08-04 18:18:08 +00004322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004324do
4325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331 cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h. */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h. */
4337$ac_includes_default
4338
4339#include <$ac_header>
4340_ACEOF
4341rm -f conftest.$ac_objext
4342if { (ac_try="$ac_compile"
4343case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 eval "$as_ac_Header=yes"
4376else
4377 echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 eval "$as_ac_Header=no"
4381fi
4382
4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384fi
4385ac_res=`eval echo '${'$as_ac_Header'}'`
4386 { echo "$as_me:$LINENO: result: $ac_res" >&5
4387echo "${ECHO_T}$ac_res" >&6; }
4388if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004391_ACEOF
4392
4393fi
4394
4395done
4396
4397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4399echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4400if test "${ac_cv_c_bigendian+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004403 # See if sys/param.h defines the BYTE_ORDER macro.
4404cat >conftest.$ac_ext <<_ACEOF
4405/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004406_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407cat confdefs.h >>conftest.$ac_ext
4408cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004409/* end confdefs.h. */
4410#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004411#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004412
4413int
4414main ()
4415{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4417 bogus endian macros
4418#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004419
4420 ;
4421 return 0;
4422}
4423_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424rm -f conftest.$ac_objext
4425if { (ac_try="$ac_compile"
4426case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429esac
4430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_compile") 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439 { (case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442esac
4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_try") 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452esac
4453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_try") 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004458 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004459cat >conftest.$ac_ext <<_ACEOF
4460/* confdefs.h. */
4461_ACEOF
4462cat confdefs.h >>conftest.$ac_ext
4463cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004464/* end confdefs.h. */
4465#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004466#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004467
4468int
4469main ()
4470{
4471#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004472 not big endian
4473#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004474
4475 ;
4476 return 0;
4477}
4478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479rm -f conftest.$ac_objext
4480if { (ac_try="$ac_compile"
4481case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484esac
4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_compile") 2>conftest.er1
4487 ac_status=$?
4488 grep -v '^ *+' conftest.er1 >conftest.err
4489 rm -f conftest.er1
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497esac
4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_try") 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004513 ac_cv_c_bigendian=yes
4514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004518 ac_cv_c_bigendian=no
4519fi
4520
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522else
4523 echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 # It does not; compile a test program.
4527if test "$cross_compiling" = yes; then
4528 # try to guess the endianness by grepping values into an object file
4529 ac_cv_c_bigendian=unknown
4530 cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h. */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h. */
4536short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4537short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4538void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4539short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4540short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4541void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004542int
4543main ()
4544{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004546 ;
4547 return 0;
4548}
4549_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550rm -f conftest.$ac_objext
4551if { (ac_try="$ac_compile"
4552case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_compile") 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578esac
4579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_try") 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004585 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004586fi
4587if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4588 if test "$ac_cv_c_bigendian" = unknown; then
4589 ac_cv_c_bigendian=no
4590 else
4591 # finding both strings is unlikely to happen, but who knows?
4592 ac_cv_c_bigendian=unknown
4593 fi
4594fi
Reid Spencera773bd52006-08-04 18:18:08 +00004595else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004596 echo "$as_me: failed program was:" >&5
4597sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599
Torok Edwin871384f2010-01-26 08:50:50 +00004600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601
Reid Spencera773bd52006-08-04 18:18:08 +00004602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604 cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h. */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004609/* end confdefs.h. */
4610$ac_includes_default
4611int
4612main ()
4613{
4614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004615 /* Are we little or big endian? From Harbison&Steele. */
4616 union
4617 {
4618 long int l;
4619 char c[sizeof (long int)];
4620 } u;
4621 u.l = 1;
4622 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004623
4624 ;
4625 return 0;
4626}
4627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628rm -f conftest$ac_exeext
4629if { (ac_try="$ac_link"
4630case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_link") 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639 { (case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642esac
4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_try") 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004648 ac_cv_c_bigendian=no
4649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650 echo "$as_me: program exited with status $ac_status" >&5
4651echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654( exit $ac_status )
4655ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004658fi
4659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660
Reid Spencera773bd52006-08-04 18:18:08 +00004661fi
4662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664fi
4665{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4666echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4667case $ac_cv_c_bigendian in
4668 yes)
4669 ENDIAN=big
4670 ;;
4671 no)
4672 ENDIAN=little
4673 ;;
4674 *)
4675 { { echo "$as_me:$LINENO: error: unknown endianness
4676presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4677echo "$as_me: error: unknown endianness
4678presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4679 { (exit 1); exit 1; }; } ;;
4680esac
Reid Spencera773bd52006-08-04 18:18:08 +00004681
4682
4683if test "$cross_compiling" = yes; then
4684 LLVM_CROSS_COMPILING=1
4685
4686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4688echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4689if test "${ac_cv_build_exeext+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004691else
4692 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4693 ac_cv_build_exeext=.exe
4694else
4695 ac_build_prefix=${build_alias}-
4696
4697 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4698set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004703else
4704 if test -n "$BUILD_CC"; then
4705 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004714 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004716 break 2
4717 fi
4718done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719done
Reid Spencera773bd52006-08-04 18:18:08 +00004720IFS=$as_save_IFS
4721
4722fi
4723fi
4724BUILD_CC=$ac_cv_prog_BUILD_CC
4725if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729 { echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004731fi
4732
4733
4734 if test -z "$BUILD_CC"; then
4735 # Extract the first word of "gcc", so it can be a program name with args.
4736set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004741else
4742 if test -n "$BUILD_CC"; then
4743 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004752 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004754 break 2
4755 fi
4756done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757done
Reid Spencera773bd52006-08-04 18:18:08 +00004758IFS=$as_save_IFS
4759
4760fi
4761fi
4762BUILD_CC=$ac_cv_prog_BUILD_CC
4763if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4765echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767 { echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004769fi
4770
4771
4772 if test -z "$BUILD_CC"; then
4773 # Extract the first word of "cc", so it can be a program name with args.
4774set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004779else
4780 if test -n "$BUILD_CC"; then
4781 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4782else
4783 ac_prog_rejected=no
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4792 ac_prog_rejected=yes
4793 continue
4794 fi
4795 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004797 break 2
4798 fi
4799done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004800done
Reid Spencera773bd52006-08-04 18:18:08 +00004801IFS=$as_save_IFS
4802
4803if test $ac_prog_rejected = yes; then
4804 # We found a bogon in the path, so make sure we never use it.
4805 set dummy $ac_cv_prog_BUILD_CC
4806 shift
4807 if test $# != 0; then
4808 # We chose a different compiler from the bogus one.
4809 # However, it has the same basename, so the bogon will be chosen
4810 # first if we set BUILD_CC to just the basename; use the full file name.
4811 shift
4812 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4813 fi
4814fi
4815fi
4816fi
4817BUILD_CC=$ac_cv_prog_BUILD_CC
4818if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004819 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4820echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004822 { echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004824fi
4825
4826
4827 fi
4828 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4830echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4831 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004832 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4833 rm -f conftest*
4834 echo 'int main () { return 0; }' > conftest.$ac_ext
4835 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004836 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004837 (eval $ac_build_link) 2>&5
4838 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004841 for file in conftest.*; do
4842 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004843 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004844 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4845 esac
4846 done
4847 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004848 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4849echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4850 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004851 fi
4852 rm -f conftest*
4853 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4854fi
4855fi
4856
4857BUILD_EXEEXT=""
4858test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4860echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004861ac_build_exeext=$BUILD_EXEEXT
4862
Jim Grosbach673612e2008-10-02 22:56:44 +00004863 ac_build_prefix=${build_alias}-
4864 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4865set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004870else
4871 if test -n "$BUILD_CXX"; then
4872 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004881 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004883 break 2
4884 fi
4885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886done
Jim Grosbach673612e2008-10-02 22:56:44 +00004887IFS=$as_save_IFS
4888
4889fi
4890fi
4891BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 { echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004898fi
4899
4900
4901 if test -z "$BUILD_CXX"; then
4902 # Extract the first word of "g++", so it can be a program name with args.
4903set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004908else
4909 if test -n "$BUILD_CXX"; then
4910 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004919 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004921 break 2
4922 fi
4923done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924done
Jim Grosbach673612e2008-10-02 22:56:44 +00004925IFS=$as_save_IFS
4926
4927fi
4928fi
4929BUILD_CXX=$ac_cv_prog_BUILD_CXX
4930if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4932echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004934 { echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004936fi
4937
4938
4939 if test -z "$BUILD_CXX"; then
4940 # Extract the first word of "c++", so it can be a program name with args.
4941set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4944if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004946else
4947 if test -n "$BUILD_CXX"; then
4948 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4949else
4950 ac_prog_rejected=no
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4959 ac_prog_rejected=yes
4960 continue
4961 fi
4962 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004964 break 2
4965 fi
4966done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004967done
Jim Grosbach673612e2008-10-02 22:56:44 +00004968IFS=$as_save_IFS
4969
4970if test $ac_prog_rejected = yes; then
4971 # We found a bogon in the path, so make sure we never use it.
4972 set dummy $ac_cv_prog_BUILD_CXX
4973 shift
4974 if test $# != 0; then
4975 # We chose a different compiler from the bogus one.
4976 # However, it has the same basename, so the bogon will be chosen
4977 # first if we set BUILD_CXX to just the basename; use the full file name.
4978 shift
4979 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4980 fi
4981fi
4982fi
4983fi
4984BUILD_CXX=$ac_cv_prog_BUILD_CXX
4985if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004986 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4987echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004989 { echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004991fi
4992
4993
4994 fi
4995 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004996else
4997 LLVM_CROSS_COMPILING=0
4998
4999fi
5000
Dan Gohman56fb5f92010-08-04 16:25:01 +00005001if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005002 cvsbuild="yes"
5003 optimize="no"
5004 CVSBUILD=CVSBUILD=1
5005
5006else
5007 cvsbuild="no"
5008 optimize="yes"
5009fi
5010
5011
Eric Christopherbee515f2011-11-11 22:51:42 +00005012# Check whether --enable-libcpp was given.
5013if test "${enable_libcpp+set}" = set; then
5014 enableval=$enable_libcpp;
5015else
5016 enableval=default
5017fi
5018
5019case "$enableval" in
5020 yes) ENABLE_LIBCPP=1
5021 ;;
5022 no) ENABLE_LIBCPP=0
5023 ;;
5024 default) ENABLE_LIBCPP=0
5025;;
5026 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5027echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5028 { (exit 1); exit 1; }; } ;;
5029esac
5030
Eric Christopher82120022012-08-03 19:47:14 +00005031# Check whether --enable-cxx11 was given.
5032if test "${enable_cxx11+set}" = set; then
5033 enableval=$enable_cxx11;
5034else
5035 enableval=default
5036fi
5037
5038case "$enableval" in
5039 yes) ENABLE_CXX11=1
5040 ;;
5041 no) ENABLE_CXX11=0
5042 ;;
5043 default) ENABLE_CXX11=0
5044;;
5045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5046echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5048esac
5049
Reid Spencera773bd52006-08-04 18:18:08 +00005050# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005051if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005052 enableval=$enable_optimized;
5053else
5054 enableval=$optimize
5055fi
5056
5057if test ${enableval} = "no" ; then
5058 ENABLE_OPTIMIZED=
5059
5060else
5061 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5062
5063fi
5064
David Greene2a5a12c2009-04-17 14:50:39 +00005065# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005066if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005067 enableval=$enable_profiling;
5068else
5069 enableval="no"
5070fi
5071
5072if test ${enableval} = "no" ; then
5073 ENABLE_PROFILING=
5074
5075else
5076 ENABLE_PROFILING=ENABLE_PROFILING=1
5077
5078fi
5079
Reid Spencera773bd52006-08-04 18:18:08 +00005080# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005081if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005082 enableval=$enable_assertions;
5083else
5084 enableval="yes"
5085fi
5086
5087if test ${enableval} = "yes" ; then
5088 DISABLE_ASSERTIONS=
5089
5090else
5091 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5092
5093fi
5094
Eric Christopher09a88732012-08-03 19:58:20 +00005095# Check whether --enable-werror was given.
5096if test "${enable_werror+set}" = set; then
5097 enableval=$enable_werror;
5098else
5099 enableval="no"
5100fi
5101
5102case "$enableval" in
5103 yes) ENABLE_WERROR=1
5104 ;;
5105 no) ENABLE_WERROR=0
5106 ;;
5107 default) ENABLE_WERROR=0
5108;;
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5110echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5112esac
5113
David Greenea696d242007-06-28 19:36:08 +00005114# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005115if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005116 enableval=$enable_expensive_checks;
5117else
5118 enableval="no"
5119fi
5120
5121if test ${enableval} = "yes" ; then
5122 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5123
5124 EXPENSIVE_CHECKS=yes
5125
5126else
5127 ENABLE_EXPENSIVE_CHECKS=
5128
5129 EXPENSIVE_CHECKS=no
5130
5131fi
5132
Reid Spencer8b2e1412006-11-17 03:32:33 +00005133# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005134if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005135 enableval=$enable_debug_runtime;
5136else
5137 enableval=no
5138fi
5139
5140if test ${enableval} = "no" ; then
5141 DEBUG_RUNTIME=
5142
5143else
5144 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5145
5146fi
5147
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005148# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005149if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005150 enableval=$enable_debug_symbols;
5151else
5152 enableval=no
5153fi
5154
5155if test ${enableval} = "no" ; then
5156 DEBUG_SYMBOLS=
5157
5158else
5159 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5160
5161fi
5162
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005163# Check whether --enable-keep-symbols was given.
5164if test "${enable_keep_symbols+set}" = set; then
5165 enableval=$enable_keep_symbols;
5166else
5167 enableval=no
5168fi
5169
5170if test ${enableval} = "no" ; then
5171 KEEP_SYMBOLS=
5172
5173else
5174 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5175
5176fi
5177
Reid Spencera773bd52006-08-04 18:18:08 +00005178# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005179if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005180 enableval=$enable_jit;
5181else
5182 enableval=default
5183fi
5184
5185if test ${enableval} = "no"
5186then
5187 JIT=
5188
5189else
5190 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005191 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005192 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005193 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005194 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005195 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005196 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005197 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005198 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005199 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005200 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005201 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005202 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005203 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005204 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005205 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005206 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005207 Hexagon) TARGET_HAS_JIT=0
5208 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005209 MBlaze) TARGET_HAS_JIT=0
5210 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005211 NVPTX) TARGET_HAS_JIT=0
5212 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005213 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005214 ;;
5215 esac
5216fi
5217
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005218# Check whether --enable-docs was given.
5219if test "${enable_docs+set}" = set; then
5220 enableval=$enable_docs;
5221else
5222 enableval=default
5223fi
5224
5225case "$enableval" in
5226 yes) ENABLE_DOCS=1
5227 ;;
5228 no) ENABLE_DOCS=0
5229 ;;
5230 default) ENABLE_DOCS=1
5231 ;;
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5233echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5235esac
5236
Reid Spencera773bd52006-08-04 18:18:08 +00005237# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005238if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005239 enableval=$enable_doxygen;
5240else
5241 enableval=default
5242fi
5243
5244case "$enableval" in
5245 yes) ENABLE_DOXYGEN=1
5246 ;;
5247 no) ENABLE_DOXYGEN=0
5248 ;;
5249 default) ENABLE_DOXYGEN=0
5250 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5252echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005254esac
5255
5256# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005257if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005258 enableval=$enable_threads;
5259else
Reid Spencer65c5d752006-11-05 17:08:18 +00005260 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005261fi
5262
5263case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005264 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005265 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005266 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005267 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005268 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005269 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5271echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005273esac
5274
Owen Andersona8603702009-05-19 22:18:56 +00005275cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005276#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005277_ACEOF
5278
5279
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005280# Check whether --enable-pthreads was given.
5281if test "${enable_pthreads+set}" = set; then
5282 enableval=$enable_pthreads;
5283else
5284 enableval=default
5285fi
5286
5287case "$enableval" in
5288 yes) ENABLE_PTHREADS=1
5289 ;;
5290 no) ENABLE_PTHREADS=0
5291 ;;
5292 default) ENABLE_PTHREADS=1
5293 ;;
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5295echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5297esac
5298
Reid Spencer89b0d992006-12-16 22:07:52 +00005299# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005300if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005301 enableval=$enable_pic;
5302else
5303 enableval=default
5304fi
5305
5306case "$enableval" in
5307 yes) ENABLE_PIC=1
5308 ;;
5309 no) ENABLE_PIC=0
5310 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005311 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005312 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005313 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5314echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5315 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005316esac
5317
5318cat >>confdefs.h <<_ACEOF
5319#define ENABLE_PIC $ENABLE_PIC
5320_ACEOF
5321
5322
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005323# Check whether --enable-shared was given.
5324if test "${enable_shared+set}" = set; then
5325 enableval=$enable_shared;
5326else
5327 enableval=default
5328fi
5329
5330case "$enableval" in
5331 yes) ENABLE_SHARED=1
5332 ;;
5333 no) ENABLE_SHARED=0
5334 ;;
5335 default) ENABLE_SHARED=0
5336 ;;
5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5338echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5340esac
5341
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005342# Check whether --enable-embed-stdcxx was given.
5343if test "${enable_embed_stdcxx+set}" = set; then
5344 enableval=$enable_embed_stdcxx;
5345else
5346 enableval=default
5347fi
5348
5349case "$enableval" in
5350 yes) ENABLE_EMBED_STDCXX=1
5351 ;;
5352 no) ENABLE_EMBED_STDCXX=0
5353 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005354 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005355 ;;
5356 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5357echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5358 { (exit 1); exit 1; }; } ;;
5359esac
5360
Daniel Dunbardd464df2010-05-10 20:11:56 +00005361# Check whether --enable-timestamps was given.
5362if test "${enable_timestamps+set}" = set; then
5363 enableval=$enable_timestamps;
5364else
5365 enableval=default
5366fi
5367
5368case "$enableval" in
5369 yes) ENABLE_TIMESTAMPS=1
5370 ;;
5371 no) ENABLE_TIMESTAMPS=0
5372 ;;
5373 default) ENABLE_TIMESTAMPS=1
5374 ;;
5375 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5376echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5377 { (exit 1); exit 1; }; } ;;
5378esac
5379
5380cat >>confdefs.h <<_ACEOF
5381#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5382_ACEOF
5383
5384
Reid Spencera773bd52006-08-04 18:18:08 +00005385TARGETS_TO_BUILD=""
5386# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005387if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005388 enableval=$enable_targets;
5389else
5390 enableval=all
5391fi
5392
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005393if test "$enableval" = host-only ; then
5394 enableval=host
5395fi
Reid Spencera773bd52006-08-04 18:18:08 +00005396case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005397 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005398 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5399 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005400 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5401 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5402 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5403 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005404 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5405 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005406 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005407 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005408 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5409 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005410 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005411 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005412 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005413 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005414 host) case "$llvm_cv_target_arch" in
5415 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5416 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5417 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5418 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005419 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5420 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005421 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005422 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005423 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5424 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005425 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005426 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005427 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5428echo "$as_me: error: Can not set target to build" >&2;}
5429 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005430 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5432echo "$as_me: error: Unrecognized target $a_target" >&2;}
5433 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005434 esac
5435 done
5436 ;;
5437esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005438
5439# Check whether --enable-experimental-targets was given.
5440if test "${enable_experimental_targets+set}" = set; then
5441 enableval=$enable_experimental_targets;
5442else
5443 enableval=disable
5444fi
5445
5446
5447if test ${enableval} != "disable"
5448then
5449 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5450fi
5451
Reid Spencera773bd52006-08-04 18:18:08 +00005452TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5453
5454
Douglas Gregor0711c302009-06-17 00:43:20 +00005455for a_target in $TARGETS_TO_BUILD; do
5456 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5457
5458cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005459#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5460_ACEOF
5461
5462 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5463 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005464 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005465 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005466 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5467 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5468 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005469 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5470 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5471 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005472
5473cat >>confdefs.h <<_ACEOF
5474#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005475_ACEOF
5476
5477
5478cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005479#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5480_ACEOF
5481
5482
5483cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005484#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005485_ACEOF
5486
5487
5488cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005489#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005490_ACEOF
5491
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005492 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005493
5494cat >>confdefs.h <<_ACEOF
5495#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5496_ACEOF
5497
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005498 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005499 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5500
5501cat >>confdefs.h <<_ACEOF
5502#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5503_ACEOF
5504
5505 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005506 fi
5507done
5508
Douglas Gregor1555a232009-06-16 20:12:29 +00005509LLVM_ENUM_TARGETS=""
5510LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005511LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005512LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005513for target_to_build in $TARGETS_TO_BUILD; do
5514 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005515 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005516 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5517 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005518 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5519 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5520 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005521 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5522 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5523 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005524done
5525
5526
5527
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005528
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005529
Reid Spencera773bd52006-08-04 18:18:08 +00005530
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005531# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005532if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005533 withval=$with_optimize_option;
5534else
5535 withval=default
5536fi
5537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005538{ echo "$as_me:$LINENO: checking optimization flags" >&5
5539echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005540case "$withval" in
5541 default)
5542 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005543 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005544 MingW) optimize_option=-O2 ;;
5545 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005546 esac ;;
5547 *) optimize_option="$withval" ;;
5548esac
5549OPTIMIZE_OPTION=$optimize_option
5550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005551{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5552echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005553
5554
Reid Spencera773bd52006-08-04 18:18:08 +00005555# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005556if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005557 withval=$with_extra_options;
5558else
5559 withval=default
5560fi
5561
5562case "$withval" in
5563 default) EXTRA_OPTIONS= ;;
5564 *) EXTRA_OPTIONS=$withval ;;
5565esac
5566EXTRA_OPTIONS=$EXTRA_OPTIONS
5567
5568
Daniel Dunbared344d22011-06-16 22:30:41 +00005569
5570# Check whether --with-extra-ld-options was given.
5571if test "${with_extra_ld_options+set}" = set; then
5572 withval=$with_extra_ld_options;
5573else
5574 withval=default
5575fi
5576
5577case "$withval" in
5578 default) EXTRA_LD_OPTIONS= ;;
5579 *) EXTRA_LD_OPTIONS=$withval ;;
5580esac
5581EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5582
5583
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005584# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005585if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005586 enableval=$enable_bindings;
5587else
5588 enableval=default
5589fi
5590
5591BINDINGS_TO_BUILD=""
5592case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005593 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005594 all ) BINDINGS_TO_BUILD="ocaml" ;;
5595 none | no) BINDINGS_TO_BUILD="" ;;
5596 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5597 case "$a_binding" in
5598 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005599 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5600echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5601 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005602 esac
5603 done
5604 ;;
5605esac
5606
Reid Spencera773bd52006-08-04 18:18:08 +00005607
Gordon Henriksenf0915682007-10-02 16:42:22 +00005608# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005609if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005610 withval=$with_ocaml_libdir;
5611else
5612 withval=auto
5613fi
5614
5615case "$withval" in
5616 auto) with_ocaml_libdir="$withval" ;;
5617 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005618 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5619echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5620 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005621esac
5622
5623
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005624# Check whether --with-clang-srcdir was given.
5625if test "${with_clang_srcdir+set}" = set; then
5626 withval=$with_clang_srcdir;
5627else
5628 withval="-"
5629fi
5630
5631case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005632 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005633 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5634 *) clang_src_root="$ac_pwd/$withval" ;;
5635esac
5636CLANG_SRC_ROOT=$clang_src_root
5637
5638
5639
Chandler Carruth6b241162010-10-19 08:21:25 +00005640# Check whether --with-clang-resource-dir was given.
5641if test "${with_clang_resource_dir+set}" = set; then
5642 withval=$with_clang_resource_dir;
5643else
5644 withval=""
5645fi
5646
5647
5648cat >>confdefs.h <<_ACEOF
5649#define CLANG_RESOURCE_DIR "$withval"
5650_ACEOF
5651
5652
5653
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005654# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005656 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005657else
5658 withval=""
5659fi
5660
5661
5662cat >>confdefs.h <<_ACEOF
5663#define C_INCLUDE_DIRS "$withval"
5664_ACEOF
5665
5666
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005667# Clang normally uses the system c++ headers and libraries. With this option,
5668# clang will use the ones provided by a gcc installation instead. This option should
5669# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005670
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005671# Check whether --with-gcc-toolchain was given.
5672if test "${with_gcc_toolchain+set}" = set; then
5673 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005674else
5675 withval=""
5676fi
5677
5678
5679cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005680#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005681_ACEOF
5682
5683
5684
Sebastian Pope4f1b372012-04-30 20:06:58 +00005685# Check whether --with-default-sysroot was given.
5686if test "${with_default_sysroot+set}" = set; then
5687 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005688else
5689 withval=""
5690fi
5691
5692
5693cat >>confdefs.h <<_ACEOF
5694#define DEFAULT_SYSROOT "$withval"
5695_ACEOF
5696
5697
5698
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005699# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005700if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005701 withval=$with_binutils_include;
5702else
5703 withval=default
5704fi
5705
5706case "$withval" in
5707 default) WITH_BINUTILS_INCDIR=default ;;
5708 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005709 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5710echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5711 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005712esac
5713if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5714 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5715
5716 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5717 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005718 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5719echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5720 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005721 fi
5722fi
5723
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005724
5725# Check whether --with-bug-report-url was given.
5726if test "${with_bug_report_url+set}" = set; then
5727 withval=$with_bug_report_url;
5728else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005729 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005730fi
5731
5732
5733cat >>confdefs.h <<_ACEOF
5734#define BUG_REPORT_URL "$withval"
5735_ACEOF
5736
5737
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005738# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005740 enableval=$enable_libffi; case "$enableval" in
5741 yes) llvm_cv_enable_libffi="yes" ;;
5742 no) llvm_cv_enable_libffi="no" ;;
5743 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5745 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005746 esac
5747else
5748 llvm_cv_enable_libffi=no
5749fi
5750
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005751
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005752
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005753# Check whether --with-internal-prefix was given.
5754if test "${with_internal_prefix+set}" = set; then
5755 withval=$with_internal_prefix;
5756else
5757 withval=""
5758fi
5759
5760INTERNAL_PREFIX=$withval
5761
5762
5763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5765echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5766if test "${lt_cv_path_NM+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005768else
5769 if test -n "$NM"; then
5770 # Let the user override the test.
5771 lt_cv_path_NM="$NM"
5772else
5773 lt_nm_to_check="${ac_tool_prefix}nm"
5774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5775 lt_nm_to_check="$lt_nm_to_check nm"
5776 fi
5777 for lt_tmp_nm in $lt_nm_to_check; do
5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5780 IFS="$lt_save_ifs"
5781 test -z "$ac_dir" && ac_dir=.
5782 tmp_nm="$ac_dir/$lt_tmp_nm"
5783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5784 # Check to see if the nm accepts a BSD-compat flag.
5785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5786 # nm: unknown option "B" ignored
5787 # Tru64's nm complains that /dev/null is an invalid object file
5788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5789 */dev/null* | *'Invalid file or object type'*)
5790 lt_cv_path_NM="$tmp_nm -B"
5791 break
5792 ;;
5793 *)
5794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5795 */dev/null*)
5796 lt_cv_path_NM="$tmp_nm -p"
5797 break
5798 ;;
5799 *)
5800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5801 continue # so that we can try to find one that supports BSD flags
5802 ;;
5803 esac
5804 ;;
5805 esac
5806 fi
5807 done
5808 IFS="$lt_save_ifs"
5809 done
5810 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5811fi
5812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5814echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005815NM="$lt_cv_path_NM"
5816
5817
5818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819{ echo "$as_me:$LINENO: checking for GNU make" >&5
5820echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5821if test "${llvm_cv_gnu_make_command+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005823else
5824 llvm_cv_gnu_make_command=''
5825 for a in "$MAKE" make gmake gnumake ; do
5826 if test -z "$a" ; then continue ; fi ;
5827 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5828 then
5829 llvm_cv_gnu_make_command=$a ;
5830 break;
5831 fi
5832 done
5833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005834{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5835echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005836 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5837 ifGNUmake='' ;
5838 else
5839 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5841echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005842 fi
5843
5844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5846echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005847LN_S=$as_ln_s
5848if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849 { echo "$as_me:$LINENO: result: yes" >&5
5850echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5853echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005854fi
5855
5856# Extract the first word of "cmp", so it can be a program name with args.
5857set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5860if test "${ac_cv_path_CMP+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005862else
5863 case $CMP in
5864 [\\/]* | ?:[\\/]*)
5865 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5866 ;;
5867 *)
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005875 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005877 break 2
5878 fi
5879done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005880done
Reid Spencera773bd52006-08-04 18:18:08 +00005881IFS=$as_save_IFS
5882
5883 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5884 ;;
5885esac
5886fi
5887CMP=$ac_cv_path_CMP
5888if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005889 { echo "$as_me:$LINENO: result: $CMP" >&5
5890echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005892 { echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005894fi
5895
5896
5897# Extract the first word of "cp", so it can be a program name with args.
5898set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901if test "${ac_cv_path_CP+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005903else
5904 case $CP in
5905 [\\/]* | ?:[\\/]*)
5906 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5907 ;;
5908 *)
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005916 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005918 break 2
5919 fi
5920done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005921done
Reid Spencera773bd52006-08-04 18:18:08 +00005922IFS=$as_save_IFS
5923
5924 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5925 ;;
5926esac
5927fi
5928CP=$ac_cv_path_CP
5929if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005930 { echo "$as_me:$LINENO: result: $CP" >&5
5931echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005933 { echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005935fi
5936
5937
5938# Extract the first word of "date", so it can be a program name with args.
5939set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5942if test "${ac_cv_path_DATE+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005944else
5945 case $DATE in
5946 [\\/]* | ?:[\\/]*)
5947 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5948 ;;
5949 *)
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005957 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005959 break 2
5960 fi
5961done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005962done
Reid Spencera773bd52006-08-04 18:18:08 +00005963IFS=$as_save_IFS
5964
5965 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5966 ;;
5967esac
5968fi
5969DATE=$ac_cv_path_DATE
5970if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005971 { echo "$as_me:$LINENO: result: $DATE" >&5
5972echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005973else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005974 { echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005976fi
5977
5978
5979# Extract the first word of "find", so it can be a program name with args.
5980set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983if test "${ac_cv_path_FIND+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005985else
5986 case $FIND in
5987 [\\/]* | ?:[\\/]*)
5988 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5989 ;;
5990 *)
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005998 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006000 break 2
6001 fi
6002done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006003done
Reid Spencera773bd52006-08-04 18:18:08 +00006004IFS=$as_save_IFS
6005
6006 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6007 ;;
6008esac
6009fi
6010FIND=$ac_cv_path_FIND
6011if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006012 { echo "$as_me:$LINENO: result: $FIND" >&5
6013echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015 { echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006017fi
6018
6019
6020# Extract the first word of "grep", so it can be a program name with args.
6021set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6024if test "${ac_cv_path_GREP+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006026else
6027 case $GREP in
6028 [\\/]* | ?:[\\/]*)
6029 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6030 ;;
6031 *)
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033for as_dir in $PATH
6034do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006039 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006041 break 2
6042 fi
6043done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044done
Reid Spencera773bd52006-08-04 18:18:08 +00006045IFS=$as_save_IFS
6046
6047 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6048 ;;
6049esac
6050fi
6051GREP=$ac_cv_path_GREP
6052if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053 { echo "$as_me:$LINENO: result: $GREP" >&5
6054echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056 { echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006058fi
6059
6060
6061# Extract the first word of "mkdir", so it can be a program name with args.
6062set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065if test "${ac_cv_path_MKDIR+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006067else
6068 case $MKDIR in
6069 [\\/]* | ?:[\\/]*)
6070 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6071 ;;
6072 *)
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006080 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006082 break 2
6083 fi
6084done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085done
Reid Spencera773bd52006-08-04 18:18:08 +00006086IFS=$as_save_IFS
6087
6088 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6089 ;;
6090esac
6091fi
6092MKDIR=$ac_cv_path_MKDIR
6093if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006094 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6095echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006096else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097 { echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006099fi
6100
6101
6102# Extract the first word of "mv", so it can be a program name with args.
6103set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106if test "${ac_cv_path_MV+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006108else
6109 case $MV in
6110 [\\/]* | ?:[\\/]*)
6111 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6112 ;;
6113 *)
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006121 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006123 break 2
6124 fi
6125done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126done
Reid Spencera773bd52006-08-04 18:18:08 +00006127IFS=$as_save_IFS
6128
6129 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6130 ;;
6131esac
6132fi
6133MV=$ac_cv_path_MV
6134if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006135 { echo "$as_me:$LINENO: result: $MV" >&5
6136echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006138 { echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006140fi
6141
6142
6143if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6145set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148if test "${ac_cv_prog_RANLIB+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006150else
6151 if test -n "$RANLIB"; then
6152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6153else
6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006163 break 2
6164 fi
6165done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166done
Reid Spencera773bd52006-08-04 18:18:08 +00006167IFS=$as_save_IFS
6168
6169fi
6170fi
6171RANLIB=$ac_cv_prog_RANLIB
6172if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6174echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176 { echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006178fi
6179
6180
6181fi
6182if test -z "$ac_cv_prog_RANLIB"; then
6183 ac_ct_RANLIB=$RANLIB
6184 # Extract the first word of "ranlib", so it can be a program name with args.
6185set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006190else
6191 if test -n "$ac_ct_RANLIB"; then
6192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006201 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006203 break 2
6204 fi
6205done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206done
Reid Spencera773bd52006-08-04 18:18:08 +00006207IFS=$as_save_IFS
6208
6209fi
6210fi
6211ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6212if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6214echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006215else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216 { echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006218fi
6219
6220 if test "x$ac_ct_RANLIB" = x; then
6221 RANLIB=":"
6222 else
6223 case $cross_compiling:$ac_tool_warned in
6224yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006225{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6226whose name does not start with the host triplet. If you think this
6227configuration is useful to you, please write to autoconf@gnu.org." >&5
6228echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6229whose name does not start with the host triplet. If you think this
6230configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006231ac_tool_warned=yes ;;
6232esac
6233 RANLIB=$ac_ct_RANLIB
6234 fi
6235else
6236 RANLIB="$ac_cv_prog_RANLIB"
6237fi
6238
Torok Edwin871384f2010-01-26 08:50:50 +00006239if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6241set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244if test "${ac_cv_prog_AR+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006246else
6247 if test -n "$AR"; then
6248 ac_cv_prog_AR="$AR" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006257 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006259 break 2
6260 fi
6261done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262done
Torok Edwin871384f2010-01-26 08:50:50 +00006263IFS=$as_save_IFS
6264
6265fi
6266fi
6267AR=$ac_cv_prog_AR
6268if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269 { echo "$as_me:$LINENO: result: $AR" >&5
6270echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272 { echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006274fi
6275
6276
6277fi
6278if test -z "$ac_cv_prog_AR"; then
6279 ac_ct_AR=$AR
6280 # Extract the first word of "ar", so it can be a program name with args.
6281set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006286else
6287 if test -n "$ac_ct_AR"; then
6288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006297 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006299 break 2
6300 fi
6301done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302done
Torok Edwin871384f2010-01-26 08:50:50 +00006303IFS=$as_save_IFS
6304
6305fi
6306fi
6307ac_ct_AR=$ac_cv_prog_ac_ct_AR
6308if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6310echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312 { echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006314fi
6315
6316 if test "x$ac_ct_AR" = x; then
6317 AR="false"
6318 else
6319 case $cross_compiling:$ac_tool_warned in
6320yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6322whose name does not start with the host triplet. If you think this
6323configuration is useful to you, please write to autoconf@gnu.org." >&5
6324echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6325whose name does not start with the host triplet. If you think this
6326configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006327ac_tool_warned=yes ;;
6328esac
6329 AR=$ac_ct_AR
6330 fi
6331else
6332 AR="$ac_cv_prog_AR"
6333fi
6334
Reid Spencera773bd52006-08-04 18:18:08 +00006335# Extract the first word of "rm", so it can be a program name with args.
6336set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6339if test "${ac_cv_path_RM+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006341else
6342 case $RM in
6343 [\\/]* | ?:[\\/]*)
6344 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6345 ;;
6346 *)
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006354 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006356 break 2
6357 fi
6358done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006359done
Reid Spencera773bd52006-08-04 18:18:08 +00006360IFS=$as_save_IFS
6361
6362 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6363 ;;
6364esac
6365fi
6366RM=$ac_cv_path_RM
6367if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006368 { echo "$as_me:$LINENO: result: $RM" >&5
6369echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371 { echo "$as_me:$LINENO: result: no" >&5
6372echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006373fi
6374
6375
6376# Extract the first word of "sed", so it can be a program name with args.
6377set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6380if test "${ac_cv_path_SED+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006382else
6383 case $SED in
6384 [\\/]* | ?:[\\/]*)
6385 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6386 ;;
6387 *)
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006395 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006397 break 2
6398 fi
6399done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400done
Reid Spencera773bd52006-08-04 18:18:08 +00006401IFS=$as_save_IFS
6402
6403 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6404 ;;
6405esac
6406fi
6407SED=$ac_cv_path_SED
6408if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409 { echo "$as_me:$LINENO: result: $SED" >&5
6410echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412 { echo "$as_me:$LINENO: result: no" >&5
6413echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006414fi
6415
6416
6417# Extract the first word of "tar", so it can be a program name with args.
6418set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6421if test "${ac_cv_path_TAR+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006423else
6424 case $TAR in
6425 [\\/]* | ?:[\\/]*)
6426 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6427 ;;
6428 *)
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006436 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006438 break 2
6439 fi
6440done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441done
Reid Spencera773bd52006-08-04 18:18:08 +00006442IFS=$as_save_IFS
6443
6444 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6445 ;;
6446esac
6447fi
6448TAR=$ac_cv_path_TAR
6449if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006450 { echo "$as_me:$LINENO: result: $TAR" >&5
6451echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453 { echo "$as_me:$LINENO: result: no" >&5
6454echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006455fi
6456
6457
6458# Extract the first word of "pwd", so it can be a program name with args.
6459set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462if test "${ac_cv_path_BINPWD+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006464else
6465 case $BINPWD in
6466 [\\/]* | ?:[\\/]*)
6467 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6468 ;;
6469 *)
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006477 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006479 break 2
6480 fi
6481done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482done
Reid Spencera773bd52006-08-04 18:18:08 +00006483IFS=$as_save_IFS
6484
6485 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6486 ;;
6487esac
6488fi
6489BINPWD=$ac_cv_path_BINPWD
6490if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006491 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6492echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006493else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006494 { echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006496fi
6497
6498
6499
6500# Extract the first word of "Graphviz", so it can be a program name with args.
6501set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006506else
6507 case $GRAPHVIZ in
6508 [\\/]* | ?:[\\/]*)
6509 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6510 ;;
6511 *)
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006519 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006521 break 2
6522 fi
6523done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006524done
Reid Spencera773bd52006-08-04 18:18:08 +00006525IFS=$as_save_IFS
6526
6527 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6528 ;;
6529esac
6530fi
6531GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6532if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6534echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006536 { echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006538fi
6539
6540
6541if test "$GRAPHVIZ" != "echo Graphviz" ; then
6542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543cat >>confdefs.h <<\_ACEOF
6544#define HAVE_GRAPHVIZ 1
6545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006546
Jeff Cohen28783c32007-01-12 18:22:38 +00006547 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006548 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6549 fi
6550
6551cat >>confdefs.h <<_ACEOF
6552#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6553_ACEOF
6554
6555fi
6556# Extract the first word of "dot", so it can be a program name with args.
6557set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560if test "${ac_cv_path_DOT+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006562else
6563 case $DOT in
6564 [\\/]* | ?:[\\/]*)
6565 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6566 ;;
6567 *)
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006575 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006577 break 2
6578 fi
6579done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580done
Reid Spencera773bd52006-08-04 18:18:08 +00006581IFS=$as_save_IFS
6582
6583 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6584 ;;
6585esac
6586fi
6587DOT=$ac_cv_path_DOT
6588if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006589 { echo "$as_me:$LINENO: result: $DOT" >&5
6590echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592 { echo "$as_me:$LINENO: result: no" >&5
6593echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006594fi
6595
6596
6597if test "$DOT" != "echo dot" ; then
6598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599cat >>confdefs.h <<\_ACEOF
6600#define HAVE_DOT 1
6601_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006602
Jeff Cohen28783c32007-01-12 18:22:38 +00006603 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006604 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6605 fi
6606
6607cat >>confdefs.h <<_ACEOF
6608#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6609_ACEOF
6610
6611fi
David Greenef0b9eff2009-07-09 17:16:26 +00006612# Extract the first word of "fdp", so it can be a program name with args.
6613set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616if test "${ac_cv_path_FDP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006618else
6619 case $FDP in
6620 [\\/]* | ?:[\\/]*)
6621 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6622 ;;
6623 *)
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006631 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006633 break 2
6634 fi
6635done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636done
David Greenef0b9eff2009-07-09 17:16:26 +00006637IFS=$as_save_IFS
6638
6639 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6640 ;;
6641esac
6642fi
6643FDP=$ac_cv_path_FDP
6644if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006645 { echo "$as_me:$LINENO: result: $FDP" >&5
6646echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648 { echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006650fi
6651
6652
6653if test "$FDP" != "echo fdp" ; then
6654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655cat >>confdefs.h <<\_ACEOF
6656#define HAVE_FDP 1
6657_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006658
6659 if test "$llvm_cv_os_type" = "MingW" ; then
6660 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6661 fi
6662
6663cat >>confdefs.h <<_ACEOF
6664#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6665_ACEOF
6666
6667fi
6668# Extract the first word of "neato", so it can be a program name with args.
6669set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672if test "${ac_cv_path_NEATO+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006674else
6675 case $NEATO in
6676 [\\/]* | ?:[\\/]*)
6677 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6678 ;;
6679 *)
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006687 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006689 break 2
6690 fi
6691done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692done
David Greenef0b9eff2009-07-09 17:16:26 +00006693IFS=$as_save_IFS
6694
6695 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6696 ;;
6697esac
6698fi
6699NEATO=$ac_cv_path_NEATO
6700if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006701 { echo "$as_me:$LINENO: result: $NEATO" >&5
6702echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704 { echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006706fi
6707
6708
6709if test "$NEATO" != "echo neato" ; then
6710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711cat >>confdefs.h <<\_ACEOF
6712#define HAVE_NEATO 1
6713_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006714
6715 if test "$llvm_cv_os_type" = "MingW" ; then
6716 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6717 fi
6718
6719cat >>confdefs.h <<_ACEOF
6720#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6721_ACEOF
6722
6723fi
6724# Extract the first word of "twopi", so it can be a program name with args.
6725set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728if test "${ac_cv_path_TWOPI+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006730else
6731 case $TWOPI in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6734 ;;
6735 *)
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006743 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006745 break 2
6746 fi
6747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748done
David Greenef0b9eff2009-07-09 17:16:26 +00006749IFS=$as_save_IFS
6750
6751 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6752 ;;
6753esac
6754fi
6755TWOPI=$ac_cv_path_TWOPI
6756if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6758echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 { echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006762fi
6763
6764
6765if test "$TWOPI" != "echo twopi" ; then
6766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767cat >>confdefs.h <<\_ACEOF
6768#define HAVE_TWOPI 1
6769_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006770
6771 if test "$llvm_cv_os_type" = "MingW" ; then
6772 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6773 fi
6774
6775cat >>confdefs.h <<_ACEOF
6776#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6777_ACEOF
6778
6779fi
6780# Extract the first word of "circo", so it can be a program name with args.
6781set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784if test "${ac_cv_path_CIRCO+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006786else
6787 case $CIRCO in
6788 [\\/]* | ?:[\\/]*)
6789 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6790 ;;
6791 *)
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006799 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006801 break 2
6802 fi
6803done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804done
David Greenef0b9eff2009-07-09 17:16:26 +00006805IFS=$as_save_IFS
6806
6807 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6808 ;;
6809esac
6810fi
6811CIRCO=$ac_cv_path_CIRCO
6812if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006813 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6814echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006816 { echo "$as_me:$LINENO: result: no" >&5
6817echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006818fi
6819
6820
6821if test "$CIRCO" != "echo circo" ; then
6822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823cat >>confdefs.h <<\_ACEOF
6824#define HAVE_CIRCO 1
6825_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006826
6827 if test "$llvm_cv_os_type" = "MingW" ; then
6828 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6829 fi
6830
6831cat >>confdefs.h <<_ACEOF
6832#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6833_ACEOF
6834
6835fi
Reid Spencera773bd52006-08-04 18:18:08 +00006836for ac_prog in gv gsview32
6837do
6838 # Extract the first word of "$ac_prog", so it can be a program name with args.
6839set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842if test "${ac_cv_path_GV+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006844else
6845 case $GV in
6846 [\\/]* | ?:[\\/]*)
6847 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6848 ;;
6849 *)
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006857 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006859 break 2
6860 fi
6861done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862done
Reid Spencera773bd52006-08-04 18:18:08 +00006863IFS=$as_save_IFS
6864
6865 ;;
6866esac
6867fi
6868GV=$ac_cv_path_GV
6869if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870 { echo "$as_me:$LINENO: result: $GV" >&5
6871echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006872else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006873 { echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006875fi
6876
6877
6878 test -n "$GV" && break
6879done
6880test -n "$GV" || GV="echo gv"
6881
6882if test "$GV" != "echo gv" ; then
6883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884cat >>confdefs.h <<\_ACEOF
6885#define HAVE_GV 1
6886_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006887
Jeff Cohen28783c32007-01-12 18:22:38 +00006888 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006889 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6890 fi
6891
6892cat >>confdefs.h <<_ACEOF
6893#define LLVM_PATH_GV "$GV${EXEEXT}"
6894_ACEOF
6895
6896fi
6897# Extract the first word of "dotty", so it can be a program name with args.
6898set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901if test "${ac_cv_path_DOTTY+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006903else
6904 case $DOTTY in
6905 [\\/]* | ?:[\\/]*)
6906 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6907 ;;
6908 *)
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006916 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006918 break 2
6919 fi
6920done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921done
Reid Spencera773bd52006-08-04 18:18:08 +00006922IFS=$as_save_IFS
6923
6924 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6925 ;;
6926esac
6927fi
6928DOTTY=$ac_cv_path_DOTTY
6929if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6931echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933 { echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006935fi
6936
6937
6938if test "$DOTTY" != "echo dotty" ; then
6939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940cat >>confdefs.h <<\_ACEOF
6941#define HAVE_DOTTY 1
6942_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006943
Jeff Cohen28783c32007-01-12 18:22:38 +00006944 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006945 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6946 fi
6947
6948cat >>confdefs.h <<_ACEOF
6949#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6950_ACEOF
6951
6952fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006953# Extract the first word of "xdot.py", so it can be a program name with args.
6954set dummy xdot.py; ac_word=$2
6955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957if test "${ac_cv_path_XDOT_PY+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959else
6960 case $XDOT_PY in
6961 [\\/]* | ?:[\\/]*)
6962 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6963 ;;
6964 *)
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966for as_dir in $PATH
6967do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976done
6977done
6978IFS=$as_save_IFS
6979
6980 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6981 ;;
6982esac
6983fi
6984XDOT_PY=$ac_cv_path_XDOT_PY
6985if test -n "$XDOT_PY"; then
6986 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6987echo "${ECHO_T}$XDOT_PY" >&6; }
6988else
6989 { echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6; }
6991fi
6992
6993
6994if test "$XDOT_PY" != "echo xdot.py" ; then
6995
6996cat >>confdefs.h <<\_ACEOF
6997#define HAVE_XDOT_PY 1
6998_ACEOF
6999
7000 if test "$llvm_cv_os_type" = "MingW" ; then
7001 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7002 fi
7003
7004cat >>confdefs.h <<_ACEOF
7005#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7006_ACEOF
7007
7008fi
Reid Spencera773bd52006-08-04 18:18:08 +00007009
Reid Spencera773bd52006-08-04 18:18:08 +00007010# Find a good install program. We prefer a C program (faster),
7011# so one script is as good as another. But avoid the broken or
7012# incompatible versions:
7013# SysV /etc/install, /usr/sbin/install
7014# SunOS /usr/etc/install
7015# IRIX /sbin/install
7016# AIX /bin/install
7017# AmigaOS /C/install, which installs bootblocks on floppy discs
7018# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7019# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7020# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7021# OS/2's system install, which has a completely different semantic
7022# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7024echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007025if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026if test "${ac_cv_path_install+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007028else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034 # Account for people who put trailing slashes in PATH elements.
7035case $as_dir/ in
7036 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007038 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007039 /usr/ucb/* ) ;;
7040 *)
7041 # OSF1 and SCO ODT 3.0 have their own names for install.
7042 # Don't use installbsd from OSF since it installs stuff as root
7043 # by default.
7044 for ac_prog in ginstall scoinst install; do
7045 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007047 if test $ac_prog = install &&
7048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7049 # AIX install. It has an incompatible calling convention.
7050 :
7051 elif test $ac_prog = install &&
7052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7053 # program-specific install script used by HP pwplus--don't use.
7054 :
7055 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7057 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007058 fi
7059 fi
7060 done
7061 done
7062 ;;
7063esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064done
Reid Spencera773bd52006-08-04 18:18:08 +00007065IFS=$as_save_IFS
7066
7067
7068fi
7069 if test "${ac_cv_path_install+set}" = set; then
7070 INSTALL=$ac_cv_path_install
7071 else
7072 # As a last resort, use the slow shell script. Don't cache a
7073 # value for INSTALL within a source directory, because that will
7074 # break other packages using the cache if that directory is
7075 # removed, or if the value is a relative name.
7076 INSTALL=$ac_install_sh
7077 fi
7078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7080echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007081
7082# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7083# It thinks the first close brace ends the variable substitution.
7084test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7085
7086test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7087
7088test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7089
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007090case "$INSTALL" in
7091 [\\/$]* | ?:[\\/]* ) ;;
7092 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7093esac
Reid Spencera773bd52006-08-04 18:18:08 +00007094
7095# Extract the first word of "bzip2", so it can be a program name with args.
7096set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099if test "${ac_cv_path_BZIP2+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007101else
7102 case $BZIP2 in
7103 [\\/]* | ?:[\\/]*)
7104 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7105 ;;
7106 *)
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007114 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007116 break 2
7117 fi
7118done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119done
Reid Spencera773bd52006-08-04 18:18:08 +00007120IFS=$as_save_IFS
7121
Reid Spencera773bd52006-08-04 18:18:08 +00007122 ;;
7123esac
7124fi
7125BZIP2=$ac_cv_path_BZIP2
7126if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007127 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7128echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 { echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007132fi
7133
7134
mike-m68cb3192010-05-06 23:45:43 +00007135# Extract the first word of "cat", so it can be a program name with args.
7136set dummy cat; ac_word=$2
7137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139if test "${ac_cv_path_CAT+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142 case $CAT in
7143 [\\/]* | ?:[\\/]*)
7144 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7145 ;;
7146 *)
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158done
7159done
7160IFS=$as_save_IFS
7161
7162 ;;
7163esac
7164fi
7165CAT=$ac_cv_path_CAT
7166if test -n "$CAT"; then
7167 { echo "$as_me:$LINENO: result: $CAT" >&5
7168echo "${ECHO_T}$CAT" >&6; }
7169else
7170 { echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6; }
7172fi
7173
7174
Reid Spencera773bd52006-08-04 18:18:08 +00007175# Extract the first word of "doxygen", so it can be a program name with args.
7176set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179if test "${ac_cv_path_DOXYGEN+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007181else
7182 case $DOXYGEN in
7183 [\\/]* | ?:[\\/]*)
7184 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7185 ;;
7186 *)
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007194 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007196 break 2
7197 fi
7198done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199done
Reid Spencera773bd52006-08-04 18:18:08 +00007200IFS=$as_save_IFS
7201
Reid Spencera773bd52006-08-04 18:18:08 +00007202 ;;
7203esac
7204fi
7205DOXYGEN=$ac_cv_path_DOXYGEN
7206if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7208echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007210 { echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007212fi
7213
7214
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007215# Extract the first word of "groff", so it can be a program name with args.
7216set dummy groff; ac_word=$2
7217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219if test "${ac_cv_path_GROFF+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222 case $GROFF in
7223 [\\/]* | ?:[\\/]*)
7224 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7225 ;;
7226 *)
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238done
7239done
7240IFS=$as_save_IFS
7241
7242 ;;
7243esac
7244fi
7245GROFF=$ac_cv_path_GROFF
7246if test -n "$GROFF"; then
7247 { echo "$as_me:$LINENO: result: $GROFF" >&5
7248echo "${ECHO_T}$GROFF" >&6; }
7249else
7250 { echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6; }
7252fi
7253
7254
Reid Spencera773bd52006-08-04 18:18:08 +00007255# Extract the first word of "gzip", so it can be a program name with args.
7256set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007259if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007261else
Eric Christopher031d3072010-12-10 01:31:51 +00007262 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007263 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007264 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007265 ;;
7266 *)
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007274 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007276 break 2
7277 fi
7278done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279done
Reid Spencera773bd52006-08-04 18:18:08 +00007280IFS=$as_save_IFS
7281
Reid Spencera773bd52006-08-04 18:18:08 +00007282 ;;
7283esac
7284fi
Eric Christopher031d3072010-12-10 01:31:51 +00007285GZIPBIN=$ac_cv_path_GZIPBIN
7286if test -n "$GZIPBIN"; then
7287 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7288echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007290 { echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007292fi
7293
7294
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007295# Extract the first word of "pdfroff", so it can be a program name with args.
7296set dummy pdfroff; ac_word=$2
7297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299if test "${ac_cv_path_PDFROFF+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 case $PDFROFF in
7303 [\\/]* | ?:[\\/]*)
7304 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7305 ;;
7306 *)
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319done
7320IFS=$as_save_IFS
7321
7322 ;;
7323esac
7324fi
7325PDFROFF=$ac_cv_path_PDFROFF
7326if test -n "$PDFROFF"; then
7327 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7328echo "${ECHO_T}$PDFROFF" >&6; }
7329else
7330 { echo "$as_me:$LINENO: result: no" >&5
7331echo "${ECHO_T}no" >&6; }
7332fi
7333
7334
Reid Spencera773bd52006-08-04 18:18:08 +00007335# Extract the first word of "zip", so it can be a program name with args.
7336set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339if test "${ac_cv_path_ZIP+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007341else
7342 case $ZIP in
7343 [\\/]* | ?:[\\/]*)
7344 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7345 ;;
7346 *)
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007354 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007356 break 2
7357 fi
7358done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359done
Reid Spencera773bd52006-08-04 18:18:08 +00007360IFS=$as_save_IFS
7361
Reid Spencera773bd52006-08-04 18:18:08 +00007362 ;;
7363esac
7364fi
7365ZIP=$ac_cv_path_ZIP
7366if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007367 { echo "$as_me:$LINENO: result: $ZIP" >&5
7368echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370 { echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007372fi
7373
7374
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007375for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007376do
7377 # Extract the first word of "$ac_prog", so it can be a program name with args.
7378set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381if test "${ac_cv_path_OCAMLC+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007383else
7384 case $OCAMLC in
7385 [\\/]* | ?:[\\/]*)
7386 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7387 ;;
7388 *)
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007396 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007398 break 2
7399 fi
7400done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007402IFS=$as_save_IFS
7403
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007404 ;;
7405esac
7406fi
7407OCAMLC=$ac_cv_path_OCAMLC
7408if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7410echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 { echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007414fi
7415
7416
Gordon Henriksene7072162008-03-07 18:20:01 +00007417 test -n "$OCAMLC" && break
7418done
7419
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007420for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007421do
7422 # Extract the first word of "$ac_prog", so it can be a program name with args.
7423set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007428else
7429 case $OCAMLOPT in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7432 ;;
7433 *)
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007441 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007443 break 2
7444 fi
7445done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007446done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007447IFS=$as_save_IFS
7448
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007449 ;;
7450esac
7451fi
7452OCAMLOPT=$ac_cv_path_OCAMLOPT
7453if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7455echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 { echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007459fi
7460
7461
Gordon Henriksene7072162008-03-07 18:20:01 +00007462 test -n "$OCAMLOPT" && break
7463done
7464
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007465for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007466do
7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
7468set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7471if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007473else
7474 case $OCAMLDEP in
7475 [\\/]* | ?:[\\/]*)
7476 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7477 ;;
7478 *)
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007486 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007488 break 2
7489 fi
7490done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007491done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007492IFS=$as_save_IFS
7493
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007494 ;;
7495esac
7496fi
7497OCAMLDEP=$ac_cv_path_OCAMLDEP
7498if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7500echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007502 { echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007504fi
7505
7506
Gordon Henriksene7072162008-03-07 18:20:01 +00007507 test -n "$OCAMLDEP" && break
7508done
7509
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007510for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007511do
7512 # Extract the first word of "$ac_prog", so it can be a program name with args.
7513set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007518else
7519 case $OCAMLDOC in
7520 [\\/]* | ?:[\\/]*)
7521 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7522 ;;
7523 *)
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007531 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007533 break 2
7534 fi
7535done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007537IFS=$as_save_IFS
7538
7539 ;;
7540esac
7541fi
7542OCAMLDOC=$ac_cv_path_OCAMLDOC
7543if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7545echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547 { echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007549fi
7550
7551
7552 test -n "$OCAMLDOC" && break
7553done
7554
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007555for ac_prog in gas as
7556do
7557 # Extract the first word of "$ac_prog", so it can be a program name with args.
7558set dummy $ac_prog; ac_word=$2
7559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561if test "${ac_cv_path_GAS+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564 case $GAS in
7565 [\\/]* | ?:[\\/]*)
7566 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7567 ;;
7568 *)
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570for as_dir in $PATH
7571do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580done
7581done
7582IFS=$as_save_IFS
7583
7584 ;;
7585esac
7586fi
7587GAS=$ac_cv_path_GAS
7588if test -n "$GAS"; then
7589 { echo "$as_me:$LINENO: result: $GAS" >&5
7590echo "${ECHO_T}$GAS" >&6; }
7591else
7592 { echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6; }
7594fi
7595
7596
7597 test -n "$GAS" && break
7598done
7599
Reid Spencera773bd52006-08-04 18:18:08 +00007600
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007601{ echo "$as_me:$LINENO: checking for linker version" >&5
7602echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7603if test "${llvm_cv_link_version+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606
7607 version_string="$(ld -v 2>&1 | head -1)"
7608
7609 # Check for ld64.
7610 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007611 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007612 else
7613 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7614 fi
7615
7616fi
7617{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7618echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7619
7620cat >>confdefs.h <<_ACEOF
7621#define HOST_LINK_VERSION "$llvm_cv_link_version"
7622_ACEOF
7623
7624
7625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007626{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7627echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7628if test "${llvm_cv_link_use_r+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007630else
7631 ac_ext=c
7632ac_cpp='$CPP $CPPFLAGS'
7633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636
7637 oldcflags="$CFLAGS"
7638 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007639 cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h. */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007644/* end confdefs.h. */
7645
7646int
7647main ()
7648{
Dan Gohman39ed6782010-04-25 00:12:20 +00007649
Reid Spencera773bd52006-08-04 18:18:08 +00007650 ;
7651 return 0;
7652}
7653_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007654rm -f conftest.$ac_objext conftest$ac_exeext
7655if { (ac_try="$ac_link"
7656case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659esac
7660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_link") 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7669 { (case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672esac
7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_try") 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest$ac_exeext'
7679 { (case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682esac
7683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_try") 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007688 llvm_cv_link_use_r=yes
7689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690 echo "$as_me: failed program was:" >&5
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695
Bill Wendlingebcceee2009-04-18 11:20:33 +00007696rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007698 CFLAGS="$oldcflags"
7699 ac_ext=c
7700ac_cpp='$CPP $CPPFLAGS'
7701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704
7705
7706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7708echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007709if test "$llvm_cv_link_use_r" = yes ; then
7710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007711cat >>confdefs.h <<\_ACEOF
7712#define HAVE_LINK_R 1
7713_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007714
7715 fi
7716
7717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7719echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7720if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007722else
7723 ac_ext=c
7724ac_cpp='$CPP $CPPFLAGS'
7725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729 oldcflags="$CFLAGS"
7730 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731 cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007736/* end confdefs.h. */
7737
7738int
7739main ()
7740{
Dan Gohman39ed6782010-04-25 00:12:20 +00007741
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007742 ;
7743 return 0;
7744}
7745_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746rm -f conftest.$ac_objext conftest$ac_exeext
7747if { (ac_try="$ac_link"
7748case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
7752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_link") 2>conftest.er1
7754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7761 { (case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7764esac
7765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_try") 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; } &&
7770 { ac_try='test -s conftest$ac_exeext'
7771 { (case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774esac
7775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_try") 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007780 llvm_cv_link_use_export_dynamic=yes
7781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782 echo "$as_me: failed program was:" >&5
7783sed 's/^/| /' conftest.$ac_ext >&5
7784
7785 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007787
Bill Wendlingebcceee2009-04-18 11:20:33 +00007788rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007790 CFLAGS="$oldcflags"
7791 ac_ext=c
7792ac_cpp='$CPP $CPPFLAGS'
7793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795ac_compiler_gnu=$ac_cv_c_compiler_gnu
7796
7797
7798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007799{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7800echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007801if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803cat >>confdefs.h <<\_ACEOF
7804#define HAVE_LINK_EXPORT_DYNAMIC 1
7805_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007806
7807 fi
7808
7809
Dan Gohmanda612d62010-06-01 14:56:56 +00007810{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7811echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7812if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821 oldcflags="$CFLAGS"
7822
7823 # The following code is from the autoconf manual,
7824 # "11.13: Limitations of Usual Tools".
7825 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7826 # Use mktemp if possible; otherwise fall back on mkdir,
7827 # with $RANDOM to make collisions less likely.
7828 : ${TMPDIR=/tmp}
7829 {
7830 tmp=`
7831 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7832 ` &&
7833 test -n "$tmp" && test -d "$tmp"
7834 } || {
7835 tmp=$TMPDIR/foo$$-$RANDOM
7836 (umask 077 && mkdir "$tmp")
7837 } || exit $?
7838
Dan Gohmanda612d62010-06-01 14:56:56 +00007839 echo "{" > "$tmp/export.map"
7840 echo " global: main;" >> "$tmp/export.map"
7841 echo " local: *;" >> "$tmp/export.map"
7842 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007843
Dan Gohmanda612d62010-06-01 14:56:56 +00007844 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007845 cat >conftest.$ac_ext <<_ACEOF
7846/* confdefs.h. */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
7850/* end confdefs.h. */
7851
7852int
7853main ()
7854{
Dan Gohman39ed6782010-04-25 00:12:20 +00007855
Dan Gohman391569c2010-04-16 22:59:06 +00007856 ;
7857 return 0;
7858}
7859_ACEOF
7860rm -f conftest.$ac_objext conftest$ac_exeext
7861if { (ac_try="$ac_link"
7862case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865esac
7866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_link") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878esac
7879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888esac
7889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_try") 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007894 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007895else
7896 echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
Dan Gohman943005e2010-06-01 16:22:27 +00007899 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007900fi
7901
7902rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007904 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007905 rmdir "$tmp"
7906 CFLAGS="$oldcflags"
7907 ac_ext=c
7908ac_cpp='$CPP $CPPFLAGS'
7909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912
7913
7914fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007915{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7916echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7917if test "$llvm_cv_link_use_version_script" = yes ; then
7918 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007919
7920 fi
7921
7922
Reid Spencera773bd52006-08-04 18:18:08 +00007923
7924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7926echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7927if test "${ac_cv_c_const+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007929else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007930 cat >conftest.$ac_ext <<_ACEOF
7931/* confdefs.h. */
7932_ACEOF
7933cat confdefs.h >>conftest.$ac_ext
7934cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007935/* end confdefs.h. */
7936
7937int
7938main ()
7939{
7940/* FIXME: Include the comments suggested by Paul. */
7941#ifndef __cplusplus
7942 /* Ultrix mips cc rejects this. */
7943 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007945 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946 char const *const *ccp;
7947 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007948 /* NEC SVR4.0.2 mips cc rejects this. */
7949 struct point {int x, y;};
7950 static struct point const zero = {0,0};
7951 /* AIX XL C 1.02.0.0 rejects this.
7952 It does not let you subtract one const X* pointer from another in
7953 an arm of an if-expression whose if-part is not a constant
7954 expression */
7955 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007956 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007957 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007958 ++ccp;
7959 p = (char**) ccp;
7960 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007961 { /* SCO 3.2v4 cc rejects this. */
7962 char *t;
7963 char const *s = 0 ? (char *) 0 : (char const *) 0;
7964
7965 *t++ = 0;
7966 if (s) return 0;
7967 }
7968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7969 int x[] = {25, 17};
7970 const int *foo = &x[0];
7971 ++foo;
7972 }
7973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7974 typedef const int *iptr;
7975 iptr p = 0;
7976 ++p;
7977 }
7978 { /* AIX XL C 1.02.0.0 rejects this saying
7979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7980 struct s { int j; const int *ap[3]; };
7981 struct s *b; b->j = 5;
7982 }
7983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7984 const int foo = 10;
7985 if (!foo) return 0;
7986 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007987 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007988#endif
7989
7990 ;
7991 return 0;
7992}
7993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007994rm -f conftest.$ac_objext
7995if { (ac_try="$ac_compile"
7996case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999esac
8000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8009 { (case "(($ac_try" in
8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011 *) ac_try_echo=$ac_try;;
8012esac
8013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_try") 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; } &&
8018 { ac_try='test -s conftest.$ac_objext'
8019 { (case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022esac
8023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_try") 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008028 ac_cv_c_const=yes
8029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008030 echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
8032
8033 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008035
Reid Spencera773bd52006-08-04 18:18:08 +00008036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008038{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8039echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008040if test $ac_cv_c_const = no; then
8041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042cat >>confdefs.h <<\_ACEOF
8043#define const
8044_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008045
8046fi
8047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048
8049
8050
8051
8052
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008053ac_header_dirent=no
8054for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8056{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8057echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061 cat >conftest.$ac_ext <<_ACEOF
8062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008066/* end confdefs.h. */
8067#include <sys/types.h>
8068#include <$ac_hdr>
8069
8070int
8071main ()
8072{
8073if ((DIR *) 0)
8074return 0;
8075 ;
8076 return 0;
8077}
8078_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008079rm -f conftest.$ac_objext
8080if { (ac_try="$ac_compile"
8081case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084esac
8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008113 eval "$as_ac_Header=yes"
8114else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008115 echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120
Reid Spencera773bd52006-08-04 18:18:08 +00008121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123ac_res=`eval echo '${'$as_ac_Header'}'`
8124 { echo "$as_me:$LINENO: result: $ac_res" >&5
8125echo "${ECHO_T}$ac_res" >&6; }
8126if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008127 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008129_ACEOF
8130
8131ac_header_dirent=$ac_hdr; break
8132fi
8133
8134done
8135# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8136if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008137 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8138echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8139if test "${ac_cv_search_opendir+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008141else
8142 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008148/* end confdefs.h. */
8149
Reid Spencera773bd52006-08-04 18:18:08 +00008150/* Override any GCC internal prototype to avoid an error.
8151 Use char because int might match the return type of a GCC
8152 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008153#ifdef __cplusplus
8154extern "C"
8155#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008156char opendir ();
8157int
8158main ()
8159{
Reid Spencera773bd52006-08-04 18:18:08 +00008160return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008161 ;
8162 return 0;
8163}
8164_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008165for ac_lib in '' dir; do
8166 if test -z "$ac_lib"; then
8167 ac_res="none required"
8168 else
8169 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008171 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008172 rm -f conftest.$ac_objext conftest$ac_exeext
8173if { (ac_try="$ac_link"
8174case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177esac
8178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8187 { (case "(($ac_try" in
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8190esac
8191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_try") 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; } &&
8196 { ac_try='test -s conftest$ac_exeext'
8197 { (case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200esac
8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_try") 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008206 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207else
8208 echo "$as_me: failed program was:" >&5
8209sed 's/^/| /' conftest.$ac_ext >&5
8210
8211
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008213
Bill Wendlingebcceee2009-04-18 11:20:33 +00008214rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008215 conftest$ac_exeext
8216 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008217 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008218fi
John Criswell7a73b802003-06-30 21:59:07 +00008219done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008220if test "${ac_cv_search_opendir+set}" = set; then
8221 :
Reid Spencera773bd52006-08-04 18:18:08 +00008222else
8223 ac_cv_search_opendir=no
8224fi
8225rm conftest.$ac_ext
8226LIBS=$ac_func_search_save_LIBS
8227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008228{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8229echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008230ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008233
Reid Spencera773bd52006-08-04 18:18:08 +00008234fi
8235
8236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8238echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8239if test "${ac_cv_search_opendir+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008241else
8242 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243cat >conftest.$ac_ext <<_ACEOF
8244/* confdefs.h. */
8245_ACEOF
8246cat confdefs.h >>conftest.$ac_ext
8247cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008248/* end confdefs.h. */
8249
8250/* Override any GCC internal prototype to avoid an error.
8251 Use char because int might match the return type of a GCC
8252 builtin and then its argument prototype would still apply. */
8253#ifdef __cplusplus
8254extern "C"
8255#endif
8256char opendir ();
8257int
8258main ()
8259{
8260return opendir ();
8261 ;
8262 return 0;
8263}
8264_ACEOF
8265for ac_lib in '' x; do
8266 if test -z "$ac_lib"; then
8267 ac_res="none required"
8268 else
8269 ac_res=-l$ac_lib
8270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8271 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 rm -f conftest.$ac_objext conftest$ac_exeext
8273if { (ac_try="$ac_link"
8274case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_link") 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8287 { (case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290esac
8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_try") 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300esac
8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008306 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307else
8308 echo "$as_me: failed program was:" >&5
8309sed 's/^/| /' conftest.$ac_ext >&5
8310
8311
Reid Spencera773bd52006-08-04 18:18:08 +00008312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008313
Bill Wendlingebcceee2009-04-18 11:20:33 +00008314rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008315 conftest$ac_exeext
8316 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008317 break
8318fi
8319done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320if test "${ac_cv_search_opendir+set}" = set; then
8321 :
Reid Spencera773bd52006-08-04 18:18:08 +00008322else
8323 ac_cv_search_opendir=no
8324fi
8325rm conftest.$ac_ext
8326LIBS=$ac_func_search_save_LIBS
8327fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8329echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008330ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008331if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8333
8334fi
8335
8336fi
John Criswell7a73b802003-06-30 21:59:07 +00008337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338
John Criswell7a73b802003-06-30 21:59:07 +00008339for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340do
8341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347fi
8348ac_res=`eval echo '${'$as_ac_Header'}'`
8349 { echo "$as_me:$LINENO: result: $ac_res" >&5
8350echo "${ECHO_T}$ac_res" >&6; }
8351else
8352 # Is the header compilable?
8353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8355cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
8361$ac_includes_default
8362#include <$ac_header>
8363_ACEOF
8364rm -f conftest.$ac_objext
8365if { (ac_try="$ac_compile"
8366case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_compile") 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8379 { (case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382esac
8383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_try") 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392esac
8393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_try") 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_header_compiler=yes
8399else
8400 echo "$as_me: failed program was:" >&5
8401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403 ac_header_compiler=no
8404fi
8405
8406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8408echo "${ECHO_T}$ac_header_compiler" >&6; }
8409
8410# Is the header present?
8411{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8413cat >conftest.$ac_ext <<_ACEOF
8414/* confdefs.h. */
8415_ACEOF
8416cat confdefs.h >>conftest.$ac_ext
8417cat >>conftest.$ac_ext <<_ACEOF
8418/* end confdefs.h. */
8419#include <$ac_header>
8420_ACEOF
8421if { (ac_try="$ac_cpp conftest.$ac_ext"
8422case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425esac
8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } >/dev/null; then
8434 if test -s conftest.err; then
8435 ac_cpp_err=$ac_c_preproc_warn_flag
8436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8437 else
8438 ac_cpp_err=
8439 fi
8440else
8441 ac_cpp_err=yes
8442fi
8443if test -z "$ac_cpp_err"; then
8444 ac_header_preproc=yes
8445else
8446 echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_header_preproc=no
8450fi
8451
8452rm -f conftest.err conftest.$ac_ext
8453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8454echo "${ECHO_T}$ac_header_preproc" >&6; }
8455
8456# So? What about this header?
8457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8458 yes:no: )
8459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8463 ac_header_preproc=yes
8464 ;;
8465 no:yes:* )
8466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8478 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008479## ------------------------------------ ##
8480## Report this to http://llvm.org/bugs/ ##
8481## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482_ASBOX
8483 ) | sed "s/^/$as_me: WARNING: /" >&2
8484 ;;
8485esac
8486{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490else
8491 eval "$as_ac_Header=\$ac_header_preproc"
8492fi
8493ac_res=`eval echo '${'$as_ac_Header'}'`
8494 { echo "$as_me:$LINENO: result: $ac_res" >&5
8495echo "${ECHO_T}$ac_res" >&6; }
8496
8497fi
8498if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008499 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008501_ACEOF
8502
8503fi
8504
8505done
8506
Reid Spencera773bd52006-08-04 18:18:08 +00008507# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008508if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008509 enableval=$enable_ltdl_install;
8510fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008511
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513
8514
8515if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008516 INSTALL_LTDL_TRUE=
8517 INSTALL_LTDL_FALSE='#'
8518else
8519 INSTALL_LTDL_TRUE='#'
8520 INSTALL_LTDL_FALSE=
8521fi
8522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008523
8524
8525if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008526 CONVENIENCE_LTDL_TRUE=
8527 CONVENIENCE_LTDL_FALSE='#'
8528else
8529 CONVENIENCE_LTDL_TRUE='#'
8530 CONVENIENCE_LTDL_FALSE=
8531fi
8532
8533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008534{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008536library_names_spec=
8537libname_spec='lib$name'
8538soname_spec=
8539shrext_cmds=".so"
8540postinstall_cmds=
8541postuninstall_cmds=
8542finish_cmds=
8543finish_eval=
8544shlibpath_var=
8545shlibpath_overrides_runpath=unknown
8546version_type=none
8547dynamic_linker="$host_os ld.so"
8548sys_lib_dlsearch_path_spec="/lib /usr/lib"
8549if test "$GCC" = yes; then
8550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8552 # if the path contains ";" then we assume it to be the separator
8553 # otherwise default to the standard path separator (i.e. ":") - it is
8554 # assumed that no part of a normal pathname contains ";" but that should
8555 # okay in the real world where ";" in dirpaths is itself problematic.
8556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8557 else
8558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8559 fi
8560else
8561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8562fi
8563need_lib_prefix=unknown
8564hardcode_into_libs=no
8565
8566# when you set need_version to no, make sure it does not cause -set_version
8567# flags to be left without arguments
8568need_version=unknown
8569
8570case $host_os in
8571aix3*)
8572 version_type=linux
8573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8574 shlibpath_var=LIBPATH
8575
8576 # AIX 3 has no versioning support, so we append a major version to the name.
8577 soname_spec='${libname}${release}${shared_ext}$major'
8578 ;;
8579
8580aix4* | aix5*)
8581 version_type=linux
8582 need_lib_prefix=no
8583 need_version=no
8584 hardcode_into_libs=yes
8585 if test "$host_cpu" = ia64; then
8586 # AIX 5 supports IA64
8587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8588 shlibpath_var=LD_LIBRARY_PATH
8589 else
8590 # With GCC up to 2.95.x, collect2 would create an import file
8591 # for dependence libraries. The import file would start with
8592 # the line `#! .'. This would cause the generated library to
8593 # depend on `.', always an invalid library. This was fixed in
8594 # development snapshots of GCC prior to 3.0.
8595 case $host_os in
8596 aix4 | aix4.[01] | aix4.[01].*)
8597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8598 echo ' yes '
8599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8600 :
8601 else
8602 can_build_shared=no
8603 fi
8604 ;;
8605 esac
8606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8607 # soname into executable. Probably we can add versioning support to
8608 # collect2, so additional links can be useful in future.
8609 if test "$aix_use_runtimelinking" = yes; then
8610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8611 # instead of lib<name>.a to let people know that these are not
8612 # typical AIX shared libraries.
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 else
8615 # We preserve .a as extension for shared libraries through AIX4.2
8616 # and later when we are not doing run time linking.
8617 library_names_spec='${libname}${release}.a $libname.a'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8619 fi
8620 shlibpath_var=LIBPATH
8621 fi
8622 ;;
8623
8624amigaos*)
8625 library_names_spec='$libname.ixlibrary $libname.a'
8626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8627 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'
8628 ;;
8629
8630beos*)
8631 library_names_spec='${libname}${shared_ext}'
8632 dynamic_linker="$host_os ld.so"
8633 shlibpath_var=LIBRARY_PATH
8634 ;;
8635
8636bsdi[45]*)
8637 version_type=linux
8638 need_version=no
8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640 soname_spec='${libname}${release}${shared_ext}$major'
8641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8642 shlibpath_var=LD_LIBRARY_PATH
8643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8645 # the default ld.so.conf also contains /usr/contrib/lib and
8646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8647 # libtool to hard-code these into programs
8648 ;;
8649
8650cygwin* | mingw* | pw32*)
8651 version_type=windows
8652 shrext_cmds=".dll"
8653 need_version=no
8654 need_lib_prefix=no
8655
8656 case $GCC,$host_os in
8657 yes,cygwin* | yes,mingw* | yes,pw32*)
8658 library_names_spec='$libname.dll.a'
8659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8660 postinstall_cmds='base_file=`basename \${file}`~
8661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8662 dldir=$destdir/`dirname \$dlpath`~
8663 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008664 $install_prog $dir/$dlname \$dldir/$dlname~
8665 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8667 dlpath=$dir/\$dldll~
8668 $rm \$dlpath'
8669 shlibpath_overrides_runpath=yes
8670
8671 case $host_os in
8672 cygwin*)
8673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8676 ;;
8677 mingw*)
8678 # MinGW DLLs use traditional 'lib' prefix
8679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8682 # It is most probably a Windows format PATH printed by
8683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8684 # path with ; separators, and with drive letters. We can handle the
8685 # drive letters (cygwin fileutils understands them), so leave them,
8686 # especially as we might pass files found there to a mingw objdump,
8687 # which wouldn't understand a cygwinified path. Ahh.
8688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8689 else
8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8691 fi
8692 ;;
8693 pw32*)
8694 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008696 ;;
8697 esac
8698 ;;
8699
8700 *)
8701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8702 ;;
8703 esac
8704 dynamic_linker='Win32 ld.exe'
8705 # FIXME: first we should search . and the directory the executable is in
8706 shlibpath_var=PATH
8707 ;;
8708
8709darwin* | rhapsody*)
8710 dynamic_linker="$host_os dyld"
8711 version_type=darwin
8712 need_lib_prefix=no
8713 need_version=no
8714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8715 soname_spec='${libname}${release}${major}$shared_ext'
8716 shlibpath_overrides_runpath=yes
8717 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008718 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8720 if test "$GCC" = yes; then
8721 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"`
8722 else
8723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8724 fi
8725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8726 ;;
8727
8728dgux*)
8729 version_type=linux
8730 need_lib_prefix=no
8731 need_version=no
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 shlibpath_var=LD_LIBRARY_PATH
8735 ;;
8736
Eric Christopher360fa9a2011-10-26 00:42:12 +00008737freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008738 dynamic_linker=no
8739 ;;
8740
8741kfreebsd*-gnu)
8742 version_type=linux
8743 need_lib_prefix=no
8744 need_version=no
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 shlibpath_overrides_runpath=no
8749 hardcode_into_libs=yes
8750 dynamic_linker='GNU ld.so'
8751 ;;
8752
Reid Spencera773bd52006-08-04 18:18:08 +00008753freebsd* | dragonfly*)
8754 # DragonFly does not have aout. When/if they implement a new
8755 # versioning mechanism, adjust this.
8756 if test -x /usr/bin/objformat; then
8757 objformat=`/usr/bin/objformat`
8758 else
8759 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008760 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008761 *) objformat=elf ;;
8762 esac
8763 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008764 version_type=freebsd-$objformat
8765 case $version_type in
8766 freebsd-elf*)
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8768 need_version=no
8769 need_lib_prefix=no
8770 ;;
8771 freebsd-*)
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8773 need_version=yes
8774 ;;
8775 esac
8776 shlibpath_var=LD_LIBRARY_PATH
8777 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008778 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779 shlibpath_overrides_runpath=yes
8780 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008781 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008782 shlibpath_overrides_runpath=yes
8783 hardcode_into_libs=yes
8784 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008787 shlibpath_overrides_runpath=no
8788 hardcode_into_libs=yes
8789 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008790 freebsd*) # from 4.6 on
8791 shlibpath_overrides_runpath=yes
8792 hardcode_into_libs=yes
8793 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008794 esac
8795 ;;
8796
8797gnu*)
8798 version_type=linux
8799 need_lib_prefix=no
8800 need_version=no
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 hardcode_into_libs=yes
8805 ;;
8806
8807hpux9* | hpux10* | hpux11*)
8808 # Give a soname corresponding to the major version so that dld.sl refuses to
8809 # link against other versions.
8810 version_type=sunos
8811 need_lib_prefix=no
8812 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008813 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008814 ia64*)
8815 shrext_cmds='.so'
8816 hardcode_into_libs=yes
8817 dynamic_linker="$host_os dld.so"
8818 shlibpath_var=LD_LIBRARY_PATH
8819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 if test "X$HPUX_IA64_MODE" = X32; then
8823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8824 else
8825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8826 fi
8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8828 ;;
8829 hppa*64*)
8830 shrext_cmds='.sl'
8831 hardcode_into_libs=yes
8832 dynamic_linker="$host_os dld.sl"
8833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8839 ;;
8840 *)
8841 shrext_cmds='.sl'
8842 dynamic_linker="$host_os dld.sl"
8843 shlibpath_var=SHLIB_PATH
8844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 ;;
8848 esac
8849 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8850 postinstall_cmds='chmod 555 $lib'
8851 ;;
8852
Reid Spencera773bd52006-08-04 18:18:08 +00008853interix3*)
8854 version_type=linux
8855 need_lib_prefix=no
8856 need_version=no
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 hardcode_into_libs=yes
8863 ;;
8864
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008865irix5* | irix6* | nonstopux*)
8866 case $host_os in
8867 nonstopux*) version_type=nonstopux ;;
8868 *)
8869 if test "$lt_cv_prog_gnu_ld" = yes; then
8870 version_type=linux
8871 else
8872 version_type=irix
8873 fi ;;
8874 esac
8875 need_lib_prefix=no
8876 need_version=no
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8879 case $host_os in
8880 irix5* | nonstopux*)
8881 libsuff= shlibsuff=
8882 ;;
8883 *)
8884 case $LD in # libtool.m4 will add one of these switches to LD
8885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8886 libsuff= shlibsuff= libmagic=32-bit;;
8887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8888 libsuff=32 shlibsuff=N32 libmagic=N32;;
8889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8890 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8891 *) libsuff= shlibsuff= libmagic=never-match;;
8892 esac
8893 ;;
8894 esac
8895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8896 shlibpath_overrides_runpath=no
8897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8899 hardcode_into_libs=yes
8900 ;;
8901
8902# No shared lib support for Linux oldld, aout, or coff.
8903linux*oldld* | linux*aout* | linux*coff*)
8904 dynamic_linker=no
8905 ;;
8906
8907# This must be Linux ELF.
8908linux*)
8909 version_type=linux
8910 need_lib_prefix=no
8911 need_version=no
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=no
8917 # This implies no fast_install, which is unacceptable.
8918 # Some rework will be needed to allow for fast_install
8919 # before this can be enabled.
8920 hardcode_into_libs=yes
8921
8922 # Append ld.so.conf contents to the search path
8923 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008924 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 Spencer2bc7bd52004-11-29 12:29:58 +00008925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8926 fi
8927
8928 # We used to test for /lib/ld.so.1 and disable shared libraries on
8929 # powerpc, because MkLinux only supported shared libraries with the
8930 # GNU dynamic linker. Since this was broken with cross compilers,
8931 # most powerpc-linux boxes support dynamic linking these days and
8932 # people can always --disable-shared, the test was removed, and we
8933 # assume the GNU/Linux dynamic linker is in use.
8934 dynamic_linker='GNU/Linux ld.so'
8935 ;;
8936
8937knetbsd*-gnu)
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 shlibpath_overrides_runpath=no
8945 hardcode_into_libs=yes
8946 dynamic_linker='GNU ld.so'
8947 ;;
8948
8949netbsd*)
8950 version_type=sunos
8951 need_lib_prefix=no
8952 need_version=no
8953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8956 dynamic_linker='NetBSD (a.out) ld.so'
8957 else
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 dynamic_linker='NetBSD ld.elf_so'
8961 fi
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes
8964 hardcode_into_libs=yes
8965 ;;
8966
8967newsos6)
8968 version_type=linux
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 shlibpath_overrides_runpath=yes
8972 ;;
8973
8974nto-qnx*)
8975 version_type=linux
8976 need_lib_prefix=no
8977 need_version=no
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes
8982 ;;
8983
Eric Christopherb0f67592012-08-06 20:52:18 +00008984openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008985 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008986 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008987 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8989 case $host_os in
8990 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8991 *) need_version=no ;;
8992 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8997 case $host_os in
8998 openbsd2.[89] | openbsd2.[89].*)
8999 shlibpath_overrides_runpath=no
9000 ;;
9001 *)
9002 shlibpath_overrides_runpath=yes
9003 ;;
9004 esac
9005 else
9006 shlibpath_overrides_runpath=yes
9007 fi
9008 ;;
9009
9010os2*)
9011 libname_spec='$name'
9012 shrext_cmds=".dll"
9013 need_lib_prefix=no
9014 library_names_spec='$libname${shared_ext} $libname.a'
9015 dynamic_linker='OS/2 ld.exe'
9016 shlibpath_var=LIBPATH
9017 ;;
9018
9019osf3* | osf4* | osf5*)
9020 version_type=osf
9021 need_lib_prefix=no
9022 need_version=no
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9028 ;;
9029
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009030solaris*)
9031 version_type=linux
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9039 # ldd complains unless libraries are executable
9040 postinstall_cmds='chmod +x $lib'
9041 ;;
9042
9043sunos4*)
9044 version_type=sunos
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 if test "$with_gnu_ld" = yes; then
9050 need_lib_prefix=no
9051 fi
9052 need_version=yes
9053 ;;
9054
Reid Spencera773bd52006-08-04 18:18:08 +00009055sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009056 version_type=linux
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 case $host_vendor in
9061 sni)
9062 shlibpath_overrides_runpath=no
9063 need_lib_prefix=no
9064 export_dynamic_flag_spec='${wl}-Blargedynsym'
9065 runpath_var=LD_RUN_PATH
9066 ;;
9067 siemens)
9068 need_lib_prefix=no
9069 ;;
9070 motorola)
9071 need_lib_prefix=no
9072 need_version=no
9073 shlibpath_overrides_runpath=no
9074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9075 ;;
9076 esac
9077 ;;
9078
9079sysv4*MP*)
9080 if test -d /usr/nec ;then
9081 version_type=linux
9082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9083 soname_spec='$libname${shared_ext}.$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 fi
9086 ;;
9087
Reid Spencera773bd52006-08-04 18:18:08 +00009088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9089 version_type=freebsd-elf
9090 need_lib_prefix=no
9091 need_version=no
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 hardcode_into_libs=yes
9096 if test "$with_gnu_ld" = yes; then
9097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9098 shlibpath_overrides_runpath=no
9099 else
9100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9101 shlibpath_overrides_runpath=yes
9102 case $host_os in
9103 sco3.2v5*)
9104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9105 ;;
9106 esac
9107 fi
9108 sys_lib_dlsearch_path_spec='/usr/lib'
9109 ;;
9110
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009111uts4*)
9112 version_type=linux
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 ;;
9117
9118*)
9119 dynamic_linker=no
9120 ;;
9121esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009122{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9123echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009124test "$dynamic_linker" = no && can_build_shared=no
9125
Reid Spencera773bd52006-08-04 18:18:08 +00009126variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9127if test "$GCC" = yes; then
9128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9129fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009130
Reid Spencera773bd52006-08-04 18:18:08 +00009131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009132{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9133echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9134if test "${libltdl_cv_shlibext+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136else
9137
9138module=yes
9139eval libltdl_cv_shlibext=$shrext_cmds
9140
9141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009142{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9143echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009144if test -n "$libltdl_cv_shlibext"; then
9145
9146cat >>confdefs.h <<_ACEOF
9147#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9148_ACEOF
9149
9150fi
9151
9152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009153{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9154echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9155if test "${libltdl_cv_shlibpath_var+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009157else
9158 libltdl_cv_shlibpath_var="$shlibpath_var"
9159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009160{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9161echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009162if test -n "$libltdl_cv_shlibpath_var"; then
9163
9164cat >>confdefs.h <<_ACEOF
9165#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9166_ACEOF
9167
9168fi
9169
9170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009171{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9172echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9173if test "${libltdl_cv_sys_search_path+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009175else
9176 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009178{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9179echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009180if test -n "$libltdl_cv_sys_search_path"; then
9181 sys_search_path=
9182 for dir in $libltdl_cv_sys_search_path; do
9183 if test -z "$sys_search_path"; then
9184 sys_search_path="$dir"
9185 else
9186 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9187 fi
9188 done
9189
9190cat >>confdefs.h <<_ACEOF
9191#define LTDL_SYSSEARCHPATH "$sys_search_path"
9192_ACEOF
9193
9194fi
9195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009196{ echo "$as_me:$LINENO: checking for objdir" >&5
9197echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9198if test "${libltdl_cv_objdir+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009200else
9201 libltdl_cv_objdir="$objdir"
9202 if test -n "$objdir"; then
9203 :
9204 else
9205 rm -f .libs 2>/dev/null
9206 mkdir .libs 2>/dev/null
9207 if test -d .libs; then
9208 libltdl_cv_objdir=.libs
9209 else
9210 # MS-DOS does not allow filenames that begin with a dot.
9211 libltdl_cv_objdir=_libs
9212 fi
9213 rmdir .libs 2>/dev/null
9214 fi
9215
9216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009217{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9218echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009219
9220cat >>confdefs.h <<_ACEOF
9221#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9222_ACEOF
9223
9224
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009225
9226
9227
9228
9229# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009230{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9231echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9232if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009234else
9235
9236# These are sane defaults that work on at least a few old systems.
9237# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9238
9239# Character class describing NM global symbol codes.
9240symcode='[BCDEGRST]'
9241
9242# Regexp to match symbols that can be accessed directly from C.
9243sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9244
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009245# Transform an extracted symbol line into a proper C declaration
9246lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9247
9248# Transform an extracted symbol line into symbol name and symbol address
9249lt_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'"
9250
9251# Define system-specific variables.
9252case $host_os in
9253aix*)
9254 symcode='[BCDT]'
9255 ;;
9256cygwin* | mingw* | pw32*)
9257 symcode='[ABCDGISTW]'
9258 ;;
9259hpux*) # Its linker distinguishes data from code symbols
9260 if test "$host_cpu" = ia64; then
9261 symcode='[ABCDEGRST]'
9262 fi
9263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9264 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'"
9265 ;;
9266linux*)
9267 if test "$host_cpu" = ia64; then
9268 symcode='[ABCDGIRSTW]'
9269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9270 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'"
9271 fi
9272 ;;
9273irix* | nonstopux*)
9274 symcode='[BCDEGRST]'
9275 ;;
9276osf*)
9277 symcode='[BCDEGQRST]'
9278 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009279solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009280 symcode='[BDRT]'
9281 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009282sco3.2v5*)
9283 symcode='[DT]'
9284 ;;
9285sysv4.2uw2*)
9286 symcode='[DT]'
9287 ;;
9288sysv5* | sco5v6* | unixware* | OpenUNIX*)
9289 symcode='[ABDT]'
9290 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009291sysv4)
9292 symcode='[DFNSTU]'
9293 ;;
9294esac
9295
9296# Handle CRLF in mingw tool chain
9297opt_cr=
9298case $build_os in
9299mingw*)
9300 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9301 ;;
9302esac
9303
9304# If we're using GNU nm, then use its standard symbol codes.
9305case `$NM -V 2>&1` in
9306*GNU* | *'with BFD'*)
9307 symcode='[ABCDGIRSTW]' ;;
9308esac
9309
9310# Try without a prefix undercore, then with it.
9311for ac_symprfx in "" "_"; do
9312
Reid Spencera773bd52006-08-04 18:18:08 +00009313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9314 symxfrm="\\1 $ac_symprfx\\2 \\2"
9315
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318
9319 # Check to see that the pipe works correctly.
9320 pipe_works=no
9321
9322 rm -f conftest*
9323 cat > conftest.$ac_ext <<EOF
9324#ifdef __cplusplus
9325extern "C" {
9326#endif
9327char nm_test_var;
9328void nm_test_func(){}
9329#ifdef __cplusplus
9330}
9331#endif
9332int main(){nm_test_var='a';nm_test_func();return(0);}
9333EOF
9334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336 (eval $ac_compile) 2>&5
9337 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009340 # Now try to grab the symbols.
9341 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9344 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009347 # Try sorting and uniquifying the output.
9348 if sort "$nlist" | uniq > "$nlist"T; then
9349 mv -f "$nlist"T "$nlist"
9350 else
9351 rm -f "$nlist"T
9352 fi
9353
9354 # Make sure that we snagged all the symbols we need.
9355 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9356 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9357 cat <<EOF > conftest.$ac_ext
9358#ifdef __cplusplus
9359extern "C" {
9360#endif
9361
9362EOF
9363 # Now generate the symbol file.
9364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9365
9366 cat <<EOF >> conftest.$ac_ext
9367#if defined (__STDC__) && __STDC__
9368# define lt_ptr_t void *
9369#else
9370# define lt_ptr_t char *
9371# define const
9372#endif
9373
9374/* The mapping between symbol names and symbols. */
9375const struct {
9376 const char *name;
9377 lt_ptr_t address;
9378}
9379lt_preloaded_symbols[] =
9380{
9381EOF
9382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9383 cat <<\EOF >> conftest.$ac_ext
9384 {0, (lt_ptr_t) 0}
9385};
9386
9387#ifdef __cplusplus
9388}
9389#endif
9390EOF
9391 # Now try linking the two files.
9392 mv conftest.$ac_objext conftstm.$ac_objext
9393 lt_save_LIBS="$LIBS"
9394 lt_save_CFLAGS="$CFLAGS"
9395 LIBS="conftstm.$ac_objext"
9396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398 (eval $ac_link) 2>&5
9399 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009402 pipe_works=yes
9403 fi
9404 LIBS="$lt_save_LIBS"
9405 CFLAGS="$lt_save_CFLAGS"
9406 else
9407 echo "cannot find nm_test_func in $nlist" >&5
9408 fi
9409 else
9410 echo "cannot find nm_test_var in $nlist" >&5
9411 fi
9412 else
9413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9414 fi
9415 else
9416 echo "$progname: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 fi
9419 rm -f conftest* conftst*
9420
9421 # Do not use the global_symbol_pipe unless it works.
9422 if test "$pipe_works" = yes; then
9423 break
9424 else
9425 lt_cv_sys_global_symbol_pipe=
9426 fi
9427done
9428
9429fi
9430
9431if test -z "$lt_cv_sys_global_symbol_pipe"; then
9432 lt_cv_sys_global_symbol_to_cdecl=
9433fi
9434if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009435 { echo "$as_me:$LINENO: result: failed" >&5
9436echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438 { echo "$as_me:$LINENO: result: ok" >&5
9439echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009440fi
9441
9442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009443{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9444echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9445if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009447else
9448 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9449 libltdl_cv_preloaded_symbols=yes
9450 else
9451 libltdl_cv_preloaded_symbols=no
9452 fi
9453
9454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009455{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9456echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009457if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009459cat >>confdefs.h <<\_ACEOF
9460#define HAVE_PRELOADED_SYMBOLS 1
9461_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462
9463fi
9464
9465LIBADD_DL=
9466
9467ac_ext=c
9468ac_cpp='$CPP $CPPFLAGS'
9469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9471ac_compiler_gnu=$ac_cv_c_compiler_gnu
9472
9473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009474{ echo "$as_me:$LINENO: checking for shl_load" >&5
9475echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9476if test "${ac_cv_func_shl_load+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478else
9479 cat >conftest.$ac_ext <<_ACEOF
9480/* confdefs.h. */
9481_ACEOF
9482cat confdefs.h >>conftest.$ac_ext
9483cat >>conftest.$ac_ext <<_ACEOF
9484/* end confdefs.h. */
9485/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9487#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009489/* System header to define __stub macros and hopefully few prototypes,
9490 which can conflict with char shl_load (); below.
9491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9492 <limits.h> exists even on freestanding compilers. */
9493
9494#ifdef __STDC__
9495# include <limits.h>
9496#else
9497# include <assert.h>
9498#endif
9499
9500#undef shl_load
9501
9502/* Override any GCC internal prototype to avoid an error.
9503 Use char because int might match the return type of a GCC
9504 builtin and then its argument prototype would still apply. */
9505#ifdef __cplusplus
9506extern "C"
9507#endif
9508char shl_load ();
9509/* The GNU C library defines this for functions which it implements
9510 to always fail with ENOSYS. Some functions are actually named
9511 something starting with __ and the normal name is an alias. */
9512#if defined __stub_shl_load || defined __stub___shl_load
9513choke me
9514#endif
9515
9516int
9517main ()
9518{
9519return shl_load ();
9520 ;
9521 return 0;
9522}
9523_ACEOF
9524rm -f conftest.$ac_objext conftest$ac_exeext
9525if { (ac_try="$ac_link"
9526case "(($ac_try" in
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9529esac
9530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_link") 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9539 { (case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9542esac
9543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_try") 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9552esac
9553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_try") 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 ac_cv_func_shl_load=yes
9559else
9560 echo "$as_me: failed program was:" >&5
9561sed 's/^/| /' conftest.$ac_ext >&5
9562
9563 ac_cv_func_shl_load=no
9564fi
9565
9566rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568fi
9569{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9570echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9571if test $ac_cv_func_shl_load = yes; then
9572
9573cat >>confdefs.h <<\_ACEOF
9574#define HAVE_SHL_LOAD 1
9575_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009576
9577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009578 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9579echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9580if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582else
9583 ac_check_lib_save_LIBS=$LIBS
9584LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009585cat >conftest.$ac_ext <<_ACEOF
9586/* confdefs.h. */
9587_ACEOF
9588cat confdefs.h >>conftest.$ac_ext
9589cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009590/* end confdefs.h. */
9591
Reid Spencera773bd52006-08-04 18:18:08 +00009592/* Override any GCC internal prototype to avoid an error.
9593 Use char because int might match the return type of a GCC
9594 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595#ifdef __cplusplus
9596extern "C"
9597#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009598char shl_load ();
9599int
9600main ()
9601{
Reid Spencera773bd52006-08-04 18:18:08 +00009602return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603 ;
9604 return 0;
9605}
9606_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009607rm -f conftest.$ac_objext conftest$ac_exeext
9608if { (ac_try="$ac_link"
9609case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9612esac
9613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_link") 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9622 { (case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9625esac
9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_try") 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635esac
9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_try") 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641 ac_cv_lib_dld_shl_load=yes
9642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009643 echo "$as_me: failed program was:" >&5
9644sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009648
Bill Wendlingebcceee2009-04-18 11:20:33 +00009649rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009650 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009651LIBS=$ac_check_lib_save_LIBS
9652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009653{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9654echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9655if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009657cat >>confdefs.h <<\_ACEOF
9658#define HAVE_SHL_LOAD 1
9659_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660
9661 LIBADD_DL="$LIBADD_DL -ldld"
9662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009663 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9665if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667else
9668 ac_check_lib_save_LIBS=$LIBS
9669LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009670cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675/* end confdefs.h. */
9676
Reid Spencera773bd52006-08-04 18:18:08 +00009677/* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680#ifdef __cplusplus
9681extern "C"
9682#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683char dlopen ();
9684int
9685main ()
9686{
Reid Spencera773bd52006-08-04 18:18:08 +00009687return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 ;
9689 return 0;
9690}
9691_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009692rm -f conftest.$ac_objext conftest$ac_exeext
9693if { (ac_try="$ac_link"
9694case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697esac
9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710esac
9711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009726 ac_cv_lib_dl_dlopen=yes
9727else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009733
Bill Wendlingebcceee2009-04-18 11:20:33 +00009734rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009735 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009736LIBS=$ac_check_lib_save_LIBS
9737fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009738{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9739echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9740if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009742cat >>confdefs.h <<\_ACEOF
9743#define HAVE_LIBDL 1
9744_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745
9746 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009748 cat >conftest.$ac_ext <<_ACEOF
9749/* confdefs.h. */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753/* end confdefs.h. */
9754#if HAVE_DLFCN_H
9755# include <dlfcn.h>
9756#endif
9757
9758int
9759main ()
9760{
9761dlopen(0, 0);
9762 ;
9763 return 0;
9764}
9765_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009766rm -f conftest.$ac_objext conftest$ac_exeext
9767if { (ac_try="$ac_link"
9768case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771esac
9772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_link") 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9781 { (case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_try") 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; } &&
9790 { ac_try='test -s conftest$ac_exeext'
9791 { (case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794esac
9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_try") 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009801cat >>confdefs.h <<\_ACEOF
9802#define HAVE_LIBDL 1
9803_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804 libltdl_cv_func_dlopen="yes"
9805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009806 echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9810echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9811if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813else
9814 ac_check_lib_save_LIBS=$LIBS
9815LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009816cat >conftest.$ac_ext <<_ACEOF
9817/* confdefs.h. */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821/* end confdefs.h. */
9822
Reid Spencera773bd52006-08-04 18:18:08 +00009823/* Override any GCC internal prototype to avoid an error.
9824 Use char because int might match the return type of a GCC
9825 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826#ifdef __cplusplus
9827extern "C"
9828#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829char dlopen ();
9830int
9831main ()
9832{
Reid Spencera773bd52006-08-04 18:18:08 +00009833return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834 ;
9835 return 0;
9836}
9837_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009838rm -f conftest.$ac_objext conftest$ac_exeext
9839if { (ac_try="$ac_link"
9840case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843esac
9844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_link") 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853 { (case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856esac
9857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_try") 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try='test -s conftest$ac_exeext'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866esac
9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872 ac_cv_lib_svld_dlopen=yes
9873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009874 echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009879
Bill Wendlingebcceee2009-04-18 11:20:33 +00009880rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009881 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009882LIBS=$ac_check_lib_save_LIBS
9883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009884{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9885echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9886if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009888cat >>confdefs.h <<\_ACEOF
9889#define HAVE_LIBDL 1
9890_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891
9892 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009894 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9895echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9896if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898else
9899 ac_check_lib_save_LIBS=$LIBS
9900LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906/* end confdefs.h. */
9907
Reid Spencera773bd52006-08-04 18:18:08 +00009908/* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911#ifdef __cplusplus
9912extern "C"
9913#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914char dld_link ();
9915int
9916main ()
9917{
Reid Spencera773bd52006-08-04 18:18:08 +00009918return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919 ;
9920 return 0;
9921}
9922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_link") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_try") 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009957 ac_cv_lib_dld_dld_link=yes
9958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009959 echo "$as_me: failed program was:" >&5
9960sed 's/^/| /' conftest.$ac_ext >&5
9961
9962 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009964
Bill Wendlingebcceee2009-04-18 11:20:33 +00009965rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009966 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967LIBS=$ac_check_lib_save_LIBS
9968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009969{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9970echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9971if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009973cat >>confdefs.h <<\_ACEOF
9974#define HAVE_DLD 1
9975_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976
9977 LIBADD_DL="$LIBADD_DL -ldld"
9978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009979 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9980echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9981if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983else
9984 cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h. */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h. */
9990/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9992#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009994/* System header to define __stub macros and hopefully few prototypes,
9995 which can conflict with char _dyld_func_lookup (); below.
9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009999#ifdef __STDC__
10000# include <limits.h>
10001#else
10002# include <assert.h>
10003#endif
10004
10005#undef _dyld_func_lookup
10006
10007/* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10010#ifdef __cplusplus
10011extern "C"
10012#endif
10013char _dyld_func_lookup ();
10014/* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10018choke me
10019#endif
10020
10021int
10022main ()
10023{
10024return _dyld_func_lookup ();
10025 ;
10026 return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext conftest$ac_exeext
10030if { (ac_try="$ac_link"
10031case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034esac
10035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047esac
10048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_try") 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_func__dyld_func_lookup=yes
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069fi
Reid Spencera773bd52006-08-04 18:18:08 +000010070
Bill Wendlingebcceee2009-04-18 11:20:33 +000010071rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010072 conftest$ac_exeext conftest.$ac_ext
10073fi
10074{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10075echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10076if test $ac_cv_func__dyld_func_lookup = yes; then
10077
10078cat >>confdefs.h <<\_ACEOF
10079#define HAVE_DYLD 1
10080_ACEOF
10081
10082fi
10083
10084
10085fi
10086
10087
10088fi
10089
10090
10091fi
10092
10093rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095
10096fi
10097
10098
10099fi
10100
10101
10102fi
10103
10104
10105if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10106then
10107 lt_save_LIBS="$LIBS"
10108 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010109
10110for ac_func in dlerror
10111do
10112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10113{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10115if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117else
10118 cat >conftest.$ac_ext <<_ACEOF
10119/* confdefs.h. */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h. */
10124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10126#define $ac_func innocuous_$ac_func
10127
10128/* System header to define __stub macros and hopefully few prototypes,
10129 which can conflict with char $ac_func (); below.
10130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10131 <limits.h> exists even on freestanding compilers. */
10132
10133#ifdef __STDC__
10134# include <limits.h>
10135#else
10136# include <assert.h>
10137#endif
10138
10139#undef $ac_func
10140
10141/* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10144#ifdef __cplusplus
10145extern "C"
10146#endif
10147char $ac_func ();
10148/* The GNU C library defines this for functions which it implements
10149 to always fail with ENOSYS. Some functions are actually named
10150 something starting with __ and the normal name is an alias. */
10151#if defined __stub_$ac_func || defined __stub___$ac_func
10152choke me
10153#endif
10154
10155int
10156main ()
10157{
10158return $ac_func ();
10159 ;
10160 return 0;
10161}
10162_ACEOF
10163rm -f conftest.$ac_objext conftest$ac_exeext
10164if { (ac_try="$ac_link"
10165case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168esac
10169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10178 { (case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10181esac
10182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_try") 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191esac
10192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 eval "$as_ac_var=yes"
10198else
10199 echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 eval "$as_ac_var=no"
10203fi
10204
10205rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10207fi
10208ac_res=`eval echo '${'$as_ac_var'}'`
10209 { echo "$as_me:$LINENO: result: $ac_res" >&5
10210echo "${ECHO_T}$ac_res" >&6; }
10211if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214_ACEOF
10215
10216fi
10217done
10218
10219 LIBS="$lt_save_LIBS"
10220fi
10221ac_ext=c
10222ac_cpp='$CPP $CPPFLAGS'
10223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10225ac_compiler_gnu=$ac_cv_c_compiler_gnu
10226
10227
10228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010229{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10230echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10231if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233else
10234 ac_cv_sys_symbol_underscore=no
10235 cat > conftest.$ac_ext <<EOF
10236void nm_test_func(){}
10237int main(){nm_test_func;return 0;}
10238EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240 (eval $ac_compile) 2>&5
10241 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244 # Now try to grab the symbols.
10245 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010246 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010247 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10248 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251 # See whether the symbols have a leading underscore.
10252 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10253 ac_cv_sys_symbol_underscore=yes
10254 else
10255 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10256 :
10257 else
10258 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10259 fi
10260 fi
10261 else
10262 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10263 fi
10264 else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.c >&5
10267 fi
10268 rm -rf conftest*
10269
10270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010271{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10272echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273
10274
10275if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10276 if test x"$libltdl_cv_func_dlopen" = xyes ||
10277 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010278 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10279echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10280if test "${libltdl_cv_need_uscore+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282else
10283 libltdl_cv_need_uscore=unknown
10284 save_LIBS="$LIBS"
10285 LIBS="$LIBS $LIBADD_DL"
10286 if test "$cross_compiling" = yes; then :
10287 libltdl_cv_need_uscore=cross
10288else
10289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10290 lt_status=$lt_dlunknown
10291 cat > conftest.$ac_ext <<EOF
Daniel Dunbar7126ee02012-08-14 18:14:22 +000010292#line 10292 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293#include "confdefs.h"
10294
10295#if HAVE_DLFCN_H
10296#include <dlfcn.h>
10297#endif
10298
10299#include <stdio.h>
10300
10301#ifdef RTLD_GLOBAL
10302# define LT_DLGLOBAL RTLD_GLOBAL
10303#else
10304# ifdef DL_GLOBAL
10305# define LT_DLGLOBAL DL_GLOBAL
10306# else
10307# define LT_DLGLOBAL 0
10308# endif
10309#endif
10310
10311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10312 find out it does not work in some platform. */
10313#ifndef LT_DLLAZY_OR_NOW
10314# ifdef RTLD_LAZY
10315# define LT_DLLAZY_OR_NOW RTLD_LAZY
10316# else
10317# ifdef DL_LAZY
10318# define LT_DLLAZY_OR_NOW DL_LAZY
10319# else
10320# ifdef RTLD_NOW
10321# define LT_DLLAZY_OR_NOW RTLD_NOW
10322# else
10323# ifdef DL_NOW
10324# define LT_DLLAZY_OR_NOW DL_NOW
10325# else
10326# define LT_DLLAZY_OR_NOW 0
10327# endif
10328# endif
10329# endif
10330# endif
10331#endif
10332
10333#ifdef __cplusplus
10334extern "C" void exit (int);
10335#endif
10336
10337void fnord() { int i=42;}
10338int main ()
10339{
10340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10341 int status = $lt_dlunknown;
10342
10343 if (self)
10344 {
10345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10347 /* dlclose (self); */
10348 }
Reid Spencera773bd52006-08-04 18:18:08 +000010349 else
10350 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010351
10352 exit (status);
10353}
10354EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010356 (eval $ac_link) 2>&5
10357 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010360 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010361 lt_status=$?
10362 case x$lt_status in
10363 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10364 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010365 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366 esac
10367 else :
10368 # compilation failed
10369
10370 fi
10371fi
10372rm -fr conftest*
10373
10374 LIBS="$save_LIBS"
10375
10376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010377{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10378echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010379 fi
10380fi
10381
10382if test x"$libltdl_cv_need_uscore" = xyes; then
10383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010384cat >>confdefs.h <<\_ACEOF
10385#define NEED_USCORE 1
10386_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387
10388fi
10389
10390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010391{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10392echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10393if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395else
10396 # PORTME does your system automatically load deplibs for dlopen?
10397 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10398 # For now, we just catch OSes we know something about -- in the
10399 # future, we'll try test this programmatically.
10400 libltdl_cv_sys_dlopen_deplibs=unknown
10401 case "$host_os" in
10402 aix3*|aix4.1.*|aix4.2.*)
10403 # Unknown whether this is true for these versions of AIX, but
10404 # we want this `case' here to explicitly catch those versions.
10405 libltdl_cv_sys_dlopen_deplibs=unknown
10406 ;;
10407 aix[45]*)
10408 libltdl_cv_sys_dlopen_deplibs=yes
10409 ;;
10410 darwin*)
10411 # Assuming the user has installed a libdl from somewhere, this is true
10412 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10413 libltdl_cv_sys_dlopen_deplibs=yes
10414 ;;
10415 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10416 # GNU and its variants, using gnu ld.so (Glibc)
10417 libltdl_cv_sys_dlopen_deplibs=yes
10418 ;;
10419 hpux10*|hpux11*)
10420 libltdl_cv_sys_dlopen_deplibs=yes
10421 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010422 interix*)
10423 libltdl_cv_sys_dlopen_deplibs=yes
10424 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425 irix[12345]*|irix6.[01]*)
10426 # Catch all versions of IRIX before 6.2, and indicate that we don't
10427 # know how it worked for any of those versions.
10428 libltdl_cv_sys_dlopen_deplibs=unknown
10429 ;;
10430 irix*)
10431 # The case above catches anything before 6.2, and it's known that
10432 # at 6.2 and later dlopen does load deplibs.
10433 libltdl_cv_sys_dlopen_deplibs=yes
10434 ;;
10435 netbsd*)
10436 libltdl_cv_sys_dlopen_deplibs=yes
10437 ;;
10438 openbsd*)
10439 libltdl_cv_sys_dlopen_deplibs=yes
10440 ;;
10441 osf[1234]*)
10442 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10443 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010444 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 libltdl_cv_sys_dlopen_deplibs=no
10446 ;;
10447 osf5.0|osf5.0a|osf5.1)
10448 # dlopen *does* load deplibs and with the right loader patch applied
10449 # it even uses RPATH in a shared library to search for shared objects
10450 # that the library depends on, but there's no easy way to know if that
10451 # patch is installed. Since this is the case, all we can really
10452 # say is unknown -- it depends on the patch being installed. If
10453 # it is, this changes to `yes'. Without it, it would be `no'.
10454 libltdl_cv_sys_dlopen_deplibs=unknown
10455 ;;
10456 osf*)
10457 # the two cases above should catch all versions of osf <= 5.1. Read
10458 # the comments above for what we know about them.
10459 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10460 # is used to find them so we can finally say `yes'.
10461 libltdl_cv_sys_dlopen_deplibs=yes
10462 ;;
10463 solaris*)
10464 libltdl_cv_sys_dlopen_deplibs=yes
10465 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10467 libltdl_cv_sys_dlopen_deplibs=yes
10468 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469 esac
10470
10471fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010472{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10473echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010476cat >>confdefs.h <<\_ACEOF
10477#define LTDL_DLOPEN_DEPLIBS 1
10478_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479
10480fi
10481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010482
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010484do
10485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491fi
10492ac_res=`eval echo '${'$as_ac_Header'}'`
10493 { echo "$as_me:$LINENO: result: $ac_res" >&5
10494echo "${ECHO_T}$ac_res" >&6; }
10495else
10496 # Is the header compilable?
10497{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10499cat >conftest.$ac_ext <<_ACEOF
10500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
10505$ac_includes_default
10506#include <$ac_header>
10507_ACEOF
10508rm -f conftest.$ac_objext
10509if { (ac_try="$ac_compile"
10510case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513esac
10514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_compile") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10523 { (case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526esac
10527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_try") 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; } &&
10532 { ac_try='test -s conftest.$ac_objext'
10533 { (case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536esac
10537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_try") 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_header_compiler=yes
10543else
10544 echo "$as_me: failed program was:" >&5
10545sed 's/^/| /' conftest.$ac_ext >&5
10546
10547 ac_header_compiler=no
10548fi
10549
10550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10552echo "${ECHO_T}$ac_header_compiler" >&6; }
10553
10554# Is the header present?
10555{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10557cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h. */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h. */
10563#include <$ac_header>
10564_ACEOF
10565if { (ac_try="$ac_cpp conftest.$ac_ext"
10566case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569esac
10570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev/null; then
10578 if test -s conftest.err; then
10579 ac_cpp_err=$ac_c_preproc_warn_flag
10580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10581 else
10582 ac_cpp_err=
10583 fi
10584else
10585 ac_cpp_err=yes
10586fi
10587if test -z "$ac_cpp_err"; then
10588 ac_header_preproc=yes
10589else
10590 echo "$as_me: failed program was:" >&5
10591sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 ac_header_preproc=no
10594fi
10595
10596rm -f conftest.err conftest.$ac_ext
10597{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10598echo "${ECHO_T}$ac_header_preproc" >&6; }
10599
10600# So? What about this header?
10601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10602 yes:no: )
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10607 ac_header_preproc=yes
10608 ;;
10609 no:yes:* )
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10622 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010623## ------------------------------------ ##
10624## Report this to http://llvm.org/bugs/ ##
10625## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010626_ASBOX
10627 ) | sed "s/^/$as_me: WARNING: /" >&2
10628 ;;
10629esac
10630{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634else
10635 eval "$as_ac_Header=\$ac_header_preproc"
10636fi
10637ac_res=`eval echo '${'$as_ac_Header'}'`
10638 { echo "$as_me:$LINENO: result: $ac_res" >&5
10639echo "${ECHO_T}$ac_res" >&6; }
10640
10641fi
10642if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645_ACEOF
10646
10647fi
10648
10649done
10650
10651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010652{ echo "$as_me:$LINENO: checking for error_t" >&5
10653echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10654if test "${ac_cv_type_error_t+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656else
10657 cat >conftest.$ac_ext <<_ACEOF
10658/* confdefs.h. */
10659_ACEOF
10660cat confdefs.h >>conftest.$ac_ext
10661cat >>conftest.$ac_ext <<_ACEOF
10662/* end confdefs.h. */
10663#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010664# include <argz.h>
10665#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010666
10667typedef error_t ac__type_new_;
10668int
10669main ()
10670{
10671if ((ac__type_new_ *) 0)
10672 return 0;
10673if (sizeof (ac__type_new_))
10674 return 0;
10675 ;
10676 return 0;
10677}
10678_ACEOF
10679rm -f conftest.$ac_objext
10680if { (ac_try="$ac_compile"
10681case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684esac
10685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_compile") 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697esac
10698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; } &&
10703 { ac_try='test -s conftest.$ac_objext'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
10708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_cv_type_error_t=yes
10714else
10715 echo "$as_me: failed program was:" >&5
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 ac_cv_type_error_t=no
10719fi
10720
10721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722fi
10723{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10724echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10725if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726
10727cat >>confdefs.h <<_ACEOF
10728#define HAVE_ERROR_T 1
10729_ACEOF
10730
10731
10732else
10733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010734cat >>confdefs.h <<\_ACEOF
10735#define error_t int
10736_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737
10738fi
10739
10740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741
10742
10743
10744
10745
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010747do
10748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753else
10754 cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10762#define $ac_func innocuous_$ac_func
10763
10764/* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char $ac_func (); below.
10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10767 <limits.h> exists even on freestanding compilers. */
10768
10769#ifdef __STDC__
10770# include <limits.h>
10771#else
10772# include <assert.h>
10773#endif
10774
10775#undef $ac_func
10776
10777/* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780#ifdef __cplusplus
10781extern "C"
10782#endif
10783char $ac_func ();
10784/* The GNU C library defines this for functions which it implements
10785 to always fail with ENOSYS. Some functions are actually named
10786 something starting with __ and the normal name is an alias. */
10787#if defined __stub_$ac_func || defined __stub___$ac_func
10788choke me
10789#endif
10790
10791int
10792main ()
10793{
10794return $ac_func ();
10795 ;
10796 return 0;
10797}
10798_ACEOF
10799rm -f conftest.$ac_objext conftest$ac_exeext
10800if { (ac_try="$ac_link"
10801case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_link") 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817esac
10818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest$ac_exeext'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827esac
10828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 eval "$as_ac_var=yes"
10834else
10835 echo "$as_me: failed program was:" >&5
10836sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 eval "$as_ac_var=no"
10839fi
10840
10841rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843fi
10844ac_res=`eval echo '${'$as_ac_var'}'`
10845 { echo "$as_me:$LINENO: result: $ac_res" >&5
10846echo "${ECHO_T}$ac_res" >&6; }
10847if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850_ACEOF
10851
10852fi
10853done
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010874
10875
10876
10877
10878
10879
10880
10881
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010882for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10883 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010884do
10885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891fi
10892ac_res=`eval echo '${'$as_ac_Header'}'`
10893 { echo "$as_me:$LINENO: result: $ac_res" >&5
10894echo "${ECHO_T}$ac_res" >&6; }
10895else
10896 # Is the header compilable?
10897{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10899cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h. */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
10905$ac_includes_default
10906#include <$ac_header>
10907_ACEOF
10908rm -f conftest.$ac_objext
10909if { (ac_try="$ac_compile"
10910case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_compile") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926esac
10927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest.$ac_objext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_header_compiler=yes
10943else
10944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 ac_header_compiler=no
10948fi
10949
10950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10952echo "${ECHO_T}$ac_header_compiler" >&6; }
10953
10954# Is the header present?
10955{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10956echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10957cat >conftest.$ac_ext <<_ACEOF
10958/* confdefs.h. */
10959_ACEOF
10960cat confdefs.h >>conftest.$ac_ext
10961cat >>conftest.$ac_ext <<_ACEOF
10962/* end confdefs.h. */
10963#include <$ac_header>
10964_ACEOF
10965if { (ac_try="$ac_cpp conftest.$ac_ext"
10966case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969esac
10970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } >/dev/null; then
10978 if test -s conftest.err; then
10979 ac_cpp_err=$ac_c_preproc_warn_flag
10980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10981 else
10982 ac_cpp_err=
10983 fi
10984else
10985 ac_cpp_err=yes
10986fi
10987if test -z "$ac_cpp_err"; then
10988 ac_header_preproc=yes
10989else
10990 echo "$as_me: failed program was:" >&5
10991sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 ac_header_preproc=no
10994fi
10995
10996rm -f conftest.err conftest.$ac_ext
10997{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10998echo "${ECHO_T}$ac_header_preproc" >&6; }
10999
11000# So? What about this header?
11001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11002 yes:no: )
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11004echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11006echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11007 ac_header_preproc=yes
11008 ;;
11009 no:yes:* )
11010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11013echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11015echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11017echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11021echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11022 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011023## ------------------------------------ ##
11024## Report this to http://llvm.org/bugs/ ##
11025## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011026_ASBOX
11027 ) | sed "s/^/$as_me: WARNING: /" >&2
11028 ;;
11029esac
11030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 eval "$as_ac_Header=\$ac_header_preproc"
11036fi
11037ac_res=`eval echo '${'$as_ac_Header'}'`
11038 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039echo "${ECHO_T}$ac_res" >&6; }
11040
11041fi
11042if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045_ACEOF
11046
11047fi
11048
11049done
11050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011051
11052
11053
11054
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011056do
11057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063fi
11064ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066echo "${ECHO_T}$ac_res" >&6; }
11067else
11068 # Is the header compilable?
11069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11071cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h. */
11077$ac_includes_default
11078#include <$ac_header>
11079_ACEOF
11080rm -f conftest.$ac_objext
11081if { (ac_try="$ac_compile"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_header_compiler=yes
11115else
11116 echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
11119 ac_header_compiler=no
11120fi
11121
11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124echo "${ECHO_T}$ac_header_compiler" >&6; }
11125
11126# Is the header present?
11127{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11129cat >conftest.$ac_ext <<_ACEOF
11130/* confdefs.h. */
11131_ACEOF
11132cat confdefs.h >>conftest.$ac_ext
11133cat >>conftest.$ac_ext <<_ACEOF
11134/* end confdefs.h. */
11135#include <$ac_header>
11136_ACEOF
11137if { (ac_try="$ac_cpp conftest.$ac_ext"
11138case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141esac
11142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } >/dev/null; then
11150 if test -s conftest.err; then
11151 ac_cpp_err=$ac_c_preproc_warn_flag
11152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11153 else
11154 ac_cpp_err=
11155 fi
11156else
11157 ac_cpp_err=yes
11158fi
11159if test -z "$ac_cpp_err"; then
11160 ac_header_preproc=yes
11161else
11162 echo "$as_me: failed program was:" >&5
11163sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 ac_header_preproc=no
11166fi
11167
11168rm -f conftest.err conftest.$ac_ext
11169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11170echo "${ECHO_T}$ac_header_preproc" >&6; }
11171
11172# So? What about this header?
11173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11174 yes:no: )
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11179 ac_header_preproc=yes
11180 ;;
11181 no:yes:* )
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11194 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011195## ------------------------------------ ##
11196## Report this to http://llvm.org/bugs/ ##
11197## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011198_ASBOX
11199 ) | sed "s/^/$as_me: WARNING: /" >&2
11200 ;;
11201esac
11202{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206else
11207 eval "$as_ac_Header=\$ac_header_preproc"
11208fi
11209ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211echo "${ECHO_T}$ac_res" >&6; }
11212
11213fi
11214if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217_ACEOF
11218
11219fi
11220
11221done
11222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011223
11224
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011226do
11227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233fi
11234ac_res=`eval echo '${'$as_ac_Header'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236echo "${ECHO_T}$ac_res" >&6; }
11237else
11238 # Is the header compilable?
11239{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11241cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
11247$ac_includes_default
11248#include <$ac_header>
11249_ACEOF
11250rm -f conftest.$ac_objext
11251if { (ac_try="$ac_compile"
11252case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268esac
11269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278esac
11279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_header_compiler=yes
11285else
11286 echo "$as_me: failed program was:" >&5
11287sed 's/^/| /' conftest.$ac_ext >&5
11288
11289 ac_header_compiler=no
11290fi
11291
11292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11294echo "${ECHO_T}$ac_header_compiler" >&6; }
11295
11296# Is the header present?
11297{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11299cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
11305#include <$ac_header>
11306_ACEOF
11307if { (ac_try="$ac_cpp conftest.$ac_ext"
11308case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11311esac
11312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } >/dev/null; then
11320 if test -s conftest.err; then
11321 ac_cpp_err=$ac_c_preproc_warn_flag
11322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11323 else
11324 ac_cpp_err=
11325 fi
11326else
11327 ac_cpp_err=yes
11328fi
11329if test -z "$ac_cpp_err"; then
11330 ac_header_preproc=yes
11331else
11332 echo "$as_me: failed program was:" >&5
11333sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 ac_header_preproc=no
11336fi
11337
11338rm -f conftest.err conftest.$ac_ext
11339{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340echo "${ECHO_T}$ac_header_preproc" >&6; }
11341
11342# So? What about this header?
11343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11344 yes:no: )
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11349 ac_header_preproc=yes
11350 ;;
11351 no:yes:* )
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11364 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011365## ------------------------------------ ##
11366## Report this to http://llvm.org/bugs/ ##
11367## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011368_ASBOX
11369 ) | sed "s/^/$as_me: WARNING: /" >&2
11370 ;;
11371esac
11372{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376else
11377 eval "$as_ac_Header=\$ac_header_preproc"
11378fi
11379ac_res=`eval echo '${'$as_ac_Header'}'`
11380 { echo "$as_me:$LINENO: result: $ac_res" >&5
11381echo "${ECHO_T}$ac_res" >&6; }
11382
11383fi
11384if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011385 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387_ACEOF
11388 break
11389fi
11390
11391done
11392
11393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011394
11395
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011396for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011397do
11398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11399{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11401if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403else
11404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11412#define $ac_func innocuous_$ac_func
11413
11414/* System header to define __stub macros and hopefully few prototypes,
11415 which can conflict with char $ac_func (); below.
11416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11417 <limits.h> exists even on freestanding compilers. */
11418
11419#ifdef __STDC__
11420# include <limits.h>
11421#else
11422# include <assert.h>
11423#endif
11424
11425#undef $ac_func
11426
11427/* Override any GCC internal prototype to avoid an error.
11428 Use char because int might match the return type of a GCC
11429 builtin and then its argument prototype would still apply. */
11430#ifdef __cplusplus
11431extern "C"
11432#endif
11433char $ac_func ();
11434/* The GNU C library defines this for functions which it implements
11435 to always fail with ENOSYS. Some functions are actually named
11436 something starting with __ and the normal name is an alias. */
11437#if defined __stub_$ac_func || defined __stub___$ac_func
11438choke me
11439#endif
11440
11441int
11442main ()
11443{
11444return $ac_func ();
11445 ;
11446 return 0;
11447}
11448_ACEOF
11449rm -f conftest.$ac_objext conftest$ac_exeext
11450if { (ac_try="$ac_link"
11451case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454esac
11455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_link") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11464 { (case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467esac
11468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_try") 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11483 eval "$as_ac_var=yes"
11484else
11485 echo "$as_me: failed program was:" >&5
11486sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 eval "$as_ac_var=no"
11489fi
11490
11491rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11493fi
11494ac_res=`eval echo '${'$as_ac_var'}'`
11495 { echo "$as_me:$LINENO: result: $ac_res" >&5
11496echo "${ECHO_T}$ac_res" >&6; }
11497if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011498 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500_ACEOF
11501 break
11502fi
11503done
11504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011505
11506
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011508do
11509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11510{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11512if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514else
11515 cat >conftest.$ac_ext <<_ACEOF
11516/* confdefs.h. */
11517_ACEOF
11518cat confdefs.h >>conftest.$ac_ext
11519cat >>conftest.$ac_ext <<_ACEOF
11520/* end confdefs.h. */
11521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523#define $ac_func innocuous_$ac_func
11524
11525/* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char $ac_func (); below.
11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528 <limits.h> exists even on freestanding compilers. */
11529
11530#ifdef __STDC__
11531# include <limits.h>
11532#else
11533# include <assert.h>
11534#endif
11535
11536#undef $ac_func
11537
11538/* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541#ifdef __cplusplus
11542extern "C"
11543#endif
11544char $ac_func ();
11545/* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548#if defined __stub_$ac_func || defined __stub___$ac_func
11549choke me
11550#endif
11551
11552int
11553main ()
11554{
11555return $ac_func ();
11556 ;
11557 return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext conftest$ac_exeext
11561if { (ac_try="$ac_link"
11562case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565esac
11566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578esac
11579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 eval "$as_ac_var=yes"
11595else
11596 echo "$as_me: failed program was:" >&5
11597sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 eval "$as_ac_var=no"
11600fi
11601
11602rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604fi
11605ac_res=`eval echo '${'$as_ac_var'}'`
11606 { echo "$as_me:$LINENO: result: $ac_res" >&5
11607echo "${ECHO_T}$ac_res" >&6; }
11608if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611_ACEOF
11612 break
11613fi
11614done
11615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011616
11617
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011619do
11620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11621{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625else
11626 cat >conftest.$ac_ext <<_ACEOF
11627/* confdefs.h. */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h. */
11632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11634#define $ac_func innocuous_$ac_func
11635
11636/* System header to define __stub macros and hopefully few prototypes,
11637 which can conflict with char $ac_func (); below.
11638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11639 <limits.h> exists even on freestanding compilers. */
11640
11641#ifdef __STDC__
11642# include <limits.h>
11643#else
11644# include <assert.h>
11645#endif
11646
11647#undef $ac_func
11648
11649/* Override any GCC internal prototype to avoid an error.
11650 Use char because int might match the return type of a GCC
11651 builtin and then its argument prototype would still apply. */
11652#ifdef __cplusplus
11653extern "C"
11654#endif
11655char $ac_func ();
11656/* The GNU C library defines this for functions which it implements
11657 to always fail with ENOSYS. Some functions are actually named
11658 something starting with __ and the normal name is an alias. */
11659#if defined __stub_$ac_func || defined __stub___$ac_func
11660choke me
11661#endif
11662
11663int
11664main ()
11665{
11666return $ac_func ();
11667 ;
11668 return 0;
11669}
11670_ACEOF
11671rm -f conftest.$ac_objext conftest$ac_exeext
11672if { (ac_try="$ac_link"
11673case "(($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_link") 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11686 { (case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689esac
11690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_try") 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; } &&
11695 { ac_try='test -s conftest$ac_exeext'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 eval "$as_ac_var=yes"
11706else
11707 echo "$as_me: failed program was:" >&5
11708sed 's/^/| /' conftest.$ac_ext >&5
11709
11710 eval "$as_ac_var=no"
11711fi
11712
11713rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715fi
11716ac_res=`eval echo '${'$as_ac_var'}'`
11717 { echo "$as_me:$LINENO: result: $ac_res" >&5
11718echo "${ECHO_T}$ac_res" >&6; }
11719if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722_ACEOF
11723 break
11724fi
11725done
11726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011727
11728
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011730do
11731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11732{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11734if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736else
11737 cat >conftest.$ac_ext <<_ACEOF
11738/* confdefs.h. */
11739_ACEOF
11740cat confdefs.h >>conftest.$ac_ext
11741cat >>conftest.$ac_ext <<_ACEOF
11742/* end confdefs.h. */
11743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11745#define $ac_func innocuous_$ac_func
11746
11747/* System header to define __stub macros and hopefully few prototypes,
11748 which can conflict with char $ac_func (); below.
11749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11750 <limits.h> exists even on freestanding compilers. */
11751
11752#ifdef __STDC__
11753# include <limits.h>
11754#else
11755# include <assert.h>
11756#endif
11757
11758#undef $ac_func
11759
11760/* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11763#ifdef __cplusplus
11764extern "C"
11765#endif
11766char $ac_func ();
11767/* The GNU C library defines this for functions which it implements
11768 to always fail with ENOSYS. Some functions are actually named
11769 something starting with __ and the normal name is an alias. */
11770#if defined __stub_$ac_func || defined __stub___$ac_func
11771choke me
11772#endif
11773
11774int
11775main ()
11776{
11777return $ac_func ();
11778 ;
11779 return 0;
11780}
11781_ACEOF
11782rm -f conftest.$ac_objext conftest$ac_exeext
11783if { (ac_try="$ac_link"
11784case "(($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_link") 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800esac
11801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_try") 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest$ac_exeext'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 eval "$as_ac_var=yes"
11817else
11818 echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 eval "$as_ac_var=no"
11822fi
11823
11824rm -f core conftest.err conftest.$ac_objext \
11825 conftest$ac_exeext conftest.$ac_ext
11826fi
11827ac_res=`eval echo '${'$as_ac_var'}'`
11828 { echo "$as_me:$LINENO: result: $ac_res" >&5
11829echo "${ECHO_T}$ac_res" >&6; }
11830if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833_ACEOF
11834
11835fi
11836done
11837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011838
11839
11840
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011842do
11843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11844{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11846if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848else
11849 cat >conftest.$ac_ext <<_ACEOF
11850/* confdefs.h. */
11851_ACEOF
11852cat confdefs.h >>conftest.$ac_ext
11853cat >>conftest.$ac_ext <<_ACEOF
11854/* end confdefs.h. */
11855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11857#define $ac_func innocuous_$ac_func
11858
11859/* System header to define __stub macros and hopefully few prototypes,
11860 which can conflict with char $ac_func (); below.
11861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11862 <limits.h> exists even on freestanding compilers. */
11863
11864#ifdef __STDC__
11865# include <limits.h>
11866#else
11867# include <assert.h>
11868#endif
11869
11870#undef $ac_func
11871
11872/* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11875#ifdef __cplusplus
11876extern "C"
11877#endif
11878char $ac_func ();
11879/* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882#if defined __stub_$ac_func || defined __stub___$ac_func
11883choke me
11884#endif
11885
11886int
11887main ()
11888{
11889return $ac_func ();
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894rm -f conftest.$ac_objext conftest$ac_exeext
11895if { (ac_try="$ac_link"
11896case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899esac
11900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_link") 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912esac
11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_try") 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 eval "$as_ac_var=yes"
11929else
11930 echo "$as_me: failed program was:" >&5
11931sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 eval "$as_ac_var=no"
11934fi
11935
11936rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938fi
11939ac_res=`eval echo '${'$as_ac_var'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941echo "${ECHO_T}$ac_res" >&6; }
11942if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011943 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011945_ACEOF
11946
11947fi
11948done
11949
11950
Douglas Gregor01746742009-05-11 18:05:52 +000011951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011952{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11953echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011954
Reid Spencer86901802004-12-08 23:07:27 +000011955ICC=no
11956IXX=no
11957case $CC in
11958 icc*|icpc*)
11959 ICC=yes
11960 IXX=yes
11961 ;;
11962 *)
11963 ;;
11964esac
11965
Duraid Madina937c60a2006-02-15 07:57:42 +000011966if test "$GCC" != "yes" && test "$ICC" != "yes"
11967then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011968 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11969echo "$as_me: error: gcc|icc required but not found" >&2;}
11970 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011971fi
11972
11973if test "$GXX" != "yes" && test "$IXX" != "yes"
11974then
Eric Christopher73e36da2010-12-08 02:02:14 +000011975 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11976echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011977 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011978fi
11979
Reid Spencer86901802004-12-08 23:07:27 +000011980if test "$GCC" = "yes"
11981then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011982 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000011983#if !defined(__GNUC__) || __GNUC__ < 3
11984#error Unsupported GCC version
11985#endif
11986
11987_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011988rm -f conftest.$ac_objext
11989if { (ac_try="$ac_compile"
11990case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11993esac
11994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_compile") 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006esac
12007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest.$ac_objext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012024 echo "$as_me: failed program was:" >&5
12025sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12028echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12029 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012031
Chris Lattner399c7c72008-02-05 19:43:53 +000012032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012033fi
12034
12035if test -z "$llvm_cv_gnu_make_command"
12036then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012037 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12038echo "$as_me: error: GNU Make required but not found" >&2;}
12039 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012040fi
12041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012042{ echo "$as_me:$LINENO: result: ok" >&5
12043echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012045{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12046echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012047NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012048
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012049NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012050
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012051COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12052
12053{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12054echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012055
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012057
12058{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12059echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12060if test "${ac_cv_lib_m_sin+set}" = set; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012062else
12063 ac_check_lib_save_LIBS=$LIBS
12064LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012065cat >conftest.$ac_ext <<_ACEOF
12066/* confdefs.h. */
12067_ACEOF
12068cat confdefs.h >>conftest.$ac_ext
12069cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012070/* end confdefs.h. */
12071
Reid Spencera773bd52006-08-04 18:18:08 +000012072/* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012075#ifdef __cplusplus
12076extern "C"
12077#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012078char sin ();
12079int
12080main ()
12081{
Reid Spencera773bd52006-08-04 18:18:08 +000012082return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012083 ;
12084 return 0;
12085}
12086_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012087rm -f conftest.$ac_objext conftest$ac_exeext
12088if { (ac_try="$ac_link"
12089case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12092esac
12093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_link") 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105esac
12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115esac
12116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_try") 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012121 ac_cv_lib_m_sin=yes
12122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012128
Bill Wendlingebcceee2009-04-18 11:20:33 +000012129rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012130 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012131LIBS=$ac_check_lib_save_LIBS
12132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012133{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12134echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12135if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012136 cat >>confdefs.h <<_ACEOF
12137#define HAVE_LIBM 1
12138_ACEOF
12139
12140 LIBS="-lm $LIBS"
12141
12142fi
12143
Jeff Cohen28783c32007-01-12 18:22:38 +000012144if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012145
12146{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12147echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12148if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012150else
12151 ac_check_lib_save_LIBS=$LIBS
12152LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012153cat >conftest.$ac_ext <<_ACEOF
12154/* confdefs.h. */
12155_ACEOF
12156cat confdefs.h >>conftest.$ac_ext
12157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012158/* end confdefs.h. */
12159
Reid Spencer48fdf912006-06-01 19:03:21 +000012160
Reid Spencer484fc8e2006-06-01 16:55:59 +000012161int
12162main ()
12163{
Reid Spencera773bd52006-08-04 18:18:08 +000012164return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012165 ;
12166 return 0;
12167}
12168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012169rm -f conftest.$ac_objext conftest$ac_exeext
12170if { (ac_try="$ac_link"
12171case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12174esac
12175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_link") 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187esac
12188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest$ac_exeext'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197esac
12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012203 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012205 echo "$as_me: failed program was:" >&5
12206sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012210
Bill Wendlingebcceee2009-04-18 11:20:33 +000012211rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012212 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012213LIBS=$ac_check_lib_save_LIBS
12214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012215{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12216echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12217if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012218 cat >>confdefs.h <<_ACEOF
12219#define HAVE_LIBIMAGEHLP 1
12220_ACEOF
12221
12222 LIBS="-limagehlp $LIBS"
12223
12224fi
12225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012226
12227{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12228echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12229if test "${ac_cv_lib_psapi_main+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012231else
12232 ac_check_lib_save_LIBS=$LIBS
12233LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012234cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012239/* end confdefs.h. */
12240
Reid Spencer48fdf912006-06-01 19:03:21 +000012241
Reid Spencer484fc8e2006-06-01 16:55:59 +000012242int
12243main ()
12244{
Reid Spencera773bd52006-08-04 18:18:08 +000012245return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012246 ;
12247 return 0;
12248}
12249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250rm -f conftest.$ac_objext conftest$ac_exeext
12251if { (ac_try="$ac_link"
12252case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12255esac
12256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_link") 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12265 { (case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268esac
12269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_try") 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest$ac_exeext'
12275 { (case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278esac
12279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_try") 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012284 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012286 echo "$as_me: failed program was:" >&5
12287sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012291
Bill Wendlingebcceee2009-04-18 11:20:33 +000012292rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012293 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012294LIBS=$ac_check_lib_save_LIBS
12295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012296{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12297echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12298if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012299 cat >>confdefs.h <<_ACEOF
12300#define HAVE_LIBPSAPI 1
12301_ACEOF
12302
12303 LIBS="-lpsapi $LIBS"
12304
12305fi
12306
12307fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012309{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12310echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12311if test "${ac_cv_search_dlopen+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012313else
12314 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012315cat >conftest.$ac_ext <<_ACEOF
12316/* confdefs.h. */
12317_ACEOF
12318cat confdefs.h >>conftest.$ac_ext
12319cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012321
Reid Spencera773bd52006-08-04 18:18:08 +000012322/* Override any GCC internal prototype to avoid an error.
12323 Use char because int might match the return type of a GCC
12324 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012325#ifdef __cplusplus
12326extern "C"
12327#endif
John Criswell7a73b802003-06-30 21:59:07 +000012328char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012329int
12330main ()
12331{
Reid Spencera773bd52006-08-04 18:18:08 +000012332return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012333 ;
12334 return 0;
12335}
12336_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012337for ac_lib in '' dl; do
12338 if test -z "$ac_lib"; then
12339 ac_res="none required"
12340 else
12341 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012343 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012344 rm -f conftest.$ac_objext conftest$ac_exeext
12345if { (ac_try="$ac_link"
12346case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349esac
12350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_link") 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362esac
12363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_try") 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012378 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012379else
12380 echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383
John Criswell7a73b802003-06-30 21:59:07 +000012384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012385
Bill Wendlingebcceee2009-04-18 11:20:33 +000012386rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012387 conftest$ac_exeext
12388 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012389 break
John Criswell7a73b802003-06-30 21:59:07 +000012390fi
Reid Spencera773bd52006-08-04 18:18:08 +000012391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012392if test "${ac_cv_search_dlopen+set}" = set; then
12393 :
Reid Spencera773bd52006-08-04 18:18:08 +000012394else
12395 ac_cv_search_dlopen=no
12396fi
12397rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012398LIBS=$ac_func_search_save_LIBS
12399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012400{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12401echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012402ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012403if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406cat >>confdefs.h <<\_ACEOF
12407#define HAVE_DLOPEN 1
12408_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012409
12410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012411 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12412echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012413fi
12414
12415
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012416if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012417 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12418echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12419if test "${ac_cv_search_ffi_call+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012421else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012422 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012423cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h. */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012428/* end confdefs.h. */
12429
12430/* Override any GCC internal prototype to avoid an error.
12431 Use char because int might match the return type of a GCC
12432 builtin and then its argument prototype would still apply. */
12433#ifdef __cplusplus
12434extern "C"
12435#endif
12436char ffi_call ();
12437int
12438main ()
12439{
12440return ffi_call ();
12441 ;
12442 return 0;
12443}
12444_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012445for ac_lib in '' ffi; do
12446 if test -z "$ac_lib"; then
12447 ac_res="none required"
12448 else
12449 ac_res=-l$ac_lib
12450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12451 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012452 rm -f conftest.$ac_objext conftest$ac_exeext
12453if { (ac_try="$ac_link"
12454case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457esac
12458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_link") 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12467 { (case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12470esac
12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_try") 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest$ac_exeext'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480esac
12481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012486 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012487else
12488 echo "$as_me: failed program was:" >&5
12489sed 's/^/| /' conftest.$ac_ext >&5
12490
12491
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012493
Bill Wendlingebcceee2009-04-18 11:20:33 +000012494rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495 conftest$ac_exeext
12496 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012497 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012498fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012499done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012500if test "${ac_cv_search_ffi_call+set}" = set; then
12501 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012502else
12503 ac_cv_search_ffi_call=no
12504fi
12505rm conftest.$ac_ext
12506LIBS=$ac_func_search_save_LIBS
12507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012508{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12509echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012510ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012511if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012514cat >>confdefs.h <<\_ACEOF
12515#define HAVE_FFI_CALL 1
12516_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012517
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012518else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012519 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12520echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12521 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012522fi
12523
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012524fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012526{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12527echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12528if test "${ac_cv_search_mallinfo+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012530else
12531 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012532cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h. */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012537/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012538
Reid Spencera773bd52006-08-04 18:18:08 +000012539/* Override any GCC internal prototype to avoid an error.
12540 Use char because int might match the return type of a GCC
12541 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012542#ifdef __cplusplus
12543extern "C"
12544#endif
John Criswell7a73b802003-06-30 21:59:07 +000012545char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012546int
12547main ()
12548{
Reid Spencera773bd52006-08-04 18:18:08 +000012549return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012550 ;
12551 return 0;
12552}
12553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012554for ac_lib in '' malloc; do
12555 if test -z "$ac_lib"; then
12556 ac_res="none required"
12557 else
12558 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012560 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012561 rm -f conftest.$ac_objext conftest$ac_exeext
12562if { (ac_try="$ac_link"
12563case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566esac
12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_link") 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579esac
12580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589esac
12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_try") 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012595 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596else
12597 echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600
John Criswell7a73b802003-06-30 21:59:07 +000012601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012602
Bill Wendlingebcceee2009-04-18 11:20:33 +000012603rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012604 conftest$ac_exeext
12605 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012606 break
John Criswell7a73b802003-06-30 21:59:07 +000012607fi
Reid Spencera773bd52006-08-04 18:18:08 +000012608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012609if test "${ac_cv_search_mallinfo+set}" = set; then
12610 :
Reid Spencera773bd52006-08-04 18:18:08 +000012611else
12612 ac_cv_search_mallinfo=no
12613fi
12614rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012615LIBS=$ac_func_search_save_LIBS
12616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012617{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12618echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012619ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012620if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012623cat >>confdefs.h <<\_ACEOF
12624#define HAVE_MALLINFO 1
12625_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012626
12627fi
12628
12629
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012630if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012631
12632{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12633echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12634if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012636else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012637 ac_check_lib_save_LIBS=$LIBS
12638LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012639cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012644/* end confdefs.h. */
12645
Reid Spencera773bd52006-08-04 18:18:08 +000012646/* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012649#ifdef __cplusplus
12650extern "C"
12651#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012652char pthread_mutex_init ();
12653int
12654main ()
12655{
Reid Spencera773bd52006-08-04 18:18:08 +000012656return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012657 ;
12658 return 0;
12659}
12660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012661rm -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
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012695 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012697 echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012702
Bill Wendlingebcceee2009-04-18 11:20:33 +000012703rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012704 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012705LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012707{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12708echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12709if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012710 cat >>confdefs.h <<_ACEOF
12711#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012712_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012713
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012714 LIBS="-lpthread $LIBS"
12715
Reid Spencer22177fe2005-07-12 15:24:20 +000012716fi
12717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012718 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12719echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12720if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012722else
12723 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012724cat >conftest.$ac_ext <<_ACEOF
12725/* confdefs.h. */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012729/* end confdefs.h. */
12730
Reid Spencera773bd52006-08-04 18:18:08 +000012731/* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012734#ifdef __cplusplus
12735extern "C"
12736#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012737char pthread_mutex_lock ();
12738int
12739main ()
12740{
Reid Spencera773bd52006-08-04 18:18:08 +000012741return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012742 ;
12743 return 0;
12744}
12745_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012746for ac_lib in '' pthread; do
12747 if test -z "$ac_lib"; then
12748 ac_res="none required"
12749 else
12750 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012752 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012753 rm -f conftest.$ac_objext conftest$ac_exeext
12754if { (ac_try="$ac_link"
12755case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12758esac
12759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760 (eval "$ac_link") 2>conftest.er1
12761 ac_status=$?
12762 grep -v '^ *+' conftest.er1 >conftest.err
12763 rm -f conftest.er1
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } &&
12767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12768 { (case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771esac
12772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_try") 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest$ac_exeext'
12778 { (case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781esac
12782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_try") 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012787 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012788else
12789 echo "$as_me: failed program was:" >&5
12790sed 's/^/| /' conftest.$ac_ext >&5
12791
12792
Brian Gaeke5f268f72003-12-05 19:29:01 +000012793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012794
Bill Wendlingebcceee2009-04-18 11:20:33 +000012795rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012796 conftest$ac_exeext
12797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012798 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012799fi
Reid Spencera773bd52006-08-04 18:18:08 +000012800done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012801if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12802 :
Reid Spencera773bd52006-08-04 18:18:08 +000012803else
12804 ac_cv_search_pthread_mutex_lock=no
12805fi
12806rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012807LIBS=$ac_func_search_save_LIBS
12808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012809{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12810echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012811ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012812if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815cat >>confdefs.h <<\_ACEOF
12816#define HAVE_PTHREAD_MUTEX_LOCK 1
12817_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012818
12819fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12822echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12823if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012825else
12826 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012827cat >conftest.$ac_ext <<_ACEOF
12828/* confdefs.h. */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012832/* end confdefs.h. */
12833
12834/* Override any GCC internal prototype to avoid an error.
12835 Use char because int might match the return type of a GCC
12836 builtin and then its argument prototype would still apply. */
12837#ifdef __cplusplus
12838extern "C"
12839#endif
12840char pthread_rwlock_init ();
12841int
12842main ()
12843{
12844return pthread_rwlock_init ();
12845 ;
12846 return 0;
12847}
12848_ACEOF
12849for ac_lib in '' pthread; do
12850 if test -z "$ac_lib"; then
12851 ac_res="none required"
12852 else
12853 ac_res=-l$ac_lib
12854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12855 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012856 rm -f conftest.$ac_objext conftest$ac_exeext
12857if { (ac_try="$ac_link"
12858case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_link") 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12871 { (case "(($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_try") 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest$ac_exeext'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012890 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
12895
Owen Andersonde8aed22009-06-16 18:20:20 +000012896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012897
Owen Andersonde8aed22009-06-16 18:20:20 +000012898rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012899 conftest$ac_exeext
12900 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012901 break
12902fi
12903done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012904if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12905 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012906else
12907 ac_cv_search_pthread_rwlock_init=no
12908fi
12909rm conftest.$ac_ext
12910LIBS=$ac_func_search_save_LIBS
12911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012912{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12913echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012914ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012918cat >>confdefs.h <<\_ACEOF
12919#define HAVE_PTHREAD_RWLOCK_INIT 1
12920_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012921
12922fi
12923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012924 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12925echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12926if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012928else
12929 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012935/* end confdefs.h. */
12936
12937/* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12940#ifdef __cplusplus
12941extern "C"
12942#endif
12943char pthread_getspecific ();
12944int
12945main ()
12946{
12947return pthread_getspecific ();
12948 ;
12949 return 0;
12950}
12951_ACEOF
12952for ac_lib in '' pthread; do
12953 if test -z "$ac_lib"; then
12954 ac_res="none required"
12955 else
12956 ac_res=-l$ac_lib
12957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12958 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959 rm -f conftest.$ac_objext conftest$ac_exeext
12960if { (ac_try="$ac_link"
12961case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12964esac
12965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966 (eval "$ac_link") 2>conftest.er1
12967 ac_status=$?
12968 grep -v '^ *+' conftest.er1 >conftest.err
12969 rm -f conftest.er1
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest$ac_exeext'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987esac
12988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012993 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012994else
12995 echo "$as_me: failed program was:" >&5
12996sed 's/^/| /' conftest.$ac_ext >&5
12997
12998
Owen Anderson27fcfe12009-06-25 23:10:26 +000012999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000
Owen Anderson27fcfe12009-06-25 23:10:26 +000013001rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013002 conftest$ac_exeext
13003 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013004 break
13005fi
13006done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013007if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13008 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013009else
13010 ac_cv_search_pthread_getspecific=no
13011fi
13012rm conftest.$ac_ext
13013LIBS=$ac_func_search_save_LIBS
13014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013015{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13016echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013017ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013018if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021cat >>confdefs.h <<\_ACEOF
13022#define HAVE_PTHREAD_GETSPECIFIC 1
13023_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013024
13025fi
13026
Reid Spencer0a262ba2005-08-24 10:07:20 +000013027fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013028
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013029
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013030# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013032 withval=$with_udis86;
13033 USE_UDIS86=1
13034
13035 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013036 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013037 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13038 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013039
13040{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13041echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13042if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013044else
13045 ac_check_lib_save_LIBS=$LIBS
13046LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013052/* end confdefs.h. */
13053
13054/* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057#ifdef __cplusplus
13058extern "C"
13059#endif
13060char ud_init ();
13061int
13062main ()
13063{
13064return ud_init ();
13065 ;
13066 return 0;
13067}
13068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013069rm -f conftest.$ac_objext conftest$ac_exeext
13070if { (ac_try="$ac_link"
13071case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074esac
13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_link") 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087esac
13088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
13098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_try") 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013103 ac_cv_lib_udis86_ud_init=yes
13104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105 echo "$as_me: failed program was:" >&5
13106sed 's/^/| /' conftest.$ac_ext >&5
13107
13108 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110
Bill Wendlingebcceee2009-04-18 11:20:33 +000013111rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013112 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013113LIBS=$ac_check_lib_save_LIBS
13114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013115{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13116echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13117if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013118 cat >>confdefs.h <<_ACEOF
13119#define HAVE_LIBUDIS86 1
13120_ACEOF
13121
13122 LIBS="-ludis86 $LIBS"
13123
13124else
13125
13126 echo "Error! You need to have libudis86 around."
13127 exit -1
13128
13129fi
13130
13131
13132else
13133 USE_UDIS86=0
13134
13135fi
13136
13137
13138cat >>confdefs.h <<_ACEOF
13139#define USE_UDIS86 $USE_UDIS86
13140_ACEOF
13141
13142
13143
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013144# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013146 withval=$with_oprofile;
13147 USE_OPROFILE=1
13148
13149 case "$withval" in
13150 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013151 no) llvm_cv_oppath=
13152 USE_OPROFILE=0
13153 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013154 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013155 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013156 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013157 case $llvm_cv_os_type in
13158 Linux)
13159 if test -n "$llvm_cv_oppath" ; then
13160 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13161 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013162echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13163if test "${ac_cv_search_bfd_init+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013165else
13166 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013167cat >conftest.$ac_ext <<_ACEOF
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013172/* end confdefs.h. */
13173
13174/* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13177#ifdef __cplusplus
13178extern "C"
13179#endif
13180char bfd_init ();
13181int
13182main ()
13183{
13184return bfd_init ();
13185 ;
13186 return 0;
13187}
13188_ACEOF
13189for ac_lib in '' bfd; do
13190 if test -z "$ac_lib"; then
13191 ac_res="none required"
13192 else
13193 ac_res=-l$ac_lib
13194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13195 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013196 rm -f conftest.$ac_objext conftest$ac_exeext
13197if { (ac_try="$ac_link"
13198case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201esac
13202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_link") 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest$ac_exeext'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224esac
13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013230 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013231else
13232 echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013237
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013238rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239 conftest$ac_exeext
13240 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013241 break
13242fi
13243done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013244if test "${ac_cv_search_bfd_init+set}" = set; then
13245 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013246else
13247 ac_cv_search_bfd_init=no
13248fi
13249rm conftest.$ac_ext
13250LIBS=$ac_func_search_save_LIBS
13251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013252{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13253echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013254ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013255if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13257
13258fi
13259
Eli Bendersky61b18512012-03-13 08:33:15 +000013260 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013261echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13262if test "${ac_cv_search_op_open_agent+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013264else
13265 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266cat >conftest.$ac_ext <<_ACEOF
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013271/* end confdefs.h. */
13272
13273/* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13276#ifdef __cplusplus
13277extern "C"
13278#endif
13279char op_open_agent ();
13280int
13281main ()
13282{
13283return op_open_agent ();
13284 ;
13285 return 0;
13286}
13287_ACEOF
13288for ac_lib in '' opagent; do
13289 if test -z "$ac_lib"; then
13290 ac_res="none required"
13291 else
13292 ac_res=-l$ac_lib
13293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13294 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013295 rm -f conftest.$ac_objext conftest$ac_exeext
13296if { (ac_try="$ac_link"
13297case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_link") 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13310 { (case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313esac
13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_try") 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest$ac_exeext'
13320 { (case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323esac
13324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_try") 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013329 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013330else
13331 echo "$as_me: failed program was:" >&5
13332sed 's/^/| /' conftest.$ac_ext >&5
13333
13334
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013336
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013337rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013338 conftest$ac_exeext
13339 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013340 break
13341fi
13342done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013343if test "${ac_cv_search_op_open_agent+set}" = set; then
13344 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013345else
13346 ac_cv_search_op_open_agent=no
13347fi
13348rm conftest.$ac_ext
13349LIBS=$ac_func_search_save_LIBS
13350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013351{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13352echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013353ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013354if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13356
13357else
13358
Eli Bendersky61b18512012-03-13 08:33:15 +000013359 echo "Error! You need to have libopagent around."
13360 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013361
13362fi
13363
Eli Bendersky61b18512012-03-13 08:33:15 +000013364 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13366echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13367if test "${ac_cv_header_opagent_h+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369fi
13370{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13371echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13372else
13373 # Is the header compilable?
13374{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13375echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13376cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h. */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
13381/* end confdefs.h. */
13382$ac_includes_default
13383#include <opagent.h>
13384_ACEOF
13385rm -f conftest.$ac_objext
13386if { (ac_try="$ac_compile"
13387case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13390esac
13391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_compile") 2>conftest.er1
13393 ac_status=$?
13394 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13400 { (case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_try") 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_header_compiler=yes
13420else
13421 echo "$as_me: failed program was:" >&5
13422sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013424 ac_header_compiler=no
13425fi
13426
13427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13429echo "${ECHO_T}$ac_header_compiler" >&6; }
13430
13431# Is the header present?
13432{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13433echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13434cat >conftest.$ac_ext <<_ACEOF
13435/* confdefs.h. */
13436_ACEOF
13437cat confdefs.h >>conftest.$ac_ext
13438cat >>conftest.$ac_ext <<_ACEOF
13439/* end confdefs.h. */
13440#include <opagent.h>
13441_ACEOF
13442if { (ac_try="$ac_cpp conftest.$ac_ext"
13443case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13446esac
13447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } >/dev/null; then
13455 if test -s conftest.err; then
13456 ac_cpp_err=$ac_c_preproc_warn_flag
13457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13458 else
13459 ac_cpp_err=
13460 fi
13461else
13462 ac_cpp_err=yes
13463fi
13464if test -z "$ac_cpp_err"; then
13465 ac_header_preproc=yes
13466else
13467 echo "$as_me: failed program was:" >&5
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 ac_header_preproc=no
13471fi
13472
13473rm -f conftest.err conftest.$ac_ext
13474{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13475echo "${ECHO_T}$ac_header_preproc" >&6; }
13476
13477# So? What about this header?
13478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13479 yes:no: )
13480 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13481echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13483echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13484 ac_header_preproc=yes
13485 ;;
13486 no:yes:* )
13487 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13488echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13490echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13492echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13494echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13496echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13498echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13499 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013500## ------------------------------------ ##
13501## Report this to http://llvm.org/bugs/ ##
13502## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503_ASBOX
13504 ) | sed "s/^/$as_me: WARNING: /" >&2
13505 ;;
13506esac
13507{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13508echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13509if test "${ac_cv_header_opagent_h+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511else
13512 ac_cv_header_opagent_h=$ac_header_preproc
13513fi
13514{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13515echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13516
13517fi
13518if test $ac_cv_header_opagent_h = yes; then
13519 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013520else
13521
Eli Bendersky61b18512012-03-13 08:33:15 +000013522 echo "Error! You need to have opagent.h around."
13523 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013524
13525fi
13526
13527
Eli Bendersky61b18512012-03-13 08:33:15 +000013528 fi ;;
13529 *)
13530 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13531echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13532 { (exit 1); exit 1; }; } ;;
13533 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013534
13535else
13536
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013537 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013538
13539
13540fi
13541
13542
13543cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013544#define LLVM_USE_OPROFILE $USE_OPROFILE
13545_ACEOF
13546
13547
13548
13549# Check whether --with-intel-jitevents was given.
13550if test "${with_intel_jitevents+set}" = set; then
13551 withval=$with_intel_jitevents;
13552 case $llvm_cv_os_type in
13553 Linux|Win32|Cygwin|MingW) ;;
13554 *)
13555 { { echo "$as_me:$LINENO: error:
13556 Intel JIT API support is available on Linux and Windows only.\"" >&5
13557echo "$as_me: error:
13558 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13559 { (exit 1); exit 1; }; } ;;
13560 esac
13561
13562 USE_INTEL_JITEVENTS=1
13563
13564 case "$llvm_cv_target_arch" in
13565 x86) llvm_intel_jitevents_archdir="lib32";;
13566 x86_64) llvm_intel_jitevents_archdir="lib64";;
13567 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13568 exit -1;;
13569 esac
13570 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13571 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13572 case "$withval" in
13573 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13574 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13575 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013576 esac
13577
13578
13579
13580
13581 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christopher42dffa52012-08-03 17:45:31 +000013582 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013583
13584 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13585echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13586if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
13589 ac_func_search_save_LIBS=$LIBS
13590cat >conftest.$ac_ext <<_ACEOF
13591/* confdefs.h. */
13592_ACEOF
13593cat confdefs.h >>conftest.$ac_ext
13594cat >>conftest.$ac_ext <<_ACEOF
13595/* end confdefs.h. */
13596
13597/* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13600#ifdef __cplusplus
13601extern "C"
13602#endif
13603char iJIT_IsProfilingActive ();
13604int
13605main ()
13606{
13607return iJIT_IsProfilingActive ();
13608 ;
13609 return 0;
13610}
13611_ACEOF
13612for ac_lib in '' jitprofiling; do
13613 if test -z "$ac_lib"; then
13614 ac_res="none required"
13615 else
13616 ac_res=-l$ac_lib
13617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13618 fi
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620if { (ac_try="$ac_link"
13621case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13624esac
13625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_link") 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13634 { (case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637esac
13638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_try") 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13647esac
13648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_try") 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13654else
13655 echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
13658
13659fi
13660
13661rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext
13663 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13664 break
13665fi
13666done
13667if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13668 :
13669else
13670 ac_cv_search_iJIT_IsProfilingActive=no
13671fi
13672rm conftest.$ac_ext
13673LIBS=$ac_func_search_save_LIBS
13674fi
13675{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13676echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13677ac_res=$ac_cv_search_iJIT_IsProfilingActive
13678if test "$ac_res" != no; then
13679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13680
13681else
13682
13683 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13684 exit -1
13685
13686fi
13687
13688 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13689 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13690echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13691if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693fi
13694{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13695echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13696else
13697 # Is the header compilable?
13698{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13699echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13700cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
13705/* end confdefs.h. */
13706$ac_includes_default
13707#include <jitprofiling.h>
13708_ACEOF
13709rm -f conftest.$ac_objext
13710if { (ac_try="$ac_compile"
13711case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714esac
13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_compile") 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_try") 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest.$ac_objext'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737esac
13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_header_compiler=yes
13744else
13745 echo "$as_me: failed program was:" >&5
13746sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_header_compiler=no
13749fi
13750
13751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13753echo "${ECHO_T}$ac_header_compiler" >&6; }
13754
13755# Is the header present?
13756{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13757echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13758cat >conftest.$ac_ext <<_ACEOF
13759/* confdefs.h. */
13760_ACEOF
13761cat confdefs.h >>conftest.$ac_ext
13762cat >>conftest.$ac_ext <<_ACEOF
13763/* end confdefs.h. */
13764#include <jitprofiling.h>
13765_ACEOF
13766if { (ac_try="$ac_cpp conftest.$ac_ext"
13767case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } >/dev/null; then
13779 if test -s conftest.err; then
13780 ac_cpp_err=$ac_c_preproc_warn_flag
13781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13782 else
13783 ac_cpp_err=
13784 fi
13785else
13786 ac_cpp_err=yes
13787fi
13788if test -z "$ac_cpp_err"; then
13789 ac_header_preproc=yes
13790else
13791 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
13794 ac_header_preproc=no
13795fi
13796
13797rm -f conftest.err conftest.$ac_ext
13798{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13799echo "${ECHO_T}$ac_header_preproc" >&6; }
13800
13801# So? What about this header?
13802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13803 yes:no: )
13804 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13805echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13807echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13808 ac_header_preproc=yes
13809 ;;
13810 no:yes:* )
13811 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13812echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13814echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13816echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13818echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13820echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13822echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13823 ( cat <<\_ASBOX
13824## ------------------------------------ ##
13825## Report this to http://llvm.org/bugs/ ##
13826## ------------------------------------ ##
13827_ASBOX
13828 ) | sed "s/^/$as_me: WARNING: /" >&2
13829 ;;
13830esac
13831{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13832echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13833if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13835else
13836 ac_cv_header_jitprofiling_h=$ac_header_preproc
13837fi
13838{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13839echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13840
13841fi
13842if test $ac_cv_header_jitprofiling_h = yes; then
13843 :
13844else
13845
13846 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13847 exit -1
13848
13849fi
13850
13851
13852
13853
13854else
13855
13856 USE_INTEL_JITEVENTS=0
13857
13858
13859fi
13860
13861
13862cat >>confdefs.h <<_ACEOF
13863#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013864_ACEOF
13865
13866
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013867for ac_prog in xml2-config
13868do
13869 # Extract the first word of "$ac_prog", so it can be a program name with args.
13870set dummy $ac_prog; ac_word=$2
13871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13873if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 if test -n "$XML2CONFIG"; then
13877 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13878else
13879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880for as_dir in $PATH
13881do
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13886 ac_cv_prog_XML2CONFIG="$ac_prog"
13887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13889 fi
13890done
13891done
13892IFS=$as_save_IFS
13893
13894fi
13895fi
13896XML2CONFIG=$ac_cv_prog_XML2CONFIG
13897if test -n "$XML2CONFIG"; then
13898 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13899echo "${ECHO_T}$XML2CONFIG" >&6; }
13900else
13901 { echo "$as_me:$LINENO: result: no" >&5
13902echo "${ECHO_T}no" >&6; }
13903fi
13904
13905
13906 test -n "$XML2CONFIG" && break
13907done
13908
13909
13910{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13911echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13912if test "x$XML2CONFIG" = "x"; then
13913 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13914echo "${ECHO_T}xml2-config not found" >&6; }
13915else
13916 LIBXML2_INC=`$XML2CONFIG --cflags`
13917 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13918echo "${ECHO_T}$LIBXML2_INC" >&6; }
13919 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13920echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13921if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923else
13924 ac_check_lib_save_LIBS=$LIBS
13925LIBS="-lxml2 $LIBS"
13926cat >conftest.$ac_ext <<_ACEOF
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932
13933/* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13936#ifdef __cplusplus
13937extern "C"
13938#endif
13939char xmlReadFile ();
13940int
13941main ()
13942{
13943return xmlReadFile ();
13944 ;
13945 return 0;
13946}
13947_ACEOF
13948rm -f conftest.$ac_objext conftest$ac_exeext
13949if { (ac_try="$ac_link"
13950case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953esac
13954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_link") 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13963 { (case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966esac
13967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_try") 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest$ac_exeext'
13973 { (case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_try") 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_lib_xml2_xmlReadFile=yes
13983else
13984 echo "$as_me: failed program was:" >&5
13985sed 's/^/| /' conftest.$ac_ext >&5
13986
13987 ac_cv_lib_xml2_xmlReadFile=no
13988fi
13989
13990rm -f core conftest.err conftest.$ac_objext \
13991 conftest$ac_exeext conftest.$ac_ext
13992LIBS=$ac_check_lib_save_LIBS
13993fi
13994{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13995echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13996if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13997
13998cat >>confdefs.h <<\_ACEOF
13999#define CLANG_HAVE_LIBXML 1
14000_ACEOF
14001
14002 LIBXML2_LIBS="-lxml2"
14003fi
14004
14005fi
14006
14007
14008
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014010
14011
14012
14013
14014
Reid Spencer59473af2004-12-25 07:31:29 +000014015ac_header_dirent=no
14016for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014017 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14018{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14019echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014022else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023 cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014028/* end confdefs.h. */
14029#include <sys/types.h>
14030#include <$ac_hdr>
14031
14032int
14033main ()
14034{
14035if ((DIR *) 0)
14036return 0;
14037 ;
14038 return 0;
14039}
14040_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041rm -f conftest.$ac_objext
14042if { (ac_try="$ac_compile"
14043case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_compile") 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14056 { (case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059esac
14060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_try") 2>&5
14062 ac_status=$?
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; } &&
14065 { ac_try='test -s conftest.$ac_objext'
14066 { (case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069esac
14070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_try") 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014075 eval "$as_ac_Header=yes"
14076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014077 echo "$as_me: failed program was:" >&5
14078sed 's/^/| /' conftest.$ac_ext >&5
14079
14080 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014082
Reid Spencera773bd52006-08-04 18:18:08 +000014083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014085ac_res=`eval echo '${'$as_ac_Header'}'`
14086 { echo "$as_me:$LINENO: result: $ac_res" >&5
14087echo "${ECHO_T}$ac_res" >&6; }
14088if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014089 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014091_ACEOF
14092
14093ac_header_dirent=$ac_hdr; break
14094fi
14095
14096done
14097# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14098if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014099 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14100echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14101if test "${ac_cv_search_opendir+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014103else
14104 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105cat >conftest.$ac_ext <<_ACEOF
14106/* confdefs.h. */
14107_ACEOF
14108cat confdefs.h >>conftest.$ac_ext
14109cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014110/* end confdefs.h. */
14111
Reid Spencera773bd52006-08-04 18:18:08 +000014112/* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014115#ifdef __cplusplus
14116extern "C"
14117#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014118char opendir ();
14119int
14120main ()
14121{
Reid Spencera773bd52006-08-04 18:18:08 +000014122return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014123 ;
14124 return 0;
14125}
14126_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014127for ac_lib in '' dir; do
14128 if test -z "$ac_lib"; then
14129 ac_res="none required"
14130 else
14131 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014133 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134 rm -f conftest.$ac_objext conftest$ac_exeext
14135if { (ac_try="$ac_link"
14136case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139esac
14140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_link") 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152esac
14153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest$ac_exeext'
14159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162esac
14163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014168 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169else
14170 echo "$as_me: failed program was:" >&5
14171sed 's/^/| /' conftest.$ac_ext >&5
14172
14173
Reid Spencer59473af2004-12-25 07:31:29 +000014174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175
Bill Wendlingebcceee2009-04-18 11:20:33 +000014176rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177 conftest$ac_exeext
14178 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014179 break
Reid Spencer59473af2004-12-25 07:31:29 +000014180fi
Reid Spencera773bd52006-08-04 18:18:08 +000014181done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182if test "${ac_cv_search_opendir+set}" = set; then
14183 :
Reid Spencera773bd52006-08-04 18:18:08 +000014184else
14185 ac_cv_search_opendir=no
14186fi
14187rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014188LIBS=$ac_func_search_save_LIBS
14189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014190{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14191echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014192ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014195
14196fi
14197
14198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014199 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14200echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14201if test "${ac_cv_search_opendir+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014203else
14204 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014205cat >conftest.$ac_ext <<_ACEOF
14206/* confdefs.h. */
14207_ACEOF
14208cat confdefs.h >>conftest.$ac_ext
14209cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014210/* end confdefs.h. */
14211
Reid Spencera773bd52006-08-04 18:18:08 +000014212/* Override any GCC internal prototype to avoid an error.
14213 Use char because int might match the return type of a GCC
14214 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014215#ifdef __cplusplus
14216extern "C"
14217#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014218char opendir ();
14219int
14220main ()
14221{
Reid Spencera773bd52006-08-04 18:18:08 +000014222return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014223 ;
14224 return 0;
14225}
14226_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014227for ac_lib in '' x; do
14228 if test -z "$ac_lib"; then
14229 ac_res="none required"
14230 else
14231 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014233 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234 rm -f conftest.$ac_objext conftest$ac_exeext
14235if { (ac_try="$ac_link"
14236case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_link") 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252esac
14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest$ac_exeext'
14259 { (case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14262esac
14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_try") 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014268 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014269else
14270 echo "$as_me: failed program was:" >&5
14271sed 's/^/| /' conftest.$ac_ext >&5
14272
14273
Reid Spencer59473af2004-12-25 07:31:29 +000014274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275
Bill Wendlingebcceee2009-04-18 11:20:33 +000014276rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014277 conftest$ac_exeext
14278 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014279 break
Reid Spencer59473af2004-12-25 07:31:29 +000014280fi
Reid Spencera773bd52006-08-04 18:18:08 +000014281done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282if test "${ac_cv_search_opendir+set}" = set; then
14283 :
Reid Spencera773bd52006-08-04 18:18:08 +000014284else
14285 ac_cv_search_opendir=no
14286fi
14287rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014288LIBS=$ac_func_search_save_LIBS
14289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014290{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14291echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014292ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014295
14296fi
14297
14298fi
14299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14301echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14302if test "${ac_cv_header_mmap_anon+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014304else
14305 ac_ext=c
14306ac_cpp='$CPP $CPPFLAGS'
14307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14309ac_compiler_gnu=$ac_cv_c_compiler_gnu
14310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311 cat >conftest.$ac_ext <<_ACEOF
14312/* confdefs.h. */
14313_ACEOF
14314cat confdefs.h >>conftest.$ac_ext
14315cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014316/* end confdefs.h. */
14317#include <sys/mman.h>
14318#include <unistd.h>
14319#include <fcntl.h>
14320int
14321main ()
14322{
14323mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14324 ;
14325 return 0;
14326}
14327_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328rm -f conftest.$ac_objext
14329if { (ac_try="$ac_compile"
14330case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333esac
14334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_compile") 2>conftest.er1
14336 ac_status=$?
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14343 { (case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346esac
14347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_try") 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356esac
14357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_try") 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014362 ac_cv_header_mmap_anon=yes
14363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014364 echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369
Reid Spencera773bd52006-08-04 18:18:08 +000014370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014371 ac_ext=c
14372ac_cpp='$CPP $CPPFLAGS'
14373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375ac_compiler_gnu=$ac_cv_c_compiler_gnu
14376
14377
14378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014379{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14380echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014381if test "$ac_cv_header_mmap_anon" = yes; then
14382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014383cat >>confdefs.h <<\_ACEOF
14384#define HAVE_MMAP_ANONYMOUS 1
14385_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014386
14387fi
14388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014389{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14390echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14391if test "${ac_cv_header_stat_broken+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014394 cat >conftest.$ac_ext <<_ACEOF
14395/* confdefs.h. */
14396_ACEOF
14397cat confdefs.h >>conftest.$ac_ext
14398cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014399/* end confdefs.h. */
14400#include <sys/types.h>
14401#include <sys/stat.h>
14402
Reid Spencera773bd52006-08-04 18:18:08 +000014403#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014404# if S_ISBLK (S_IFDIR)
14405You lose.
14406# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014407#endif
14408
Reid Spencera773bd52006-08-04 18:18:08 +000014409#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410# if S_ISBLK (S_IFCHR)
14411You lose.
14412# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014413#endif
14414
Reid Spencera773bd52006-08-04 18:18:08 +000014415#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014416# if S_ISLNK (S_IFREG)
14417You lose.
14418# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014419#endif
14420
Reid Spencera773bd52006-08-04 18:18:08 +000014421#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422# if S_ISSOCK (S_IFREG)
14423You lose.
14424# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014425#endif
14426
14427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14429 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014430 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431else
14432 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014434rm -f conftest*
14435
Reid Spencer59473af2004-12-25 07:31:29 +000014436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014437{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14438echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014439if test $ac_cv_header_stat_broken = yes; then
14440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014441cat >>confdefs.h <<\_ACEOF
14442#define STAT_MACROS_BROKEN 1
14443_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014444
14445fi
14446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014447{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14448echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14449if test "${ac_cv_header_sys_wait_h+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014452 cat >conftest.$ac_ext <<_ACEOF
14453/* confdefs.h. */
14454_ACEOF
14455cat confdefs.h >>conftest.$ac_ext
14456cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014458#include <sys/types.h>
14459#include <sys/wait.h>
14460#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014461# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014462#endif
14463#ifndef WIFEXITED
14464# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14465#endif
14466
John Criswell7a73b802003-06-30 21:59:07 +000014467int
14468main ()
14469{
14470 int s;
14471 wait (&s);
14472 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14473 ;
14474 return 0;
14475}
14476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014477rm -f conftest.$ac_objext
14478if { (ac_try="$ac_compile"
14479case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482esac
14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14501 { ac_try='test -s conftest.$ac_objext'
14502 { (case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505esac
14506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_try") 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014511 ac_cv_header_sys_wait_h=yes
14512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014513 echo "$as_me: failed program was:" >&5
14514sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014518
Reid Spencera773bd52006-08-04 18:18:08 +000014519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014521{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14522echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014523if test $ac_cv_header_sys_wait_h = yes; then
14524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014525cat >>confdefs.h <<\_ACEOF
14526#define HAVE_SYS_WAIT_H 1
14527_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014528
14529fi
14530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014531{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14532echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14533if test "${ac_cv_header_time+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536 cat >conftest.$ac_ext <<_ACEOF
14537/* confdefs.h. */
14538_ACEOF
14539cat confdefs.h >>conftest.$ac_ext
14540cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014541/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014542#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014543#include <sys/time.h>
14544#include <time.h>
14545
14546int
14547main ()
14548{
14549if ((struct tm *) 0)
14550return 0;
14551 ;
14552 return 0;
14553}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014554_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555rm -f conftest.$ac_objext
14556if { (ac_try="$ac_compile"
14557case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14563 ac_status=$?
14564 grep -v '^ *+' conftest.er1 >conftest.err
14565 rm -f conftest.er1
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14573esac
14574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014589 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014591 echo "$as_me: failed program was:" >&5
14592sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014596
Reid Spencera773bd52006-08-04 18:18:08 +000014597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014599{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14600echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014601if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014603cat >>confdefs.h <<\_ACEOF
14604#define TIME_WITH_SYS_TIME 1
14605_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014606
14607fi
14608
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014610
14611
14612
14613
14614
14615
Reid Spencer59473af2004-12-25 07:31:29 +000014616for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014617do
14618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624fi
14625ac_res=`eval echo '${'$as_ac_Header'}'`
14626 { echo "$as_me:$LINENO: result: $ac_res" >&5
14627echo "${ECHO_T}$ac_res" >&6; }
14628else
14629 # Is the header compilable?
14630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14632cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
14638$ac_includes_default
14639#include <$ac_header>
14640_ACEOF
14641rm -f conftest.$ac_objext
14642if { (ac_try="$ac_compile"
14643case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14646esac
14647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_compile") 2>conftest.er1
14649 ac_status=$?
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14659esac
14660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_try") 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
14675 ac_header_compiler=yes
14676else
14677 echo "$as_me: failed program was:" >&5
14678sed 's/^/| /' conftest.$ac_ext >&5
14679
14680 ac_header_compiler=no
14681fi
14682
14683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14685echo "${ECHO_T}$ac_header_compiler" >&6; }
14686
14687# Is the header present?
14688{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14690cat >conftest.$ac_ext <<_ACEOF
14691/* confdefs.h. */
14692_ACEOF
14693cat confdefs.h >>conftest.$ac_ext
14694cat >>conftest.$ac_ext <<_ACEOF
14695/* end confdefs.h. */
14696#include <$ac_header>
14697_ACEOF
14698if { (ac_try="$ac_cpp conftest.$ac_ext"
14699case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702esac
14703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } >/dev/null; then
14711 if test -s conftest.err; then
14712 ac_cpp_err=$ac_c_preproc_warn_flag
14713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14714 else
14715 ac_cpp_err=
14716 fi
14717else
14718 ac_cpp_err=yes
14719fi
14720if test -z "$ac_cpp_err"; then
14721 ac_header_preproc=yes
14722else
14723 echo "$as_me: failed program was:" >&5
14724sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 ac_header_preproc=no
14727fi
14728
14729rm -f conftest.err conftest.$ac_ext
14730{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14731echo "${ECHO_T}$ac_header_preproc" >&6; }
14732
14733# So? What about this header?
14734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14735 yes:no: )
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14740 ac_header_preproc=yes
14741 ;;
14742 no:yes:* )
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14755 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014756## ------------------------------------ ##
14757## Report this to http://llvm.org/bugs/ ##
14758## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014759_ASBOX
14760 ) | sed "s/^/$as_me: WARNING: /" >&2
14761 ;;
14762esac
14763{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767else
14768 eval "$as_ac_Header=\$ac_header_preproc"
14769fi
14770ac_res=`eval echo '${'$as_ac_Header'}'`
14771 { echo "$as_me:$LINENO: result: $ac_res" >&5
14772echo "${ECHO_T}$ac_res" >&6; }
14773
14774fi
14775if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014776 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014778_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014779
14780fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014781
Reid Spencer59473af2004-12-25 07:31:29 +000014782done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014784
14785
14786
14787
14788
14789
Douglas Gregor071d73d2009-05-18 17:21:34 +000014790for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014791do
14792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798fi
14799ac_res=`eval echo '${'$as_ac_Header'}'`
14800 { echo "$as_me:$LINENO: result: $ac_res" >&5
14801echo "${ECHO_T}$ac_res" >&6; }
14802else
14803 # Is the header compilable?
14804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14806cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h. */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h. */
14812$ac_includes_default
14813#include <$ac_header>
14814_ACEOF
14815rm -f conftest.$ac_objext
14816if { (ac_try="$ac_compile"
14817case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14820esac
14821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_compile") 2>conftest.er1
14823 ac_status=$?
14824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14830 { (case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833esac
14834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_try") 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14843esac
14844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_try") 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_header_compiler=yes
14850else
14851 echo "$as_me: failed program was:" >&5
14852sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 ac_header_compiler=no
14855fi
14856
14857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14859echo "${ECHO_T}$ac_header_compiler" >&6; }
14860
14861# Is the header present?
14862{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14864cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h. */
14870#include <$ac_header>
14871_ACEOF
14872if { (ac_try="$ac_cpp conftest.$ac_ext"
14873case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876esac
14877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } >/dev/null; then
14885 if test -s conftest.err; then
14886 ac_cpp_err=$ac_c_preproc_warn_flag
14887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14888 else
14889 ac_cpp_err=
14890 fi
14891else
14892 ac_cpp_err=yes
14893fi
14894if test -z "$ac_cpp_err"; then
14895 ac_header_preproc=yes
14896else
14897 echo "$as_me: failed program was:" >&5
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
14900 ac_header_preproc=no
14901fi
14902
14903rm -f conftest.err conftest.$ac_ext
14904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14905echo "${ECHO_T}$ac_header_preproc" >&6; }
14906
14907# So? What about this header?
14908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14909 yes:no: )
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14914 ac_header_preproc=yes
14915 ;;
14916 no:yes:* )
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14929 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014930## ------------------------------------ ##
14931## Report this to http://llvm.org/bugs/ ##
14932## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933_ASBOX
14934 ) | sed "s/^/$as_me: WARNING: /" >&2
14935 ;;
14936esac
14937{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14941else
14942 eval "$as_ac_Header=\$ac_header_preproc"
14943fi
14944ac_res=`eval echo '${'$as_ac_Header'}'`
14945 { echo "$as_me:$LINENO: result: $ac_res" >&5
14946echo "${ECHO_T}$ac_res" >&6; }
14947
14948fi
14949if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014950 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014952_ACEOF
14953
14954fi
14955
14956done
14957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014958
14959
Douglas Gregor071d73d2009-05-18 17:21:34 +000014960for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014961do
14962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968fi
14969ac_res=`eval echo '${'$as_ac_Header'}'`
14970 { echo "$as_me:$LINENO: result: $ac_res" >&5
14971echo "${ECHO_T}$ac_res" >&6; }
14972else
14973 # Is the header compilable?
14974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14976cat >conftest.$ac_ext <<_ACEOF
14977/* confdefs.h. */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h. */
14982$ac_includes_default
14983#include <$ac_header>
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (ac_try="$ac_compile"
14987case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_compile") 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15003esac
15004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
15010 { (case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013esac
15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_try") 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_header_compiler=yes
15020else
15021 echo "$as_me: failed program was:" >&5
15022sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 ac_header_compiler=no
15025fi
15026
15027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15029echo "${ECHO_T}$ac_header_compiler" >&6; }
15030
15031# Is the header present?
15032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15034cat >conftest.$ac_ext <<_ACEOF
15035/* confdefs.h. */
15036_ACEOF
15037cat confdefs.h >>conftest.$ac_ext
15038cat >>conftest.$ac_ext <<_ACEOF
15039/* end confdefs.h. */
15040#include <$ac_header>
15041_ACEOF
15042if { (ac_try="$ac_cpp conftest.$ac_ext"
15043case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046esac
15047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15049 ac_status=$?
15050 grep -v '^ *+' conftest.er1 >conftest.err
15051 rm -f conftest.er1
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } >/dev/null; then
15055 if test -s conftest.err; then
15056 ac_cpp_err=$ac_c_preproc_warn_flag
15057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15058 else
15059 ac_cpp_err=
15060 fi
15061else
15062 ac_cpp_err=yes
15063fi
15064if test -z "$ac_cpp_err"; then
15065 ac_header_preproc=yes
15066else
15067 echo "$as_me: failed program was:" >&5
15068sed 's/^/| /' conftest.$ac_ext >&5
15069
15070 ac_header_preproc=no
15071fi
15072
15073rm -f conftest.err conftest.$ac_ext
15074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15075echo "${ECHO_T}$ac_header_preproc" >&6; }
15076
15077# So? What about this header?
15078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15079 yes:no: )
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15084 ac_header_preproc=yes
15085 ;;
15086 no:yes:* )
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15099 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015100## ------------------------------------ ##
15101## Report this to http://llvm.org/bugs/ ##
15102## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015103_ASBOX
15104 ) | sed "s/^/$as_me: WARNING: /" >&2
15105 ;;
15106esac
15107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111else
15112 eval "$as_ac_Header=\$ac_header_preproc"
15113fi
15114ac_res=`eval echo '${'$as_ac_Header'}'`
15115 { echo "$as_me:$LINENO: result: $ac_res" >&5
15116echo "${ECHO_T}$ac_res" >&6; }
15117
15118fi
15119if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015120 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015122_ACEOF
15123
15124fi
15125
15126done
Reid Spencer59473af2004-12-25 07:31:29 +000015127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015128
15129
15130
15131
Daniel Dunbar3e462932011-02-03 02:40:02 +000015132
15133for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015134do
15135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141fi
15142ac_res=`eval echo '${'$as_ac_Header'}'`
15143 { echo "$as_me:$LINENO: result: $ac_res" >&5
15144echo "${ECHO_T}$ac_res" >&6; }
15145else
15146 # Is the header compilable?
15147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15149cat >conftest.$ac_ext <<_ACEOF
15150/* confdefs.h. */
15151_ACEOF
15152cat confdefs.h >>conftest.$ac_ext
15153cat >>conftest.$ac_ext <<_ACEOF
15154/* end confdefs.h. */
15155$ac_includes_default
15156#include <$ac_header>
15157_ACEOF
15158rm -f conftest.$ac_objext
15159if { (ac_try="$ac_compile"
15160case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163esac
15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_compile") 2>conftest.er1
15166 ac_status=$?
15167 grep -v '^ *+' conftest.er1 >conftest.err
15168 rm -f conftest.er1
15169 cat conftest.err >&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } &&
15172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15173 { (case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15176esac
15177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_try") 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (case "(($ac_try" in
15184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185 *) ac_try_echo=$ac_try;;
15186esac
15187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15188 (eval "$ac_try") 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_header_compiler=yes
15193else
15194 echo "$as_me: failed program was:" >&5
15195sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 ac_header_compiler=no
15198fi
15199
15200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15202echo "${ECHO_T}$ac_header_compiler" >&6; }
15203
15204# Is the header present?
15205{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15207cat >conftest.$ac_ext <<_ACEOF
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213#include <$ac_header>
15214_ACEOF
15215if { (ac_try="$ac_cpp conftest.$ac_ext"
15216case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } >/dev/null; then
15228 if test -s conftest.err; then
15229 ac_cpp_err=$ac_c_preproc_warn_flag
15230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15231 else
15232 ac_cpp_err=
15233 fi
15234else
15235 ac_cpp_err=yes
15236fi
15237if test -z "$ac_cpp_err"; then
15238 ac_header_preproc=yes
15239else
15240 echo "$as_me: failed program was:" >&5
15241sed 's/^/| /' conftest.$ac_ext >&5
15242
15243 ac_header_preproc=no
15244fi
15245
15246rm -f conftest.err conftest.$ac_ext
15247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15248echo "${ECHO_T}$ac_header_preproc" >&6; }
15249
15250# So? What about this header?
15251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15252 yes:no: )
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15257 ac_header_preproc=yes
15258 ;;
15259 no:yes:* )
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15272 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015273## ------------------------------------ ##
15274## Report this to http://llvm.org/bugs/ ##
15275## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276_ASBOX
15277 ) | sed "s/^/$as_me: WARNING: /" >&2
15278 ;;
15279esac
15280{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284else
15285 eval "$as_ac_Header=\$ac_header_preproc"
15286fi
15287ac_res=`eval echo '${'$as_ac_Header'}'`
15288 { echo "$as_me:$LINENO: result: $ac_res" >&5
15289echo "${ECHO_T}$ac_res" >&6; }
15290
15291fi
15292if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015293 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015295_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015296
15297fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015298
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015299done
15300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015301
15302
15303
15304
Douglas Gregor01746742009-05-11 18:05:52 +000015305for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015306do
15307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313fi
15314ac_res=`eval echo '${'$as_ac_Header'}'`
15315 { echo "$as_me:$LINENO: result: $ac_res" >&5
15316echo "${ECHO_T}$ac_res" >&6; }
15317else
15318 # Is the header compilable?
15319{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15321cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327$ac_includes_default
15328#include <$ac_header>
15329_ACEOF
15330rm -f conftest.$ac_objext
15331if { (ac_try="$ac_compile"
15332case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335esac
15336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_compile") 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15345 { (case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348esac
15349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_try") 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest.$ac_objext'
15355 { (case "(($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_try") 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_header_compiler=yes
15365else
15366 echo "$as_me: failed program was:" >&5
15367sed 's/^/| /' conftest.$ac_ext >&5
15368
15369 ac_header_compiler=no
15370fi
15371
15372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15374echo "${ECHO_T}$ac_header_compiler" >&6; }
15375
15376# Is the header present?
15377{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15378echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15379cat >conftest.$ac_ext <<_ACEOF
15380/* confdefs.h. */
15381_ACEOF
15382cat confdefs.h >>conftest.$ac_ext
15383cat >>conftest.$ac_ext <<_ACEOF
15384/* end confdefs.h. */
15385#include <$ac_header>
15386_ACEOF
15387if { (ac_try="$ac_cpp conftest.$ac_ext"
15388case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15391esac
15392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } >/dev/null; then
15400 if test -s conftest.err; then
15401 ac_cpp_err=$ac_c_preproc_warn_flag
15402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15403 else
15404 ac_cpp_err=
15405 fi
15406else
15407 ac_cpp_err=yes
15408fi
15409if test -z "$ac_cpp_err"; then
15410 ac_header_preproc=yes
15411else
15412 echo "$as_me: failed program was:" >&5
15413sed 's/^/| /' conftest.$ac_ext >&5
15414
15415 ac_header_preproc=no
15416fi
15417
15418rm -f conftest.err conftest.$ac_ext
15419{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15420echo "${ECHO_T}$ac_header_preproc" >&6; }
15421
15422# So? What about this header?
15423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15424 yes:no: )
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15429 ac_header_preproc=yes
15430 ;;
15431 no:yes:* )
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15444 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015445## ------------------------------------ ##
15446## Report this to http://llvm.org/bugs/ ##
15447## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015448_ASBOX
15449 ) | sed "s/^/$as_me: WARNING: /" >&2
15450 ;;
15451esac
15452{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456else
15457 eval "$as_ac_Header=\$ac_header_preproc"
15458fi
15459ac_res=`eval echo '${'$as_ac_Header'}'`
15460 { echo "$as_me:$LINENO: result: $ac_res" >&5
15461echo "${ECHO_T}$ac_res" >&6; }
15462
15463fi
15464if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015465 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015467_ACEOF
15468
15469fi
15470
15471done
15472
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015473
15474for ac_header in valgrind/valgrind.h
15475do
15476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15482fi
15483ac_res=`eval echo '${'$as_ac_Header'}'`
15484 { echo "$as_me:$LINENO: result: $ac_res" >&5
15485echo "${ECHO_T}$ac_res" >&6; }
15486else
15487 # Is the header compilable?
15488{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15490cat >conftest.$ac_ext <<_ACEOF
15491/* confdefs.h. */
15492_ACEOF
15493cat confdefs.h >>conftest.$ac_ext
15494cat >>conftest.$ac_ext <<_ACEOF
15495/* end confdefs.h. */
15496$ac_includes_default
15497#include <$ac_header>
15498_ACEOF
15499rm -f conftest.$ac_objext
15500if { (ac_try="$ac_compile"
15501case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15504esac
15505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_compile") 2>conftest.er1
15507 ac_status=$?
15508 grep -v '^ *+' conftest.er1 >conftest.err
15509 rm -f conftest.er1
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15517esac
15518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527esac
15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_header_compiler=yes
15534else
15535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538 ac_header_compiler=no
15539fi
15540
15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15543echo "${ECHO_T}$ac_header_compiler" >&6; }
15544
15545# Is the header present?
15546{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15548cat >conftest.$ac_ext <<_ACEOF
15549/* confdefs.h. */
15550_ACEOF
15551cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */
15554#include <$ac_header>
15555_ACEOF
15556if { (ac_try="$ac_cpp conftest.$ac_ext"
15557case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15560esac
15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } >/dev/null; then
15569 if test -s conftest.err; then
15570 ac_cpp_err=$ac_c_preproc_warn_flag
15571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15572 else
15573 ac_cpp_err=
15574 fi
15575else
15576 ac_cpp_err=yes
15577fi
15578if test -z "$ac_cpp_err"; then
15579 ac_header_preproc=yes
15580else
15581 echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584 ac_header_preproc=no
15585fi
15586
15587rm -f conftest.err conftest.$ac_ext
15588{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15589echo "${ECHO_T}$ac_header_preproc" >&6; }
15590
15591# So? What about this header?
15592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15593 yes:no: )
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15595echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15597echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15598 ac_header_preproc=yes
15599 ;;
15600 no:yes:* )
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15606echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15608echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15610echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15612echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15613 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015614## ------------------------------------ ##
15615## Report this to http://llvm.org/bugs/ ##
15616## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015617_ASBOX
15618 ) | sed "s/^/$as_me: WARNING: /" >&2
15619 ;;
15620esac
15621{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625else
15626 eval "$as_ac_Header=\$ac_header_preproc"
15627fi
15628ac_res=`eval echo '${'$as_ac_Header'}'`
15629 { echo "$as_me:$LINENO: result: $ac_res" >&5
15630echo "${ECHO_T}$ac_res" >&6; }
15631
15632fi
15633if test `eval echo '${'$as_ac_Header'}'` = yes; then
15634 cat >>confdefs.h <<_ACEOF
15635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15636_ACEOF
15637
15638fi
15639
15640done
15641
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015642
15643for ac_header in fenv.h
15644do
15645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651fi
15652ac_res=`eval echo '${'$as_ac_Header'}'`
15653 { echo "$as_me:$LINENO: result: $ac_res" >&5
15654echo "${ECHO_T}$ac_res" >&6; }
15655else
15656 # Is the header compilable?
15657{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15659cat >conftest.$ac_ext <<_ACEOF
15660/* confdefs.h. */
15661_ACEOF
15662cat confdefs.h >>conftest.$ac_ext
15663cat >>conftest.$ac_ext <<_ACEOF
15664/* end confdefs.h. */
15665$ac_includes_default
15666#include <$ac_header>
15667_ACEOF
15668rm -f conftest.$ac_objext
15669if { (ac_try="$ac_compile"
15670case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_compile") 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15683 { (case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15686esac
15687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_try") 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15696esac
15697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_try") 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_header_compiler=yes
15703else
15704 echo "$as_me: failed program was:" >&5
15705sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 ac_header_compiler=no
15708fi
15709
15710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15712echo "${ECHO_T}$ac_header_compiler" >&6; }
15713
15714# Is the header present?
15715{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15717cat >conftest.$ac_ext <<_ACEOF
15718/* confdefs.h. */
15719_ACEOF
15720cat confdefs.h >>conftest.$ac_ext
15721cat >>conftest.$ac_ext <<_ACEOF
15722/* end confdefs.h. */
15723#include <$ac_header>
15724_ACEOF
15725if { (ac_try="$ac_cpp conftest.$ac_ext"
15726case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15729esac
15730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } >/dev/null; then
15738 if test -s conftest.err; then
15739 ac_cpp_err=$ac_c_preproc_warn_flag
15740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15741 else
15742 ac_cpp_err=
15743 fi
15744else
15745 ac_cpp_err=yes
15746fi
15747if test -z "$ac_cpp_err"; then
15748 ac_header_preproc=yes
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_header_preproc=no
15754fi
15755
15756rm -f conftest.err conftest.$ac_ext
15757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15758echo "${ECHO_T}$ac_header_preproc" >&6; }
15759
15760# So? What about this header?
15761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15762 yes:no: )
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15767 ac_header_preproc=yes
15768 ;;
15769 no:yes:* )
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15782 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015783## ------------------------------------ ##
15784## Report this to http://llvm.org/bugs/ ##
15785## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015786_ASBOX
15787 ) | sed "s/^/$as_me: WARNING: /" >&2
15788 ;;
15789esac
15790{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794else
15795 eval "$as_ac_Header=\$ac_header_preproc"
15796fi
15797ac_res=`eval echo '${'$as_ac_Header'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799echo "${ECHO_T}$ac_res" >&6; }
15800
15801fi
15802if test `eval echo '${'$as_ac_Header'}'` = yes; then
15803 cat >>confdefs.h <<_ACEOF
15804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15805_ACEOF
15806
15807fi
15808
15809done
15810
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015811if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015812
15813for ac_header in pthread.h
15814do
15815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821fi
15822ac_res=`eval echo '${'$as_ac_Header'}'`
15823 { echo "$as_me:$LINENO: result: $ac_res" >&5
15824echo "${ECHO_T}$ac_res" >&6; }
15825else
15826 # Is the header compilable?
15827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15829cat >conftest.$ac_ext <<_ACEOF
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835$ac_includes_default
15836#include <$ac_header>
15837_ACEOF
15838rm -f conftest.$ac_objext
15839if { (ac_try="$ac_compile"
15840case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_compile") 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15853 { (case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15856esac
15857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_try") 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866esac
15867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_try") 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 ac_header_compiler=yes
15873else
15874 echo "$as_me: failed program was:" >&5
15875sed 's/^/| /' conftest.$ac_ext >&5
15876
15877 ac_header_compiler=no
15878fi
15879
15880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15882echo "${ECHO_T}$ac_header_compiler" >&6; }
15883
15884# Is the header present?
15885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15887cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h. */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h. */
15893#include <$ac_header>
15894_ACEOF
15895if { (ac_try="$ac_cpp conftest.$ac_ext"
15896case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899esac
15900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } >/dev/null; then
15908 if test -s conftest.err; then
15909 ac_cpp_err=$ac_c_preproc_warn_flag
15910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15911 else
15912 ac_cpp_err=
15913 fi
15914else
15915 ac_cpp_err=yes
15916fi
15917if test -z "$ac_cpp_err"; then
15918 ac_header_preproc=yes
15919else
15920 echo "$as_me: failed program was:" >&5
15921sed 's/^/| /' conftest.$ac_ext >&5
15922
15923 ac_header_preproc=no
15924fi
15925
15926rm -f conftest.err conftest.$ac_ext
15927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928echo "${ECHO_T}$ac_header_preproc" >&6; }
15929
15930# So? What about this header?
15931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 yes:no: )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15938 ;;
15939 no:yes:* )
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15952 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015953## ------------------------------------ ##
15954## Report this to http://llvm.org/bugs/ ##
15955## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015956_ASBOX
15957 ) | sed "s/^/$as_me: WARNING: /" >&2
15958 ;;
15959esac
15960{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964else
15965 eval "$as_ac_Header=\$ac_header_preproc"
15966fi
15967ac_res=`eval echo '${'$as_ac_Header'}'`
15968 { echo "$as_me:$LINENO: result: $ac_res" >&5
15969echo "${ECHO_T}$ac_res" >&6; }
15970
15971fi
15972if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015973 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015975_ACEOF
15976 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015977
15978else
15979 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015980
15981fi
15982
Reid Spencerbe3e4192007-08-17 05:45:26 +000015983done
Reid Spencer1000b732006-12-01 00:37:14 +000015984
15985else
15986 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015987
15988fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015989
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015990if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015991
15992
15993for ac_header in ffi.h ffi/ffi.h
15994do
15995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001fi
16002ac_res=`eval echo '${'$as_ac_Header'}'`
16003 { echo "$as_me:$LINENO: result: $ac_res" >&5
16004echo "${ECHO_T}$ac_res" >&6; }
16005else
16006 # Is the header compilable?
16007{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16009cat >conftest.$ac_ext <<_ACEOF
16010/* confdefs.h. */
16011_ACEOF
16012cat confdefs.h >>conftest.$ac_ext
16013cat >>conftest.$ac_ext <<_ACEOF
16014/* end confdefs.h. */
16015$ac_includes_default
16016#include <$ac_header>
16017_ACEOF
16018rm -f conftest.$ac_objext
16019if { (ac_try="$ac_compile"
16020case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023esac
16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_compile") 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036esac
16037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16046esac
16047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_try") 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_header_compiler=yes
16053else
16054 echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057 ac_header_compiler=no
16058fi
16059
16060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16062echo "${ECHO_T}$ac_header_compiler" >&6; }
16063
16064# Is the header present?
16065{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16067cat >conftest.$ac_ext <<_ACEOF
16068/* confdefs.h. */
16069_ACEOF
16070cat confdefs.h >>conftest.$ac_ext
16071cat >>conftest.$ac_ext <<_ACEOF
16072/* end confdefs.h. */
16073#include <$ac_header>
16074_ACEOF
16075if { (ac_try="$ac_cpp conftest.$ac_ext"
16076case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079esac
16080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } >/dev/null; then
16088 if test -s conftest.err; then
16089 ac_cpp_err=$ac_c_preproc_warn_flag
16090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16091 else
16092 ac_cpp_err=
16093 fi
16094else
16095 ac_cpp_err=yes
16096fi
16097if test -z "$ac_cpp_err"; then
16098 ac_header_preproc=yes
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 ac_header_preproc=no
16104fi
16105
16106rm -f conftest.err conftest.$ac_ext
16107{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16108echo "${ECHO_T}$ac_header_preproc" >&6; }
16109
16110# So? What about this header?
16111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16112 yes:no: )
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16114echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16116echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16117 ac_header_preproc=yes
16118 ;;
16119 no:yes:* )
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16121echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16123echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16125echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16127echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16129echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16131echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16132 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016133## ------------------------------------ ##
16134## Report this to http://llvm.org/bugs/ ##
16135## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016136_ASBOX
16137 ) | sed "s/^/$as_me: WARNING: /" >&2
16138 ;;
16139esac
16140{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144else
16145 eval "$as_ac_Header=\$ac_header_preproc"
16146fi
16147ac_res=`eval echo '${'$as_ac_Header'}'`
16148 { echo "$as_me:$LINENO: result: $ac_res" >&5
16149echo "${ECHO_T}$ac_res" >&6; }
16150
16151fi
16152if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016153 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016155_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016156
16157fi
16158
16159done
16160
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016161fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016162
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016163
Eric Christopher654dee42010-06-22 21:01:04 +000016164for ac_header in CrashReporterClient.h
16165do
16166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16172fi
16173ac_res=`eval echo '${'$as_ac_Header'}'`
16174 { echo "$as_me:$LINENO: result: $ac_res" >&5
16175echo "${ECHO_T}$ac_res" >&6; }
16176else
16177 # Is the header compilable?
16178{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16180cat >conftest.$ac_ext <<_ACEOF
16181/* confdefs.h. */
16182_ACEOF
16183cat confdefs.h >>conftest.$ac_ext
16184cat >>conftest.$ac_ext <<_ACEOF
16185/* end confdefs.h. */
16186$ac_includes_default
16187#include <$ac_header>
16188_ACEOF
16189rm -f conftest.$ac_objext
16190if { (ac_try="$ac_compile"
16191case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16194esac
16195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_compile") 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } &&
16203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16204 { (case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16207esac
16208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_try") 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest.$ac_objext'
16214 { (case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16217esac
16218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16219 (eval "$ac_try") 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 ac_header_compiler=yes
16224else
16225 echo "$as_me: failed program was:" >&5
16226sed 's/^/| /' conftest.$ac_ext >&5
16227
16228 ac_header_compiler=no
16229fi
16230
16231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16233echo "${ECHO_T}$ac_header_compiler" >&6; }
16234
16235# Is the header present?
16236{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16238cat >conftest.$ac_ext <<_ACEOF
16239/* confdefs.h. */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h. */
16244#include <$ac_header>
16245_ACEOF
16246if { (ac_try="$ac_cpp conftest.$ac_ext"
16247case "(($ac_try" in
16248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249 *) ac_try_echo=$ac_try;;
16250esac
16251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16253 ac_status=$?
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } >/dev/null; then
16259 if test -s conftest.err; then
16260 ac_cpp_err=$ac_c_preproc_warn_flag
16261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16262 else
16263 ac_cpp_err=
16264 fi
16265else
16266 ac_cpp_err=yes
16267fi
16268if test -z "$ac_cpp_err"; then
16269 ac_header_preproc=yes
16270else
16271 echo "$as_me: failed program was:" >&5
16272sed 's/^/| /' conftest.$ac_ext >&5
16273
16274 ac_header_preproc=no
16275fi
16276
16277rm -f conftest.err conftest.$ac_ext
16278{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16279echo "${ECHO_T}$ac_header_preproc" >&6; }
16280
16281# So? What about this header?
16282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16283 yes:no: )
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16288 ac_header_preproc=yes
16289 ;;
16290 no:yes:* )
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16303 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016304## ------------------------------------ ##
16305## Report this to http://llvm.org/bugs/ ##
16306## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016307_ASBOX
16308 ) | sed "s/^/$as_me: WARNING: /" >&2
16309 ;;
16310esac
16311{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315else
16316 eval "$as_ac_Header=\$ac_header_preproc"
16317fi
16318ac_res=`eval echo '${'$as_ac_Header'}'`
16319 { echo "$as_me:$LINENO: result: $ac_res" >&5
16320echo "${ECHO_T}$ac_res" >&6; }
16321
16322fi
16323if test `eval echo '${'$as_ac_Header'}'` = yes; then
16324 cat >>confdefs.h <<_ACEOF
16325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16326_ACEOF
16327
16328fi
16329
16330done
16331
16332
Eric Christopher51e57132010-12-07 02:05:42 +000016333{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16334echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016335cat >conftest.$ac_ext <<_ACEOF
16336/* confdefs.h. */
16337_ACEOF
16338cat confdefs.h >>conftest.$ac_ext
16339cat >>conftest.$ac_ext <<_ACEOF
16340/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016341extern const char *__crashreporter_info__;
16342 int main() {
16343 __crashreporter_info__ = "test";
16344 return 0;
16345 }
Eric Christopher481d4022010-12-03 07:45:22 +000016346
Eric Christopher481d4022010-12-03 07:45:22 +000016347_ACEOF
16348rm -f conftest.$ac_objext conftest$ac_exeext
16349if { (ac_try="$ac_link"
16350case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353esac
16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_link") 2>conftest.er1
16356 ac_status=$?
16357 grep -v '^ *+' conftest.er1 >conftest.err
16358 rm -f conftest.er1
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366esac
16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest$ac_exeext'
16373 { (case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376esac
16377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_try") 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016382 { echo "$as_me:$LINENO: result: yes" >&5
16383echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016384
16385cat >>confdefs.h <<\_ACEOF
16386#define HAVE_CRASHREPORTER_INFO 1
16387_ACEOF
16388
Eric Christopher51e57132010-12-07 02:05:42 +000016389else
16390 echo "$as_me: failed program was:" >&5
16391sed 's/^/| /' conftest.$ac_ext >&5
16392
16393 { echo "$as_me:$LINENO: result: no" >&5
16394echo "${ECHO_T}no" >&6; }
16395
16396cat >>confdefs.h <<\_ACEOF
16397#define HAVE_CRASHREPORTER_INFO 0
16398_ACEOF
16399
Eric Christopher481d4022010-12-03 07:45:22 +000016400fi
Eric Christopher654dee42010-06-22 21:01:04 +000016401
Eric Christopher51e57132010-12-07 02:05:42 +000016402rm -f core conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16404
16405
Reid Spencer8085cff2005-01-16 02:58:39 +000016406
Torok Edwin871384f2010-01-26 08:50:50 +000016407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016408 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16409echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16410if test "${ac_cv_huge_val_sanity+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016412else
16413
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016414 ac_ext=cpp
16415ac_cpp='$CXXCPP $CPPFLAGS'
16416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016419
Eric Christopherc7718502010-03-02 05:06:54 +000016420 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016421 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016422 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016423 ac_cv_huge_val_sanity=yes
16424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016425 cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016430/* end confdefs.h. */
16431#include <math.h>
16432int
16433main ()
16434{
16435double x = HUGE_VAL; return x != x;
16436 ;
16437 return 0;
16438}
16439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016440rm -f conftest$ac_exeext
16441if { (ac_try="$ac_link"
16442case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>&5
16448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16454esac
16455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016460 ac_cv_huge_val_sanity=yes
16461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016462 echo "$as_me: program exited with status $ac_status" >&5
16463echo "$as_me: failed program was:" >&5
16464sed 's/^/| /' conftest.$ac_ext >&5
16465
16466( exit $ac_status )
16467ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencerb2ed05262006-11-03 18:04:08 +000016470fi
16471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016472
Eric Christopherc7718502010-03-02 05:06:54 +000016473 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016474 ac_ext=c
16475ac_cpp='$CPP $CPPFLAGS'
16476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16478ac_compiler_gnu=$ac_cv_c_compiler_gnu
16479
16480
16481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016482{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16483echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016484 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16485
16486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016487{ echo "$as_me:$LINENO: checking for pid_t" >&5
16488echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16489if test "${ac_cv_type_pid_t+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16491else
16492 cat >conftest.$ac_ext <<_ACEOF
16493/* confdefs.h. */
16494_ACEOF
16495cat confdefs.h >>conftest.$ac_ext
16496cat >>conftest.$ac_ext <<_ACEOF
16497/* end confdefs.h. */
16498$ac_includes_default
16499typedef pid_t ac__type_new_;
16500int
16501main ()
16502{
16503if ((ac__type_new_ *) 0)
16504 return 0;
16505if (sizeof (ac__type_new_))
16506 return 0;
16507 ;
16508 return 0;
16509}
16510_ACEOF
16511rm -f conftest.$ac_objext
16512if { (ac_try="$ac_compile"
16513case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_compile") 2>conftest.er1
16519 ac_status=$?
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529esac
16530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_type_pid_t=yes
16546else
16547 echo "$as_me: failed program was:" >&5
16548sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016550 ac_cv_type_pid_t=no
16551fi
16552
16553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554fi
16555{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16556echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16557if test $ac_cv_type_pid_t = yes; then
16558 :
John Criswell7a73b802003-06-30 21:59:07 +000016559else
16560
16561cat >>confdefs.h <<_ACEOF
16562#define pid_t int
16563_ACEOF
16564
16565fi
16566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016567{ echo "$as_me:$LINENO: checking for size_t" >&5
16568echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16569if test "${ac_cv_type_size_t+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571else
16572 cat >conftest.$ac_ext <<_ACEOF
16573/* confdefs.h. */
16574_ACEOF
16575cat confdefs.h >>conftest.$ac_ext
16576cat >>conftest.$ac_ext <<_ACEOF
16577/* end confdefs.h. */
16578$ac_includes_default
16579typedef size_t ac__type_new_;
16580int
16581main ()
16582{
16583if ((ac__type_new_ *) 0)
16584 return 0;
16585if (sizeof (ac__type_new_))
16586 return 0;
16587 ;
16588 return 0;
16589}
16590_ACEOF
16591rm -f conftest.$ac_objext
16592if { (ac_try="$ac_compile"
16593case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596esac
16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_compile") 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609esac
16610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest.$ac_objext'
16616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619esac
16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_type_size_t=yes
16626else
16627 echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016630 ac_cv_type_size_t=no
16631fi
16632
16633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634fi
16635{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16636echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16637if test $ac_cv_type_size_t = yes; then
16638 :
John Criswell7a73b802003-06-30 21:59:07 +000016639else
16640
16641cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016642#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016643_ACEOF
16644
16645fi
16646
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016647
16648cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016649#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016650_ACEOF
16651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016652{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16653echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16654if test "${ac_cv_struct_tm+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016657 cat >conftest.$ac_ext <<_ACEOF
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016662/* end confdefs.h. */
16663#include <sys/types.h>
16664#include <time.h>
16665
16666int
16667main ()
16668{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016669struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016670 ;
16671 return 0;
16672}
16673_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016674rm -f conftest.$ac_objext
16675if { (ac_try="$ac_compile"
16676case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_compile") 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692esac
16693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest.$ac_objext'
16699 { (case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702esac
16703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_try") 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016708 ac_cv_struct_tm=time.h
16709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016710 echo "$as_me: failed program was:" >&5
16711sed 's/^/| /' conftest.$ac_ext >&5
16712
16713 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016715
Reid Spencera773bd52006-08-04 18:18:08 +000016716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016718{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16719echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016720if test $ac_cv_struct_tm = sys/time.h; then
16721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016722cat >>confdefs.h <<\_ACEOF
16723#define TM_IN_SYS_TIME 1
16724_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016725
16726fi
16727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016728{ echo "$as_me:$LINENO: checking for int64_t" >&5
16729echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16730if test "${ac_cv_type_int64_t+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16732else
16733 cat >conftest.$ac_ext <<_ACEOF
16734/* confdefs.h. */
16735_ACEOF
16736cat confdefs.h >>conftest.$ac_ext
16737cat >>conftest.$ac_ext <<_ACEOF
16738/* end confdefs.h. */
16739$ac_includes_default
16740typedef int64_t ac__type_new_;
16741int
16742main ()
16743{
16744if ((ac__type_new_ *) 0)
16745 return 0;
16746if (sizeof (ac__type_new_))
16747 return 0;
16748 ;
16749 return 0;
16750}
16751_ACEOF
16752rm -f conftest.$ac_objext
16753if { (ac_try="$ac_compile"
16754case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16757esac
16758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_compile") 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest.$ac_objext'
16777 { (case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780esac
16781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_try") 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_type_int64_t=yes
16787else
16788 echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 ac_cv_type_int64_t=no
16792fi
16793
16794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795fi
16796{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16797echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16798if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016799
16800cat >>confdefs.h <<_ACEOF
16801#define HAVE_INT64_T 1
16802_ACEOF
16803
16804
16805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016806 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16807echo "$as_me: error: Type int64_t required but not found" >&2;}
16808 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016809fi
16810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016811{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16812echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16813if test "${ac_cv_type_uint64_t+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 cat >conftest.$ac_ext <<_ACEOF
16817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
16822$ac_includes_default
16823typedef uint64_t ac__type_new_;
16824int
16825main ()
16826{
16827if ((ac__type_new_ *) 0)
16828 return 0;
16829if (sizeof (ac__type_new_))
16830 return 0;
16831 ;
16832 return 0;
16833}
16834_ACEOF
16835rm -f conftest.$ac_objext
16836if { (ac_try="$ac_compile"
16837case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16840esac
16841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_compile") 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16853esac
16854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } &&
16859 { ac_try='test -s conftest.$ac_objext'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863esac
16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 ac_cv_type_uint64_t=yes
16870else
16871 echo "$as_me: failed program was:" >&5
16872sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 ac_cv_type_uint64_t=no
16875fi
16876
16877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878fi
16879{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16880echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16881if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016882
16883cat >>confdefs.h <<_ACEOF
16884#define HAVE_UINT64_T 1
16885_ACEOF
16886
16887
16888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016889 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16890echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16891if test "${ac_cv_type_u_int64_t+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16893else
16894 cat >conftest.$ac_ext <<_ACEOF
16895/* confdefs.h. */
16896_ACEOF
16897cat confdefs.h >>conftest.$ac_ext
16898cat >>conftest.$ac_ext <<_ACEOF
16899/* end confdefs.h. */
16900$ac_includes_default
16901typedef u_int64_t ac__type_new_;
16902int
16903main ()
16904{
16905if ((ac__type_new_ *) 0)
16906 return 0;
16907if (sizeof (ac__type_new_))
16908 return 0;
16909 ;
16910 return 0;
16911}
16912_ACEOF
16913rm -f conftest.$ac_objext
16914if { (ac_try="$ac_compile"
16915case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918esac
16919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_compile") 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16928 { (case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931esac
16932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_try") 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16941esac
16942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_try") 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 ac_cv_type_u_int64_t=yes
16948else
16949 echo "$as_me: failed program was:" >&5
16950sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 ac_cv_type_u_int64_t=no
16953fi
16954
16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956fi
16957{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16958echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16959if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016960
16961cat >>confdefs.h <<_ACEOF
16962#define HAVE_U_INT64_T 1
16963_ACEOF
16964
16965
Misha Brukmanceca9042004-09-02 23:02:30 +000016966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016967 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16968echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16969 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016970fi
16971
John Criswell679ff312004-09-02 18:44:44 +000016972fi
16973
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016974
16975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016976
16977
16978
16979
16980
16981
16982
Reid Spencerdf3be822006-01-23 08:15:53 +000016983for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016984do
16985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990else
16991 cat >conftest.$ac_ext <<_ACEOF
16992/* confdefs.h. */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h. */
16997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16999#define $ac_func innocuous_$ac_func
17000
17001/* System header to define __stub macros and hopefully few prototypes,
17002 which can conflict with char $ac_func (); below.
17003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17004 <limits.h> exists even on freestanding compilers. */
17005
17006#ifdef __STDC__
17007# include <limits.h>
17008#else
17009# include <assert.h>
17010#endif
17011
17012#undef $ac_func
17013
17014/* Override any GCC internal prototype to avoid an error.
17015 Use char because int might match the return type of a GCC
17016 builtin and then its argument prototype would still apply. */
17017#ifdef __cplusplus
17018extern "C"
17019#endif
17020char $ac_func ();
17021/* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024#if defined __stub_$ac_func || defined __stub___$ac_func
17025choke me
17026#endif
17027
17028int
17029main ()
17030{
17031return $ac_func ();
17032 ;
17033 return 0;
17034}
17035_ACEOF
17036rm -f conftest.$ac_objext conftest$ac_exeext
17037if { (ac_try="$ac_link"
17038case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041esac
17042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_link") 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054esac
17055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17064esac
17065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 eval "$as_ac_var=yes"
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075 eval "$as_ac_var=no"
17076fi
17077
17078rm -f core conftest.err conftest.$ac_objext \
17079 conftest$ac_exeext conftest.$ac_ext
17080fi
17081ac_res=`eval echo '${'$as_ac_var'}'`
17082 { echo "$as_me:$LINENO: result: $ac_res" >&5
17083echo "${ECHO_T}$ac_res" >&6; }
17084if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017085 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017087_ACEOF
17088
17089fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017090done
John Criswell7a73b802003-06-30 21:59:07 +000017091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017092
17093
17094
17095
Reid Spencer96cf5872007-07-13 10:05:30 +000017096for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017097do
17098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17103else
17104 cat >conftest.$ac_ext <<_ACEOF
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17112#define $ac_func innocuous_$ac_func
17113
17114/* System header to define __stub macros and hopefully few prototypes,
17115 which can conflict with char $ac_func (); below.
17116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17117 <limits.h> exists even on freestanding compilers. */
17118
17119#ifdef __STDC__
17120# include <limits.h>
17121#else
17122# include <assert.h>
17123#endif
17124
17125#undef $ac_func
17126
17127/* Override any GCC internal prototype to avoid an error.
17128 Use char because int might match the return type of a GCC
17129 builtin and then its argument prototype would still apply. */
17130#ifdef __cplusplus
17131extern "C"
17132#endif
17133char $ac_func ();
17134/* The GNU C library defines this for functions which it implements
17135 to always fail with ENOSYS. Some functions are actually named
17136 something starting with __ and the normal name is an alias. */
17137#if defined __stub_$ac_func || defined __stub___$ac_func
17138choke me
17139#endif
17140
17141int
17142main ()
17143{
17144return $ac_func ();
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext conftest$ac_exeext
17150if { (ac_try="$ac_link"
17151case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154esac
17155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_link") 2>conftest.er1
17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
17163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17167esac
17168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17177esac
17178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 eval "$as_ac_var=yes"
17184else
17185 echo "$as_me: failed program was:" >&5
17186sed 's/^/| /' conftest.$ac_ext >&5
17187
17188 eval "$as_ac_var=no"
17189fi
17190
17191rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17193fi
17194ac_res=`eval echo '${'$as_ac_var'}'`
17195 { echo "$as_me:$LINENO: result: $ac_res" >&5
17196echo "${ECHO_T}$ac_res" >&6; }
17197if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017198 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017200_ACEOF
17201
17202fi
17203done
17204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017205
17206
17207
17208
17209
Reid Spencerb90645c2007-02-16 19:17:20 +000017210for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017211do
17212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17217else
17218 cat >conftest.$ac_ext <<_ACEOF
17219/* confdefs.h. */
17220_ACEOF
17221cat confdefs.h >>conftest.$ac_ext
17222cat >>conftest.$ac_ext <<_ACEOF
17223/* end confdefs.h. */
17224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17226#define $ac_func innocuous_$ac_func
17227
17228/* System header to define __stub macros and hopefully few prototypes,
17229 which can conflict with char $ac_func (); below.
17230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17231 <limits.h> exists even on freestanding compilers. */
17232
17233#ifdef __STDC__
17234# include <limits.h>
17235#else
17236# include <assert.h>
17237#endif
17238
17239#undef $ac_func
17240
17241/* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244#ifdef __cplusplus
17245extern "C"
17246#endif
17247char $ac_func ();
17248/* The GNU C library defines this for functions which it implements
17249 to always fail with ENOSYS. Some functions are actually named
17250 something starting with __ and the normal name is an alias. */
17251#if defined __stub_$ac_func || defined __stub___$ac_func
17252choke me
17253#endif
17254
17255int
17256main ()
17257{
17258return $ac_func ();
17259 ;
17260 return 0;
17261}
17262_ACEOF
17263rm -f conftest.$ac_objext conftest$ac_exeext
17264if { (ac_try="$ac_link"
17265case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268esac
17269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281esac
17282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest$ac_exeext'
17288 { (case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291esac
17292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 eval "$as_ac_var=yes"
17298else
17299 echo "$as_me: failed program was:" >&5
17300sed 's/^/| /' conftest.$ac_ext >&5
17301
17302 eval "$as_ac_var=no"
17303fi
17304
17305rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307fi
17308ac_res=`eval echo '${'$as_ac_var'}'`
17309 { echo "$as_me:$LINENO: result: $ac_res" >&5
17310echo "${ECHO_T}$ac_res" >&6; }
17311if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017312 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017314_ACEOF
17315
17316fi
17317done
17318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017319
17320
17321
Reid Spencerb90645c2007-02-16 19:17:20 +000017322for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017323do
17324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329else
17330 cat >conftest.$ac_ext <<_ACEOF
17331/* confdefs.h. */
17332_ACEOF
17333cat confdefs.h >>conftest.$ac_ext
17334cat >>conftest.$ac_ext <<_ACEOF
17335/* end confdefs.h. */
17336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17338#define $ac_func innocuous_$ac_func
17339
17340/* System header to define __stub macros and hopefully few prototypes,
17341 which can conflict with char $ac_func (); below.
17342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17343 <limits.h> exists even on freestanding compilers. */
17344
17345#ifdef __STDC__
17346# include <limits.h>
17347#else
17348# include <assert.h>
17349#endif
17350
17351#undef $ac_func
17352
17353/* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17356#ifdef __cplusplus
17357extern "C"
17358#endif
17359char $ac_func ();
17360/* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363#if defined __stub_$ac_func || defined __stub___$ac_func
17364choke me
17365#endif
17366
17367int
17368main ()
17369{
17370return $ac_func ();
17371 ;
17372 return 0;
17373}
17374_ACEOF
17375rm -f conftest.$ac_objext conftest$ac_exeext
17376if { (ac_try="$ac_link"
17377case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_link") 2>conftest.er1
17383 ac_status=$?
17384 grep -v '^ *+' conftest.er1 >conftest.err
17385 rm -f conftest.er1
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393esac
17394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest$ac_exeext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 eval "$as_ac_var=yes"
17410else
17411 echo "$as_me: failed program was:" >&5
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
17414 eval "$as_ac_var=no"
17415fi
17416
17417rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419fi
17420ac_res=`eval echo '${'$as_ac_var'}'`
17421 { echo "$as_me:$LINENO: result: $ac_res" >&5
17422echo "${ECHO_T}$ac_res" >&6; }
17423if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017424 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017426_ACEOF
17427
17428fi
17429done
17430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017431
17432
17433
17434
17435
Eric Christophere4291822010-04-16 05:14:21 +000017436
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017437
17438for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017439do
17440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17441{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445else
17446 cat >conftest.$ac_ext <<_ACEOF
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
17452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17454#define $ac_func innocuous_$ac_func
17455
17456/* System header to define __stub macros and hopefully few prototypes,
17457 which can conflict with char $ac_func (); below.
17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459 <limits.h> exists even on freestanding compilers. */
17460
17461#ifdef __STDC__
17462# include <limits.h>
17463#else
17464# include <assert.h>
17465#endif
17466
17467#undef $ac_func
17468
17469/* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17472#ifdef __cplusplus
17473extern "C"
17474#endif
17475char $ac_func ();
17476/* The GNU C library defines this for functions which it implements
17477 to always fail with ENOSYS. Some functions are actually named
17478 something starting with __ and the normal name is an alias. */
17479#if defined __stub_$ac_func || defined __stub___$ac_func
17480choke me
17481#endif
17482
17483int
17484main ()
17485{
17486return $ac_func ();
17487 ;
17488 return 0;
17489}
17490_ACEOF
17491rm -f conftest.$ac_objext conftest$ac_exeext
17492if { (ac_try="$ac_link"
17493case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496esac
17497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509esac
17510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519esac
17520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 eval "$as_ac_var=yes"
17526else
17527 echo "$as_me: failed program was:" >&5
17528sed 's/^/| /' conftest.$ac_ext >&5
17529
17530 eval "$as_ac_var=no"
17531fi
17532
17533rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17535fi
17536ac_res=`eval echo '${'$as_ac_var'}'`
17537 { echo "$as_me:$LINENO: result: $ac_res" >&5
17538echo "${ECHO_T}$ac_res" >&6; }
17539if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017540 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017542_ACEOF
17543
17544fi
17545done
Reid Spencerdf3be822006-01-23 08:15:53 +000017546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017547
17548
17549
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017550
17551for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017552do
17553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17554{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17556if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17558else
17559 cat >conftest.$ac_ext <<_ACEOF
17560/* confdefs.h. */
17561_ACEOF
17562cat confdefs.h >>conftest.$ac_ext
17563cat >>conftest.$ac_ext <<_ACEOF
17564/* end confdefs.h. */
17565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17567#define $ac_func innocuous_$ac_func
17568
17569/* System header to define __stub macros and hopefully few prototypes,
17570 which can conflict with char $ac_func (); below.
17571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572 <limits.h> exists even on freestanding compilers. */
17573
17574#ifdef __STDC__
17575# include <limits.h>
17576#else
17577# include <assert.h>
17578#endif
17579
17580#undef $ac_func
17581
17582/* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17585#ifdef __cplusplus
17586extern "C"
17587#endif
17588char $ac_func ();
17589/* The GNU C library defines this for functions which it implements
17590 to always fail with ENOSYS. Some functions are actually named
17591 something starting with __ and the normal name is an alias. */
17592#if defined __stub_$ac_func || defined __stub___$ac_func
17593choke me
17594#endif
17595
17596int
17597main ()
17598{
17599return $ac_func ();
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext conftest$ac_exeext
17605if { (ac_try="$ac_link"
17606case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609esac
17610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_link") 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622esac
17623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17632esac
17633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_try") 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 eval "$as_ac_var=yes"
17639else
17640 echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643 eval "$as_ac_var=no"
17644fi
17645
17646rm -f core conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17648fi
17649ac_res=`eval echo '${'$as_ac_var'}'`
17650 { echo "$as_me:$LINENO: result: $ac_res" >&5
17651echo "${ECHO_T}$ac_res" >&6; }
17652if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017653 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017655_ACEOF
17656
17657fi
17658done
17659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017660
17661
17662
17663
Chris Lattner511f11d2005-11-14 07:25:50 +000017664for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017665do
17666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17667{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17669if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671else
17672 cat >conftest.$ac_ext <<_ACEOF
17673/* confdefs.h. */
17674_ACEOF
17675cat confdefs.h >>conftest.$ac_ext
17676cat >>conftest.$ac_ext <<_ACEOF
17677/* end confdefs.h. */
17678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17680#define $ac_func innocuous_$ac_func
17681
17682/* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char $ac_func (); below.
17684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685 <limits.h> exists even on freestanding compilers. */
17686
17687#ifdef __STDC__
17688# include <limits.h>
17689#else
17690# include <assert.h>
17691#endif
17692
17693#undef $ac_func
17694
17695/* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
17698#ifdef __cplusplus
17699extern "C"
17700#endif
17701char $ac_func ();
17702/* The GNU C library defines this for functions which it implements
17703 to always fail with ENOSYS. Some functions are actually named
17704 something starting with __ and the normal name is an alias. */
17705#if defined __stub_$ac_func || defined __stub___$ac_func
17706choke me
17707#endif
17708
17709int
17710main ()
17711{
17712return $ac_func ();
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext conftest$ac_exeext
17718if { (ac_try="$ac_link"
17719case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17722esac
17723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_link") 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
17731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735esac
17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; } &&
17741 { ac_try='test -s conftest$ac_exeext'
17742 { (case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17745esac
17746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747 (eval "$ac_try") 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17751 eval "$as_ac_var=yes"
17752else
17753 echo "$as_me: failed program was:" >&5
17754sed 's/^/| /' conftest.$ac_ext >&5
17755
17756 eval "$as_ac_var=no"
17757fi
17758
17759rm -f core conftest.err conftest.$ac_objext \
17760 conftest$ac_exeext conftest.$ac_ext
17761fi
17762ac_res=`eval echo '${'$as_ac_var'}'`
17763 { echo "$as_me:$LINENO: result: $ac_res" >&5
17764echo "${ECHO_T}$ac_res" >&6; }
17765if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017766 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017768_ACEOF
17769
17770fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017771done
John Criswell7a73b802003-06-30 21:59:07 +000017772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017773
17774
17775
17776
Daniel Dunbar3e462932011-02-03 02:40:02 +000017777
17778for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017779do
17780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17783if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785else
17786 cat >conftest.$ac_ext <<_ACEOF
17787/* confdefs.h. */
17788_ACEOF
17789cat confdefs.h >>conftest.$ac_ext
17790cat >>conftest.$ac_ext <<_ACEOF
17791/* end confdefs.h. */
17792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17794#define $ac_func innocuous_$ac_func
17795
17796/* System header to define __stub macros and hopefully few prototypes,
17797 which can conflict with char $ac_func (); below.
17798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799 <limits.h> exists even on freestanding compilers. */
17800
17801#ifdef __STDC__
17802# include <limits.h>
17803#else
17804# include <assert.h>
17805#endif
17806
17807#undef $ac_func
17808
17809/* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17812#ifdef __cplusplus
17813extern "C"
17814#endif
17815char $ac_func ();
17816/* The GNU C library defines this for functions which it implements
17817 to always fail with ENOSYS. Some functions are actually named
17818 something starting with __ and the normal name is an alias. */
17819#if defined __stub_$ac_func || defined __stub___$ac_func
17820choke me
17821#endif
17822
17823int
17824main ()
17825{
17826return $ac_func ();
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext conftest$ac_exeext
17832if { (ac_try="$ac_link"
17833case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836esac
17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_link") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 eval "$as_ac_var=yes"
17866else
17867 echo "$as_me: failed program was:" >&5
17868sed 's/^/| /' conftest.$ac_ext >&5
17869
17870 eval "$as_ac_var=no"
17871fi
17872
17873rm -f core conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17875fi
17876ac_res=`eval echo '${'$as_ac_var'}'`
17877 { echo "$as_me:$LINENO: result: $ac_res" >&5
17878echo "${ECHO_T}$ac_res" >&6; }
17879if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017880 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017882_ACEOF
17883
17884fi
17885done
17886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017887{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17888echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17889if test "${llvm_cv_c_printf_a+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017891else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017892 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017893ac_cpp='$CPP $CPPFLAGS'
17894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17896ac_compiler_gnu=$ac_cv_c_compiler_gnu
17897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017898 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017899 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017901 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017903 /* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017908
John Criswella0137d32003-10-13 16:22:01 +000017909#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017910#include <stdlib.h>
17911
John Criswella0137d32003-10-13 16:22:01 +000017912int
17913main ()
17914{
17915
Reid Spencer2706f8c2004-09-19 23:53:36 +000017916volatile double A, B;
17917char Buffer[100];
17918A = 1;
17919A /= 10.0;
17920sprintf(Buffer, "%a", A);
17921B = atof(Buffer);
17922if (A != B)
17923 return (1);
17924if (A != 0x1.999999999999ap-4)
17925 return (1);
17926return (0);
John Criswella0137d32003-10-13 16:22:01 +000017927 ;
17928 return 0;
17929}
17930_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017931rm -f conftest$ac_exeext
17932if { (ac_try="$ac_link"
17933case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936esac
17937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945esac
17946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017951 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017953 echo "$as_me: program exited with status $ac_status" >&5
17954echo "$as_me: failed program was:" >&5
17955sed 's/^/| /' conftest.$ac_ext >&5
17956
17957( exit $ac_status )
17958llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000017961fi
Reid Spencera773bd52006-08-04 18:18:08 +000017962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017963
Reid Spencer2706f8c2004-09-19 23:53:36 +000017964 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017965ac_cpp='$CPP $CPPFLAGS'
17966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17968ac_compiler_gnu=$ac_cv_c_compiler_gnu
17969
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017971{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17972echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017973 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017975cat >>confdefs.h <<\_ACEOF
17976#define HAVE_PRINTF_A 1
17977_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017978
Reid Spencer2706f8c2004-09-19 23:53:36 +000017979 fi
John Criswella0137d32003-10-13 16:22:01 +000017980
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017982{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17983echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17984if test "${ac_cv_func_rand48+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017986else
Reid Spencera773bd52006-08-04 18:18:08 +000017987 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017988ac_cpp='$CXXCPP $CPPFLAGS'
17989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017993 cat >conftest.$ac_ext <<_ACEOF
17994/* confdefs.h. */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017998/* end confdefs.h. */
17999#include <stdlib.h>
18000int
18001main ()
18002{
18003srand48(0);lrand48();drand48();
18004 ;
18005 return 0;
18006}
18007_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018008rm -f conftest.$ac_objext
18009if { (ac_try="$ac_compile"
18010case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013esac
18014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_compile") 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026esac
18027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest.$ac_objext'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036esac
18037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018042 ac_cv_func_rand48=yes
18043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018044 echo "$as_me: failed program was:" >&5
18045sed 's/^/| /' conftest.$ac_ext >&5
18046
18047 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018049
Reid Spencera773bd52006-08-04 18:18:08 +000018050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018051 ac_ext=c
18052ac_cpp='$CPP $CPPFLAGS'
18053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18055ac_compiler_gnu=$ac_cv_c_compiler_gnu
18056
18057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018058{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18059echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018060
18061if test "$ac_cv_func_rand48" = "yes" ; then
18062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018063cat >>confdefs.h <<\_ACEOF
18064#define HAVE_RAND48 1
18065_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018066
18067fi
John Criswell0021c312004-02-13 21:57:29 +000018068
18069
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018070{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18071echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18072if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074else
18075 cat >conftest.$ac_ext <<_ACEOF
18076/* confdefs.h. */
18077_ACEOF
18078cat confdefs.h >>conftest.$ac_ext
18079cat >>conftest.$ac_ext <<_ACEOF
18080/* end confdefs.h. */
18081$ac_includes_default
18082int
18083main ()
18084{
18085#ifndef strerror_s
18086 char *p = (char *) strerror_s;
18087 return !p;
18088#endif
18089
18090 ;
18091 return 0;
18092}
18093_ACEOF
18094rm -f conftest.$ac_objext
18095if { (ac_try="$ac_compile"
18096case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18099esac
18100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_compile") 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112esac
18113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest.$ac_objext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_have_decl_strerror_s=yes
18129else
18130 echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
18133 ac_cv_have_decl_strerror_s=no
18134fi
18135
18136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18137fi
18138{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18139echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18140if test $ac_cv_have_decl_strerror_s = yes; then
18141
18142cat >>confdefs.h <<_ACEOF
18143#define HAVE_DECL_STRERROR_S 1
18144_ACEOF
18145
18146
18147else
18148 cat >>confdefs.h <<_ACEOF
18149#define HAVE_DECL_STRERROR_S 0
18150_ACEOF
18151
18152
18153fi
18154
18155
18156
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018157if test "$llvm_cv_os_type" = "MingW" ; then
18158 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18159echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18160if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18162else
18163 ac_check_lib_save_LIBS=$LIBS
18164LIBS="-lgcc $LIBS"
18165cat >conftest.$ac_ext <<_ACEOF
18166/* confdefs.h. */
18167_ACEOF
18168cat confdefs.h >>conftest.$ac_ext
18169cat >>conftest.$ac_ext <<_ACEOF
18170/* end confdefs.h. */
18171
18172/* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18175#ifdef __cplusplus
18176extern "C"
18177#endif
18178char _alloca ();
18179int
18180main ()
18181{
18182return _alloca ();
18183 ;
18184 return 0;
18185}
18186_ACEOF
18187rm -f conftest.$ac_objext conftest$ac_exeext
18188if { (ac_try="$ac_link"
18189case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192esac
18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18195 ac_status=$?
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18205esac
18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215esac
18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_gcc__alloca=yes
18222else
18223 echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226 ac_cv_lib_gcc__alloca=no
18227fi
18228
18229rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18231LIBS=$ac_check_lib_save_LIBS
18232fi
18233{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18234echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18235if test $ac_cv_lib_gcc__alloca = yes; then
18236
18237cat >>confdefs.h <<\_ACEOF
18238#define HAVE__ALLOCA 1
18239_ACEOF
18240
18241fi
18242
18243 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18244echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18245if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247else
18248 ac_check_lib_save_LIBS=$LIBS
18249LIBS="-lgcc $LIBS"
18250cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256
18257/* Override any GCC internal prototype to avoid an error.
18258 Use char because int might match the return type of a GCC
18259 builtin and then its argument prototype would still apply. */
18260#ifdef __cplusplus
18261extern "C"
18262#endif
18263char __alloca ();
18264int
18265main ()
18266{
18267return __alloca ();
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext conftest$ac_exeext
18273if { (ac_try="$ac_link"
18274case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277esac
18278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
18280 ac_status=$?
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290esac
18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest$ac_exeext'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300esac
18301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_gcc___alloca=yes
18307else
18308 echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 ac_cv_lib_gcc___alloca=no
18312fi
18313
18314rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316LIBS=$ac_check_lib_save_LIBS
18317fi
18318{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18319echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18320if test $ac_cv_lib_gcc___alloca = yes; then
18321
18322cat >>confdefs.h <<\_ACEOF
18323#define HAVE___ALLOCA 1
18324_ACEOF
18325
18326fi
18327
18328 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18329echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18330if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18332else
18333 ac_check_lib_save_LIBS=$LIBS
18334LIBS="-lgcc $LIBS"
18335cat >conftest.$ac_ext <<_ACEOF
18336/* confdefs.h. */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
18340/* end confdefs.h. */
18341
18342/* Override any GCC internal prototype to avoid an error.
18343 Use char because int might match the return type of a GCC
18344 builtin and then its argument prototype would still apply. */
18345#ifdef __cplusplus
18346extern "C"
18347#endif
18348char __chkstk ();
18349int
18350main ()
18351{
18352return __chkstk ();
18353 ;
18354 return 0;
18355}
18356_ACEOF
18357rm -f conftest.$ac_objext conftest$ac_exeext
18358if { (ac_try="$ac_link"
18359case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18362esac
18363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_link") 2>conftest.er1
18365 ac_status=$?
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18372 { (case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18375esac
18376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_try") 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest$ac_exeext'
18382 { (case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18385esac
18386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_try") 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_lib_gcc___chkstk=yes
18392else
18393 echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396 ac_cv_lib_gcc___chkstk=no
18397fi
18398
18399rm -f core conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401LIBS=$ac_check_lib_save_LIBS
18402fi
18403{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18404echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18405if test $ac_cv_lib_gcc___chkstk = yes; then
18406
18407cat >>confdefs.h <<\_ACEOF
18408#define HAVE___CHKSTK 1
18409_ACEOF
18410
18411fi
18412
18413 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18414echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18415if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18417else
18418 ac_check_lib_save_LIBS=$LIBS
18419LIBS="-lgcc $LIBS"
18420cat >conftest.$ac_ext <<_ACEOF
18421/* confdefs.h. */
18422_ACEOF
18423cat confdefs.h >>conftest.$ac_ext
18424cat >>conftest.$ac_ext <<_ACEOF
18425/* end confdefs.h. */
18426
18427/* Override any GCC internal prototype to avoid an error.
18428 Use char because int might match the return type of a GCC
18429 builtin and then its argument prototype would still apply. */
18430#ifdef __cplusplus
18431extern "C"
18432#endif
18433char ___chkstk ();
18434int
18435main ()
18436{
18437return ___chkstk ();
18438 ;
18439 return 0;
18440}
18441_ACEOF
18442rm -f conftest.$ac_objext conftest$ac_exeext
18443if { (ac_try="$ac_link"
18444case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447esac
18448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_link") 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
18456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460esac
18461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470esac
18471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_lib_gcc____chkstk=yes
18477else
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 ac_cv_lib_gcc____chkstk=no
18482fi
18483
18484rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18486LIBS=$ac_check_lib_save_LIBS
18487fi
18488{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18489echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18490if test $ac_cv_lib_gcc____chkstk = yes; then
18491
18492cat >>confdefs.h <<\_ACEOF
18493#define HAVE____CHKSTK 1
18494_ACEOF
18495
18496fi
18497
18498
18499 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18500echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18501if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18503else
18504 ac_check_lib_save_LIBS=$LIBS
18505LIBS="-lgcc $LIBS"
18506cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
18512
18513/* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18516#ifdef __cplusplus
18517extern "C"
18518#endif
18519char __ashldi3 ();
18520int
18521main ()
18522{
18523return __ashldi3 ();
18524 ;
18525 return 0;
18526}
18527_ACEOF
18528rm -f conftest.$ac_objext conftest$ac_exeext
18529if { (ac_try="$ac_link"
18530case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533esac
18534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_link") 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18543 { (case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546esac
18547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_try") 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; } &&
18552 { ac_try='test -s conftest$ac_exeext'
18553 { (case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556esac
18557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_try") 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 ac_cv_lib_gcc___ashldi3=yes
18563else
18564 echo "$as_me: failed program was:" >&5
18565sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 ac_cv_lib_gcc___ashldi3=no
18568fi
18569
18570rm -f core conftest.err conftest.$ac_objext \
18571 conftest$ac_exeext conftest.$ac_ext
18572LIBS=$ac_check_lib_save_LIBS
18573fi
18574{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18575echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18576if test $ac_cv_lib_gcc___ashldi3 = yes; then
18577
18578cat >>confdefs.h <<\_ACEOF
18579#define HAVE___ASHLDI3 1
18580_ACEOF
18581
18582fi
18583
18584 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18585echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18586if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18588else
18589 ac_check_lib_save_LIBS=$LIBS
18590LIBS="-lgcc $LIBS"
18591cat >conftest.$ac_ext <<_ACEOF
18592/* confdefs.h. */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h. */
18597
18598/* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18601#ifdef __cplusplus
18602extern "C"
18603#endif
18604char __ashrdi3 ();
18605int
18606main ()
18607{
18608return __ashrdi3 ();
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext conftest$ac_exeext
18614if { (ac_try="$ac_link"
18615case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618esac
18619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_link") 2>conftest.er1
18621 ac_status=$?
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18628 { (case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18631esac
18632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633 (eval "$ac_try") 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest$ac_exeext'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641esac
18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 ac_cv_lib_gcc___ashrdi3=yes
18648else
18649 echo "$as_me: failed program was:" >&5
18650sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 ac_cv_lib_gcc___ashrdi3=no
18653fi
18654
18655rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657LIBS=$ac_check_lib_save_LIBS
18658fi
18659{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18660echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18661if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18662
18663cat >>confdefs.h <<\_ACEOF
18664#define HAVE___ASHRDI3 1
18665_ACEOF
18666
18667fi
18668
18669 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18670echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18671if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18673else
18674 ac_check_lib_save_LIBS=$LIBS
18675LIBS="-lgcc $LIBS"
18676cat >conftest.$ac_ext <<_ACEOF
18677/* confdefs.h. */
18678_ACEOF
18679cat confdefs.h >>conftest.$ac_ext
18680cat >>conftest.$ac_ext <<_ACEOF
18681/* end confdefs.h. */
18682
18683/* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18686#ifdef __cplusplus
18687extern "C"
18688#endif
18689char __divdi3 ();
18690int
18691main ()
18692{
18693return __divdi3 ();
18694 ;
18695 return 0;
18696}
18697_ACEOF
18698rm -f conftest.$ac_objext conftest$ac_exeext
18699if { (ac_try="$ac_link"
18700case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18703esac
18704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_link") 2>conftest.er1
18706 ac_status=$?
18707 grep -v '^ *+' conftest.er1 >conftest.err
18708 rm -f conftest.er1
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
18712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18713 { (case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18716esac
18717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_try") 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try='test -s conftest$ac_exeext'
18723 { (case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18726esac
18727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_try") 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 ac_cv_lib_gcc___divdi3=yes
18733else
18734 echo "$as_me: failed program was:" >&5
18735sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 ac_cv_lib_gcc___divdi3=no
18738fi
18739
18740rm -f core conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18742LIBS=$ac_check_lib_save_LIBS
18743fi
18744{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18745echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18746if test $ac_cv_lib_gcc___divdi3 = yes; then
18747
18748cat >>confdefs.h <<\_ACEOF
18749#define HAVE___DIVDI3 1
18750_ACEOF
18751
18752fi
18753
18754 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18755echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18756if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18758else
18759 ac_check_lib_save_LIBS=$LIBS
18760LIBS="-lgcc $LIBS"
18761cat >conftest.$ac_ext <<_ACEOF
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
18767
18768/* Override any GCC internal prototype to avoid an error.
18769 Use char because int might match the return type of a GCC
18770 builtin and then its argument prototype would still apply. */
18771#ifdef __cplusplus
18772extern "C"
18773#endif
18774char __fixdfdi ();
18775int
18776main ()
18777{
18778return __fixdfdi ();
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext conftest$ac_exeext
18784if { (ac_try="$ac_link"
18785case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788esac
18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_link") 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798 { (case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18801esac
18802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_try") 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest$ac_exeext'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18811esac
18812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_cv_lib_gcc___fixdfdi=yes
18818else
18819 echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822 ac_cv_lib_gcc___fixdfdi=no
18823fi
18824
18825rm -f core conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18827LIBS=$ac_check_lib_save_LIBS
18828fi
18829{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18830echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18831if test $ac_cv_lib_gcc___fixdfdi = yes; then
18832
18833cat >>confdefs.h <<\_ACEOF
18834#define HAVE___FIXDFDI 1
18835_ACEOF
18836
18837fi
18838
18839 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18840echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18841if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844 ac_check_lib_save_LIBS=$LIBS
18845LIBS="-lgcc $LIBS"
18846cat >conftest.$ac_ext <<_ACEOF
18847/* confdefs.h. */
18848_ACEOF
18849cat confdefs.h >>conftest.$ac_ext
18850cat >>conftest.$ac_ext <<_ACEOF
18851/* end confdefs.h. */
18852
18853/* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18856#ifdef __cplusplus
18857extern "C"
18858#endif
18859char __fixsfdi ();
18860int
18861main ()
18862{
18863return __fixsfdi ();
18864 ;
18865 return 0;
18866}
18867_ACEOF
18868rm -f conftest.$ac_objext conftest$ac_exeext
18869if { (ac_try="$ac_link"
18870case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18873esac
18874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18876 ac_status=$?
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886esac
18887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest$ac_exeext'
18893 { (case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18896esac
18897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_try") 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_lib_gcc___fixsfdi=yes
18903else
18904 echo "$as_me: failed program was:" >&5
18905sed 's/^/| /' conftest.$ac_ext >&5
18906
18907 ac_cv_lib_gcc___fixsfdi=no
18908fi
18909
18910rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912LIBS=$ac_check_lib_save_LIBS
18913fi
18914{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18915echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18916if test $ac_cv_lib_gcc___fixsfdi = yes; then
18917
18918cat >>confdefs.h <<\_ACEOF
18919#define HAVE___FIXSFDI 1
18920_ACEOF
18921
18922fi
18923
18924 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18925echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18926if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928else
18929 ac_check_lib_save_LIBS=$LIBS
18930LIBS="-lgcc $LIBS"
18931cat >conftest.$ac_ext <<_ACEOF
18932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
18937
18938/* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18941#ifdef __cplusplus
18942extern "C"
18943#endif
18944char __floatdidf ();
18945int
18946main ()
18947{
18948return __floatdidf ();
18949 ;
18950 return 0;
18951}
18952_ACEOF
18953rm -f conftest.$ac_objext conftest$ac_exeext
18954if { (ac_try="$ac_link"
18955case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958esac
18959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_link") 2>conftest.er1
18961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
18967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18968 { (case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18971esac
18972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_try") 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18981esac
18982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_try") 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_cv_lib_gcc___floatdidf=yes
18988else
18989 echo "$as_me: failed program was:" >&5
18990sed 's/^/| /' conftest.$ac_ext >&5
18991
18992 ac_cv_lib_gcc___floatdidf=no
18993fi
18994
18995rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18997LIBS=$ac_check_lib_save_LIBS
18998fi
18999{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19000echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19001if test $ac_cv_lib_gcc___floatdidf = yes; then
19002
19003cat >>confdefs.h <<\_ACEOF
19004#define HAVE___FLOATDIDF 1
19005_ACEOF
19006
19007fi
19008
19009 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19010echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19011if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 ac_check_lib_save_LIBS=$LIBS
19015LIBS="-lgcc $LIBS"
19016cat >conftest.$ac_ext <<_ACEOF
19017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
19022
19023/* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19026#ifdef __cplusplus
19027extern "C"
19028#endif
19029char __lshrdi3 ();
19030int
19031main ()
19032{
19033return __lshrdi3 ();
19034 ;
19035 return 0;
19036}
19037_ACEOF
19038rm -f conftest.$ac_objext conftest$ac_exeext
19039if { (ac_try="$ac_link"
19040case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043esac
19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056esac
19057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066esac
19067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 ac_cv_lib_gcc___lshrdi3=yes
19073else
19074 echo "$as_me: failed program was:" >&5
19075sed 's/^/| /' conftest.$ac_ext >&5
19076
19077 ac_cv_lib_gcc___lshrdi3=no
19078fi
19079
19080rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082LIBS=$ac_check_lib_save_LIBS
19083fi
19084{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19085echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19086if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19087
19088cat >>confdefs.h <<\_ACEOF
19089#define HAVE___LSHRDI3 1
19090_ACEOF
19091
19092fi
19093
19094 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19095echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19096if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19098else
19099 ac_check_lib_save_LIBS=$LIBS
19100LIBS="-lgcc $LIBS"
19101cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h. */
19107
19108/* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19111#ifdef __cplusplus
19112extern "C"
19113#endif
19114char __moddi3 ();
19115int
19116main ()
19117{
19118return __moddi3 ();
19119 ;
19120 return 0;
19121}
19122_ACEOF
19123rm -f conftest.$ac_objext conftest$ac_exeext
19124if { (ac_try="$ac_link"
19125case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19128esac
19129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_link") 2>conftest.er1
19131 ac_status=$?
19132 grep -v '^ *+' conftest.er1 >conftest.err
19133 rm -f conftest.er1
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19138 { (case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141esac
19142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_try") 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest$ac_exeext'
19148 { (case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151esac
19152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_try") 2>&5
19154 ac_status=$?
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; }; then
19157 ac_cv_lib_gcc___moddi3=yes
19158else
19159 echo "$as_me: failed program was:" >&5
19160sed 's/^/| /' conftest.$ac_ext >&5
19161
19162 ac_cv_lib_gcc___moddi3=no
19163fi
19164
19165rm -f core conftest.err conftest.$ac_objext \
19166 conftest$ac_exeext conftest.$ac_ext
19167LIBS=$ac_check_lib_save_LIBS
19168fi
19169{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19170echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19171if test $ac_cv_lib_gcc___moddi3 = yes; then
19172
19173cat >>confdefs.h <<\_ACEOF
19174#define HAVE___MODDI3 1
19175_ACEOF
19176
19177fi
19178
19179 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19180echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19181if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183else
19184 ac_check_lib_save_LIBS=$LIBS
19185LIBS="-lgcc $LIBS"
19186cat >conftest.$ac_ext <<_ACEOF
19187/* confdefs.h. */
19188_ACEOF
19189cat confdefs.h >>conftest.$ac_ext
19190cat >>conftest.$ac_ext <<_ACEOF
19191/* end confdefs.h. */
19192
19193/* Override any GCC internal prototype to avoid an error.
19194 Use char because int might match the return type of a GCC
19195 builtin and then its argument prototype would still apply. */
19196#ifdef __cplusplus
19197extern "C"
19198#endif
19199char __udivdi3 ();
19200int
19201main ()
19202{
19203return __udivdi3 ();
19204 ;
19205 return 0;
19206}
19207_ACEOF
19208rm -f conftest.$ac_objext conftest$ac_exeext
19209if { (ac_try="$ac_link"
19210case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19213esac
19214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_link") 2>conftest.er1
19216 ac_status=$?
19217 grep -v '^ *+' conftest.er1 >conftest.err
19218 rm -f conftest.er1
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19223 { (case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19226esac
19227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_try") 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest$ac_exeext'
19233 { (case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19236esac
19237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_try") 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_lib_gcc___udivdi3=yes
19243else
19244 echo "$as_me: failed program was:" >&5
19245sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 ac_cv_lib_gcc___udivdi3=no
19248fi
19249
19250rm -f core conftest.err conftest.$ac_objext \
19251 conftest$ac_exeext conftest.$ac_ext
19252LIBS=$ac_check_lib_save_LIBS
19253fi
19254{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19255echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19256if test $ac_cv_lib_gcc___udivdi3 = yes; then
19257
19258cat >>confdefs.h <<\_ACEOF
19259#define HAVE___UDIVDI3 1
19260_ACEOF
19261
19262fi
19263
19264 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19265echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19266if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19268else
19269 ac_check_lib_save_LIBS=$LIBS
19270LIBS="-lgcc $LIBS"
19271cat >conftest.$ac_ext <<_ACEOF
19272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
19277
19278/* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19281#ifdef __cplusplus
19282extern "C"
19283#endif
19284char __umoddi3 ();
19285int
19286main ()
19287{
19288return __umoddi3 ();
19289 ;
19290 return 0;
19291}
19292_ACEOF
19293rm -f conftest.$ac_objext conftest$ac_exeext
19294if { (ac_try="$ac_link"
19295case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19298esac
19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_link") 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19311esac
19312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
19318 { (case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321esac
19322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_try") 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 ac_cv_lib_gcc___umoddi3=yes
19328else
19329 echo "$as_me: failed program was:" >&5
19330sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 ac_cv_lib_gcc___umoddi3=no
19333fi
19334
19335rm -f core conftest.err conftest.$ac_objext \
19336 conftest$ac_exeext conftest.$ac_ext
19337LIBS=$ac_check_lib_save_LIBS
19338fi
19339{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19340echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19341if test $ac_cv_lib_gcc___umoddi3 = yes; then
19342
19343cat >>confdefs.h <<\_ACEOF
19344#define HAVE___UMODDI3 1
19345_ACEOF
19346
19347fi
19348
19349
19350 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19351echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19352if test "${ac_cv_lib_gcc___main+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355 ac_check_lib_save_LIBS=$LIBS
19356LIBS="-lgcc $LIBS"
19357cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363
19364/* Override any GCC internal prototype to avoid an error.
19365 Use char because int might match the return type of a GCC
19366 builtin and then its argument prototype would still apply. */
19367#ifdef __cplusplus
19368extern "C"
19369#endif
19370char __main ();
19371int
19372main ()
19373{
19374return __main ();
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext conftest$ac_exeext
19380if { (ac_try="$ac_link"
19381case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384esac
19385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_link") 2>conftest.er1
19387 ac_status=$?
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
19393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19394 { (case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19397esac
19398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_try") 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest$ac_exeext'
19404 { (case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407esac
19408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_try") 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413 ac_cv_lib_gcc___main=yes
19414else
19415 echo "$as_me: failed program was:" >&5
19416sed 's/^/| /' conftest.$ac_ext >&5
19417
19418 ac_cv_lib_gcc___main=no
19419fi
19420
19421rm -f core conftest.err conftest.$ac_objext \
19422 conftest$ac_exeext conftest.$ac_ext
19423LIBS=$ac_check_lib_save_LIBS
19424fi
19425{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19426echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19427if test $ac_cv_lib_gcc___main = yes; then
19428
19429cat >>confdefs.h <<\_ACEOF
19430#define HAVE___MAIN 1
19431_ACEOF
19432
19433fi
19434
19435 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19436echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19437if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439else
19440 ac_check_lib_save_LIBS=$LIBS
19441LIBS="-lgcc $LIBS"
19442cat >conftest.$ac_ext <<_ACEOF
19443/* confdefs.h. */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
19447/* end confdefs.h. */
19448
19449/* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
19452#ifdef __cplusplus
19453extern "C"
19454#endif
19455char __cmpdi2 ();
19456int
19457main ()
19458{
19459return __cmpdi2 ();
19460 ;
19461 return 0;
19462}
19463_ACEOF
19464rm -f conftest.$ac_objext conftest$ac_exeext
19465if { (ac_try="$ac_link"
19466case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469esac
19470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_link") 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19479 { (case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19482esac
19483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_try") 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest$ac_exeext'
19489 { (case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19492esac
19493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_try") 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498 ac_cv_lib_gcc___cmpdi2=yes
19499else
19500 echo "$as_me: failed program was:" >&5
19501sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ac_cv_lib_gcc___cmpdi2=no
19504fi
19505
19506rm -f core conftest.err conftest.$ac_objext \
19507 conftest$ac_exeext conftest.$ac_ext
19508LIBS=$ac_check_lib_save_LIBS
19509fi
19510{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19511echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19512if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19513
19514cat >>confdefs.h <<\_ACEOF
19515#define HAVE___CMPDI2 1
19516_ACEOF
19517
19518fi
19519
19520fi
19521
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019522if test "$llvm_cv_os_type" = "MingW" ; then
19523 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19524echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19525 cat >conftest.$ac_ext <<_ACEOF
19526#include <windows.h>
19527#include <imagehlp.h>
19528extern void foo(PENUMLOADED_MODULES_CALLBACK);
19529extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19530_ACEOF
19531rm -f conftest.$ac_objext
19532if { (ac_try="$ac_compile"
19533case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19536esac
19537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_compile") 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19546 { (case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19549esac
19550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_try") 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
19556 { (case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19559esac
19560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_try") 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565
19566 { echo "$as_me:$LINENO: result: yes" >&5
19567echo "${ECHO_T}yes" >&6; }
19568 llvm_cv_win32_elmcb_pcstr="PCSTR"
19569
19570else
19571 echo "$as_me: failed program was:" >&5
19572sed 's/^/| /' conftest.$ac_ext >&5
19573
19574
19575 { echo "$as_me:$LINENO: result: no" >&5
19576echo "${ECHO_T}no" >&6; }
19577 llvm_cv_win32_elmcb_pcstr="PSTR"
19578
19579fi
19580
19581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582
19583cat >>confdefs.h <<_ACEOF
19584#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19585_ACEOF
19586
19587fi
19588
Torok Edwin871384f2010-01-26 08:50:50 +000019589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019590{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19591echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19592if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019594else
Reid Spencera773bd52006-08-04 18:18:08 +000019595 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019596ac_cpp='$CXXCPP $CPPFLAGS'
19597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019601 cat >conftest.$ac_ext <<_ACEOF
19602/* confdefs.h. */
19603_ACEOF
19604cat confdefs.h >>conftest.$ac_ext
19605cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019606/* end confdefs.h. */
19607#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019608int
19609main ()
19610{
19611float f; isnan(f);
19612 ;
19613 return 0;
19614}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019616rm -f conftest.$ac_objext
19617if { (ac_try="$ac_compile"
19618case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634esac
19635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019650 ac_cv_func_isnan_in_math_h=yes
19651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019652 echo "$as_me: failed program was:" >&5
19653sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019657
Reid Spencera773bd52006-08-04 18:18:08 +000019658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019659 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019660ac_cpp='$CPP $CPPFLAGS'
19661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019666{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19667echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019668
19669
19670if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019672cat >>confdefs.h <<\_ACEOF
19673#define HAVE_ISNAN_IN_MATH_H 1
19674_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019675
Reid Spencerabec8f92004-10-27 23:03:44 +000019676fi
19677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019678{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19679echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19680if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019682else
Reid Spencera773bd52006-08-04 18:18:08 +000019683 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019684ac_cpp='$CXXCPP $CPPFLAGS'
19685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019689 cat >conftest.$ac_ext <<_ACEOF
19690/* confdefs.h. */
19691_ACEOF
19692cat confdefs.h >>conftest.$ac_ext
19693cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019694/* end confdefs.h. */
19695#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019696int
19697main ()
19698{
19699float f; isnan(f);
19700 ;
19701 return 0;
19702}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019703_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019704rm -f conftest.$ac_objext
19705if { (ac_try="$ac_compile"
19706case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19709esac
19710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_compile") 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722esac
19723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732esac
19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_try") 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019738 ac_cv_func_isnan_in_cmath=yes
19739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019740 echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019745
Reid Spencera773bd52006-08-04 18:18:08 +000019746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019747 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019748ac_cpp='$CPP $CPPFLAGS'
19749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751ac_compiler_gnu=$ac_cv_c_compiler_gnu
19752
19753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019754{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19755echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019756
19757if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019759cat >>confdefs.h <<\_ACEOF
19760#define HAVE_ISNAN_IN_CMATH 1
19761_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019762
Reid Spencerabec8f92004-10-27 23:03:44 +000019763fi
19764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019765{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19766echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19767if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019769else
Reid Spencera773bd52006-08-04 18:18:08 +000019770 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019771ac_cpp='$CXXCPP $CPPFLAGS'
19772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019776 cat >conftest.$ac_ext <<_ACEOF
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019781/* end confdefs.h. */
19782#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019783int
19784main ()
19785{
19786float f; std::isnan(f);
19787 ;
19788 return 0;
19789}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019790_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019791rm -f conftest.$ac_objext
19792if { (ac_try="$ac_compile"
19793case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19796esac
19797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_compile") 2>conftest.er1
19799 ac_status=$?
19800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19806 { (case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809esac
19810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_try") 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819esac
19820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019825 ac_cv_func_std_isnan_in_cmath=yes
19826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019827 echo "$as_me: failed program was:" >&5
19828sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019831fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019832
Reid Spencera773bd52006-08-04 18:18:08 +000019833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019834 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019835ac_cpp='$CPP $CPPFLAGS'
19836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838ac_compiler_gnu=$ac_cv_c_compiler_gnu
19839
19840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019841{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19842echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019843
19844if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019846cat >>confdefs.h <<\_ACEOF
19847#define HAVE_STD_ISNAN_IN_CMATH 1
19848_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019849
Reid Spencerabec8f92004-10-27 23:03:44 +000019850fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019851
19852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019853{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19854echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19855if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019857else
Reid Spencera773bd52006-08-04 18:18:08 +000019858 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019859ac_cpp='$CXXCPP $CPPFLAGS'
19860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019864 cat >conftest.$ac_ext <<_ACEOF
19865/* confdefs.h. */
19866_ACEOF
19867cat confdefs.h >>conftest.$ac_ext
19868cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019869/* end confdefs.h. */
19870#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019871int
19872main ()
19873{
19874float f; isinf(f);
19875 ;
19876 return 0;
19877}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019878_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019879rm -f conftest.$ac_objext
19880if { (ac_try="$ac_compile"
19881case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884esac
19885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_compile") 2>conftest.er1
19887 ac_status=$?
19888 grep -v '^ *+' conftest.er1 >conftest.err
19889 rm -f conftest.er1
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
19893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897esac
19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019913 ac_cv_func_isinf_in_math_h=yes
19914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019915 echo "$as_me: failed program was:" >&5
19916sed 's/^/| /' conftest.$ac_ext >&5
19917
19918 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019920
Reid Spencera773bd52006-08-04 18:18:08 +000019921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019922 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019923ac_cpp='$CPP $CPPFLAGS'
19924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926ac_compiler_gnu=$ac_cv_c_compiler_gnu
19927
19928fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019929{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19930echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019931
19932if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019934cat >>confdefs.h <<\_ACEOF
19935#define HAVE_ISINF_IN_MATH_H 1
19936_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019937
Reid Spencerabec8f92004-10-27 23:03:44 +000019938fi
19939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019940{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19941echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19942if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019944else
Reid Spencera773bd52006-08-04 18:18:08 +000019945 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019946ac_cpp='$CXXCPP $CPPFLAGS'
19947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019951 cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019956/* end confdefs.h. */
19957#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019958int
19959main ()
19960{
19961float f; isinf(f);
19962 ;
19963 return 0;
19964}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019965_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019966rm -f conftest.$ac_objext
19967if { (ac_try="$ac_compile"
19968case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19971esac
19972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984esac
19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19994esac
19995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020000 ac_cv_func_isinf_in_cmath=yes
20001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020002 echo "$as_me: failed program was:" >&5
20003sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007
Reid Spencera773bd52006-08-04 18:18:08 +000020008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020009 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020010ac_cpp='$CPP $CPPFLAGS'
20011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20013ac_compiler_gnu=$ac_cv_c_compiler_gnu
20014
20015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020016{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20017echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020018
20019if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020021cat >>confdefs.h <<\_ACEOF
20022#define HAVE_ISINF_IN_CMATH 1
20023_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020024
Reid Spencerabec8f92004-10-27 23:03:44 +000020025fi
20026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020027{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20028echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20029if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020031else
Reid Spencera773bd52006-08-04 18:18:08 +000020032 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020033ac_cpp='$CXXCPP $CPPFLAGS'
20034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038 cat >conftest.$ac_ext <<_ACEOF
20039/* confdefs.h. */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020043/* end confdefs.h. */
20044#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020045int
20046main ()
20047{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020048float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020049 ;
20050 return 0;
20051}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020052_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020053rm -f conftest.$ac_objext
20054if { (ac_try="$ac_compile"
20055case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20058esac
20059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_compile") 2>conftest.er1
20061 ac_status=$?
20062 grep -v '^ *+' conftest.er1 >conftest.err
20063 rm -f conftest.er1
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20068 { (case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071esac
20072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_try") 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20081esac
20082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_try") 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020087 ac_cv_func_std_isinf_in_cmath=yes
20088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020089 echo "$as_me: failed program was:" >&5
20090sed 's/^/| /' conftest.$ac_ext >&5
20091
20092 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020094
Reid Spencera773bd52006-08-04 18:18:08 +000020095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020096 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020097ac_cpp='$CPP $CPPFLAGS'
20098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20100ac_compiler_gnu=$ac_cv_c_compiler_gnu
20101
20102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020103{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20104echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020105
20106if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020108cat >>confdefs.h <<\_ACEOF
20109#define HAVE_STD_ISINF_IN_CMATH 1
20110_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020111
Reid Spencerabec8f92004-10-27 23:03:44 +000020112fi
20113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020114{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20115echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20116if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020118else
Reid Spencera773bd52006-08-04 18:18:08 +000020119 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020120ac_cpp='$CXXCPP $CPPFLAGS'
20121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020125 cat >conftest.$ac_ext <<_ACEOF
20126/* confdefs.h. */
20127_ACEOF
20128cat confdefs.h >>conftest.$ac_ext
20129cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020130/* end confdefs.h. */
20131#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020132int
20133main ()
20134{
20135float f; finite(f);
20136 ;
20137 return 0;
20138}
Brian Gaeked59a6472004-07-21 03:33:58 +000020139_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020140rm -f conftest.$ac_objext
20141if { (ac_try="$ac_compile"
20142case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145esac
20146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_compile") 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20155 { (case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20158esac
20159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_try") 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest.$ac_objext'
20165 { (case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168esac
20169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020174 ac_cv_func_finite_in_ieeefp_h=yes
20175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020176 echo "$as_me: failed program was:" >&5
20177sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020181
Reid Spencera773bd52006-08-04 18:18:08 +000020182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020183 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020184ac_cpp='$CPP $CPPFLAGS'
20185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187ac_compiler_gnu=$ac_cv_c_compiler_gnu
20188
20189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020190{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20191echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020192
Brian Gaeke6802b552004-10-28 05:06:45 +000020193if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020195cat >>confdefs.h <<\_ACEOF
20196#define HAVE_FINITE_IN_IEEEFP_H 1
20197_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020198
Reid Spencerabec8f92004-10-27 23:03:44 +000020199fi
20200
20201
20202
Reid Spencer30fe5262007-01-20 07:48:49 +000020203if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020204
20205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020206for ac_header in stdlib.h unistd.h
20207do
20208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214fi
20215ac_res=`eval echo '${'$as_ac_Header'}'`
20216 { echo "$as_me:$LINENO: result: $ac_res" >&5
20217echo "${ECHO_T}$ac_res" >&6; }
20218else
20219 # Is the header compilable?
20220{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20222cat >conftest.$ac_ext <<_ACEOF
20223/* confdefs.h. */
20224_ACEOF
20225cat confdefs.h >>conftest.$ac_ext
20226cat >>conftest.$ac_ext <<_ACEOF
20227/* end confdefs.h. */
20228$ac_includes_default
20229#include <$ac_header>
20230_ACEOF
20231rm -f conftest.$ac_objext
20232if { (ac_try="$ac_compile"
20233case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20236esac
20237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_compile") 2>conftest.er1
20239 ac_status=$?
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20246 { (case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249esac
20250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_try") 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; } &&
20255 { ac_try='test -s conftest.$ac_objext'
20256 { (case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259esac
20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_try") 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_header_compiler=yes
20266else
20267 echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020270 ac_header_compiler=no
20271fi
20272
20273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20275echo "${ECHO_T}$ac_header_compiler" >&6; }
20276
20277# Is the header present?
20278{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20280cat >conftest.$ac_ext <<_ACEOF
20281/* confdefs.h. */
20282_ACEOF
20283cat confdefs.h >>conftest.$ac_ext
20284cat >>conftest.$ac_ext <<_ACEOF
20285/* end confdefs.h. */
20286#include <$ac_header>
20287_ACEOF
20288if { (ac_try="$ac_cpp conftest.$ac_ext"
20289case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292esac
20293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } >/dev/null; then
20301 if test -s conftest.err; then
20302 ac_cpp_err=$ac_c_preproc_warn_flag
20303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20304 else
20305 ac_cpp_err=
20306 fi
20307else
20308 ac_cpp_err=yes
20309fi
20310if test -z "$ac_cpp_err"; then
20311 ac_header_preproc=yes
20312else
20313 echo "$as_me: failed program was:" >&5
20314sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 ac_header_preproc=no
20317fi
20318
20319rm -f conftest.err conftest.$ac_ext
20320{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20321echo "${ECHO_T}$ac_header_preproc" >&6; }
20322
20323# So? What about this header?
20324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20325 yes:no: )
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20330 ac_header_preproc=yes
20331 ;;
20332 no:yes:* )
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20345 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020346## ------------------------------------ ##
20347## Report this to http://llvm.org/bugs/ ##
20348## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020349_ASBOX
20350 ) | sed "s/^/$as_me: WARNING: /" >&2
20351 ;;
20352esac
20353{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357else
20358 eval "$as_ac_Header=\$ac_header_preproc"
20359fi
20360ac_res=`eval echo '${'$as_ac_Header'}'`
20361 { echo "$as_me:$LINENO: result: $ac_res" >&5
20362echo "${ECHO_T}$ac_res" >&6; }
20363
20364fi
20365if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020366 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020368_ACEOF
20369
20370fi
20371
20372done
20373
20374
20375for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020376do
20377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20378{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20380if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382else
20383 cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h. */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h. */
20389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20391#define $ac_func innocuous_$ac_func
20392
20393/* System header to define __stub macros and hopefully few prototypes,
20394 which can conflict with char $ac_func (); below.
20395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20396 <limits.h> exists even on freestanding compilers. */
20397
20398#ifdef __STDC__
20399# include <limits.h>
20400#else
20401# include <assert.h>
20402#endif
20403
20404#undef $ac_func
20405
20406/* Override any GCC internal prototype to avoid an error.
20407 Use char because int might match the return type of a GCC
20408 builtin and then its argument prototype would still apply. */
20409#ifdef __cplusplus
20410extern "C"
20411#endif
20412char $ac_func ();
20413/* The GNU C library defines this for functions which it implements
20414 to always fail with ENOSYS. Some functions are actually named
20415 something starting with __ and the normal name is an alias. */
20416#if defined __stub_$ac_func || defined __stub___$ac_func
20417choke me
20418#endif
20419
20420int
20421main ()
20422{
20423return $ac_func ();
20424 ;
20425 return 0;
20426}
20427_ACEOF
20428rm -f conftest.$ac_objext conftest$ac_exeext
20429if { (ac_try="$ac_link"
20430case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433esac
20434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20443 { (case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20446esac
20447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_try") 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest$ac_exeext'
20453 { (case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456esac
20457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_try") 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462 eval "$as_ac_var=yes"
20463else
20464 echo "$as_me: failed program was:" >&5
20465sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 eval "$as_ac_var=no"
20468fi
20469
20470rm -f core conftest.err conftest.$ac_objext \
20471 conftest$ac_exeext conftest.$ac_ext
20472fi
20473ac_res=`eval echo '${'$as_ac_var'}'`
20474 { echo "$as_me:$LINENO: result: $ac_res" >&5
20475echo "${ECHO_T}$ac_res" >&6; }
20476if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020477 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020479_ACEOF
20480
20481fi
20482done
20483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020484{ echo "$as_me:$LINENO: checking for working mmap" >&5
20485echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20486if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020490 ac_cv_func_mmap_fixed_mapped=no
20491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020492 cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h. */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020497/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020498$ac_includes_default
20499/* malloc might have been renamed as rpl_malloc. */
20500#undef malloc
20501
20502/* Thanks to Mike Haertel and Jim Avera for this test.
20503 Here is a matrix of mmap possibilities:
20504 mmap private not fixed
20505 mmap private fixed at somewhere currently unmapped
20506 mmap private fixed at somewhere already mapped
20507 mmap shared not fixed
20508 mmap shared fixed at somewhere currently unmapped
20509 mmap shared fixed at somewhere already mapped
20510 For private mappings, we should verify that changes cannot be read()
20511 back from the file, nor mmap's back from the file at a different
20512 address. (There have been systems where private was not correctly
20513 implemented like the infamous i386 svr4.0, and systems where the
20514 VM page cache was not coherent with the file system buffer cache
20515 like early versions of FreeBSD and possibly contemporary NetBSD.)
20516 For shared mappings, we should conversely verify that changes get
20517 propagated back to all the places they're supposed to be.
20518
20519 Grep wants private fixed already mapped.
20520 The main things grep needs to know about mmap are:
20521 * does it exist and is it safe to write into the mmap'd area
20522 * how to use it (BSD variants) */
20523
20524#include <fcntl.h>
20525#include <sys/mman.h>
20526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020527#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020528char *malloc ();
20529#endif
20530
20531/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020532#if !HAVE_GETPAGESIZE
20533/* Assume that all systems that can run configure have sys/param.h. */
20534# if !HAVE_SYS_PARAM_H
20535# define HAVE_SYS_PARAM_H 1
20536# endif
20537
John Criswell7a73b802003-06-30 21:59:07 +000020538# ifdef _SC_PAGESIZE
20539# define getpagesize() sysconf(_SC_PAGESIZE)
20540# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020542# include <sys/param.h>
20543# ifdef EXEC_PAGESIZE
20544# define getpagesize() EXEC_PAGESIZE
20545# else /* no EXEC_PAGESIZE */
20546# ifdef NBPG
20547# define getpagesize() NBPG * CLSIZE
20548# ifndef CLSIZE
20549# define CLSIZE 1
20550# endif /* no CLSIZE */
20551# else /* no NBPG */
20552# ifdef NBPC
20553# define getpagesize() NBPC
20554# else /* no NBPC */
20555# ifdef PAGESIZE
20556# define getpagesize() PAGESIZE
20557# endif /* PAGESIZE */
20558# endif /* no NBPC */
20559# endif /* no NBPG */
20560# endif /* no EXEC_PAGESIZE */
20561# else /* no HAVE_SYS_PARAM_H */
20562# define getpagesize() 8192 /* punt totally */
20563# endif /* no HAVE_SYS_PARAM_H */
20564# endif /* no _SC_PAGESIZE */
20565
20566#endif /* no HAVE_GETPAGESIZE */
20567
20568int
20569main ()
20570{
20571 char *data, *data2, *data3;
20572 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020574
20575 pagesize = getpagesize ();
20576
20577 /* First, make a file with some known garbage in it. */
20578 data = (char *) malloc (pagesize);
20579 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020580 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020581 for (i = 0; i < pagesize; ++i)
20582 *(data + i) = rand ();
20583 umask (0);
20584 fd = creat ("conftest.mmap", 0600);
20585 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020587 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020588 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020589 close (fd);
20590
20591 /* Next, try to mmap the file at a fixed address which already has
20592 something else allocated at it. If we can, also make sure that
20593 we see the same garbage. */
20594 fd = open ("conftest.mmap", O_RDWR);
20595 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020596 return 1;
20597 data2 = (char *) malloc (2 * pagesize);
20598 if (!data2)
20599 return 1;
20600 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020604 for (i = 0; i < pagesize; ++i)
20605 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020606 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020607
20608 /* Finally, make sure that changes to the mapped area do not
20609 percolate back to the file as seen by read(). (This is a bug on
20610 some variants of i386 svr4.0.) */
20611 for (i = 0; i < pagesize; ++i)
20612 *(data2 + i) = *(data2 + i) + 1;
20613 data3 = (char *) malloc (pagesize);
20614 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020615 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020616 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020617 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020618 for (i = 0; i < pagesize; ++i)
20619 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020620 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020621 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020622 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020623}
20624_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020625rm -f conftest$ac_exeext
20626if { (ac_try="$ac_link"
20627case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630esac
20631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_link") 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20636 { (case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639esac
20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_try") 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020645 ac_cv_func_mmap_fixed_mapped=yes
20646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020647 echo "$as_me: program exited with status $ac_status" >&5
20648echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651( exit $ac_status )
20652ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020655fi
Reid Spencera773bd52006-08-04 18:18:08 +000020656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020657
John Criswell7a73b802003-06-30 21:59:07 +000020658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020659{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20660echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020661if test $ac_cv_func_mmap_fixed_mapped = yes; then
20662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663cat >>confdefs.h <<\_ACEOF
20664#define HAVE_MMAP 1
20665_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020666
20667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020668rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020670 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20671echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20672if test "${ac_cv_func_mmap_file+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020674else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020675 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020676ac_cpp='$CPP $CPPFLAGS'
20677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679ac_compiler_gnu=$ac_cv_c_compiler_gnu
20680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020682 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020684 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686 /* confdefs.h. */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020691
John Criswell7a73b802003-06-30 21:59:07 +000020692#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020693#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020694#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020695
20696int
20697main ()
20698{
John Criswell7a73b802003-06-30 21:59:07 +000020699
20700 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020701 fd = creat ("foo",0777);
20702 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20703 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020704 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020705 ;
20706 return 0;
20707}
John Criswell7a73b802003-06-30 21:59:07 +000020708_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020709rm -f conftest$ac_exeext
20710if { (ac_try="$ac_link"
20711case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20714esac
20715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_link") 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20720 { (case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20723esac
20724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_try") 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020729 ac_cv_func_mmap_file=yes
20730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020731 echo "$as_me: program exited with status $ac_status" >&5
20732echo "$as_me: failed program was:" >&5
20733sed 's/^/| /' conftest.$ac_ext >&5
20734
20735( exit $ac_status )
20736ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020737fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020739fi
Reid Spencera773bd52006-08-04 18:18:08 +000020740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020741
John Criswell7a73b802003-06-30 21:59:07 +000020742 ac_ext=c
20743ac_cpp='$CPP $CPPFLAGS'
20744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746ac_compiler_gnu=$ac_cv_c_compiler_gnu
20747
20748
20749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020750{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20751echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020752if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020754cat >>confdefs.h <<\_ACEOF
20755#define HAVE_MMAP_FILE
20756_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020757
20758 MMAP_FILE=yes
20759
20760fi
20761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020762 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20763echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20764if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020766else
Reid Spencer582a23c2004-12-29 07:07:57 +000020767 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020768 ac_cv_need_dev_zero_for_mmap=yes
20769 else
20770 ac_cv_need_dev_zero_for_mmap=no
20771 fi
20772
20773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20775echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020776if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778cat >>confdefs.h <<\_ACEOF
20779#define NEED_DEV_ZERO_FOR_MMAP 1
20780_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020781
20782fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020783
Reid Spencer30fe5262007-01-20 07:48:49 +000020784 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20785 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20787echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020788 fi
20789 if test "$ac_cv_func_mmap_file" = "no"
20790 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020791 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20792echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020793 fi
John Criswellb13092b2003-07-22 21:00:24 +000020794fi
John Criswell7a73b802003-06-30 21:59:07 +000020795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020796{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20797echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020798ac_ext=cpp
20799ac_cpp='$CXXCPP $CPPFLAGS'
20800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020804cat >conftest.$ac_ext <<_ACEOF
20805/* confdefs.h. */
20806_ACEOF
20807cat confdefs.h >>conftest.$ac_ext
20808cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020809/* end confdefs.h. */
20810int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020811 volatile unsigned long val = 1;
20812 __sync_synchronize();
20813 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020814 __sync_add_and_fetch(&val, 1);
20815 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020816 return 0;
20817 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020818
20819_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020820rm -f conftest.$ac_objext conftest$ac_exeext
20821if { (ac_try="$ac_link"
20822case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20825esac
20826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_link") 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } &&
20834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20835 { (case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20838esac
20839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_try") 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; } &&
20844 { ac_try='test -s conftest$ac_exeext'
20845 { (case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848esac
20849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_try") 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020854 ac_ext=c
20855ac_cpp='$CPP $CPPFLAGS'
20856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20858ac_compiler_gnu=$ac_cv_c_compiler_gnu
20859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860 { echo "$as_me:$LINENO: result: yes" >&5
20861echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020863cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020864#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020865_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020866
Owen Andersond4b272b2009-05-18 23:58:51 +000020867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020868 echo "$as_me: failed program was:" >&5
20869sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871 { echo "$as_me:$LINENO: result: no" >&5
20872echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020874cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020875#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020876_ACEOF
20877
20878 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20879echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020881
Owen Andersond4b272b2009-05-18 23:58:51 +000020882rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020883 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020884
John Criswell7a73b802003-06-30 21:59:07 +000020885
Nick Lewycky4372e692009-09-29 06:18:23 +000020886if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20888echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20889if test "${llvm_cv_linux_mixed+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020891else
20892 ac_ext=c
20893ac_cpp='$CPP $CPPFLAGS'
20894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20896ac_compiler_gnu=$ac_cv_c_compiler_gnu
20897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898 cat >conftest.$ac_ext <<_ACEOF
20899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020903/* end confdefs.h. */
20904#ifndef __x86_64__
20905 error: Not x86-64 even if uname says so!
20906 #endif
20907
20908int
20909main ()
20910{
20911
20912 ;
20913 return 0;
20914}
20915_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020916rm -f conftest.$ac_objext
20917if { (ac_try="$ac_compile"
20918case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20921esac
20922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_compile") 2>conftest.er1
20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } &&
20930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20931 { (case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20934esac
20935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_try") 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; } &&
20940 { ac_try='test -s conftest.$ac_objext'
20941 { (case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20944esac
20945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_try") 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020950 llvm_cv_linux_mixed=no
20951else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020952 echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020957
Nick Lewycky4372e692009-09-29 06:18:23 +000020958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959 ac_ext=c
20960ac_cpp='$CPP $CPPFLAGS'
20961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963ac_compiler_gnu=$ac_cv_c_compiler_gnu
20964
20965
20966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020967{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20968echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020969
20970 if test "$llvm_cv_linux_mixed" = "yes"; then
20971 llvm_cv_target_arch="x86"
20972 ARCH="x86"
20973 fi
20974fi
20975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020976
Reid Spencer9372f152007-07-30 20:13:24 +000020977for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020978do
20979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20980{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20984else
20985 cat >conftest.$ac_ext <<_ACEOF
20986/* confdefs.h. */
20987_ACEOF
20988cat confdefs.h >>conftest.$ac_ext
20989cat >>conftest.$ac_ext <<_ACEOF
20990/* end confdefs.h. */
20991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20993#define $ac_func innocuous_$ac_func
20994
20995/* System header to define __stub macros and hopefully few prototypes,
20996 which can conflict with char $ac_func (); below.
20997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20998 <limits.h> exists even on freestanding compilers. */
20999
21000#ifdef __STDC__
21001# include <limits.h>
21002#else
21003# include <assert.h>
21004#endif
21005
21006#undef $ac_func
21007
21008/* Override any GCC internal prototype to avoid an error.
21009 Use char because int might match the return type of a GCC
21010 builtin and then its argument prototype would still apply. */
21011#ifdef __cplusplus
21012extern "C"
21013#endif
21014char $ac_func ();
21015/* The GNU C library defines this for functions which it implements
21016 to always fail with ENOSYS. Some functions are actually named
21017 something starting with __ and the normal name is an alias. */
21018#if defined __stub_$ac_func || defined __stub___$ac_func
21019choke me
21020#endif
21021
21022int
21023main ()
21024{
21025return $ac_func ();
21026 ;
21027 return 0;
21028}
21029_ACEOF
21030rm -f conftest.$ac_objext conftest$ac_exeext
21031if { (ac_try="$ac_link"
21032case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21035esac
21036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_link") 2>conftest.er1
21038 ac_status=$?
21039 grep -v '^ *+' conftest.er1 >conftest.err
21040 rm -f conftest.er1
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21048esac
21049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_try") 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest$ac_exeext'
21055 { (case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058esac
21059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_try") 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 eval "$as_ac_var=yes"
21065else
21066 echo "$as_me: failed program was:" >&5
21067sed 's/^/| /' conftest.$ac_ext >&5
21068
21069 eval "$as_ac_var=no"
21070fi
21071
21072rm -f core conftest.err conftest.$ac_objext \
21073 conftest$ac_exeext conftest.$ac_ext
21074fi
21075ac_res=`eval echo '${'$as_ac_var'}'`
21076 { echo "$as_me:$LINENO: result: $ac_res" >&5
21077echo "${ECHO_T}$ac_res" >&6; }
21078if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021079 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021081_ACEOF
21082
21083fi
21084done
21085
21086
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021087SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021088
21089
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021090SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21091
21092
Jeff Cohen28783c32007-01-12 18:22:38 +000021093if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021094 prefix="/usr/local"
21095fi
Reid Spencere9de0912004-08-20 09:03:57 +000021096eval LLVM_PREFIX="${prefix}";
21097eval LLVM_BINDIR="${prefix}/bin";
21098eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021099eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021100eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021101eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021102eval LLVM_INCLUDEDIR="${prefix}/include";
21103eval LLVM_INFODIR="${prefix}/info";
21104eval LLVM_MANDIR="${prefix}/man";
21105LLVM_CONFIGTIME=`date`
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021117if test "${ENABLE_TIMESTAMPS}" = "0"; then
21118 LLVM_CONFIGTIME="(timestamp not enabled)"
21119fi
21120
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021121
Reid Spencere9de0912004-08-20 09:03:57 +000021122cat >>confdefs.h <<_ACEOF
21123#define LLVM_PREFIX "$LLVM_PREFIX"
21124_ACEOF
21125
21126
21127cat >>confdefs.h <<_ACEOF
21128#define LLVM_BINDIR "$LLVM_BINDIR"
21129_ACEOF
21130
21131
21132cat >>confdefs.h <<_ACEOF
21133#define LLVM_LIBDIR "$LLVM_LIBDIR"
21134_ACEOF
21135
21136
21137cat >>confdefs.h <<_ACEOF
21138#define LLVM_DATADIR "$LLVM_DATADIR"
21139_ACEOF
21140
21141
21142cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021143#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021144_ACEOF
21145
21146
21147cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021148#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021149_ACEOF
21150
21151
21152cat >>confdefs.h <<_ACEOF
21153#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21154_ACEOF
21155
21156
21157cat >>confdefs.h <<_ACEOF
21158#define LLVM_INFODIR "$LLVM_INFODIR"
21159_ACEOF
21160
21161
21162cat >>confdefs.h <<_ACEOF
21163#define LLVM_MANDIR "$LLVM_MANDIR"
21164_ACEOF
21165
21166
21167cat >>confdefs.h <<_ACEOF
21168#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21169_ACEOF
21170
21171
Eric Christopher790e11c2007-12-01 00:34:39 +000021172cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021173#define LLVM_HOSTTRIPLE "$host"
21174_ACEOF
21175
21176
21177cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021178#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021179_ACEOF
21180
21181
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021182if test "$BINDINGS_TO_BUILD" = auto ; then
21183 BINDINGS_TO_BUILD=""
21184 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21185 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21186 fi
21187fi
21188BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21189
21190
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021191ALL_BINDINGS=ocaml
21192
21193
Gordon Henriksenf0915682007-10-02 16:42:22 +000021194binding_prereqs_failed=0
21195for a_binding in $BINDINGS_TO_BUILD ; do
21196 case "$a_binding" in
21197 ocaml)
21198 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021199 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21200echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021201 binding_prereqs_failed=1
21202 fi
21203 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21205echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021206 binding_prereqs_failed=1
21207 fi
21208 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21210echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021211 fi
21212 if test "x$with_ocaml_libdir" != xauto ; then
21213 OCAML_LIBDIR=$with_ocaml_libdir
21214
21215 else
21216 ocaml_stdlib="`"$OCAMLC" -where`"
21217 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21218 then
21219 # ocaml stdlib is beneath our prefix; use stdlib
21220 OCAML_LIBDIR=$ocaml_stdlib
21221
21222 else
21223 # ocaml stdlib is outside our prefix; use libdir/ocaml
21224 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21225
21226 fi
21227 fi
21228 ;;
21229 esac
21230done
21231if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021232 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21233echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21234 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021235fi
21236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021237{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21238echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21239if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021241else
21242 ac_ext=cpp
21243ac_cpp='$CXXCPP $CPPFLAGS'
21244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21247
21248 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021249 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021250 cat >conftest.$ac_ext <<_ACEOF
21251/* confdefs.h. */
21252_ACEOF
21253cat confdefs.h >>conftest.$ac_ext
21254cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021255/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021256template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021257int
21258main ()
21259{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021260X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021261 ;
21262 return 0;
21263}
21264_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265rm -f conftest.$ac_objext
21266if { (ac_try="$ac_compile"
21267case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21270esac
21271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_compile") 2>conftest.er1
21273 ac_status=$?
21274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } &&
21279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21280 { (case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21283esac
21284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_try") 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } &&
21289 { ac_try='test -s conftest.$ac_objext'
21290 { (case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293esac
21294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_try") 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021299 llvm_cv_cxx_visibility_inlines_hidden=yes
21300else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021301 echo "$as_me: failed program was:" >&5
21302sed 's/^/| /' conftest.$ac_ext >&5
21303
21304 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21308 CXXFLAGS="$oldcxxflags"
21309 ac_ext=c
21310ac_cpp='$CPP $CPPFLAGS'
21311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21313ac_compiler_gnu=$ac_cv_c_compiler_gnu
21314
21315
21316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21318echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021319if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21320 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21321
21322else
21323 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21324
21325fi
21326
Gordon Henriksenf0915682007-10-02 16:42:22 +000021327
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021328if test "$llvm_cv_link_use_r" = "yes" ; then
21329 RPATH="-Wl,-R"
21330else
21331 RPATH="-Wl,-rpath"
21332fi
21333
21334
21335if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21336 RDYNAMIC="-Wl,-export-dynamic"
21337else
21338 RDYNAMIC=""
21339fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021340
21341
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021342
Eric Christophera1cba682010-08-08 02:44:25 +000021343ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021344
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021345
21346
21347
21348
21349
Douglas Gregor1555a232009-06-16 20:12:29 +000021350ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21351
21352ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21353
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021354ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21355
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021356ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21357
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021358ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021359
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021360
Reid Spencera773bd52006-08-04 18:18:08 +000021361ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021362
Eric Christopher360fa9a2011-10-26 00:42:12 +000021363
Reid Spencerea949cf2006-08-16 00:45:38 +000021364ac_config_files="$ac_config_files llvm.spec"
21365
21366
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021367ac_config_files="$ac_config_files docs/doxygen.cfg"
21368
Eric Christopher63c09512012-02-02 00:16:55 +000021369
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021370if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021371 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021372fi
Eric Christopher63c09512012-02-02 00:16:55 +000021373if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021374 configh="include/clang/Config/config.h"
21375 doxy="docs/doxygen.cfg"
21376 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021377
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021378 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021379
21380fi
21381
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021382ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021383
Eric Christopher360fa9a2011-10-26 00:42:12 +000021384
Reid Spencera773bd52006-08-04 18:18:08 +000021385ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021386
Reid Spencera773bd52006-08-04 18:18:08 +000021387ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021388
21389
Reid Spencera773bd52006-08-04 18:18:08 +000021390ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021391
21392
Reid Spencera773bd52006-08-04 18:18:08 +000021393ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021394
21395
Reid Spencera773bd52006-08-04 18:18:08 +000021396ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021397
21398
Reid Spencer8b2e1412006-11-17 03:32:33 +000021399ac_config_commands="$ac_config_commands runtime/Makefile"
21400
21401
Reid Spencera773bd52006-08-04 18:18:08 +000021402ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021403
21404
Reid Spencera773bd52006-08-04 18:18:08 +000021405ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021406
21407
Bill Wendlingf24eb392009-01-04 23:12:30 +000021408ac_config_commands="$ac_config_commands unittests/Makefile"
21409
21410
Reid Spencera773bd52006-08-04 18:18:08 +000021411ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021412
21413
Reid Spencera773bd52006-08-04 18:18:08 +000021414ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021415
21416
Reid Spencera773bd52006-08-04 18:18:08 +000021417ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021418
21419
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021420ac_config_commands="$ac_config_commands bindings/Makefile"
21421
21422
21423ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21424
21425
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021426
John Criswell7a73b802003-06-30 21:59:07 +000021427cat >confcache <<\_ACEOF
21428# This file is a shell script that caches the results of configure
21429# tests run on this system so they can be shared between configure
21430# scripts and configure runs, see configure's option --config-cache.
21431# It is not useful on other systems. If it contains results you don't
21432# want to keep, you may remove or edit it.
21433#
21434# config.status only pays attention to the cache file if you give it
21435# the --recheck option to rerun configure.
21436#
John Criswell0c38eaf2003-09-10 15:17:25 +000021437# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021438# loading this file, other *unset* `ac_cv_foo' will be assigned the
21439# following values.
21440
21441_ACEOF
21442
21443# The following way of writing the cache mishandles newlines in values,
21444# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021445# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021446# Ultrix sh set writes to stderr and can't be redirected directly,
21447# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021448(
21449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21450 eval ac_val=\$$ac_var
21451 case $ac_val in #(
21452 *${as_nl}*)
21453 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021454 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21455echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021456 esac
21457 case $ac_var in #(
21458 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021459 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021460 esac ;;
21461 esac
21462 done
21463
John Criswell7a73b802003-06-30 21:59:07 +000021464 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21466 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467 # `set' does not quote correctly, so add quotes (double-quote
21468 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021469 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021470 "s/'/'\\\\''/g;
21471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021472 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021473 *)
21474 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021476 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021477 esac |
21478 sort
21479) |
John Criswell7a73b802003-06-30 21:59:07 +000021480 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021481 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021482 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021483 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21485 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21487 :end' >>confcache
21488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21489 if test -w "$cache_file"; then
21490 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21492echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021493 cat confcache >$cache_file
21494 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021495 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21496echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021497 fi
21498fi
21499rm -f confcache
21500
21501test "x$prefix" = xNONE && prefix=$ac_default_prefix
21502# Let make expand exec_prefix.
21503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21504
John Criswell7a73b802003-06-30 21:59:07 +000021505DEFS=-DHAVE_CONFIG_H
21506
John Criswell0c38eaf2003-09-10 15:17:25 +000021507ac_libobjs=
21508ac_ltlibobjs=
21509for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21510 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021512 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21514 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021515 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21516 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021517done
21518LIBOBJS=$ac_libobjs
21519
21520LTLIBOBJS=$ac_ltlibobjs
21521
21522
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021523if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21525Usually this means the macro was only invoked conditionally." >&5
21526echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21527Usually this means the macro was only invoked conditionally." >&2;}
21528 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021529fi
21530if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21532Usually this means the macro was only invoked conditionally." >&5
21533echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21534Usually this means the macro was only invoked conditionally." >&2;}
21535 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021536fi
John Criswell7a73b802003-06-30 21:59:07 +000021537
21538: ${CONFIG_STATUS=./config.status}
21539ac_clean_files_save=$ac_clean_files
21540ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021541{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21542echo "$as_me: creating $CONFIG_STATUS" >&6;}
21543cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021544#! $SHELL
21545# Generated by $as_me.
21546# Run this file to recreate the current configuration.
21547# Compiler output produced by configure, useful for debugging
21548# configure, is in config.log if it exists.
21549
21550debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021551ac_cs_recheck=false
21552ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021553SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021554_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021556cat >>$CONFIG_STATUS <<\_ACEOF
21557## --------------------- ##
21558## M4sh Initialization. ##
21559## --------------------- ##
21560
21561# Be Bourne compatible
21562if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021563 emulate sh
21564 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021565 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021566 # is contrary to our usage. Disable this feature.
21567 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021568 setopt NO_GLOB_SUBST
21569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572BIN_SH=xpg4; export BIN_SH # for Tru64
21573DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021574
John Criswell7a73b802003-06-30 21:59:07 +000021575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021576# PATH needs CR
21577# Avoid depending upon Character Ranges.
21578as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21579as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21580as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21581as_cr_digits='0123456789'
21582as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021583
21584# The user is always right.
21585if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586 echo "#! /bin/sh" >conf$$.sh
21587 echo "exit 0" >>conf$$.sh
21588 chmod +x conf$$.sh
21589 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21590 PATH_SEPARATOR=';'
21591 else
21592 PATH_SEPARATOR=:
21593 fi
21594 rm -f conf$$.sh
21595fi
21596
21597# Support unset when possible.
21598if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21599 as_unset=unset
21600else
21601 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021602fi
John Criswell7a73b802003-06-30 21:59:07 +000021603
Reid Spencera773bd52006-08-04 18:18:08 +000021604
21605# IFS
21606# We need space, tab and new line, in precisely that order. Quoting is
21607# there to prevent editors from complaining about space-tab.
21608# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21609# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021610as_nl='
21611'
Reid Spencera773bd52006-08-04 18:18:08 +000021612IFS=" "" $as_nl"
21613
21614# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021615case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021616 *[\\/]* ) as_myself=$0 ;;
21617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021618for as_dir in $PATH
21619do
21620 IFS=$as_save_IFS
21621 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21623done
Reid Spencera773bd52006-08-04 18:18:08 +000021624IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021625
Reid Spencera773bd52006-08-04 18:18:08 +000021626 ;;
21627esac
21628# We did not find ourselves, most probably we were run as `sh COMMAND'
21629# in which case we are not to be found in the path.
21630if test "x$as_myself" = x; then
21631 as_myself=$0
21632fi
21633if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21635 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021636fi
21637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021638# Work around bugs in pre-3.0 UWIN ksh.
21639for as_var in ENV MAIL MAILPATH
21640do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021641done
21642PS1='$ '
21643PS2='> '
21644PS4='+ '
21645
21646# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647for as_var in \
21648 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21649 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21650 LC_TELEPHONE LC_TIME
21651do
21652 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21653 eval $as_var=C; export $as_var
21654 else
21655 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021656 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657done
Torok Edwin871384f2010-01-26 08:50:50 +000021658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021660if expr a : '\(a\)' >/dev/null 2>&1 &&
21661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21662 as_expr=expr
21663else
21664 as_expr=false
21665fi
21666
21667if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21668 as_basename=basename
21669else
21670 as_basename=false
21671fi
21672
21673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021674# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021675as_me=`$as_basename -- "$0" ||
21676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21677 X"$0" : 'X\(//\)$' \| \
21678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021679echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021680 sed '/^.*\/\([^/][^/]*\)\/*$/{
21681 s//\1/
21682 q
21683 }
21684 /^X\/\(\/\/\)$/{
21685 s//\1/
21686 q
21687 }
21688 /^X\/\(\/\).*/{
21689 s//\1/
21690 q
21691 }
21692 s/.*/./; q'`
21693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021694# CDPATH.
21695$as_unset CDPATH
21696
21697
21698
21699 as_lineno_1=$LINENO
21700 as_lineno_2=$LINENO
21701 test "x$as_lineno_1" != "x$as_lineno_2" &&
21702 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21703
21704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21705 # uniformly replaced by the line number. The first 'sed' inserts a
21706 # line-number line after each line using $LINENO; the second 'sed'
21707 # does the real work. The second script uses 'N' to pair each
21708 # line-number line with the line containing $LINENO, and appends
21709 # trailing '-' during substitution so that $LINENO is not a special
21710 # case at line end.
21711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21712 # scripts with optimization help from Paolo Bonzini. Blame Lee
21713 # E. McMahon (1931-1989) for sed's syntax. :-)
21714 sed -n '
21715 p
21716 /[$]LINENO/=
21717 ' <$as_myself |
21718 sed '
21719 s/[$]LINENO.*/&-/
21720 t lineno
21721 b
21722 :lineno
21723 N
21724 :loop
21725 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21726 t loop
21727 s/-\n.*//
21728 ' >$as_me.lineno &&
21729 chmod +x "$as_me.lineno" ||
21730 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21731 { (exit 1); exit 1; }; }
21732
21733 # Don't try to exec as it changes $[0], causing all sort of problems
21734 # (the dirname of $[0] is not the place where we might find the
21735 # original and so on. Autoconf is especially sensitive to this).
21736 . "./$as_me.lineno"
21737 # Exit status is that of the last command.
21738 exit
21739}
21740
21741
21742if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21743 as_dirname=dirname
21744else
21745 as_dirname=false
21746fi
Reid Spencera773bd52006-08-04 18:18:08 +000021747
21748ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021749case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021750-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021751 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021753 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021754 esac;;
21755*)
21756 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021757esac
21758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021759if expr a : '\(a\)' >/dev/null 2>&1 &&
21760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21761 as_expr=expr
21762else
21763 as_expr=false
21764fi
21765
John Criswell7a73b802003-06-30 21:59:07 +000021766rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021767if test -d conf$$.dir; then
21768 rm -f conf$$.dir/conf$$.file
21769else
21770 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021771 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021773echo >conf$$.file
21774if ln -s conf$$.file conf$$ 2>/dev/null; then
21775 as_ln_s='ln -s'
21776 # ... but there are two gotchas:
21777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21779 # In both cases, we have to default to `cp -p'.
21780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021781 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021782elif ln conf$$.file conf$$ 2>/dev/null; then
21783 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021784else
21785 as_ln_s='cp -p'
21786fi
Reid Spencera773bd52006-08-04 18:18:08 +000021787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21788rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021789
John Criswell0c38eaf2003-09-10 15:17:25 +000021790if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021792else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021793 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021794 as_mkdir_p=false
21795fi
21796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021797# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21798# systems may use methods other than mode bits to determine executability.
21799cat >conf$$.file <<_ASEOF
21800#! /bin/sh
21801exit 0
21802_ASEOF
21803chmod +x conf$$.file
21804if test -x conf$$.file >/dev/null 2>&1; then
21805 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021807 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021810
21811# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021812as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021813
21814# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021815as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021816
21817
John Criswell7a73b802003-06-30 21:59:07 +000021818exec 6>&1
21819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021821# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021822# values after options handling.
21823ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021824This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021826
21827 CONFIG_FILES = $CONFIG_FILES
21828 CONFIG_HEADERS = $CONFIG_HEADERS
21829 CONFIG_LINKS = $CONFIG_LINKS
21830 CONFIG_COMMANDS = $CONFIG_COMMANDS
21831 $ $0 $@
21832
Reid Spencera773bd52006-08-04 18:18:08 +000021833on `(hostname || uname -n) 2>/dev/null | sed 1q`
21834"
21835
John Criswell7a73b802003-06-30 21:59:07 +000021836_ACEOF
21837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021839# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021840config_files="$ac_config_files"
21841config_headers="$ac_config_headers"
21842config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021843
Reid Spencera773bd52006-08-04 18:18:08 +000021844_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021847ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021848\`$as_me' instantiates files from templates according to the
21849current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021851Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021852
21853 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021854 -V, --version print version number, then exit
21855 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021856 -d, --debug don't remove temporary files
21857 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858 --file=FILE[:TEMPLATE]
21859 instantiate the configuration file FILE
21860 --header=FILE[:TEMPLATE]
21861 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021862
21863Configuration files:
21864$config_files
21865
21866Configuration headers:
21867$config_headers
21868
John Criswellc764fbc2003-09-06 15:17:13 +000021869Configuration commands:
21870$config_commands
21871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021873
Reid Spencera773bd52006-08-04 18:18:08 +000021874_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021876ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021877LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878configured by $0, generated by GNU Autoconf 2.60,
21879 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021881Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021882This config.status script is free software; the Free Software Foundation
21883gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021884
21885ac_pwd='$ac_pwd'
21886srcdir='$srcdir'
21887INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021888_ACEOF
21889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890cat >>$CONFIG_STATUS <<\_ACEOF
21891# If no file are specified by the user, then we need to provide default
21892# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021893ac_need_defaults=:
21894while test $# != 0
21895do
21896 case $1 in
21897 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021900 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021901 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021902 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021903 ac_option=$1
21904 ac_optarg=$2
21905 ac_shift=shift
21906 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021907 esac
21908
John Criswell0c38eaf2003-09-10 15:17:25 +000021909 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021910 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21912 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021915 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021916 debug=: ;;
21917 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021918 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021920 ac_need_defaults=false;;
21921 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021922 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021924 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021925 --he | --h)
21926 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021927 { echo "$as_me: error: ambiguous option: $1
21928Try \`$0 --help' for more information." >&2
21929 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021930 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021931 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21934 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021935
21936 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021937 -*) { echo "$as_me: error: unrecognized option: $1
21938Try \`$0 --help' for more information." >&2
21939 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021941 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021942 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021943
21944 esac
21945 shift
21946done
21947
John Criswell0c38eaf2003-09-10 15:17:25 +000021948ac_configure_extra_args=
21949
21950if $ac_cs_silent; then
21951 exec 6>/dev/null
21952 ac_configure_extra_args="$ac_configure_extra_args --silent"
21953fi
21954
21955_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021957if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21959 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021960 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021962fi
21963
John Criswell7a73b802003-06-30 21:59:07 +000021964_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021965cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021966exec 5>>config.log
21967{
21968 echo
21969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21970## Running $as_me. ##
21971_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021972 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021973} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021974
Reid Spencera773bd52006-08-04 18:18:08 +000021975_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021976cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021977#
Reid Spencera773bd52006-08-04 18:18:08 +000021978# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021979#
Reid Spencerc0682832005-02-24 19:05:19 +000021980llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021981
21982_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021984cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021985
21986# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021987for ac_config_target in $ac_config_targets
21988do
Reid Spencera773bd52006-08-04 18:18:08 +000021989 case $ac_config_target in
21990 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021991 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021992 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21993 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021994 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021995 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021996 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021997 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021998 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021999 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000022000 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22001 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000022002 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022003 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22004 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22005 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22006 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22007 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022008 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022009 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22010 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022011 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022012 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22013 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22014 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022015 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22016 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22019echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22020 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022021 esac
22022done
22023
Reid Spencera773bd52006-08-04 18:18:08 +000022024
John Criswell7a73b802003-06-30 21:59:07 +000022025# If the user did not use the arguments to specify the items to instantiate,
22026# then the envvar interface is used. Set only those that are not.
22027# We use the long form for the default assignment because of an extremely
22028# bizarre bug on SunOS 4.1.3.
22029if $ac_need_defaults; then
22030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022033fi
22034
John Criswell0c38eaf2003-09-10 15:17:25 +000022035# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022036# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022037# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022038# Hook for its removal unless debugging.
22039# Note that there is a small window in which the directory will not be cleaned:
22040# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022041$debug ||
22042{
Reid Spencera773bd52006-08-04 18:18:08 +000022043 tmp=
22044 trap 'exit_status=$?
22045 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22046' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022047 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022048}
John Criswell7a73b802003-06-30 21:59:07 +000022049# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022050
John Criswell7a73b802003-06-30 21:59:07 +000022051{
Reid Spencera773bd52006-08-04 18:18:08 +000022052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022053 test -n "$tmp" && test -d "$tmp"
22054} ||
22055{
Reid Spencera773bd52006-08-04 18:18:08 +000022056 tmp=./conf$$-$RANDOM
22057 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058} ||
22059{
22060 echo "$me: cannot create a temporary directory in ." >&2
22061 { (exit 1); exit 1; }
22062}
John Criswell7a73b802003-06-30 21:59:07 +000022063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022064#
22065# Set up the sed scripts for CONFIG_FILES section.
22066#
22067
22068# No need to generate the scripts if there are no CONFIG_FILES.
22069# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022070if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022071
22072_ACEOF
22073
Reid Spencera773bd52006-08-04 18:18:08 +000022074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022075
Reid Spencera773bd52006-08-04 18:18:08 +000022076ac_delim='%!_!# '
22077for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022078 cat >conf$$subs.sed <<_ACEOF
22079SHELL!$SHELL$ac_delim
22080PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22081PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22082PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22083PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22084PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22085PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22086exec_prefix!$exec_prefix$ac_delim
22087prefix!$prefix$ac_delim
22088program_transform_name!$program_transform_name$ac_delim
22089bindir!$bindir$ac_delim
22090sbindir!$sbindir$ac_delim
22091libexecdir!$libexecdir$ac_delim
22092datarootdir!$datarootdir$ac_delim
22093datadir!$datadir$ac_delim
22094sysconfdir!$sysconfdir$ac_delim
22095sharedstatedir!$sharedstatedir$ac_delim
22096localstatedir!$localstatedir$ac_delim
22097includedir!$includedir$ac_delim
22098oldincludedir!$oldincludedir$ac_delim
22099docdir!$docdir$ac_delim
22100infodir!$infodir$ac_delim
22101htmldir!$htmldir$ac_delim
22102dvidir!$dvidir$ac_delim
22103pdfdir!$pdfdir$ac_delim
22104psdir!$psdir$ac_delim
22105libdir!$libdir$ac_delim
22106localedir!$localedir$ac_delim
22107mandir!$mandir$ac_delim
22108DEFS!$DEFS$ac_delim
22109ECHO_C!$ECHO_C$ac_delim
22110ECHO_N!$ECHO_N$ac_delim
22111ECHO_T!$ECHO_T$ac_delim
22112LIBS!$LIBS$ac_delim
22113build_alias!$build_alias$ac_delim
22114host_alias!$host_alias$ac_delim
22115target_alias!$target_alias$ac_delim
22116LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022117CC!$CC$ac_delim
22118CFLAGS!$CFLAGS$ac_delim
22119LDFLAGS!$LDFLAGS$ac_delim
22120CPPFLAGS!$CPPFLAGS$ac_delim
22121ac_ct_CC!$ac_ct_CC$ac_delim
22122EXEEXT!$EXEEXT$ac_delim
22123OBJEXT!$OBJEXT$ac_delim
22124CXX!$CXX$ac_delim
22125CXXFLAGS!$CXXFLAGS$ac_delim
22126ac_ct_CXX!$ac_ct_CXX$ac_delim
22127CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022128subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022129ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22130LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022131build!$build$ac_delim
22132build_cpu!$build_cpu$ac_delim
22133build_vendor!$build_vendor$ac_delim
22134build_os!$build_os$ac_delim
22135host!$host$ac_delim
22136host_cpu!$host_cpu$ac_delim
22137host_vendor!$host_vendor$ac_delim
22138host_os!$host_os$ac_delim
22139target!$target$ac_delim
22140target_cpu!$target_cpu$ac_delim
22141target_vendor!$target_vendor$ac_delim
22142target_os!$target_os$ac_delim
22143OS!$OS$ac_delim
22144HOST_OS!$HOST_OS$ac_delim
22145TARGET_OS!$TARGET_OS$ac_delim
22146LINKALL!$LINKALL$ac_delim
22147NOLINKALL!$NOLINKALL$ac_delim
22148LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22149LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22150ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022151HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022152ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022153GREP!$GREP$ac_delim
22154EGREP!$EGREP$ac_delim
22155LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22156BUILD_CC!$BUILD_CC$ac_delim
22157BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22158BUILD_CXX!$BUILD_CXX$ac_delim
22159CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022160ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022161ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022162ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22163ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22164DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022165ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022166ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22167EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22168DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22169DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022170KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022171JIT!$JIT$ac_delim
22172TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022173ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022174ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022175LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022176_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022179 break
22180 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22182echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022184 else
22185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022186 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022187done
22188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022189ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22190if test -n "$ac_eof"; then
22191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22192 ac_eof=`expr $ac_eof + 1`
22193fi
22194
22195cat >>$CONFIG_STATUS <<_ACEOF
22196cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022198_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022199sed '
22200s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22201s/^/s,@/; s/!/@,|#_!!_#|/
22202:n
22203t n
22204s/'"$ac_delim"'$/,g/; t
22205s/$/\\/; p
22206N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22207' >>$CONFIG_STATUS <conf$$subs.sed
22208rm -f conf$$subs.sed
22209cat >>$CONFIG_STATUS <<_ACEOF
22210CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022211_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022212
22213
22214ac_delim='%!_!# '
22215for ac_last_try in false false false false false :; do
22216 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022217ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022218ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022219ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022220ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022221ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022222TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22223LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22224LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022225LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022226LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022227OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022228EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022229EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022230CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022231BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022232INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022233NM!$NM$ac_delim
22234ifGNUmake!$ifGNUmake$ac_delim
22235LN_S!$LN_S$ac_delim
22236CMP!$CMP$ac_delim
22237CP!$CP$ac_delim
22238DATE!$DATE$ac_delim
22239FIND!$FIND$ac_delim
22240MKDIR!$MKDIR$ac_delim
22241MV!$MV$ac_delim
22242RANLIB!$RANLIB$ac_delim
22243AR!$AR$ac_delim
22244RM!$RM$ac_delim
22245SED!$SED$ac_delim
22246TAR!$TAR$ac_delim
22247BINPWD!$BINPWD$ac_delim
22248GRAPHVIZ!$GRAPHVIZ$ac_delim
22249DOT!$DOT$ac_delim
22250FDP!$FDP$ac_delim
22251NEATO!$NEATO$ac_delim
22252TWOPI!$TWOPI$ac_delim
22253CIRCO!$CIRCO$ac_delim
22254GV!$GV$ac_delim
22255DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022256XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022257INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22258INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22259INSTALL_DATA!$INSTALL_DATA$ac_delim
22260BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022261CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022262DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022263GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022264GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022265PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022266ZIP!$ZIP$ac_delim
22267OCAMLC!$OCAMLC$ac_delim
22268OCAMLOPT!$OCAMLOPT$ac_delim
22269OCAMLDEP!$OCAMLDEP$ac_delim
22270OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022271GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022272HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022273INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22274INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22275CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22276CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22277LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022278NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22279NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022280COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022281USE_UDIS86!$USE_UDIS86$ac_delim
22282USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022283USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22284INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22285INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022286XML2CONFIG!$XML2CONFIG$ac_delim
22287LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22288LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22290HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22291MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022292SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022293SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022294LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22295LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22296LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22297LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22298LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22299LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22300LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22301LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22302LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22303LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22304BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22305ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022306OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22307ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22308RPATH!$RPATH$ac_delim
22309RDYNAMIC!$RDYNAMIC$ac_delim
22310LIBOBJS!$LIBOBJS$ac_delim
22311LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022312_ACEOF
22313
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022315 break
22316 elif $ac_last_try; then
22317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22318echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22319 { (exit 1); exit 1; }; }
22320 else
22321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22322 fi
22323done
22324
22325ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22326if test -n "$ac_eof"; then
22327 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22328 ac_eof=`expr $ac_eof + 1`
22329fi
22330
22331cat >>$CONFIG_STATUS <<_ACEOF
22332cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022333/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22334_ACEOF
22335sed '
22336s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22337s/^/s,@/; s/!/@,|#_!!_#|/
22338:n
22339t n
22340s/'"$ac_delim"'$/,g/; t
22341s/$/\\/; p
22342N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22343' >>$CONFIG_STATUS <conf$$subs.sed
22344rm -f conf$$subs.sed
22345cat >>$CONFIG_STATUS <<_ACEOF
22346:end
22347s/|#_!!_#|//g
22348CEOF$ac_eof
22349_ACEOF
22350
22351
Reid Spencera773bd52006-08-04 18:18:08 +000022352# VPATH may cause trouble with some makes, so we remove $(srcdir),
22353# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22354# trailing colons and then remove the whole line if VPATH becomes empty
22355# (actually we leave an empty line to preserve line numbers).
22356if test "x$srcdir" = x.; then
22357 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22358s/:*\$(srcdir):*/:/
22359s/:*\${srcdir}:*/:/
22360s/:*@srcdir@:*/:/
22361s/^\([^=]*=[ ]*\):*/\1/
22362s/:*$//
22363s/^[^=]*=[ ]*$//
22364}'
22365fi
22366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022367cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022368fi # test -n "$CONFIG_FILES"
22369
Reid Spencera773bd52006-08-04 18:18:08 +000022370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022371for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022372do
22373 case $ac_tag in
22374 :[FHLC]) ac_mode=$ac_tag; continue;;
22375 esac
22376 case $ac_mode$ac_tag in
22377 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022378 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22379echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22380 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022381 :[FH]-) ac_tag=-:-;;
22382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22383 esac
22384 ac_save_IFS=$IFS
22385 IFS=:
22386 set x $ac_tag
22387 IFS=$ac_save_IFS
22388 shift
22389 ac_file=$1
22390 shift
22391
22392 case $ac_mode in
22393 :L) ac_source=$1;;
22394 :[FH])
22395 ac_file_inputs=
22396 for ac_f
22397 do
22398 case $ac_f in
22399 -) ac_f="$tmp/stdin";;
22400 *) # Look for the file first in the build tree, then in the source tree
22401 # (if the path is not absolute). The absolute path cannot be DOS-style,
22402 # because $ac_f cannot contain `:'.
22403 test -f "$ac_f" ||
22404 case $ac_f in
22405 [\\/$]*) false;;
22406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22407 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022408 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22409echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22410 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022411 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022412 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022413 done
22414
22415 # Let's still pretend it is `configure' which instantiates (i.e., don't
22416 # use $as_me), people would be surprised to read:
22417 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022418 configure_input="Generated from "`IFS=:
22419 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022420 if test x"$ac_file" != x-; then
22421 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022422 { echo "$as_me:$LINENO: creating $ac_file" >&5
22423echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022424 fi
22425
22426 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022427 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022428 esac
22429 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022430 esac
22431
Reid Spencera773bd52006-08-04 18:18:08 +000022432 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022433$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022434 X"$ac_file" : 'X\(//\)[^/]' \| \
22435 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022437echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22439 s//\1/
22440 q
22441 }
22442 /^X\(\/\/\)[^/].*/{
22443 s//\1/
22444 q
22445 }
22446 /^X\(\/\/\)$/{
22447 s//\1/
22448 q
22449 }
22450 /^X\(\/\).*/{
22451 s//\1/
22452 q
22453 }
22454 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022455 { as_dir="$ac_dir"
22456 case $as_dir in #(
22457 -*) as_dir=./$as_dir;;
22458 esac
22459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22460 as_dirs=
22461 while :; do
22462 case $as_dir in #(
22463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22464 *) as_qdir=$as_dir;;
22465 esac
22466 as_dirs="'$as_qdir' $as_dirs"
22467 as_dir=`$as_dirname -- "$as_dir" ||
22468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22469 X"$as_dir" : 'X\(//\)[^/]' \| \
22470 X"$as_dir" : 'X\(//\)$' \| \
22471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22472echo X"$as_dir" |
22473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22474 s//\1/
22475 q
22476 }
22477 /^X\(\/\/\)[^/].*/{
22478 s//\1/
22479 q
22480 }
22481 /^X\(\/\/\)$/{
22482 s//\1/
22483 q
22484 }
22485 /^X\(\/\).*/{
22486 s//\1/
22487 q
22488 }
22489 s/.*/./; q'`
22490 test -d "$as_dir" && break
22491 done
22492 test -z "$as_dirs" || eval "mkdir $as_dirs"
22493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22494echo "$as_me: error: cannot create directory $as_dir" >&2;}
22495 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022496 ac_builddir=.
22497
Reid Spencera773bd52006-08-04 18:18:08 +000022498case "$ac_dir" in
22499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22500*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022502 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022504 case $ac_top_builddir_sub in
22505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22507 esac ;;
22508esac
22509ac_abs_top_builddir=$ac_pwd
22510ac_abs_builddir=$ac_pwd$ac_dir_suffix
22511# for backward compatibility:
22512ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022513
22514case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022515 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022516 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022517 ac_top_srcdir=$ac_top_builddir_sub
22518 ac_abs_top_srcdir=$ac_pwd ;;
22519 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022520 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022521 ac_top_srcdir=$srcdir
22522 ac_abs_top_srcdir=$srcdir ;;
22523 *) # Relative name.
22524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22525 ac_top_srcdir=$ac_top_build_prefix$srcdir
22526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022527esac
Reid Spencera773bd52006-08-04 18:18:08 +000022528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022529
John Criswell7a73b802003-06-30 21:59:07 +000022530
Reid Spencera773bd52006-08-04 18:18:08 +000022531 case $ac_mode in
22532 :F)
22533 #
22534 # CONFIG_FILE
22535 #
John Criswell7a73b802003-06-30 21:59:07 +000022536
22537 case $INSTALL in
22538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022540 esac
John Criswell7a73b802003-06-30 21:59:07 +000022541_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022543cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022544# If the template does not know about datarootdir, expand it.
22545# FIXME: This hack should be removed a few years after 2.60.
22546ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022547
22548case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022549 p
22550 q
22551}
22552/@datadir@/p
22553/@docdir@/p
22554/@infodir@/p
22555/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022556/@mandir@/p
22557' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022558*datarootdir*) ac_datarootdir_seen=yes;;
22559*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022560 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22561echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022562_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022563cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022564 ac_datarootdir_hack='
22565 s&@datadir@&$datadir&g
22566 s&@docdir@&$docdir&g
22567 s&@infodir@&$infodir&g
22568 s&@localedir@&$localedir&g
22569 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022570 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022571esac
22572_ACEOF
22573
22574# Neutralize VPATH when `$srcdir' = `.'.
22575# Shell code in configure.ac might set extrasub.
22576# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022577cat >>$CONFIG_STATUS <<_ACEOF
22578 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022579$extrasub
22580_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022581cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022582:t
22583/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022584s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022585s&@top_builddir@&$ac_top_builddir_sub&;t t
22586s&@srcdir@&$ac_srcdir&;t t
22587s&@abs_srcdir@&$ac_abs_srcdir&;t t
22588s&@top_srcdir@&$ac_top_srcdir&;t t
22589s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22590s&@builddir@&$ac_builddir&;t t
22591s&@abs_builddir@&$ac_abs_builddir&;t t
22592s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22593s&@INSTALL@&$ac_INSTALL&;t t
22594$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022595" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022596
Reid Spencera773bd52006-08-04 18:18:08 +000022597test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022600 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022601which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022602echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022603which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022604
Reid Spencera773bd52006-08-04 18:18:08 +000022605 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022606 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022607 -) cat "$tmp/out"; rm -f "$tmp/out";;
22608 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22609 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022610 ;;
22611 :H)
22612 #
22613 # CONFIG_HEADER
22614 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022615_ACEOF
22616
22617# Transform confdefs.h into a sed script `conftest.defines', that
22618# substitutes the proper values into config.h.in to produce config.h.
22619rm -f conftest.defines conftest.tail
22620# First, append a space to every undef/define line, to ease matching.
22621echo 's/$/ /' >conftest.defines
22622# Then, protect against being on the right side of a sed subst, or in
22623# an unquoted here document, in config.status. If some macros were
22624# called several times there might be several #defines for the same
22625# symbol, which is useless. But do not sort them, since the last
22626# AC_DEFINE must be honored.
22627ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22628# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22629# NAME is the cpp macro being defined, VALUE is the value it is being given.
22630# PARAMS is the parameter list in the macro definition--in most cases, it's
22631# just an empty string.
22632ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22633ac_dB='\\)[ (].*,\\1define\\2'
22634ac_dC=' '
22635ac_dD=' ,'
22636
22637uniq confdefs.h |
22638 sed -n '
22639 t rset
22640 :rset
22641 s/^[ ]*#[ ]*define[ ][ ]*//
22642 t ok
22643 d
22644 :ok
22645 s/[\\&,]/\\&/g
22646 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22647 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22648 ' >>conftest.defines
22649
22650# Remove the space that was appended to ease matching.
22651# Then replace #undef with comments. This is necessary, for
22652# example, in the case of _POSIX_SOURCE, which is predefined and required
22653# on some systems where configure will not decide to define it.
22654# (The regexp can be short, since the line contains either #define or #undef.)
22655echo 's/ $//
22656s,^[ #]*u.*,/* & */,' >>conftest.defines
22657
22658# Break up conftest.defines:
22659ac_max_sed_lines=50
22660
22661# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22662# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22663# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22664# et cetera.
22665ac_in='$ac_file_inputs'
22666ac_out='"$tmp/out1"'
22667ac_nxt='"$tmp/out2"'
22668
22669while :
22670do
22671 # Write a here document:
22672 cat >>$CONFIG_STATUS <<_ACEOF
22673 # First, check the format of the line:
22674 cat >"\$tmp/defines.sed" <<\\CEOF
22675/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22676/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22677b
22678:def
22679_ACEOF
22680 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22681 echo 'CEOF
22682 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22683 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22684 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22685 grep . conftest.tail >/dev/null || break
22686 rm -f conftest.defines
22687 mv conftest.tail conftest.defines
22688done
22689rm -f conftest.defines conftest.tail
22690
22691echo "ac_result=$ac_in" >>$CONFIG_STATUS
22692cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022693 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022694 echo "/* $configure_input */" >"$tmp/config.h"
22695 cat "$ac_result" >>"$tmp/config.h"
22696 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22697 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22698echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022699 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022700 rm -f $ac_file
22701 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022702 fi
22703 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022704 echo "/* $configure_input */"
22705 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022706 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022707 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022708 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022710 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22711echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022712 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022713 esac
John Criswell7a73b802003-06-30 21:59:07 +000022714
Reid Spencera773bd52006-08-04 18:18:08 +000022715
22716 case $ac_file$ac_mode in
22717 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022718 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022719 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022721 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022723 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022725 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022727 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022729 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022731 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022733 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022735 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022737 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022739 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022741 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022743
22744 esac
22745done # for ac_tag
22746
John Criswell7a73b802003-06-30 21:59:07 +000022747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022748{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022749_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022750chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022751ac_clean_files=$ac_clean_files_save
22752
22753
22754# configure is writing to config.log, and then calls config.status.
22755# config.status does its own redirection, appending to config.log.
22756# Unfortunately, on DOS this fails, as config.log is still kept open
22757# by configure, so config.status won't be able to write to it; its
22758# output is simply discarded. So we exec the FD to /dev/null,
22759# effectively closing config.log, so it can be properly (re)opened and
22760# appended to by config.status. When coming back to configure, we
22761# need to make the FD available again.
22762if test "$no_create" != yes; then
22763 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022764 ac_config_status_args=
22765 test "$silent" = yes &&
22766 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022767 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022768 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022769 exec 5>>config.log
22770 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22771 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022772 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022773fi
22774
John Criswell12399a12003-09-30 15:55:44 +000022775#
22776# CONFIG_SUBDIRS section.
22777#
22778if test "$no_recursion" != yes; then
22779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022780 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022781 ac_sub_configure_args=
22782 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022783 eval "set x $ac_configure_args"
22784 shift
22785 for ac_arg
22786 do
John Criswell12399a12003-09-30 15:55:44 +000022787 if test -n "$ac_prev"; then
22788 ac_prev=
22789 continue
22790 fi
22791 case $ac_arg in
22792 -cache-file | --cache-file | --cache-fil | --cache-fi \
22793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22794 ac_prev=cache_file ;;
22795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22797 | --c=*)
22798 ;;
22799 --config-cache | -C)
22800 ;;
22801 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22802 ac_prev=srcdir ;;
22803 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22804 ;;
22805 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22806 ac_prev=prefix ;;
22807 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22808 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022809 *)
22810 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022811 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022812 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022813 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022814 esac
22815 done
22816
22817 # Always prepend --prefix to ensure using the same prefix
22818 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022819 ac_arg="--prefix=$prefix"
22820 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022821 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022822 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022823 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022824
22825 ac_popdir=`pwd`
22826 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22827
22828 # Do not complain, so a configure script can configure whichever
22829 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022830 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022831
Reid Spencera773bd52006-08-04 18:18:08 +000022832 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022833 echo "$as_me:$LINENO: $ac_msg" >&5
22834 echo "$ac_msg" >&6
22835 { as_dir="$ac_dir"
22836 case $as_dir in #(
22837 -*) as_dir=./$as_dir;;
22838 esac
22839 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22840 as_dirs=
22841 while :; do
22842 case $as_dir in #(
22843 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22844 *) as_qdir=$as_dir;;
22845 esac
22846 as_dirs="'$as_qdir' $as_dirs"
22847 as_dir=`$as_dirname -- "$as_dir" ||
22848$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22849 X"$as_dir" : 'X\(//\)[^/]' \| \
22850 X"$as_dir" : 'X\(//\)$' \| \
22851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22852echo X"$as_dir" |
22853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22854 s//\1/
22855 q
22856 }
22857 /^X\(\/\/\)[^/].*/{
22858 s//\1/
22859 q
22860 }
22861 /^X\(\/\/\)$/{
22862 s//\1/
22863 q
22864 }
22865 /^X\(\/\).*/{
22866 s//\1/
22867 q
22868 }
22869 s/.*/./; q'`
22870 test -d "$as_dir" && break
22871 done
22872 test -z "$as_dirs" || eval "mkdir $as_dirs"
22873 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22874echo "$as_me: error: cannot create directory $as_dir" >&2;}
22875 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022876 ac_builddir=.
22877
Reid Spencera773bd52006-08-04 18:18:08 +000022878case "$ac_dir" in
22879.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22880*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022882 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022883 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022884 case $ac_top_builddir_sub in
22885 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22886 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22887 esac ;;
22888esac
22889ac_abs_top_builddir=$ac_pwd
22890ac_abs_builddir=$ac_pwd$ac_dir_suffix
22891# for backward compatibility:
22892ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022893
22894case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022895 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022896 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022897 ac_top_srcdir=$ac_top_builddir_sub
22898 ac_abs_top_srcdir=$ac_pwd ;;
22899 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022900 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022901 ac_top_srcdir=$srcdir
22902 ac_abs_top_srcdir=$srcdir ;;
22903 *) # Relative name.
22904 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22905 ac_top_srcdir=$ac_top_build_prefix$srcdir
22906 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022907esac
Reid Spencera773bd52006-08-04 18:18:08 +000022908ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022909
22910
Reid Spencera773bd52006-08-04 18:18:08 +000022911 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022912
22913 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022914 if test -f "$ac_srcdir/configure.gnu"; then
22915 ac_sub_configure=$ac_srcdir/configure.gnu
22916 elif test -f "$ac_srcdir/configure"; then
22917 ac_sub_configure=$ac_srcdir/configure
22918 elif test -f "$ac_srcdir/configure.in"; then
22919 # This should be Cygnus configure.
22920 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022921 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022922 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22923echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022924 ac_sub_configure=
22925 fi
22926
22927 # The recursion is here.
22928 if test -n "$ac_sub_configure"; then
22929 # Make the cache file name correct relative to the subdirectory.
22930 case $cache_file in
22931 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022932 *) # Relative name.
22933 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022934 esac
22935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022936 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22937echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000022938 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022939 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22940 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022941 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22942echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22943 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022944 fi
22945
Reid Spencera773bd52006-08-04 18:18:08 +000022946 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022947 done
22948fi
22949