blob: 72145bce92974bfa6e2d9319269fb6ec3aa90c4e [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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000687ENABLE_OPTIMIZED
688ENABLE_PROFILING
689DISABLE_ASSERTIONS
690ENABLE_EXPENSIVE_CHECKS
691EXPENSIVE_CHECKS
692DEBUG_RUNTIME
693DEBUG_SYMBOLS
694JIT
695TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000696ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000698LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000699ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000701ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000702ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000703ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000704TARGETS_TO_BUILD
705LLVM_ENUM_TARGETS
706LLVM_ENUM_ASM_PRINTERS
707LLVM_ENUM_ASM_PARSERS
708LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000709OPTIMIZE_OPTION
710EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000711EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000712CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000714INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000743CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000747PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748ZIP
749OCAMLC
750OCAMLOPT
751OCAMLDEP
752OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000753GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000754HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755INSTALL_LTDL_TRUE
756INSTALL_LTDL_FALSE
757CONVENIENCE_LTDL_TRUE
758CONVENIENCE_LTDL_FALSE
759LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000760NO_VARIADIC_MACROS
761NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000762COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763USE_UDIS86
764USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000765USE_INTEL_JITEVENTS
766INTEL_JITEVENTS_INCDIR
767INTEL_JITEVENTS_LIBDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000772SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000791ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000799CXX
800CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000801CCC
802CPP'
John Criswell0157f502010-03-19 21:31:39 +0000803ac_subdirs_all='projects/llvm-gcc
804projects/test-suite
805projects/llvm-test
806projects/poolalloc
807projects/llvm-poolalloc
808projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000809projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000810projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-java
813projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000814projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000815projects/llvm-kernel
816tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000843# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000852includedir='${prefix}/include'
853oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000863
864ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000865ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000870 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000871 ac_prev=
872 continue
873 fi
874
Reid Spencera773bd52006-08-04 18:18:08 +0000875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
John Criswell7a73b802003-06-30 21:59:07 +0000879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
Reid Spencera773bd52006-08-04 18:18:08 +0000906 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000907 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000909 datadir=$ac_optarg ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
John Criswell7a73b802003-06-30 21:59:07 +0000918 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000920 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000936
937 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000939 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
Reid Spencera773bd52006-08-04 18:18:08 +0000971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
John Criswell7a73b802003-06-30 21:59:07 +0000977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
Reid Spencera773bd52006-08-04 18:18:08 +00001001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
John Criswell7a73b802003-06-30 21:59:07 +00001006 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001007 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
Reid Spencera773bd52006-08-04 18:18:08 +00001075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
John Criswell7a73b802003-06-30 21:59:07 +00001085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001136 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001142
1143 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001181 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001199fi
1200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001206do
Reid Spencera773bd52006-08-04 18:18:08 +00001207 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001208 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001211 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
Reid Spencera773bd52006-08-04 18:18:08 +00001240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248
1249
John Criswell7a73b802003-06-30 21:59:07 +00001250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001253 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001277 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001278 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
Reid Spencera773bd52006-08-04 18:18:08 +00001284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001318\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
John Criswell7a73b802003-06-30 21:59:07 +00001338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001340 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001366 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001384 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001391 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001392 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001393 --enable-optimized Compile with optimizations enabled (default is NO)
1394 --enable-profiling Compile with profiling enabled (default is NO)
1395 --enable-assertions Compile with assertion checks enabled (default is
1396 YES)
David Greenea696d242007-06-28 19:36:08 +00001397 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001398 Compile with expensive debug checks enabled (default
1399 is NO)
1400 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001402 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1403 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001404 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001405 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001406 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001407 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001408 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001409 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001410 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001411 --enable-shared Build a shared library and link tools against it
1412 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001413 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001414 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001415 --enable-timestamps Enable embedding timestamp information in build
1416 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001417 --enable-targets Build specific host targets: all or
1418 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001419 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001420 xcore, msp430, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001423 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001424 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001429 --with-optimize-option Select the compiler options to use for optimized
1430 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001431 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001432 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001433 --with-ocaml-libdir Specify install location for ocaml bindings (default
1434 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001435 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001436 --with-clang-resource-dir
1437 Relative directory from the Clang binary for
1438 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001439 --with-c-include-dirs Colon separated list of directories clang will
1440 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001441 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001442 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001443 --with-binutils-include Specify path to binutils/include/ containing
1444 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001445 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001446 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001447 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001448 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001449 --with-oprofile=<prefix>
1450 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001451 --with-intel-jitevents=<vtune-amplifier-dir>
1452 Specify location of run-time support library for
1453 Intel JIT API
1454 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001457 CC C compiler command
1458 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001462 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001465 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
Eric Christopherf33ab862011-12-21 00:52:44 +00001470Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001472ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001478 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001479 ac_builddir=.
1480
Reid Spencera773bd52006-08-04 18:18:08 +00001481case "$ac_dir" in
1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001485 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 esac ;;
1491esac
1492ac_abs_top_builddir=$ac_pwd
1493ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494# for backward compatibility:
1495ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001496
1497case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001498 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001499 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001503 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1506 *) # Relative name.
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001510esac
Reid Spencera773bd52006-08-04 18:18:08 +00001511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001512
Reid Spencera773bd52006-08-04 18:18:08 +00001513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001521 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001525 done
1526fi
1527
Reid Spencera773bd52006-08-04 18:18:08 +00001528test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001529if $ac_init_version; then
1530 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001531LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001532generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001539Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001541 exit
John Criswell7a73b802003-06-30 21:59:07 +00001542fi
Reid Spencera773bd52006-08-04 18:18:08 +00001543cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001544This file contains any messages produced by compilers while
1545running configure, to aid debugging if configure makes a mistake.
1546
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001547It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001548generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001549
1550 $ $0 $@
1551
1552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001553exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001554{
1555cat <<_ASUNAME
1556## --------- ##
1557## Platform. ##
1558## --------- ##
1559
1560hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565
1566/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568
1569/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001572/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001573/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1576
1577_ASUNAME
1578
1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001584 echo "PATH: $as_dir"
1585done
Reid Spencera773bd52006-08-04 18:18:08 +00001586IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001587
1588} >&5
1589
1590cat >&5 <<_ACEOF
1591
1592
1593## ----------- ##
1594## Core tests. ##
1595## ----------- ##
1596
1597_ACEOF
1598
1599
1600# Keep a trace of the command line.
1601# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001602# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001603# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001605ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001606ac_configure_args0=
1607ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_must_keep_next=false
1609for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001610do
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 for ac_arg
1612 do
1613 case $ac_arg in
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1617 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001618 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 esac
1621 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001626 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 case $ac_arg in
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635 esac
1636 ;;
1637 -* ) ac_must_keep_next=true ;;
1638 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001640 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ;;
1642 esac
1643 done
John Criswell7a73b802003-06-30 21:59:07 +00001644done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646$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 +00001647
1648# When interrupted or exit'd, cleanup temporary files, and complete
1649# config.log. We remove comments because anyway the quotes in there
1650# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001651# WARNING: Use '\'' to represent an apostrophe within the trap.
1652# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001653trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1655 {
1656 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001657
John Criswell7a73b802003-06-30 21:59:07 +00001658 cat <<\_ASBOX
1659## ---------------- ##
1660## Cache variables. ##
1661## ---------------- ##
1662_ASBOX
1663 echo
1664 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001665(
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1668 case $ac_val in #(
1669 *${as_nl}*)
1670 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001673 esac
1674 case $ac_var in #(
1675 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001677 esac ;;
1678 esac
1679 done
John Criswell7a73b802003-06-30 21:59:07 +00001680 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001683 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001687 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001690 esac |
1691 sort
1692)
John Criswell7a73b802003-06-30 21:59:07 +00001693 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001694
1695 cat <<\_ASBOX
1696## ----------------- ##
1697## Output variables. ##
1698## ----------------- ##
1699_ASBOX
1700 echo
1701 for ac_var in $ac_subst_vars
1702 do
Reid Spencera773bd52006-08-04 18:18:08 +00001703 eval ac_val=\$$ac_var
1704 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001706 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001708 done | sort
1709 echo
1710
1711 if test -n "$ac_subst_files"; then
1712 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001713## ------------------- ##
1714## File substitutions. ##
1715## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001716_ASBOX
1717 echo
1718 for ac_var in $ac_subst_files
1719 do
Reid Spencera773bd52006-08-04 18:18:08 +00001720 eval ac_val=\$$ac_var
1721 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001723 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 done | sort
1726 echo
1727 fi
1728
John Criswell7a73b802003-06-30 21:59:07 +00001729 if test -s confdefs.h; then
1730 cat <<\_ASBOX
1731## ----------- ##
1732## confdefs.h. ##
1733## ----------- ##
1734_ASBOX
1735 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001736 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001737 echo
1738 fi
1739 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001742 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001745 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001746' 0
John Criswell7a73b802003-06-30 21:59:07 +00001747for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001749done
1750ac_signal=0
1751
1752# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001753rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001754
1755# Predefined preprocessor variables.
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_NAME "$PACKAGE_NAME"
1759_ACEOF
1760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001761
John Criswell7a73b802003-06-30 21:59:07 +00001762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_VERSION "$PACKAGE_VERSION"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_STRING "$PACKAGE_STRING"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1779_ACEOF
1780
1781
1782# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001784if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001786elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792shift
1793for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001794do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001798 sed 's/^/| /' "$ac_site_file" >&5
1799 . "$ac_site_file"
1800 fi
1801done
1802
1803if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001809 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001812 esac
1813 fi
1814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001817 >$cache_file
1818fi
1819
1820# Check that the precious variables saved in the cache have kept the same
1821# value.
1822ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001823for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001828 case $ac_old_set,$ac_new_set in
1829 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001832 ac_cache_corrupted=: ;;
1833 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 ac_cache_corrupted=: ;;
1837 ,);;
1838 *)
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001847 fi;;
1848 esac
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1851 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001853 *) ac_arg=$ac_var=$ac_new_val ;;
1854 esac
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 esac
1859 fi
1860done
1861if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
Reid Spencera773bd52006-08-04 18:18:08 +00001892
John Criswell7a73b802003-06-30 21:59:07 +00001893ac_ext=c
1894ac_cpp='$CPP $CPPFLAGS'
1895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001901cat >>confdefs.h <<\_ACEOF
1902#define LLVM_VERSION_MAJOR 3
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001907#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001908_ACEOF
1909
1910
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001911LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001912
1913
1914
1915
1916
1917
1918
John Criswell7a73b802003-06-30 21:59:07 +00001919ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001920for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001921 if test -f "$ac_dir/install-sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1924 break
1925 elif test -f "$ac_dir/install.sh"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1928 break
1929 elif test -f "$ac_dir/shtool"; then
1930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1932 break
1933 fi
John Criswell7a73b802003-06-30 21:59:07 +00001934done
1935if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001939fi
Reid Spencera773bd52006-08-04 18:18:08 +00001940
1941# These three variables are undocumented and unsupported,
1942# and are intended to be withdrawn in a future Autoconf release.
1943# They can cause serious problems if a builder's source tree is in a directory
1944# whose full name contains unusual characters.
1945ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1948
John Criswell7a73b802003-06-30 21:59:07 +00001949
John Criswell392aaa32003-07-22 19:18:09 +00001950
Reid Spencer2706f8c2004-09-19 23:53:36 +00001951if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001953 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001956 fi
John Criswell93e1c722003-09-15 17:04:06 +00001957fi
1958
Nick Lewycky83fc4472009-09-29 05:48:51 +00001959ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001960ac_cpp='$CPP $CPPFLAGS'
1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001964if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001965 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001966 do
1967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001973else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001976else
1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978for as_dir in $PATH
1979do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 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 +00001984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001986 break 2
1987 fi
1988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989done
Reid Spencera773bd52006-08-04 18:18:08 +00001990IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001991
1992fi
1993fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001994CC=$ac_cv_prog_CC
1995if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001996 { echo "$as_me:$LINENO: result: $CC" >&5
1997echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 { echo "$as_me:$LINENO: result: no" >&5
2000echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002001fi
2002
Reid Spencera773bd52006-08-04 18:18:08 +00002003
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002004 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002005 done
2006fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002007if test -z "$CC"; then
2008 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002009 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002010do
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002017else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 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 +00002028 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002030 break 2
2031 fi
2032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033done
Reid Spencera773bd52006-08-04 18:18:08 +00002034IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002035
2036fi
2037fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 { echo "$as_me:$LINENO: result: no" >&5
2044echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002045fi
2046
Reid Spencera773bd52006-08-04 18:18:08 +00002047
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002049done
John Criswell7a73b802003-06-30 21:59:07 +00002050
Reid Spencera773bd52006-08-04 18:18:08 +00002051 if test "x$ac_ct_CC" = x; then
2052 CC=""
2053 else
2054 case $cross_compiling:$ac_tool_warned in
2055yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057whose name does not start with the host triplet. If you think this
2058configuration is useful to you, please write to autoconf@gnu.org." >&5
2059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060whose name does not start with the host triplet. If you think this
2061configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002062ac_tool_warned=yes ;;
2063esac
2064 CC=$ac_ct_CC
2065 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066fi
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070See \`config.log' for more details." >&5
2071echo "$as_me: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074
John Criswell7a73b802003-06-30 21:59:07 +00002075# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076echo "$as_me:$LINENO: checking for C compiler version" >&5
2077ac_compiler=`set X $ac_compile; echo $2`
2078{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002079case "(($ac_try" in
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2082esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002085 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088{ (ac_try="$ac_compiler -v >&5"
2089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
2093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler -v >&5") 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098{ (ac_try="$ac_compiler -V >&5"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -V >&5") 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002109cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h. */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002115
John Criswell7a73b802003-06-30 21:59:07 +00002116int
2117main ()
2118{
2119
2120 ;
2121 return 0;
2122}
2123_ACEOF
2124ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002125ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002126# Try to create an executable without -o first, disregard a.out.
2127# It will help us diagnose broken compilers, and finding out an intuition
2128# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132#
2133# List of possible output files, starting from the most likely.
2134# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135# only as a last resort. b.out is created by i960 compilers.
2136ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137#
2138# The IRIX 6 linker writes into existing files which may not be
2139# executable, retaining their permissions. Remove them first so a
2140# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002141ac_rmfiles=
2142for ac_file in $ac_files
2143do
2144 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2147 esac
2148done
2149rm -f $ac_rmfiles
2150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002152case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002157 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002158 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163# in a Makefile. We should not override ac_cv_exeext if it was cached,
2164# so that the user can short-circuit this test for compilers unknown to
2165# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002167do
2168 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002169 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002171 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002172 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002173 # We found the default executable, but exeext='' is most
2174 # certainly right.
2175 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002176 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002178 then :; else
2179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180 fi
2181 # We set ac_cv_exeext here because the later test for it is not
2182 # safe: cross compilers may not add the suffix if given an `-o'
2183 # argument, so we may need to know it at that point already.
2184 # Even if this section looks crufty: it has the advantage of
2185 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002189 esac
2190done
Reid Spencera773bd52006-08-04 18:18:08 +00002191test "$ac_cv_exeext" = no && ac_cv_exeext=
2192
John Criswell7a73b802003-06-30 21:59:07 +00002193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002195sed 's/^/| /' conftest.$ac_ext >&5
2196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198See \`config.log' for more details." >&5
2199echo "$as_me: error: C compiler cannot create executables
2200See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002202fi
John Criswell7a73b802003-06-30 21:59:07 +00002203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002204ac_exeext=$ac_cv_exeext
2205{ echo "$as_me:$LINENO: result: $ac_file" >&5
2206echo "${ECHO_T}$ac_file" >&6; }
2207
2208# Check that the compiler produces executables we can run. If not, either
2209# the compiler is broken, or we cross compile.
2210{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213# If not cross compiling, check that we can run a simple program.
2214if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219esac
2220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_try") 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 cross_compiling=no
2226 else
2227 if test "$cross_compiling" = maybe; then
2228 cross_compiling=yes
2229 else
2230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2237 fi
2238 fi
2239fi
2240{ echo "$as_me:$LINENO: result: yes" >&5
2241echo "${ECHO_T}yes" >&6; }
2242
2243rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002244ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002245# Check that the compiler produces executables we can run. If not, either
2246# the compiler is broken, or we cross compile.
2247{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250echo "${ECHO_T}$cross_compiling" >&6; }
2251
2252{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002255case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002260 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002261 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266# work properly (i.e., refer to `conftest.exe'), while it won't with
2267# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002268for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002270 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002273 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 * ) break;;
2275 esac
2276done
2277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279See \`config.log' for more details." >&5
2280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002284
2285rm -f conftest$ac_cv_exeext
2286{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002288
2289rm -f conftest.$ac_ext
2290EXEEXT=$ac_cv_exeext
2291ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297 cat >conftest.$ac_ext <<_ACEOF
2298/* confdefs.h. */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002303
John Criswell7a73b802003-06-30 21:59:07 +00002304int
2305main ()
2306{
2307
2308 ;
2309 return 0;
2310}
2311_ACEOF
2312rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002314case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002319 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002320 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002323 for ac_file in conftest.o conftest.obj conftest.*; do
2324 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002325 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328 break;;
2329 esac
2330done
2331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002333sed 's/^/| /' conftest.$ac_ext >&5
2334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336See \`config.log' for more details." >&5
2337echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341
John Criswell7a73b802003-06-30 21:59:07 +00002342rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002346OBJEXT=$ac_cv_objext
2347ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002353 cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002359
John Criswell7a73b802003-06-30 21:59:07 +00002360int
2361main ()
2362{
2363#ifndef __GNUC__
2364 choke me
2365#endif
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371rm -f conftest.$ac_objext
2372if { (ac_try="$ac_compile"
2373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
2377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399esac
2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002405 ac_compiler_gnu=yes
2406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407 echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412
Reid Spencera773bd52006-08-04 18:18:08 +00002413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002415
2416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420ac_test_CFLAGS=${CFLAGS+set}
2421ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002426else
Reid Spencera773bd52006-08-04 18:18:08 +00002427 ac_save_c_werror_flag=$ac_c_werror_flag
2428 ac_c_werror_flag=yes
2429 ac_cv_prog_cc_g=no
2430 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002431 cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h. */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002437
John Criswell7a73b802003-06-30 21:59:07 +00002438int
2439main ()
2440{
2441
2442 ;
2443 return 0;
2444}
2445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446rm -f conftest.$ac_objext
2447if { (ac_try="$ac_compile"
2448case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451esac
2452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464esac
2465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_try") 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002482 echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 CFLAGS=""
2486 cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h. */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002491/* end confdefs.h. */
2492
2493int
2494main ()
2495{
2496
2497 ;
2498 return 0;
2499}
2500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002501rm -f conftest.$ac_objext
2502if { (ac_try="$ac_compile"
2503case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506esac
2507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519esac
2520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 :
Torok Edwin871384f2010-01-26 08:50:50 +00002536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002541 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002542 cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002547/* end confdefs.h. */
2548
2549int
2550main ()
2551{
2552
2553 ;
2554 return 0;
2555}
2556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557rm -f conftest.$ac_objext
2558if { (ac_try="$ac_compile"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575esac
2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002591 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002592else
2593 echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596
John Criswell7a73b802003-06-30 21:59:07 +00002597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002598
Reid Spencera773bd52006-08-04 18:18:08 +00002599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002601
Reid Spencera773bd52006-08-04 18:18:08 +00002602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604
Reid Spencera773bd52006-08-04 18:18:08 +00002605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2614 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002615 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002617 fi
2618else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619 if test "$GCC" = yes; then
2620 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002621 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002623 fi
2624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627if test "${ac_cv_prog_cc_c89+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629else
Reid Spencera773bd52006-08-04 18:18:08 +00002630 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002632cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637/* end confdefs.h. */
2638#include <stdarg.h>
2639#include <stdio.h>
2640#include <sys/types.h>
2641#include <sys/stat.h>
2642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643struct buf { int x; };
2644FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645static char *e (p, i)
2646 char **p;
2647 int i;
2648{
2649 return p[i];
2650}
2651static char *f (char * (*g) (char **, int), char **p, ...)
2652{
2653 char *s;
2654 va_list v;
2655 va_start (v,p);
2656 s = g (p, va_arg (v,int));
2657 va_end (v);
2658 return s;
2659}
2660
2661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002664 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002667 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669
Reid Spencera773bd52006-08-04 18:18:08 +00002670/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2672#define FOO(x) 'x'
2673int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675int test (int i, double x);
2676struct s1 {int (*f) (int a);};
2677struct s2 {int (*f) (double a);};
2678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679int argc;
2680char **argv;
2681int
2682main ()
2683{
2684return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2685 ;
2686 return 0;
2687}
2688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002689for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002691do
2692 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693 rm -f conftest.$ac_objext
2694if { (ac_try="$ac_compile"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002727 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002728else
2729 echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002734
Reid Spencera773bd52006-08-04 18:18:08 +00002735rm -f core conftest.err conftest.$ac_objext
2736 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002737done
Reid Spencera773bd52006-08-04 18:18:08 +00002738rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002739CC=$ac_save_CC
2740
2741fi
Reid Spencera773bd52006-08-04 18:18:08 +00002742# AC_CACHE_VAL
2743case "x$ac_cv_prog_cc_c89" in
2744 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745 { echo "$as_me:$LINENO: result: none needed" >&5
2746echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002747 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 { echo "$as_me:$LINENO: result: unsupported" >&5
2749echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002750 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002751 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754esac
2755
John Criswell0c38eaf2003-09-10 15:17:25 +00002756
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757ac_ext=c
2758ac_cpp='$CPP $CPPFLAGS'
2759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
Eric Christopherffee5722011-09-16 20:36:25 +00002763ac_ext=cpp
2764ac_cpp='$CXXCPP $CPPFLAGS'
2765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768if test -z "$CXX"; then
2769 if test -n "$CCC"; then
2770 CXX=$CCC
2771 else
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in clang++ llvm-g++ g++
2774 do
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779if test "${ac_cv_prog_CXX+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782 if test -n "$CXX"; then
2783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796done
2797done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802CXX=$ac_cv_prog_CXX
2803if test -n "$CXX"; then
2804 { echo "$as_me:$LINENO: result: $CXX" >&5
2805echo "${ECHO_T}$CXX" >&6; }
2806else
2807 { echo "$as_me:$LINENO: result: no" >&5
2808echo "${ECHO_T}no" >&6; }
2809fi
2810
2811
2812 test -n "$CXX" && break
2813 done
2814fi
2815if test -z "$CXX"; then
2816 ac_ct_CXX=$CXX
2817 for ac_prog in clang++ llvm-g++ g++
2818do
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820set dummy $ac_prog; ac_word=$2
2821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
2826 if test -n "$ac_ct_CXX"; then
2827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CXX="$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840done
2841done
2842IFS=$as_save_IFS
2843
2844fi
2845fi
2846ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847if test -n "$ac_ct_CXX"; then
2848 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849echo "${ECHO_T}$ac_ct_CXX" >&6; }
2850else
2851 { echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6; }
2853fi
2854
2855
2856 test -n "$ac_ct_CXX" && break
2857done
2858
2859 if test "x$ac_ct_CXX" = x; then
2860 CXX="g++"
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863yes:)
2864{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865whose name does not start with the host triplet. If you think this
2866configuration is useful to you, please write to autoconf@gnu.org." >&5
2867echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868whose name does not start with the host triplet. If you think this
2869configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870ac_tool_warned=yes ;;
2871esac
2872 CXX=$ac_ct_CXX
2873 fi
2874fi
2875
2876 fi
2877fi
2878# Provide some information about the compiler.
2879echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880ac_compiler=`set X $ac_compile; echo $2`
2881{ (ac_try="$ac_compiler --version >&5"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler --version >&5") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891{ (ac_try="$ac_compiler -v >&5"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -v >&5") 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901{ (ac_try="$ac_compiler -V >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -V >&5") 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911
2912{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917 cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923
2924int
2925main ()
2926{
2927#ifndef __GNUC__
2928 choke me
2929#endif
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext
2936if { (ac_try="$ac_compile"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950 { (case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953esac
2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_try") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_compiler_gnu=yes
2970else
2971 echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 ac_compiler_gnu=no
2975fi
2976
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2979
2980fi
2981{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983GXX=`test $ac_compiler_gnu = yes && echo yes`
2984ac_test_CXXFLAGS=${CXXFLAGS+set}
2985ac_save_CXXFLAGS=$CXXFLAGS
2986{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988if test "${ac_cv_prog_cxx_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992 ac_cxx_werror_flag=yes
2993 ac_cv_prog_cxx_g=no
2994 CXXFLAGS="-g"
2995 cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001
3002int
3003main ()
3004{
3005
3006 ;
3007 return 0;
3008}
3009_ACEOF
3010rm -f conftest.$ac_objext
3011if { (ac_try="$ac_compile"
3012case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_prog_cxx_g=yes
3045else
3046 echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 CXXFLAGS=""
3050 cat >conftest.$ac_ext <<_ACEOF
3051/* confdefs.h. */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h. */
3056
3057int
3058main ()
3059{
3060
3061 ;
3062 return 0;
3063}
3064_ACEOF
3065rm -f conftest.$ac_objext
3066if { (ac_try="$ac_compile"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080 { (case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_try") 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 :
3100else
3101 echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105 CXXFLAGS="-g"
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_prog_cxx_g=yes
3156else
3157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160
3161fi
3162
3163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164fi
3165
3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167fi
3168
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171fi
3172{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174if test "$ac_test_CXXFLAGS" = set; then
3175 CXXFLAGS=$ac_save_CXXFLAGS
3176elif test $ac_cv_prog_cxx_g = yes; then
3177 if test "$GXX" = yes; then
3178 CXXFLAGS="-g -O2"
3179 else
3180 CXXFLAGS="-g"
3181 fi
3182else
3183 if test "$GXX" = yes; then
3184 CXXFLAGS="-O2"
3185 else
3186 CXXFLAGS=
3187 fi
3188fi
3189ac_ext=c
3190ac_cpp='$CPP $CPPFLAGS'
3191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003195ac_ext=c
3196ac_cpp='$CPP $CPPFLAGS'
3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003200{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003202# On Suns, sometimes $CPP names a directory.
3203if test -n "$CPP" && test -d "$CPP"; then
3204 CPP=
3205fi
3206if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003207 if test "${ac_cv_prog_CPP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209else
3210 # Double quotes because CPP needs to be expanded
3211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212 do
3213 ac_preproc_ok=false
3214for ac_c_preproc_warn_flag in '' yes
3215do
3216 # Use a header file that comes with gcc, so configuring glibc
3217 # with a fresh cross-compiler works.
3218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219 # <limits.h> exists even on freestanding compilers.
3220 # On the NeXT, cc -E runs the code through the compiler's parser,
3221 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227/* end confdefs.h. */
3228#ifdef __STDC__
3229# include <limits.h>
3230#else
3231# include <assert.h>
3232#endif
3233 Syntax error
3234_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003235if { (ac_try="$ac_cpp conftest.$ac_ext"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251 else
3252 ac_cpp_err=
3253 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255 ac_cpp_err=yes
3256fi
3257if test -z "$ac_cpp_err"; then
3258 :
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 # Broken: fails on valid input.
3264continue
3265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267rm -f conftest.err conftest.$ac_ext
3268
Reid Spencera773bd52006-08-04 18:18:08 +00003269 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271 cat >conftest.$ac_ext <<_ACEOF
3272/* confdefs.h. */
3273_ACEOF
3274cat confdefs.h >>conftest.$ac_ext
3275cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276/* end confdefs.h. */
3277#include <ac_nonexistent.h>
3278_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003279if { (ac_try="$ac_cpp conftest.$ac_ext"
3280case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283esac
3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 else
3296 ac_cpp_err=
3297 fi
3298else
3299 ac_cpp_err=yes
3300fi
3301if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302 # Broken: success on invalid input.
3303continue
3304else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003305 echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308 # Passes both tests.
3309ac_preproc_ok=:
3310break
3311fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003312
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313rm -f conftest.err conftest.$ac_ext
3314
3315done
3316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003318if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319 break
3320fi
3321
3322 done
3323 ac_cv_prog_CPP=$CPP
3324
3325fi
3326 CPP=$ac_cv_prog_CPP
3327else
3328 ac_cv_prog_CPP=$CPP
3329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003330{ echo "$as_me:$LINENO: result: $CPP" >&5
3331echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332ac_preproc_ok=false
3333for ac_c_preproc_warn_flag in '' yes
3334do
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003341 cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346/* end confdefs.h. */
3347#ifdef __STDC__
3348# include <limits.h>
3349#else
3350# include <assert.h>
3351#endif
3352 Syntax error
3353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003354if { (ac_try="$ac_cpp conftest.$ac_ext"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370 else
3371 ac_cpp_err=
3372 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 ac_cpp_err=yes
3375fi
3376if test -z "$ac_cpp_err"; then
3377 :
3378else
3379 echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382 # Broken: fails on valid input.
3383continue
3384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386rm -f conftest.err conftest.$ac_ext
3387
Reid Spencera773bd52006-08-04 18:18:08 +00003388 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390 cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395/* end confdefs.h. */
3396#include <ac_nonexistent.h>
3397_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398if { (ac_try="$ac_cpp conftest.$ac_ext"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414 else
3415 ac_cpp_err=
3416 fi
3417else
3418 ac_cpp_err=yes
3419fi
3420if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 # Broken: success on invalid input.
3422continue
3423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003424 echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427 # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432rm -f conftest.err conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003437if $ac_preproc_ok; then
3438 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441See \`config.log' for more details." >&5
3442echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445fi
3446
John Criswell7a73b802003-06-30 21:59:07 +00003447ac_ext=c
3448ac_cpp='$CPP $CPPFLAGS'
3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
John Criswell7a73b802003-06-30 21:59:07 +00003453
Eric Christopherffee5722011-09-16 20:36:25 +00003454
3455
3456if test -d ${srcdir}/projects/llvm-gcc ; then
3457 subdirs="$subdirs projects/llvm-gcc"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/test-suite ; then
3462 subdirs="$subdirs projects/test-suite"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/llvm-test ; then
3467 subdirs="$subdirs projects/llvm-test"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/poolalloc ; then
3472 subdirs="$subdirs projects/poolalloc"
3473
3474fi
3475
3476if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477 subdirs="$subdirs projects/llvm-poolalloc"
3478
3479fi
3480
3481for i in `ls ${srcdir}/projects`
3482do
3483 if test -d ${srcdir}/projects/${i} ; then
3484 case ${i} in
3485 sample) subdirs="$subdirs projects/sample"
3486 ;;
3487 privbracket) subdirs="$subdirs projects/privbracket"
3488 ;;
3489 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3490 ;;
3491 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3492;;
3493 llvm-java) subdirs="$subdirs projects/llvm-java"
3494 ;;
3495 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3496 ;;
3497 safecode) subdirs="$subdirs projects/safecode"
3498 ;;
3499 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3500 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003501 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003502 llvm-gcc) ;;
3503 test-suite) ;;
3504 llvm-test) ;;
3505 poolalloc) ;;
3506 llvm-poolalloc) ;;
3507 *)
3508 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3509echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510 ;;
3511 esac
3512 fi
3513done
3514
3515# Check whether --enable-polly was given.
3516if test "${enable_polly+set}" = set; then
3517 enableval=$enable_polly;
3518else
3519 enableval=default
3520fi
3521
3522case "$enableval" in
3523 yes) ENABLE_POLLY=1
3524 ;;
3525 no) ENABLE_POLLY=0
3526 ;;
3527 default) ENABLE_POLLY=1
3528 ;;
3529 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3530echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3531 { (exit 1); exit 1; }; } ;;
3532esac
3533
3534
3535if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3536 LLVM_HAS_POLLY=1
3537
3538 subdirs="$subdirs tools/polly"
3539
3540fi
3541
3542
3543# Make sure we can run config.sub.
3544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3545 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3546echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3547 { (exit 1); exit 1; }; }
3548
3549{ echo "$as_me:$LINENO: checking build system type" >&5
3550echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3551if test "${ac_cv_build+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554 ac_build_alias=$build_alias
3555test "x$ac_build_alias" = x &&
3556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557test "x$ac_build_alias" = x &&
3558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3559echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3560 { (exit 1); exit 1; }; }
3561ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3563echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3564 { (exit 1); exit 1; }; }
3565
3566fi
3567{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3568echo "${ECHO_T}$ac_cv_build" >&6; }
3569case $ac_cv_build in
3570*-*-*) ;;
3571*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3572echo "$as_me: error: invalid value of canonical build" >&2;}
3573 { (exit 1); exit 1; }; };;
3574esac
3575build=$ac_cv_build
3576ac_save_IFS=$IFS; IFS='-'
3577set x $ac_cv_build
3578shift
3579build_cpu=$1
3580build_vendor=$2
3581shift; shift
3582# Remember, the first character of IFS is used to create $*,
3583# except with old shells:
3584build_os=$*
3585IFS=$ac_save_IFS
3586case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3587
3588
3589{ echo "$as_me:$LINENO: checking host system type" >&5
3590echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3591if test "${ac_cv_host+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594 if test "x$host_alias" = x; then
3595 ac_cv_host=$ac_cv_build
3596else
3597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3598 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3599echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3600 { (exit 1); exit 1; }; }
3601fi
3602
3603fi
3604{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3605echo "${ECHO_T}$ac_cv_host" >&6; }
3606case $ac_cv_host in
3607*-*-*) ;;
3608*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3609echo "$as_me: error: invalid value of canonical host" >&2;}
3610 { (exit 1); exit 1; }; };;
3611esac
3612host=$ac_cv_host
3613ac_save_IFS=$IFS; IFS='-'
3614set x $ac_cv_host
3615shift
3616host_cpu=$1
3617host_vendor=$2
3618shift; shift
3619# Remember, the first character of IFS is used to create $*,
3620# except with old shells:
3621host_os=$*
3622IFS=$ac_save_IFS
3623case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624
3625
3626{ echo "$as_me:$LINENO: checking target system type" >&5
3627echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3628if test "${ac_cv_target+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 if test "x$target_alias" = x; then
3632 ac_cv_target=$ac_cv_host
3633else
3634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3635 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3636echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3637 { (exit 1); exit 1; }; }
3638fi
3639
3640fi
3641{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3642echo "${ECHO_T}$ac_cv_target" >&6; }
3643case $ac_cv_target in
3644*-*-*) ;;
3645*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3646echo "$as_me: error: invalid value of canonical target" >&2;}
3647 { (exit 1); exit 1; }; };;
3648esac
3649target=$ac_cv_target
3650ac_save_IFS=$IFS; IFS='-'
3651set x $ac_cv_target
3652shift
3653target_cpu=$1
3654target_vendor=$2
3655shift; shift
3656# Remember, the first character of IFS is used to create $*,
3657# except with old shells:
3658target_os=$*
3659IFS=$ac_save_IFS
3660case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3661
3662
3663# The aliases save the names the user supplied, while $host etc.
3664# will get canonicalized.
3665test -n "$target_alias" &&
3666 test "$program_prefix$program_suffix$program_transform_name" = \
3667 NONENONEs,x,x, &&
3668 program_prefix=${target_alias}-
3669
3670{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3671echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3672if test "${llvm_cv_os_type+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 case $host in
3676 *-*-aix*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="AIX"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-irix*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="IRIX"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-cygwin*)
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="Cygwin"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-darwin*)
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Darwin"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-minix*)
3697 llvm_cv_link_all_option="-Wl,-all_load"
3698 llvm_cv_no_link_all_option="-Wl,-noall_load"
3699 llvm_cv_os_type="Minix"
3700 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003701 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="FreeBSD"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-openbsd*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="OpenBSD"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-netbsd*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="NetBSD"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-dragonfly*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="DragonFly"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-hpux*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="HP-UX"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-interix*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Interix"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-linux*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="Linux"
3735 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003736 *-*-gnu*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="GNU"
3740 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003741 *-*-solaris*)
3742 llvm_cv_link_all_option="-Wl,-z,allextract"
3743 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3744 llvm_cv_os_type="SunOS"
3745 llvm_cv_platform_type="Unix" ;;
3746 *-*-auroraux*)
3747 llvm_cv_link_all_option="-Wl,-z,allextract"
3748 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3749 llvm_cv_os_type="AuroraUX"
3750 llvm_cv_platform_type="Unix" ;;
3751 *-*-win32*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Win32"
3755 llvm_cv_platform_type="Win32" ;;
3756 *-*-mingw*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="MingW"
3760 llvm_cv_platform_type="Win32" ;;
3761 *-*-haiku*)
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Haiku"
3765 llvm_cv_platform_type="Unix" ;;
3766 *-unknown-eabi*)
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Freestanding"
3770 llvm_cv_platform_type="Unix" ;;
3771 *-unknown-elf*)
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Freestanding"
3775 llvm_cv_platform_type="Unix" ;;
3776 *)
3777 llvm_cv_link_all_option=""
3778 llvm_cv_no_link_all_option=""
3779 llvm_cv_os_type="Unknown"
3780 llvm_cv_platform_type="Unknown" ;;
3781esac
3782fi
3783{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3784echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3785
3786{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3787echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3788if test "${llvm_cv_target_os_type+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791 case $target in
3792 *-*-aix*)
3793 llvm_cv_target_os_type="AIX" ;;
3794 *-*-irix*)
3795 llvm_cv_target_os_type="IRIX" ;;
3796 *-*-cygwin*)
3797 llvm_cv_target_os_type="Cygwin" ;;
3798 *-*-darwin*)
3799 llvm_cv_target_os_type="Darwin" ;;
3800 *-*-minix*)
3801 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003802 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003803 llvm_cv_target_os_type="FreeBSD" ;;
3804 *-*-openbsd*)
3805 llvm_cv_target_os_type="OpenBSD" ;;
3806 *-*-netbsd*)
3807 llvm_cv_target_os_type="NetBSD" ;;
3808 *-*-dragonfly*)
3809 llvm_cv_target_os_type="DragonFly" ;;
3810 *-*-hpux*)
3811 llvm_cv_target_os_type="HP-UX" ;;
3812 *-*-interix*)
3813 llvm_cv_target_os_type="Interix" ;;
3814 *-*-linux*)
3815 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003816 *-*-gnu*)
3817 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003818 *-*-solaris*)
3819 llvm_cv_target_os_type="SunOS" ;;
3820 *-*-auroraux*)
3821 llvm_cv_target_os_type="AuroraUX" ;;
3822 *-*-win32*)
3823 llvm_cv_target_os_type="Win32" ;;
3824 *-*-mingw*)
3825 llvm_cv_target_os_type="MingW" ;;
3826 *-*-haiku*)
3827 llvm_cv_target_os_type="Haiku" ;;
3828 *-*-rtems*)
3829 llvm_cv_target_os_type="RTEMS" ;;
3830 *-*-nacl*)
3831 llvm_cv_target_os_type="NativeClient" ;;
3832 *-unknown-eabi*)
3833 llvm_cv_target_os_type="Freestanding" ;;
3834 *)
3835 llvm_cv_target_os_type="Unknown" ;;
3836esac
3837fi
3838{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3839echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3840
3841if test "$llvm_cv_os_type" = "Unknown" ; then
3842 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3843echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3844 { (exit 1); exit 1; }; }
3845fi
3846
3847OS=$llvm_cv_os_type
3848
3849HOST_OS=$llvm_cv_os_type
3850
3851TARGET_OS=$llvm_cv_target_os_type
3852
3853
3854LINKALL=$llvm_cv_link_all_option
3855
3856NOLINKALL=$llvm_cv_no_link_all_option
3857
3858
3859case $llvm_cv_platform_type in
3860 Unix)
3861
3862cat >>confdefs.h <<\_ACEOF
3863#define LLVM_ON_UNIX 1
3864_ACEOF
3865
3866 LLVM_ON_UNIX=1
3867
3868 LLVM_ON_WIN32=0
3869
3870 ;;
3871 Win32)
3872
3873cat >>confdefs.h <<\_ACEOF
3874#define LLVM_ON_WIN32 1
3875_ACEOF
3876
3877 LLVM_ON_UNIX=0
3878
3879 LLVM_ON_WIN32=1
3880
3881 ;;
3882esac
3883
3884{ echo "$as_me:$LINENO: checking target architecture" >&5
3885echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3886if test "${llvm_cv_target_arch+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888else
3889 case $target in
3890 i?86-*) llvm_cv_target_arch="x86" ;;
3891 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3892 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3893 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003894 arm*-*) llvm_cv_target_arch="ARM" ;;
3895 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003896 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003897 xcore-*) llvm_cv_target_arch="XCore" ;;
3898 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003899 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003900 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003901 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003902 *) llvm_cv_target_arch="Unknown" ;;
3903esac
3904fi
3905{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3906echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3907
3908if test "$llvm_cv_target_arch" = "Unknown" ; then
3909 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3910echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3911fi
3912
Eric Christopherffee5722011-09-16 20:36:25 +00003913case "$llvm_cv_target_arch" in
3914 x86) LLVM_NATIVE_ARCH="X86" ;;
3915 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3916 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3917esac
3918
3919ARCH=$llvm_cv_target_arch
3920
3921
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003922case $host in
3923 i?86-*) host_arch="x86" ;;
3924 amd64-* | x86_64-*) host_arch="x86_64" ;;
3925 sparc*-*) host_arch="Sparc" ;;
3926 powerpc*-*) host_arch="PowerPC" ;;
3927 arm*-*) host_arch="ARM" ;;
3928 mips-*) host_arch="Mips" ;;
3929 mipsel-*) host_arch="Mips" ;;
3930 xcore-*) host_arch="XCore" ;;
3931 msp430-*) host_arch="MSP430" ;;
3932 hexagon-*) host_arch="Hexagon" ;;
3933 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003934 *) host_arch="Unknown" ;;
3935esac
3936
3937if test "$host_arch" = "Unknown" ; then
3938 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3939echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3940fi
3941
3942HOST_ARCH=$host_arch
3943
3944
Eric Christopherffee5722011-09-16 20:36:25 +00003945
3946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3948echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3949if test "${ac_cv_path_GREP+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003951else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003952 # Extract the first word of "grep ggrep" to use in msg output
3953if test -z "$GREP"; then
3954set dummy grep ggrep; ac_prog_name=$2
3955if test "${ac_cv_path_GREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
Reid Spencera773bd52006-08-04 18:18:08 +00003958 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959# Loop through the user's path and test for each of PROGNAME-LIST
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965 for ac_prog in grep ggrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3969 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003970 # Check for GNU $ac_path_GREP
3971case `"$ac_path_GREP" --version 2>&1` in
3972*GNU*)
3973 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3974*)
3975 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003983 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003986 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_GREP="$ac_path_GREP"
3989 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003990 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995esac
3996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997
3998 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003999 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000done
4001
4002done
Reid Spencera773bd52006-08-04 18:18:08 +00004003IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004
4005
4006fi
4007
4008GREP="$ac_cv_path_GREP"
4009if test -z "$GREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4013fi
4014
Reid Spencera773bd52006-08-04 18:18:08 +00004015else
4016 ac_cv_path_GREP=$GREP
4017fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019
Reid Spencera773bd52006-08-04 18:18:08 +00004020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004021{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4022echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004023 GREP="$ac_cv_path_GREP"
4024
4025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026{ echo "$as_me:$LINENO: checking for egrep" >&5
4027echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4028if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004030else
4031 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4032 then ac_cv_path_EGREP="$GREP -E"
4033 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034 # Extract the first word of "egrep" to use in msg output
4035if test -z "$EGREP"; then
4036set dummy egrep; ac_prog_name=$2
4037if test "${ac_cv_path_EGREP+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
Reid Spencera773bd52006-08-04 18:18:08 +00004040 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041# Loop through the user's path and test for each of PROGNAME-LIST
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004043for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047 for ac_prog in egrep; do
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4050 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4051 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004052 # Check for GNU $ac_path_EGREP
4053case `"$ac_path_EGREP" --version 2>&1` in
4054*GNU*)
4055 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4056*)
4057 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004058 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004059 while :
4060 do
4061 cat "conftest.in" "conftest.in" >"conftest.tmp"
4062 mv "conftest.tmp" "conftest.in"
4063 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004065 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004068 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4069 # Best one so far, save it but keep looking for a better one
4070 ac_cv_path_EGREP="$ac_path_EGREP"
4071 ac_path_EGREP_max=$ac_count
4072 fi
4073 # 10*(2^10) chars as input seems more than enough
4074 test $ac_count -gt 10 && break
4075 done
4076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077esac
4078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079
4080 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004081 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004082done
4083
4084done
Reid Spencera773bd52006-08-04 18:18:08 +00004085IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004086
4087
4088fi
4089
4090EGREP="$ac_cv_path_EGREP"
4091if test -z "$EGREP"; then
4092 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4093echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4094 { (exit 1); exit 1; }; }
4095fi
4096
Reid Spencera773bd52006-08-04 18:18:08 +00004097else
4098 ac_cv_path_EGREP=$EGREP
4099fi
4100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004101
Reid Spencera773bd52006-08-04 18:18:08 +00004102 fi
4103fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4105echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004106 EGREP="$ac_cv_path_EGREP"
4107
4108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004109{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4110echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4111if test "${ac_cv_header_stdc+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004113else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114 cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004120#include <stdlib.h>
4121#include <stdarg.h>
4122#include <string.h>
4123#include <float.h>
4124
John Criswell0c38eaf2003-09-10 15:17:25 +00004125int
4126main ()
4127{
4128
4129 ;
4130 return 0;
4131}
John Criswell7a73b802003-06-30 21:59:07 +00004132_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133rm -f conftest.$ac_objext
4134if { (ac_try="$ac_compile"
4135case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161esac
4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004167 ac_cv_header_stdc=yes
4168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004174
Reid Spencera773bd52006-08-04 18:18:08 +00004175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004176
4177if test $ac_cv_header_stdc = yes; then
4178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004179 cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h. */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004184/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004185#include <string.h>
4186
4187_ACEOF
4188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004189 $EGREP "memchr" >/dev/null 2>&1; then
4190 :
John Criswell7a73b802003-06-30 21:59:07 +00004191else
4192 ac_cv_header_stdc=no
4193fi
4194rm -f conftest*
4195
4196fi
4197
4198if test $ac_cv_header_stdc = yes; then
4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004205/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004206#include <stdlib.h>
4207
4208_ACEOF
4209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004210 $EGREP "free" >/dev/null 2>&1; then
4211 :
John Criswell7a73b802003-06-30 21:59:07 +00004212else
4213 ac_cv_header_stdc=no
4214fi
4215rm -f conftest*
4216
4217fi
4218
4219if test $ac_cv_header_stdc = yes; then
4220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004221 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004222 :
4223else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004224 cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h. */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004229/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004230#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004231#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004232#if ((' ' & 0x0FF) == 0x020)
4233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4235#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004236# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004237 (('a' <= (c) && (c) <= 'i') \
4238 || ('j' <= (c) && (c) <= 'r') \
4239 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4241#endif
4242
4243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4244int
4245main ()
4246{
4247 int i;
4248 for (i = 0; i < 256; i++)
4249 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004250 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004251 return 2;
4252 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004253}
4254_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255rm -f conftest$ac_exeext
4256if { (ac_try="$ac_link"
4257case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_link") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4266 { (case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269esac
4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_try") 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 :
John Criswell7a73b802003-06-30 21:59:07 +00004276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004277 echo "$as_me: program exited with status $ac_status" >&5
4278echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281( exit $ac_status )
4282ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004284rm -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 +00004285fi
4286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287
John Criswell7a73b802003-06-30 21:59:07 +00004288fi
4289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004290{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4291echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004292if test $ac_cv_header_stdc = yes; then
4293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004294cat >>confdefs.h <<\_ACEOF
4295#define STDC_HEADERS 1
4296_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004297
4298fi
4299
Reid Spencera773bd52006-08-04 18:18:08 +00004300# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301
4302
4303
4304
4305
4306
4307
4308
4309
Reid Spencera773bd52006-08-04 18:18:08 +00004310for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4311 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004312do
4313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
4319 cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325$ac_includes_default
4326
4327#include <$ac_header>
4328_ACEOF
4329rm -f conftest.$ac_objext
4330if { (ac_try="$ac_compile"
4331case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4344 { (case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_try") 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; } &&
4353 { ac_try='test -s conftest.$ac_objext'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 eval "$as_ac_Header=yes"
4364else
4365 echo "$as_me: failed program was:" >&5
4366sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 eval "$as_ac_Header=no"
4369fi
4370
4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372fi
4373ac_res=`eval echo '${'$as_ac_Header'}'`
4374 { echo "$as_me:$LINENO: result: $ac_res" >&5
4375echo "${ECHO_T}$ac_res" >&6; }
4376if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004377 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004379_ACEOF
4380
4381fi
4382
4383done
4384
4385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4387echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4388if test "${ac_cv_c_bigendian+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004391 # See if sys/param.h defines the BYTE_ORDER macro.
4392cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004397/* end confdefs.h. */
4398#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004400
4401int
4402main ()
4403{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004404#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4405 bogus endian macros
4406#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004407
4408 ;
4409 return 0;
4410}
4411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412rm -f conftest.$ac_objext
4413if { (ac_try="$ac_compile"
4414case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417esac
4418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_compile") 2>conftest.er1
4420 ac_status=$?
4421 grep -v '^ *+' conftest.er1 >conftest.err
4422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } &&
4426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4427 { (case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
4431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_try") 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004446 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447cat >conftest.$ac_ext <<_ACEOF
4448/* confdefs.h. */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004452/* end confdefs.h. */
4453#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004455
4456int
4457main ()
4458{
4459#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004460 not big endian
4461#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004462
4463 ;
4464 return 0;
4465}
4466_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467rm -f conftest.$ac_objext
4468if { (ac_try="$ac_compile"
4469case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
4473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_compile") 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4482 { (case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
4486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_try") 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest.$ac_objext'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495esac
4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004501 ac_cv_c_bigendian=yes
4502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004503 echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004506 ac_cv_c_bigendian=no
4507fi
4508
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510else
4511 echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514 # It does not; compile a test program.
4515if test "$cross_compiling" = yes; then
4516 # try to guess the endianness by grepping values into an object file
4517 ac_cv_c_bigendian=unknown
4518 cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
4524short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4526void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4527short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4529void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004530int
4531main ()
4532{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004533 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004534 ;
4535 return 0;
4536}
4537_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538rm -f conftest.$ac_objext
4539if { (ac_try="$ac_compile"
4540case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543esac
4544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545 (eval "$ac_compile") 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4553 { (case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556esac
4557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_try") 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; } &&
4562 { ac_try='test -s conftest.$ac_objext'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_try") 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004573 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574fi
4575if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4576 if test "$ac_cv_c_bigendian" = unknown; then
4577 ac_cv_c_bigendian=no
4578 else
4579 # finding both strings is unlikely to happen, but who knows?
4580 ac_cv_c_bigendian=unknown
4581 fi
4582fi
Reid Spencera773bd52006-08-04 18:18:08 +00004583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584 echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587
Torok Edwin871384f2010-01-26 08:50:50 +00004588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004589
Reid Spencera773bd52006-08-04 18:18:08 +00004590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592 cat >conftest.$ac_ext <<_ACEOF
4593/* confdefs.h. */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004597/* end confdefs.h. */
4598$ac_includes_default
4599int
4600main ()
4601{
4602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 /* Are we little or big endian? From Harbison&Steele. */
4604 union
4605 {
4606 long int l;
4607 char c[sizeof (long int)];
4608 } u;
4609 u.l = 1;
4610 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004611
4612 ;
4613 return 0;
4614}
4615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616rm -f conftest$ac_exeext
4617if { (ac_try="$ac_link"
4618case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621esac
4622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_link") 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4627 { (case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630esac
4631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_try") 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004636 ac_cv_c_bigendian=no
4637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004638 echo "$as_me: program exited with status $ac_status" >&5
4639echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642( exit $ac_status )
4643ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004645rm -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 +00004646fi
4647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648
Reid Spencera773bd52006-08-04 18:18:08 +00004649fi
4650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652fi
4653{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4654echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4655case $ac_cv_c_bigendian in
4656 yes)
4657 ENDIAN=big
4658 ;;
4659 no)
4660 ENDIAN=little
4661 ;;
4662 *)
4663 { { echo "$as_me:$LINENO: error: unknown endianness
4664presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4665echo "$as_me: error: unknown endianness
4666presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4667 { (exit 1); exit 1; }; } ;;
4668esac
Reid Spencera773bd52006-08-04 18:18:08 +00004669
4670
4671if test "$cross_compiling" = yes; then
4672 LLVM_CROSS_COMPILING=1
4673
4674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4676echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4677if test "${ac_cv_build_exeext+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004679else
4680 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4681 ac_cv_build_exeext=.exe
4682else
4683 ac_build_prefix=${build_alias}-
4684
4685 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4686set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004691else
4692 if test -n "$BUILD_CC"; then
4693 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 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 +00004702 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004704 break 2
4705 fi
4706done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004707done
Reid Spencera773bd52006-08-04 18:18:08 +00004708IFS=$as_save_IFS
4709
4710fi
4711fi
4712BUILD_CC=$ac_cv_prog_BUILD_CC
4713if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4715echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 { echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004719fi
4720
4721
4722 if test -z "$BUILD_CC"; then
4723 # Extract the first word of "gcc", so it can be a program name with args.
4724set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004729else
4730 if test -n "$BUILD_CC"; then
4731 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4732else
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 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 +00004740 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004742 break 2
4743 fi
4744done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745done
Reid Spencera773bd52006-08-04 18:18:08 +00004746IFS=$as_save_IFS
4747
4748fi
4749fi
4750BUILD_CC=$ac_cv_prog_BUILD_CC
4751if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4753echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755 { echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004757fi
4758
4759
4760 if test -z "$BUILD_CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004767else
4768 if test -n "$BUILD_CC"; then
4769 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4770else
4771 ac_prog_rejected=no
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 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 +00004779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected=yes
4781 continue
4782 fi
4783 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004785 break 2
4786 fi
4787done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788done
Reid Spencera773bd52006-08-04 18:18:08 +00004789IFS=$as_save_IFS
4790
4791if test $ac_prog_rejected = yes; then
4792 # We found a bogon in the path, so make sure we never use it.
4793 set dummy $ac_cv_prog_BUILD_CC
4794 shift
4795 if test $# != 0; then
4796 # We chose a different compiler from the bogus one.
4797 # However, it has the same basename, so the bogon will be chosen
4798 # first if we set BUILD_CC to just the basename; use the full file name.
4799 shift
4800 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4801 fi
4802fi
4803fi
4804fi
4805BUILD_CC=$ac_cv_prog_BUILD_CC
4806if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004807 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4808echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004810 { echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004812fi
4813
4814
4815 fi
4816 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4818echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4819 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004820 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4821 rm -f conftest*
4822 echo 'int main () { return 0; }' > conftest.$ac_ext
4823 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004824 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004825 (eval $ac_build_link) 2>&5
4826 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004829 for file in conftest.*; do
4830 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004831 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004832 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4833 esac
4834 done
4835 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004836 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4837echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4838 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004839 fi
4840 rm -f conftest*
4841 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4842fi
4843fi
4844
4845BUILD_EXEEXT=""
4846test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4848echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004849ac_build_exeext=$BUILD_EXEEXT
4850
Jim Grosbach673612e2008-10-02 22:56:44 +00004851 ac_build_prefix=${build_alias}-
4852 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4853set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004858else
4859 if test -n "$BUILD_CXX"; then
4860 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 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 +00004869 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004871 break 2
4872 fi
4873done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004874done
Jim Grosbach673612e2008-10-02 22:56:44 +00004875IFS=$as_save_IFS
4876
4877fi
4878fi
4879BUILD_CXX=$ac_cv_prog_BUILD_CXX
4880if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4882echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884 { echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004886fi
4887
4888
4889 if test -z "$BUILD_CXX"; then
4890 # Extract the first word of "g++", so it can be a program name with args.
4891set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004896else
4897 if test -n "$BUILD_CXX"; then
4898 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4899else
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 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 +00004907 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004909 break 2
4910 fi
4911done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912done
Jim Grosbach673612e2008-10-02 22:56:44 +00004913IFS=$as_save_IFS
4914
4915fi
4916fi
4917BUILD_CXX=$ac_cv_prog_BUILD_CXX
4918if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004919 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4920echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922 { echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004924fi
4925
4926
4927 if test -z "$BUILD_CXX"; then
4928 # Extract the first word of "c++", so it can be a program name with args.
4929set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4932if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004934else
4935 if test -n "$BUILD_CXX"; then
4936 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4937else
4938 ac_prog_rejected=no
4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 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 +00004946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4947 ac_prog_rejected=yes
4948 continue
4949 fi
4950 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004952 break 2
4953 fi
4954done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004955done
Jim Grosbach673612e2008-10-02 22:56:44 +00004956IFS=$as_save_IFS
4957
4958if test $ac_prog_rejected = yes; then
4959 # We found a bogon in the path, so make sure we never use it.
4960 set dummy $ac_cv_prog_BUILD_CXX
4961 shift
4962 if test $# != 0; then
4963 # We chose a different compiler from the bogus one.
4964 # However, it has the same basename, so the bogon will be chosen
4965 # first if we set BUILD_CXX to just the basename; use the full file name.
4966 shift
4967 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4968 fi
4969fi
4970fi
4971fi
4972BUILD_CXX=$ac_cv_prog_BUILD_CXX
4973if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004974 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4975echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004977 { echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004979fi
4980
4981
4982 fi
4983 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004984else
4985 LLVM_CROSS_COMPILING=0
4986
4987fi
4988
Dan Gohman56fb5f92010-08-04 16:25:01 +00004989if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004990 cvsbuild="yes"
4991 optimize="no"
4992 CVSBUILD=CVSBUILD=1
4993
4994else
4995 cvsbuild="no"
4996 optimize="yes"
4997fi
4998
4999
Eric Christopherbee515f2011-11-11 22:51:42 +00005000# Check whether --enable-libcpp was given.
5001if test "${enable_libcpp+set}" = set; then
5002 enableval=$enable_libcpp;
5003else
5004 enableval=default
5005fi
5006
5007case "$enableval" in
5008 yes) ENABLE_LIBCPP=1
5009 ;;
5010 no) ENABLE_LIBCPP=0
5011 ;;
5012 default) ENABLE_LIBCPP=0
5013;;
5014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5015echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5016 { (exit 1); exit 1; }; } ;;
5017esac
5018
Reid Spencera773bd52006-08-04 18:18:08 +00005019# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005020if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005021 enableval=$enable_optimized;
5022else
5023 enableval=$optimize
5024fi
5025
5026if test ${enableval} = "no" ; then
5027 ENABLE_OPTIMIZED=
5028
5029else
5030 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5031
5032fi
5033
David Greene2a5a12c2009-04-17 14:50:39 +00005034# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005035if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005036 enableval=$enable_profiling;
5037else
5038 enableval="no"
5039fi
5040
5041if test ${enableval} = "no" ; then
5042 ENABLE_PROFILING=
5043
5044else
5045 ENABLE_PROFILING=ENABLE_PROFILING=1
5046
5047fi
5048
Reid Spencera773bd52006-08-04 18:18:08 +00005049# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005050if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005051 enableval=$enable_assertions;
5052else
5053 enableval="yes"
5054fi
5055
5056if test ${enableval} = "yes" ; then
5057 DISABLE_ASSERTIONS=
5058
5059else
5060 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5061
5062fi
5063
David Greenea696d242007-06-28 19:36:08 +00005064# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005065if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005066 enableval=$enable_expensive_checks;
5067else
5068 enableval="no"
5069fi
5070
5071if test ${enableval} = "yes" ; then
5072 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5073
5074 EXPENSIVE_CHECKS=yes
5075
5076else
5077 ENABLE_EXPENSIVE_CHECKS=
5078
5079 EXPENSIVE_CHECKS=no
5080
5081fi
5082
Reid Spencer8b2e1412006-11-17 03:32:33 +00005083# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005084if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005085 enableval=$enable_debug_runtime;
5086else
5087 enableval=no
5088fi
5089
5090if test ${enableval} = "no" ; then
5091 DEBUG_RUNTIME=
5092
5093else
5094 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5095
5096fi
5097
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005098# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005099if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005100 enableval=$enable_debug_symbols;
5101else
5102 enableval=no
5103fi
5104
5105if test ${enableval} = "no" ; then
5106 DEBUG_SYMBOLS=
5107
5108else
5109 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5110
5111fi
5112
Reid Spencera773bd52006-08-04 18:18:08 +00005113# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005114if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005115 enableval=$enable_jit;
5116else
5117 enableval=default
5118fi
5119
5120if test ${enableval} = "no"
5121then
5122 JIT=
5123
5124else
5125 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005126 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005127 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005128 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005129 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005130 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005131 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005132 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005133 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005134 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005135 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005136 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005137 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005138 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005139 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005140 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005141 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005142 Hexagon) TARGET_HAS_JIT=0
5143 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005144 MBlaze) TARGET_HAS_JIT=0
5145 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005146 NVPTX) TARGET_HAS_JIT=0
5147 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005148 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005149 ;;
5150 esac
5151fi
5152
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005153# Check whether --enable-docs was given.
5154if test "${enable_docs+set}" = set; then
5155 enableval=$enable_docs;
5156else
5157 enableval=default
5158fi
5159
5160case "$enableval" in
5161 yes) ENABLE_DOCS=1
5162 ;;
5163 no) ENABLE_DOCS=0
5164 ;;
5165 default) ENABLE_DOCS=1
5166 ;;
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5168echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5170esac
5171
Reid Spencera773bd52006-08-04 18:18:08 +00005172# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005173if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005174 enableval=$enable_doxygen;
5175else
5176 enableval=default
5177fi
5178
5179case "$enableval" in
5180 yes) ENABLE_DOXYGEN=1
5181 ;;
5182 no) ENABLE_DOXYGEN=0
5183 ;;
5184 default) ENABLE_DOXYGEN=0
5185 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5187echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005189esac
5190
5191# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005192if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005193 enableval=$enable_threads;
5194else
Reid Spencer65c5d752006-11-05 17:08:18 +00005195 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005196fi
5197
5198case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005199 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005200 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005201 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005202 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005203 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005204 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5206echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005208esac
5209
Owen Andersona8603702009-05-19 22:18:56 +00005210cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005211#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005212_ACEOF
5213
5214
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005215# Check whether --enable-pthreads was given.
5216if test "${enable_pthreads+set}" = set; then
5217 enableval=$enable_pthreads;
5218else
5219 enableval=default
5220fi
5221
5222case "$enableval" in
5223 yes) ENABLE_PTHREADS=1
5224 ;;
5225 no) ENABLE_PTHREADS=0
5226 ;;
5227 default) ENABLE_PTHREADS=1
5228 ;;
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5230echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5232esac
5233
Reid Spencer89b0d992006-12-16 22:07:52 +00005234# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005235if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005236 enableval=$enable_pic;
5237else
5238 enableval=default
5239fi
5240
5241case "$enableval" in
5242 yes) ENABLE_PIC=1
5243 ;;
5244 no) ENABLE_PIC=0
5245 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005246 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005247 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005251esac
5252
5253cat >>confdefs.h <<_ACEOF
5254#define ENABLE_PIC $ENABLE_PIC
5255_ACEOF
5256
5257
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005258# Check whether --enable-shared was given.
5259if test "${enable_shared+set}" = set; then
5260 enableval=$enable_shared;
5261else
5262 enableval=default
5263fi
5264
5265case "$enableval" in
5266 yes) ENABLE_SHARED=1
5267 ;;
5268 no) ENABLE_SHARED=0
5269 ;;
5270 default) ENABLE_SHARED=0
5271 ;;
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5275esac
5276
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005277# Check whether --enable-embed-stdcxx was given.
5278if test "${enable_embed_stdcxx+set}" = set; then
5279 enableval=$enable_embed_stdcxx;
5280else
5281 enableval=default
5282fi
5283
5284case "$enableval" in
5285 yes) ENABLE_EMBED_STDCXX=1
5286 ;;
5287 no) ENABLE_EMBED_STDCXX=0
5288 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005289 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005290 ;;
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5294esac
5295
Daniel Dunbardd464df2010-05-10 20:11:56 +00005296# Check whether --enable-timestamps was given.
5297if test "${enable_timestamps+set}" = set; then
5298 enableval=$enable_timestamps;
5299else
5300 enableval=default
5301fi
5302
5303case "$enableval" in
5304 yes) ENABLE_TIMESTAMPS=1
5305 ;;
5306 no) ENABLE_TIMESTAMPS=0
5307 ;;
5308 default) ENABLE_TIMESTAMPS=1
5309 ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5313esac
5314
5315cat >>confdefs.h <<_ACEOF
5316#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5317_ACEOF
5318
5319
Reid Spencera773bd52006-08-04 18:18:08 +00005320TARGETS_TO_BUILD=""
5321# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005322if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005323 enableval=$enable_targets;
5324else
5325 enableval=all
5326fi
5327
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005328if test "$enableval" = host-only ; then
5329 enableval=host
5330fi
Reid Spencera773bd52006-08-04 18:18:08 +00005331case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005332 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005333 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5334 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005335 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005339 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005341 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005342 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005343 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5344 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005345 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005346 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005347 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005348 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005349 host) case "$llvm_cv_target_arch" in
5350 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5351 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5353 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005354 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5355 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005356 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005357 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005358 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5359 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005360 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005361 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005362 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5363echo "$as_me: error: Can not set target to build" >&2;}
5364 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005365 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005366 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5367echo "$as_me: error: Unrecognized target $a_target" >&2;}
5368 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005369 esac
5370 done
5371 ;;
5372esac
Reid Spencera773bd52006-08-04 18:18:08 +00005373TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5374
5375
Douglas Gregor0711c302009-06-17 00:43:20 +00005376for a_target in $TARGETS_TO_BUILD; do
5377 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5378
5379cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005380#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5381_ACEOF
5382
5383 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5384 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005385 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005386 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005387 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5388 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5389 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005390 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5391 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5392 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005393
5394cat >>confdefs.h <<_ACEOF
5395#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005396_ACEOF
5397
5398
5399cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005400#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5401_ACEOF
5402
5403
5404cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005405#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005406_ACEOF
5407
5408
5409cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005410#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005411_ACEOF
5412
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005413 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005414
5415cat >>confdefs.h <<_ACEOF
5416#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5417_ACEOF
5418
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005419 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005420 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5421
5422cat >>confdefs.h <<_ACEOF
5423#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5424_ACEOF
5425
5426 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005427 fi
5428done
5429
Douglas Gregor1555a232009-06-16 20:12:29 +00005430LLVM_ENUM_TARGETS=""
5431LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005432LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005433LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005434for target_to_build in $TARGETS_TO_BUILD; do
5435 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005436 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005437 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5438 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005439 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5440 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5441 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005442 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5443 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5444 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005445done
5446
5447
5448
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005449
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005450
Reid Spencera773bd52006-08-04 18:18:08 +00005451
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005452# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005453if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005454 withval=$with_optimize_option;
5455else
5456 withval=default
5457fi
5458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005459{ echo "$as_me:$LINENO: checking optimization flags" >&5
5460echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005461case "$withval" in
5462 default)
5463 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005464 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005465 MingW) optimize_option=-O2 ;;
5466 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005467 esac ;;
5468 *) optimize_option="$withval" ;;
5469esac
5470OPTIMIZE_OPTION=$optimize_option
5471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005472{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5473echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005474
5475
Reid Spencera773bd52006-08-04 18:18:08 +00005476# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005477if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005478 withval=$with_extra_options;
5479else
5480 withval=default
5481fi
5482
5483case "$withval" in
5484 default) EXTRA_OPTIONS= ;;
5485 *) EXTRA_OPTIONS=$withval ;;
5486esac
5487EXTRA_OPTIONS=$EXTRA_OPTIONS
5488
5489
Daniel Dunbared344d22011-06-16 22:30:41 +00005490
5491# Check whether --with-extra-ld-options was given.
5492if test "${with_extra_ld_options+set}" = set; then
5493 withval=$with_extra_ld_options;
5494else
5495 withval=default
5496fi
5497
5498case "$withval" in
5499 default) EXTRA_LD_OPTIONS= ;;
5500 *) EXTRA_LD_OPTIONS=$withval ;;
5501esac
5502EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5503
5504
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005505# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005506if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005507 enableval=$enable_bindings;
5508else
5509 enableval=default
5510fi
5511
5512BINDINGS_TO_BUILD=""
5513case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005514 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005515 all ) BINDINGS_TO_BUILD="ocaml" ;;
5516 none | no) BINDINGS_TO_BUILD="" ;;
5517 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5518 case "$a_binding" in
5519 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005520 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5521echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5522 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005523 esac
5524 done
5525 ;;
5526esac
5527
Reid Spencera773bd52006-08-04 18:18:08 +00005528
Gordon Henriksenf0915682007-10-02 16:42:22 +00005529# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005531 withval=$with_ocaml_libdir;
5532else
5533 withval=auto
5534fi
5535
5536case "$withval" in
5537 auto) with_ocaml_libdir="$withval" ;;
5538 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005539 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5540echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5541 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005542esac
5543
5544
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005545# Check whether --with-clang-srcdir was given.
5546if test "${with_clang_srcdir+set}" = set; then
5547 withval=$with_clang_srcdir;
5548else
5549 withval="-"
5550fi
5551
5552case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005553 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005554 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5555 *) clang_src_root="$ac_pwd/$withval" ;;
5556esac
5557CLANG_SRC_ROOT=$clang_src_root
5558
5559
5560
Chandler Carruth6b241162010-10-19 08:21:25 +00005561# Check whether --with-clang-resource-dir was given.
5562if test "${with_clang_resource_dir+set}" = set; then
5563 withval=$with_clang_resource_dir;
5564else
5565 withval=""
5566fi
5567
5568
5569cat >>confdefs.h <<_ACEOF
5570#define CLANG_RESOURCE_DIR "$withval"
5571_ACEOF
5572
5573
5574
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005575# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005576if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005577 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005578else
5579 withval=""
5580fi
5581
5582
5583cat >>confdefs.h <<_ACEOF
5584#define C_INCLUDE_DIRS "$withval"
5585_ACEOF
5586
5587
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005588# Clang normally uses the system c++ headers and libraries. With this option,
5589# clang will use the ones provided by a gcc installation instead. This option should
5590# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005591
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005592# Check whether --with-gcc-toolchain was given.
5593if test "${with_gcc_toolchain+set}" = set; then
5594 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005595else
5596 withval=""
5597fi
5598
5599
5600cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005601#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005602_ACEOF
5603
5604
5605
Sebastian Pope4f1b372012-04-30 20:06:58 +00005606# Check whether --with-default-sysroot was given.
5607if test "${with_default_sysroot+set}" = set; then
5608 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005609else
5610 withval=""
5611fi
5612
5613
5614cat >>confdefs.h <<_ACEOF
5615#define DEFAULT_SYSROOT "$withval"
5616_ACEOF
5617
5618
5619
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005620# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005622 withval=$with_binutils_include;
5623else
5624 withval=default
5625fi
5626
5627case "$withval" in
5628 default) WITH_BINUTILS_INCDIR=default ;;
5629 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5631echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5632 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005633esac
5634if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5635 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5636
5637 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5638 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005639 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5640echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5641 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005642 fi
5643fi
5644
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005645
5646# Check whether --with-bug-report-url was given.
5647if test "${with_bug_report_url+set}" = set; then
5648 withval=$with_bug_report_url;
5649else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005650 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005651fi
5652
5653
5654cat >>confdefs.h <<_ACEOF
5655#define BUG_REPORT_URL "$withval"
5656_ACEOF
5657
5658
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005659# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005661 enableval=$enable_libffi; case "$enableval" in
5662 yes) llvm_cv_enable_libffi="yes" ;;
5663 no) llvm_cv_enable_libffi="no" ;;
5664 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005665echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5666 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005667 esac
5668else
5669 llvm_cv_enable_libffi=no
5670fi
5671
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005672
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005673
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005674# Check whether --with-internal-prefix was given.
5675if test "${with_internal_prefix+set}" = set; then
5676 withval=$with_internal_prefix;
5677else
5678 withval=""
5679fi
5680
5681INTERNAL_PREFIX=$withval
5682
5683
5684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005685{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5686echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5687if test "${lt_cv_path_NM+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005689else
5690 if test -n "$NM"; then
5691 # Let the user override the test.
5692 lt_cv_path_NM="$NM"
5693else
5694 lt_nm_to_check="${ac_tool_prefix}nm"
5695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5696 lt_nm_to_check="$lt_nm_to_check nm"
5697 fi
5698 for lt_tmp_nm in $lt_nm_to_check; do
5699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5701 IFS="$lt_save_ifs"
5702 test -z "$ac_dir" && ac_dir=.
5703 tmp_nm="$ac_dir/$lt_tmp_nm"
5704 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5705 # Check to see if the nm accepts a BSD-compat flag.
5706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5707 # nm: unknown option "B" ignored
5708 # Tru64's nm complains that /dev/null is an invalid object file
5709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5710 */dev/null* | *'Invalid file or object type'*)
5711 lt_cv_path_NM="$tmp_nm -B"
5712 break
5713 ;;
5714 *)
5715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5716 */dev/null*)
5717 lt_cv_path_NM="$tmp_nm -p"
5718 break
5719 ;;
5720 *)
5721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5722 continue # so that we can try to find one that supports BSD flags
5723 ;;
5724 esac
5725 ;;
5726 esac
5727 fi
5728 done
5729 IFS="$lt_save_ifs"
5730 done
5731 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5732fi
5733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5735echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005736NM="$lt_cv_path_NM"
5737
5738
5739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005740{ echo "$as_me:$LINENO: checking for GNU make" >&5
5741echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5742if test "${llvm_cv_gnu_make_command+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005744else
5745 llvm_cv_gnu_make_command=''
5746 for a in "$MAKE" make gmake gnumake ; do
5747 if test -z "$a" ; then continue ; fi ;
5748 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5749 then
5750 llvm_cv_gnu_make_command=$a ;
5751 break;
5752 fi
5753 done
5754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5756echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005757 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5758 ifGNUmake='' ;
5759 else
5760 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5762echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005763 fi
5764
5765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005766{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5767echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005768LN_S=$as_ln_s
5769if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005770 { echo "$as_me:$LINENO: result: yes" >&5
5771echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5774echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005775fi
5776
5777# Extract the first word of "cmp", so it can be a program name with args.
5778set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5781if test "${ac_cv_path_CMP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005783else
5784 case $CMP in
5785 [\\/]* | ?:[\\/]*)
5786 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5787 ;;
5788 *)
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 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 +00005796 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005798 break 2
5799 fi
5800done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005801done
Reid Spencera773bd52006-08-04 18:18:08 +00005802IFS=$as_save_IFS
5803
5804 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5805 ;;
5806esac
5807fi
5808CMP=$ac_cv_path_CMP
5809if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005810 { echo "$as_me:$LINENO: result: $CMP" >&5
5811echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813 { echo "$as_me:$LINENO: result: no" >&5
5814echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005815fi
5816
5817
5818# Extract the first word of "cp", so it can be a program name with args.
5819set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822if test "${ac_cv_path_CP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005824else
5825 case $CP in
5826 [\\/]* | ?:[\\/]*)
5827 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5828 ;;
5829 *)
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 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 +00005837 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005839 break 2
5840 fi
5841done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842done
Reid Spencera773bd52006-08-04 18:18:08 +00005843IFS=$as_save_IFS
5844
5845 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5846 ;;
5847esac
5848fi
5849CP=$ac_cv_path_CP
5850if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851 { echo "$as_me:$LINENO: result: $CP" >&5
5852echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005854 { echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005856fi
5857
5858
5859# Extract the first word of "date", so it can be a program name with args.
5860set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863if test "${ac_cv_path_DATE+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005865else
5866 case $DATE in
5867 [\\/]* | ?:[\\/]*)
5868 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5869 ;;
5870 *)
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 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 +00005878 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005880 break 2
5881 fi
5882done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005883done
Reid Spencera773bd52006-08-04 18:18:08 +00005884IFS=$as_save_IFS
5885
5886 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5887 ;;
5888esac
5889fi
5890DATE=$ac_cv_path_DATE
5891if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005892 { echo "$as_me:$LINENO: result: $DATE" >&5
5893echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895 { echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005897fi
5898
5899
5900# Extract the first word of "find", so it can be a program name with args.
5901set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904if test "${ac_cv_path_FIND+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005906else
5907 case $FIND in
5908 [\\/]* | ?:[\\/]*)
5909 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5910 ;;
5911 *)
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 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 +00005919 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005921 break 2
5922 fi
5923done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005924done
Reid Spencera773bd52006-08-04 18:18:08 +00005925IFS=$as_save_IFS
5926
5927 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5928 ;;
5929esac
5930fi
5931FIND=$ac_cv_path_FIND
5932if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005933 { echo "$as_me:$LINENO: result: $FIND" >&5
5934echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005936 { echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005938fi
5939
5940
5941# Extract the first word of "grep", so it can be a program name with args.
5942set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945if test "${ac_cv_path_GREP+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005947else
5948 case $GREP in
5949 [\\/]* | ?:[\\/]*)
5950 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5951 ;;
5952 *)
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 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 +00005960 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005962 break 2
5963 fi
5964done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005965done
Reid Spencera773bd52006-08-04 18:18:08 +00005966IFS=$as_save_IFS
5967
5968 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5969 ;;
5970esac
5971fi
5972GREP=$ac_cv_path_GREP
5973if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005974 { echo "$as_me:$LINENO: result: $GREP" >&5
5975echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005977 { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005979fi
5980
5981
5982# Extract the first word of "mkdir", so it can be a program name with args.
5983set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986if test "${ac_cv_path_MKDIR+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005988else
5989 case $MKDIR in
5990 [\\/]* | ?:[\\/]*)
5991 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5992 ;;
5993 *)
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 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 +00006001 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006003 break 2
6004 fi
6005done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006006done
Reid Spencera773bd52006-08-04 18:18:08 +00006007IFS=$as_save_IFS
6008
6009 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6010 ;;
6011esac
6012fi
6013MKDIR=$ac_cv_path_MKDIR
6014if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6016echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006017else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006018 { echo "$as_me:$LINENO: result: no" >&5
6019echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006020fi
6021
6022
6023# Extract the first word of "mv", so it can be a program name with args.
6024set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027if test "${ac_cv_path_MV+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006029else
6030 case $MV in
6031 [\\/]* | ?:[\\/]*)
6032 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6033 ;;
6034 *)
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 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 +00006042 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006044 break 2
6045 fi
6046done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006047done
Reid Spencera773bd52006-08-04 18:18:08 +00006048IFS=$as_save_IFS
6049
6050 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6051 ;;
6052esac
6053fi
6054MV=$ac_cv_path_MV
6055if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056 { echo "$as_me:$LINENO: result: $MV" >&5
6057echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059 { echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006061fi
6062
6063
6064if test -n "$ac_tool_prefix"; then
6065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6066set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069if test "${ac_cv_prog_RANLIB+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006071else
6072 if test -n "$RANLIB"; then
6073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006084 break 2
6085 fi
6086done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006087done
Reid Spencera773bd52006-08-04 18:18:08 +00006088IFS=$as_save_IFS
6089
6090fi
6091fi
6092RANLIB=$ac_cv_prog_RANLIB
6093if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006094 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6095echo "${ECHO_T}$RANLIB" >&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
6102fi
6103if test -z "$ac_cv_prog_RANLIB"; then
6104 ac_ct_RANLIB=$RANLIB
6105 # Extract the first word of "ranlib", so it can be a program name with args.
6106set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006111else
6112 if test -n "$ac_ct_RANLIB"; then
6113 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006122 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006124 break 2
6125 fi
6126done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006127done
Reid Spencera773bd52006-08-04 18:18:08 +00006128IFS=$as_save_IFS
6129
6130fi
6131fi
6132ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6133if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006134 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6135echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006136else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006137 { echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006139fi
6140
6141 if test "x$ac_ct_RANLIB" = x; then
6142 RANLIB=":"
6143 else
6144 case $cross_compiling:$ac_tool_warned in
6145yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6147whose name does not start with the host triplet. If you think this
6148configuration is useful to you, please write to autoconf@gnu.org." >&5
6149echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6150whose name does not start with the host triplet. If you think this
6151configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006152ac_tool_warned=yes ;;
6153esac
6154 RANLIB=$ac_ct_RANLIB
6155 fi
6156else
6157 RANLIB="$ac_cv_prog_RANLIB"
6158fi
6159
Torok Edwin871384f2010-01-26 08:50:50 +00006160if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6162set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165if test "${ac_cv_prog_AR+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006167else
6168 if test -n "$AR"; then
6169 ac_cv_prog_AR="$AR" # Let the user override the test.
6170else
6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH
6173do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 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 +00006178 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006180 break 2
6181 fi
6182done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006183done
Torok Edwin871384f2010-01-26 08:50:50 +00006184IFS=$as_save_IFS
6185
6186fi
6187fi
6188AR=$ac_cv_prog_AR
6189if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190 { echo "$as_me:$LINENO: result: $AR" >&5
6191echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 { echo "$as_me:$LINENO: result: no" >&5
6194echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006195fi
6196
6197
6198fi
6199if test -z "$ac_cv_prog_AR"; then
6200 ac_ct_AR=$AR
6201 # Extract the first word of "ar", so it can be a program name with args.
6202set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6205if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006207else
6208 if test -n "$ac_ct_AR"; then
6209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6210else
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006218 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006220 break 2
6221 fi
6222done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006223done
Torok Edwin871384f2010-01-26 08:50:50 +00006224IFS=$as_save_IFS
6225
6226fi
6227fi
6228ac_ct_AR=$ac_cv_prog_ac_ct_AR
6229if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006230 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6231echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006232else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233 { echo "$as_me:$LINENO: result: no" >&5
6234echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006235fi
6236
6237 if test "x$ac_ct_AR" = x; then
6238 AR="false"
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6243whose name does not start with the host triplet. If you think this
6244configuration is useful to you, please write to autoconf@gnu.org." >&5
6245echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6246whose name does not start with the host triplet. If you think this
6247configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006248ac_tool_warned=yes ;;
6249esac
6250 AR=$ac_ct_AR
6251 fi
6252else
6253 AR="$ac_cv_prog_AR"
6254fi
6255
Reid Spencera773bd52006-08-04 18:18:08 +00006256# Extract the first word of "rm", so it can be a program name with args.
6257set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260if test "${ac_cv_path_RM+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006262else
6263 case $RM in
6264 [\\/]* | ?:[\\/]*)
6265 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6266 ;;
6267 *)
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 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 +00006275 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006277 break 2
6278 fi
6279done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006280done
Reid Spencera773bd52006-08-04 18:18:08 +00006281IFS=$as_save_IFS
6282
6283 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6284 ;;
6285esac
6286fi
6287RM=$ac_cv_path_RM
6288if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289 { echo "$as_me:$LINENO: result: $RM" >&5
6290echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 { echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006294fi
6295
6296
6297# Extract the first word of "sed", so it can be a program name with args.
6298set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301if test "${ac_cv_path_SED+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006303else
6304 case $SED in
6305 [\\/]* | ?:[\\/]*)
6306 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6307 ;;
6308 *)
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 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 +00006316 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006318 break 2
6319 fi
6320done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321done
Reid Spencera773bd52006-08-04 18:18:08 +00006322IFS=$as_save_IFS
6323
6324 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6325 ;;
6326esac
6327fi
6328SED=$ac_cv_path_SED
6329if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006330 { echo "$as_me:$LINENO: result: $SED" >&5
6331echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333 { echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006335fi
6336
6337
6338# Extract the first word of "tar", so it can be a program name with args.
6339set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342if test "${ac_cv_path_TAR+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006344else
6345 case $TAR in
6346 [\\/]* | ?:[\\/]*)
6347 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6348 ;;
6349 *)
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 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 +00006357 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006359 break 2
6360 fi
6361done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362done
Reid Spencera773bd52006-08-04 18:18:08 +00006363IFS=$as_save_IFS
6364
6365 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6366 ;;
6367esac
6368fi
6369TAR=$ac_cv_path_TAR
6370if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371 { echo "$as_me:$LINENO: result: $TAR" >&5
6372echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006374 { echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006376fi
6377
6378
6379# Extract the first word of "pwd", so it can be a program name with args.
6380set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383if test "${ac_cv_path_BINPWD+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006385else
6386 case $BINPWD in
6387 [\\/]* | ?:[\\/]*)
6388 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6389 ;;
6390 *)
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 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 +00006398 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006400 break 2
6401 fi
6402done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006403done
Reid Spencera773bd52006-08-04 18:18:08 +00006404IFS=$as_save_IFS
6405
6406 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6407 ;;
6408esac
6409fi
6410BINPWD=$ac_cv_path_BINPWD
6411if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6413echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415 { echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006417fi
6418
6419
6420
6421# Extract the first word of "Graphviz", so it can be a program name with args.
6422set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006427else
6428 case $GRAPHVIZ in
6429 [\\/]* | ?:[\\/]*)
6430 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6431 ;;
6432 *)
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 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 +00006440 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006442 break 2
6443 fi
6444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006445done
Reid Spencera773bd52006-08-04 18:18:08 +00006446IFS=$as_save_IFS
6447
6448 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6449 ;;
6450esac
6451fi
6452GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6453if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6455echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457 { echo "$as_me:$LINENO: result: no" >&5
6458echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006459fi
6460
6461
6462if test "$GRAPHVIZ" != "echo Graphviz" ; then
6463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464cat >>confdefs.h <<\_ACEOF
6465#define HAVE_GRAPHVIZ 1
6466_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006467
Jeff Cohen28783c32007-01-12 18:22:38 +00006468 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006469 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6470 fi
6471
6472cat >>confdefs.h <<_ACEOF
6473#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6474_ACEOF
6475
6476fi
6477# Extract the first word of "dot", so it can be a program name with args.
6478set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481if test "${ac_cv_path_DOT+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006483else
6484 case $DOT in
6485 [\\/]* | ?:[\\/]*)
6486 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6487 ;;
6488 *)
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 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 +00006496 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006498 break 2
6499 fi
6500done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006501done
Reid Spencera773bd52006-08-04 18:18:08 +00006502IFS=$as_save_IFS
6503
6504 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6505 ;;
6506esac
6507fi
6508DOT=$ac_cv_path_DOT
6509if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510 { echo "$as_me:$LINENO: result: $DOT" >&5
6511echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006513 { echo "$as_me:$LINENO: result: no" >&5
6514echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006515fi
6516
6517
6518if test "$DOT" != "echo dot" ; then
6519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520cat >>confdefs.h <<\_ACEOF
6521#define HAVE_DOT 1
6522_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006523
Jeff Cohen28783c32007-01-12 18:22:38 +00006524 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006525 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6526 fi
6527
6528cat >>confdefs.h <<_ACEOF
6529#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6530_ACEOF
6531
6532fi
David Greenef0b9eff2009-07-09 17:16:26 +00006533# Extract the first word of "fdp", so it can be a program name with args.
6534set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537if test "${ac_cv_path_FDP+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006539else
6540 case $FDP in
6541 [\\/]* | ?:[\\/]*)
6542 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6543 ;;
6544 *)
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 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 +00006552 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006554 break 2
6555 fi
6556done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006557done
David Greenef0b9eff2009-07-09 17:16:26 +00006558IFS=$as_save_IFS
6559
6560 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6561 ;;
6562esac
6563fi
6564FDP=$ac_cv_path_FDP
6565if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566 { echo "$as_me:$LINENO: result: $FDP" >&5
6567echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006569 { echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006571fi
6572
6573
6574if test "$FDP" != "echo fdp" ; then
6575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006576cat >>confdefs.h <<\_ACEOF
6577#define HAVE_FDP 1
6578_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006579
6580 if test "$llvm_cv_os_type" = "MingW" ; then
6581 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6582 fi
6583
6584cat >>confdefs.h <<_ACEOF
6585#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6586_ACEOF
6587
6588fi
6589# Extract the first word of "neato", so it can be a program name with args.
6590set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593if test "${ac_cv_path_NEATO+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006595else
6596 case $NEATO in
6597 [\\/]* | ?:[\\/]*)
6598 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6599 ;;
6600 *)
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 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 +00006608 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006610 break 2
6611 fi
6612done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006613done
David Greenef0b9eff2009-07-09 17:16:26 +00006614IFS=$as_save_IFS
6615
6616 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6617 ;;
6618esac
6619fi
6620NEATO=$ac_cv_path_NEATO
6621if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006622 { echo "$as_me:$LINENO: result: $NEATO" >&5
6623echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006625 { echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006627fi
6628
6629
6630if test "$NEATO" != "echo neato" ; then
6631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632cat >>confdefs.h <<\_ACEOF
6633#define HAVE_NEATO 1
6634_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006635
6636 if test "$llvm_cv_os_type" = "MingW" ; then
6637 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6638 fi
6639
6640cat >>confdefs.h <<_ACEOF
6641#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6642_ACEOF
6643
6644fi
6645# Extract the first word of "twopi", so it can be a program name with args.
6646set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649if test "${ac_cv_path_TWOPI+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006651else
6652 case $TWOPI in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 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 +00006664 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006666 break 2
6667 fi
6668done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006669done
David Greenef0b9eff2009-07-09 17:16:26 +00006670IFS=$as_save_IFS
6671
6672 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6673 ;;
6674esac
6675fi
6676TWOPI=$ac_cv_path_TWOPI
6677if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006678 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6679echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006681 { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006683fi
6684
6685
6686if test "$TWOPI" != "echo twopi" ; then
6687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688cat >>confdefs.h <<\_ACEOF
6689#define HAVE_TWOPI 1
6690_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006691
6692 if test "$llvm_cv_os_type" = "MingW" ; then
6693 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6694 fi
6695
6696cat >>confdefs.h <<_ACEOF
6697#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6698_ACEOF
6699
6700fi
6701# Extract the first word of "circo", so it can be a program name with args.
6702set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705if test "${ac_cv_path_CIRCO+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006707else
6708 case $CIRCO in
6709 [\\/]* | ?:[\\/]*)
6710 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6711 ;;
6712 *)
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 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 +00006720 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006722 break 2
6723 fi
6724done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725done
David Greenef0b9eff2009-07-09 17:16:26 +00006726IFS=$as_save_IFS
6727
6728 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6729 ;;
6730esac
6731fi
6732CIRCO=$ac_cv_path_CIRCO
6733if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6735echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737 { echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006739fi
6740
6741
6742if test "$CIRCO" != "echo circo" ; then
6743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744cat >>confdefs.h <<\_ACEOF
6745#define HAVE_CIRCO 1
6746_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006747
6748 if test "$llvm_cv_os_type" = "MingW" ; then
6749 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6750 fi
6751
6752cat >>confdefs.h <<_ACEOF
6753#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6754_ACEOF
6755
6756fi
Reid Spencera773bd52006-08-04 18:18:08 +00006757for ac_prog in gv gsview32
6758do
6759 # Extract the first word of "$ac_prog", so it can be a program name with args.
6760set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763if test "${ac_cv_path_GV+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006765else
6766 case $GV in
6767 [\\/]* | ?:[\\/]*)
6768 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6769 ;;
6770 *)
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 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 +00006778 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006780 break 2
6781 fi
6782done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783done
Reid Spencera773bd52006-08-04 18:18:08 +00006784IFS=$as_save_IFS
6785
6786 ;;
6787esac
6788fi
6789GV=$ac_cv_path_GV
6790if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006791 { echo "$as_me:$LINENO: result: $GV" >&5
6792echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794 { echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006796fi
6797
6798
6799 test -n "$GV" && break
6800done
6801test -n "$GV" || GV="echo gv"
6802
6803if test "$GV" != "echo gv" ; then
6804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805cat >>confdefs.h <<\_ACEOF
6806#define HAVE_GV 1
6807_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006808
Jeff Cohen28783c32007-01-12 18:22:38 +00006809 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006810 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6811 fi
6812
6813cat >>confdefs.h <<_ACEOF
6814#define LLVM_PATH_GV "$GV${EXEEXT}"
6815_ACEOF
6816
6817fi
6818# Extract the first word of "dotty", so it can be a program name with args.
6819set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822if test "${ac_cv_path_DOTTY+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006824else
6825 case $DOTTY in
6826 [\\/]* | ?:[\\/]*)
6827 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6828 ;;
6829 *)
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 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 +00006837 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006839 break 2
6840 fi
6841done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006842done
Reid Spencera773bd52006-08-04 18:18:08 +00006843IFS=$as_save_IFS
6844
6845 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6846 ;;
6847esac
6848fi
6849DOTTY=$ac_cv_path_DOTTY
6850if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6852echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006854 { echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006856fi
6857
6858
6859if test "$DOTTY" != "echo dotty" ; then
6860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006861cat >>confdefs.h <<\_ACEOF
6862#define HAVE_DOTTY 1
6863_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006864
Jeff Cohen28783c32007-01-12 18:22:38 +00006865 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006866 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6867 fi
6868
6869cat >>confdefs.h <<_ACEOF
6870#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6871_ACEOF
6872
6873fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006874# Extract the first word of "xdot.py", so it can be a program name with args.
6875set dummy xdot.py; ac_word=$2
6876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6878if test "${ac_cv_path_XDOT_PY+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881 case $XDOT_PY in
6882 [\\/]* | ?:[\\/]*)
6883 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6884 ;;
6885 *)
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897done
6898done
6899IFS=$as_save_IFS
6900
6901 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6902 ;;
6903esac
6904fi
6905XDOT_PY=$ac_cv_path_XDOT_PY
6906if test -n "$XDOT_PY"; then
6907 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6908echo "${ECHO_T}$XDOT_PY" >&6; }
6909else
6910 { echo "$as_me:$LINENO: result: no" >&5
6911echo "${ECHO_T}no" >&6; }
6912fi
6913
6914
6915if test "$XDOT_PY" != "echo xdot.py" ; then
6916
6917cat >>confdefs.h <<\_ACEOF
6918#define HAVE_XDOT_PY 1
6919_ACEOF
6920
6921 if test "$llvm_cv_os_type" = "MingW" ; then
6922 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6923 fi
6924
6925cat >>confdefs.h <<_ACEOF
6926#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6927_ACEOF
6928
6929fi
Reid Spencera773bd52006-08-04 18:18:08 +00006930
Reid Spencera773bd52006-08-04 18:18:08 +00006931# Find a good install program. We prefer a C program (faster),
6932# so one script is as good as another. But avoid the broken or
6933# incompatible versions:
6934# SysV /etc/install, /usr/sbin/install
6935# SunOS /usr/etc/install
6936# IRIX /sbin/install
6937# AIX /bin/install
6938# AmigaOS /C/install, which installs bootblocks on floppy discs
6939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6940# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6942# OS/2's system install, which has a completely different semantic
6943# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006946if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947if test "${ac_cv_path_install+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006949else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955 # Account for people who put trailing slashes in PATH elements.
6956case $as_dir/ in
6957 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006960 /usr/ucb/* ) ;;
6961 *)
6962 # OSF1 and SCO ODT 3.0 have their own names for install.
6963 # Don't use installbsd from OSF since it installs stuff as root
6964 # by default.
6965 for ac_prog in ginstall scoinst install; do
6966 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967 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 +00006968 if test $ac_prog = install &&
6969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6970 # AIX install. It has an incompatible calling convention.
6971 :
6972 elif test $ac_prog = install &&
6973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6974 # program-specific install script used by HP pwplus--don't use.
6975 :
6976 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6978 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006979 fi
6980 fi
6981 done
6982 done
6983 ;;
6984esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985done
Reid Spencera773bd52006-08-04 18:18:08 +00006986IFS=$as_save_IFS
6987
6988
6989fi
6990 if test "${ac_cv_path_install+set}" = set; then
6991 INSTALL=$ac_cv_path_install
6992 else
6993 # As a last resort, use the slow shell script. Don't cache a
6994 # value for INSTALL within a source directory, because that will
6995 # break other packages using the cache if that directory is
6996 # removed, or if the value is a relative name.
6997 INSTALL=$ac_install_sh
6998 fi
6999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7001echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007002
7003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7004# It thinks the first close brace ends the variable substitution.
7005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7006
7007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7008
7009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7010
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007011case "$INSTALL" in
7012 [\\/$]* | ?:[\\/]* ) ;;
7013 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7014esac
Reid Spencera773bd52006-08-04 18:18:08 +00007015
7016# Extract the first word of "bzip2", so it can be a program name with args.
7017set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020if test "${ac_cv_path_BZIP2+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007022else
7023 case $BZIP2 in
7024 [\\/]* | ?:[\\/]*)
7025 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7026 ;;
7027 *)
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 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 +00007035 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007037 break 2
7038 fi
7039done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007040done
Reid Spencera773bd52006-08-04 18:18:08 +00007041IFS=$as_save_IFS
7042
Reid Spencera773bd52006-08-04 18:18:08 +00007043 ;;
7044esac
7045fi
7046BZIP2=$ac_cv_path_BZIP2
7047if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007048 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7049echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 { echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053fi
7054
7055
mike-m68cb3192010-05-06 23:45:43 +00007056# Extract the first word of "cat", so it can be a program name with args.
7057set dummy cat; ac_word=$2
7058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060if test "${ac_cv_path_CAT+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 case $CAT in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079done
7080done
7081IFS=$as_save_IFS
7082
7083 ;;
7084esac
7085fi
7086CAT=$ac_cv_path_CAT
7087if test -n "$CAT"; then
7088 { echo "$as_me:$LINENO: result: $CAT" >&5
7089echo "${ECHO_T}$CAT" >&6; }
7090else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
7093fi
7094
7095
Reid Spencera773bd52006-08-04 18:18:08 +00007096# Extract the first word of "doxygen", so it can be a program name with args.
7097set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_path_DOXYGEN+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007102else
7103 case $DOXYGEN in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7106 ;;
7107 *)
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 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 +00007115 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007117 break 2
7118 fi
7119done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120done
Reid Spencera773bd52006-08-04 18:18:08 +00007121IFS=$as_save_IFS
7122
Reid Spencera773bd52006-08-04 18:18:08 +00007123 ;;
7124esac
7125fi
7126DOXYGEN=$ac_cv_path_DOXYGEN
7127if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007128 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7129echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 { echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007133fi
7134
7135
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007136# Extract the first word of "groff", so it can be a program name with args.
7137set dummy groff; ac_word=$2
7138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140if test "${ac_cv_path_GROFF+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 case $GROFF in
7144 [\\/]* | ?:[\\/]*)
7145 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7146 ;;
7147 *)
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159done
7160done
7161IFS=$as_save_IFS
7162
7163 ;;
7164esac
7165fi
7166GROFF=$ac_cv_path_GROFF
7167if test -n "$GROFF"; then
7168 { echo "$as_me:$LINENO: result: $GROFF" >&5
7169echo "${ECHO_T}$GROFF" >&6; }
7170else
7171 { echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6; }
7173fi
7174
7175
Reid Spencera773bd52006-08-04 18:18:08 +00007176# Extract the first word of "gzip", so it can be a program name with args.
7177set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007180if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007182else
Eric Christopher031d3072010-12-10 01:31:51 +00007183 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007184 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007185 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007186 ;;
7187 *)
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 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 +00007195 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007197 break 2
7198 fi
7199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200done
Reid Spencera773bd52006-08-04 18:18:08 +00007201IFS=$as_save_IFS
7202
Reid Spencera773bd52006-08-04 18:18:08 +00007203 ;;
7204esac
7205fi
Eric Christopher031d3072010-12-10 01:31:51 +00007206GZIPBIN=$ac_cv_path_GZIPBIN
7207if test -n "$GZIPBIN"; then
7208 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7209echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007213fi
7214
7215
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007216# Extract the first word of "pdfroff", so it can be a program name with args.
7217set dummy pdfroff; ac_word=$2
7218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220if test "${ac_cv_path_PDFROFF+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 case $PDFROFF in
7224 [\\/]* | ?:[\\/]*)
7225 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7226 ;;
7227 *)
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239done
7240done
7241IFS=$as_save_IFS
7242
7243 ;;
7244esac
7245fi
7246PDFROFF=$ac_cv_path_PDFROFF
7247if test -n "$PDFROFF"; then
7248 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7249echo "${ECHO_T}$PDFROFF" >&6; }
7250else
7251 { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
7253fi
7254
7255
Reid Spencera773bd52006-08-04 18:18:08 +00007256# Extract the first word of "zip", so it can be a program name with args.
7257set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260if test "${ac_cv_path_ZIP+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007262else
7263 case $ZIP in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7266 ;;
7267 *)
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 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 +00007275 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007277 break 2
7278 fi
7279done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280done
Reid Spencera773bd52006-08-04 18:18:08 +00007281IFS=$as_save_IFS
7282
Reid Spencera773bd52006-08-04 18:18:08 +00007283 ;;
7284esac
7285fi
7286ZIP=$ac_cv_path_ZIP
7287if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288 { echo "$as_me:$LINENO: result: $ZIP" >&5
7289echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291 { echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007293fi
7294
7295
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007296for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007297do
7298 # Extract the first word of "$ac_prog", so it can be a program name with args.
7299set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302if test "${ac_cv_path_OCAMLC+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007304else
7305 case $OCAMLC in
7306 [\\/]* | ?:[\\/]*)
7307 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7308 ;;
7309 *)
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 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 +00007317 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007319 break 2
7320 fi
7321done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007323IFS=$as_save_IFS
7324
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007325 ;;
7326esac
7327fi
7328OCAMLC=$ac_cv_path_OCAMLC
7329if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7331echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007333 { echo "$as_me:$LINENO: result: no" >&5
7334echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007335fi
7336
7337
Gordon Henriksene7072162008-03-07 18:20:01 +00007338 test -n "$OCAMLC" && break
7339done
7340
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007341for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007342do
7343 # Extract the first word of "$ac_prog", so it can be a program name with args.
7344set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007349else
7350 case $OCAMLOPT in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007362 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007364 break 2
7365 fi
7366done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007367done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007368IFS=$as_save_IFS
7369
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007370 ;;
7371esac
7372fi
7373OCAMLOPT=$ac_cv_path_OCAMLOPT
7374if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7376echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378 { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007380fi
7381
7382
Gordon Henriksene7072162008-03-07 18:20:01 +00007383 test -n "$OCAMLOPT" && break
7384done
7385
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007386for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007387do
7388 # Extract the first word of "$ac_prog", so it can be a program name with args.
7389set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007394else
7395 case $OCAMLDEP in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7398 ;;
7399 *)
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007407 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007409 break 2
7410 fi
7411done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007413IFS=$as_save_IFS
7414
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007415 ;;
7416esac
7417fi
7418OCAMLDEP=$ac_cv_path_OCAMLDEP
7419if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7421echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007425fi
7426
7427
Gordon Henriksene7072162008-03-07 18:20:01 +00007428 test -n "$OCAMLDEP" && break
7429done
7430
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007431for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007432do
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007439else
7440 case $OCAMLDOC in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007452 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007454 break 2
7455 fi
7456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007458IFS=$as_save_IFS
7459
7460 ;;
7461esac
7462fi
7463OCAMLDOC=$ac_cv_path_OCAMLDOC
7464if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7466echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007470fi
7471
7472
7473 test -n "$OCAMLDOC" && break
7474done
7475
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007476for ac_prog in gas as
7477do
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479set dummy $ac_prog; ac_word=$2
7480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482if test "${ac_cv_path_GAS+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485 case $GAS in
7486 [\\/]* | ?:[\\/]*)
7487 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7488 ;;
7489 *)
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501done
7502done
7503IFS=$as_save_IFS
7504
7505 ;;
7506esac
7507fi
7508GAS=$ac_cv_path_GAS
7509if test -n "$GAS"; then
7510 { echo "$as_me:$LINENO: result: $GAS" >&5
7511echo "${ECHO_T}$GAS" >&6; }
7512else
7513 { echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6; }
7515fi
7516
7517
7518 test -n "$GAS" && break
7519done
7520
Reid Spencera773bd52006-08-04 18:18:08 +00007521
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007522{ echo "$as_me:$LINENO: checking for linker version" >&5
7523echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7524if test "${llvm_cv_link_version+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526else
7527
7528 version_string="$(ld -v 2>&1 | head -1)"
7529
7530 # Check for ld64.
7531 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007532 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007533 else
7534 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7535 fi
7536
7537fi
7538{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7539echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7540
7541cat >>confdefs.h <<_ACEOF
7542#define HOST_LINK_VERSION "$llvm_cv_link_version"
7543_ACEOF
7544
7545
7546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7548echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7549if test "${llvm_cv_link_use_r+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007551else
7552 ac_ext=c
7553ac_cpp='$CPP $CPPFLAGS'
7554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557
7558 oldcflags="$CFLAGS"
7559 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h. */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007565/* end confdefs.h. */
7566
7567int
7568main ()
7569{
Dan Gohman39ed6782010-04-25 00:12:20 +00007570
Reid Spencera773bd52006-08-04 18:18:08 +00007571 ;
7572 return 0;
7573}
7574_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575rm -f conftest.$ac_objext conftest$ac_exeext
7576if { (ac_try="$ac_link"
7577case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580esac
7581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_link") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7590 { (case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7593esac
7594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595 (eval "$ac_try") 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest$ac_exeext'
7600 { (case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603esac
7604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_try") 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007609 llvm_cv_link_use_r=yes
7610else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611 echo "$as_me: failed program was:" >&5
7612sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616
Bill Wendlingebcceee2009-04-18 11:20:33 +00007617rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007619 CFLAGS="$oldcflags"
7620 ac_ext=c
7621ac_cpp='$CPP $CPPFLAGS'
7622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625
7626
7627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7629echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007630if test "$llvm_cv_link_use_r" = yes ; then
7631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632cat >>confdefs.h <<\_ACEOF
7633#define HAVE_LINK_R 1
7634_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007635
7636 fi
7637
7638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007639{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7640echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7641if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007643else
7644 ac_ext=c
7645ac_cpp='$CPP $CPPFLAGS'
7646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649
7650 oldcflags="$CFLAGS"
7651 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007652 cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007657/* end confdefs.h. */
7658
7659int
7660main ()
7661{
Dan Gohman39ed6782010-04-25 00:12:20 +00007662
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007663 ;
7664 return 0;
7665}
7666_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667rm -f conftest.$ac_objext conftest$ac_exeext
7668if { (ac_try="$ac_link"
7669case "(($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_link") 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7682 { (case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_try") 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest$ac_exeext'
7692 { (case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695esac
7696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_try") 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007701 llvm_cv_link_use_export_dynamic=yes
7702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
7706 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708
Bill Wendlingebcceee2009-04-18 11:20:33 +00007709rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007711 CFLAGS="$oldcflags"
7712 ac_ext=c
7713ac_cpp='$CPP $CPPFLAGS'
7714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7716ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717
7718
7719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007720{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7721echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007722if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724cat >>confdefs.h <<\_ACEOF
7725#define HAVE_LINK_EXPORT_DYNAMIC 1
7726_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007727
7728 fi
7729
7730
Dan Gohmanda612d62010-06-01 14:56:56 +00007731{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7732echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7733if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736 ac_ext=c
7737ac_cpp='$CPP $CPPFLAGS'
7738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740ac_compiler_gnu=$ac_cv_c_compiler_gnu
7741
7742 oldcflags="$CFLAGS"
7743
7744 # The following code is from the autoconf manual,
7745 # "11.13: Limitations of Usual Tools".
7746 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7747 # Use mktemp if possible; otherwise fall back on mkdir,
7748 # with $RANDOM to make collisions less likely.
7749 : ${TMPDIR=/tmp}
7750 {
7751 tmp=`
7752 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7753 ` &&
7754 test -n "$tmp" && test -d "$tmp"
7755 } || {
7756 tmp=$TMPDIR/foo$$-$RANDOM
7757 (umask 077 && mkdir "$tmp")
7758 } || exit $?
7759
Dan Gohmanda612d62010-06-01 14:56:56 +00007760 echo "{" > "$tmp/export.map"
7761 echo " global: main;" >> "$tmp/export.map"
7762 echo " local: *;" >> "$tmp/export.map"
7763 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007764
Dan Gohmanda612d62010-06-01 14:56:56 +00007765 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007766 cat >conftest.$ac_ext <<_ACEOF
7767/* confdefs.h. */
7768_ACEOF
7769cat confdefs.h >>conftest.$ac_ext
7770cat >>conftest.$ac_ext <<_ACEOF
7771/* end confdefs.h. */
7772
7773int
7774main ()
7775{
Dan Gohman39ed6782010-04-25 00:12:20 +00007776
Dan Gohman391569c2010-04-16 22:59:06 +00007777 ;
7778 return 0;
7779}
7780_ACEOF
7781rm -f conftest.$ac_objext conftest$ac_exeext
7782if { (ac_try="$ac_link"
7783case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786esac
7787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_link") 2>conftest.er1
7789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } &&
7795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7796 { (case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_try") 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809esac
7810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_try") 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007815 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007816else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
Dan Gohman943005e2010-06-01 16:22:27 +00007820 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007821fi
7822
7823rm -f core conftest.err conftest.$ac_objext \
7824 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007825 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007826 rmdir "$tmp"
7827 CFLAGS="$oldcflags"
7828 ac_ext=c
7829ac_cpp='$CPP $CPPFLAGS'
7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834
7835fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007836{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7837echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7838if test "$llvm_cv_link_use_version_script" = yes ; then
7839 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007840
7841 fi
7842
7843
Reid Spencera773bd52006-08-04 18:18:08 +00007844
7845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007846{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7847echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7848if test "${ac_cv_c_const+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007851 cat >conftest.$ac_ext <<_ACEOF
7852/* confdefs.h. */
7853_ACEOF
7854cat confdefs.h >>conftest.$ac_ext
7855cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007856/* end confdefs.h. */
7857
7858int
7859main ()
7860{
7861/* FIXME: Include the comments suggested by Paul. */
7862#ifndef __cplusplus
7863 /* Ultrix mips cc rejects this. */
7864 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007866 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867 char const *const *ccp;
7868 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007869 /* NEC SVR4.0.2 mips cc rejects this. */
7870 struct point {int x, y;};
7871 static struct point const zero = {0,0};
7872 /* AIX XL C 1.02.0.0 rejects this.
7873 It does not let you subtract one const X* pointer from another in
7874 an arm of an if-expression whose if-part is not a constant
7875 expression */
7876 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007877 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007878 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879 ++ccp;
7880 p = (char**) ccp;
7881 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007882 { /* SCO 3.2v4 cc rejects this. */
7883 char *t;
7884 char const *s = 0 ? (char *) 0 : (char const *) 0;
7885
7886 *t++ = 0;
7887 if (s) return 0;
7888 }
7889 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7890 int x[] = {25, 17};
7891 const int *foo = &x[0];
7892 ++foo;
7893 }
7894 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7895 typedef const int *iptr;
7896 iptr p = 0;
7897 ++p;
7898 }
7899 { /* AIX XL C 1.02.0.0 rejects this saying
7900 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7901 struct s { int j; const int *ap[3]; };
7902 struct s *b; b->j = 5;
7903 }
7904 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7905 const int foo = 10;
7906 if (!foo) return 0;
7907 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007909#endif
7910
7911 ;
7912 return 0;
7913}
7914_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007915rm -f conftest.$ac_objext
7916if { (ac_try="$ac_compile"
7917case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920esac
7921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7930 { (case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_try") 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; } &&
7939 { ac_try='test -s conftest.$ac_objext'
7940 { (case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943esac
7944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_try") 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007949 ac_cv_c_const=yes
7950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007951 echo "$as_me: failed program was:" >&5
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00007955fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007956
Reid Spencera773bd52006-08-04 18:18:08 +00007957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7960echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007961if test $ac_cv_c_const = no; then
7962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963cat >>confdefs.h <<\_ACEOF
7964#define const
7965_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007966
7967fi
7968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969
7970
7971
7972
7973
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007974ac_header_dirent=no
7975for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007976 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7977{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7978echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007982 cat >conftest.$ac_ext <<_ACEOF
7983/* confdefs.h. */
7984_ACEOF
7985cat confdefs.h >>conftest.$ac_ext
7986cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007987/* end confdefs.h. */
7988#include <sys/types.h>
7989#include <$ac_hdr>
7990
7991int
7992main ()
7993{
7994if ((DIR *) 0)
7995return 0;
7996 ;
7997 return 0;
7998}
7999_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000rm -f conftest.$ac_objext
8001if { (ac_try="$ac_compile"
8002case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8015 { (case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018esac
8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_try") 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try='test -s conftest.$ac_objext'
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_try") 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008034 eval "$as_ac_Header=yes"
8035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036 echo "$as_me: failed program was:" >&5
8037sed 's/^/| /' conftest.$ac_ext >&5
8038
8039 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008041
Reid Spencera773bd52006-08-04 18:18:08 +00008042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008044ac_res=`eval echo '${'$as_ac_Header'}'`
8045 { echo "$as_me:$LINENO: result: $ac_res" >&5
8046echo "${ECHO_T}$ac_res" >&6; }
8047if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008048 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008049#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008050_ACEOF
8051
8052ac_header_dirent=$ac_hdr; break
8053fi
8054
8055done
8056# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8057if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008058 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8059echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8060if test "${ac_cv_search_opendir+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008062else
8063 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008069/* end confdefs.h. */
8070
Reid Spencera773bd52006-08-04 18:18:08 +00008071/* Override any GCC internal prototype to avoid an error.
8072 Use char because int might match the return type of a GCC
8073 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008074#ifdef __cplusplus
8075extern "C"
8076#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008077char opendir ();
8078int
8079main ()
8080{
Reid Spencera773bd52006-08-04 18:18:08 +00008081return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008082 ;
8083 return 0;
8084}
8085_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008086for ac_lib in '' dir; do
8087 if test -z "$ac_lib"; then
8088 ac_res="none required"
8089 else
8090 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008092 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008093 rm -f conftest.$ac_objext conftest$ac_exeext
8094if { (ac_try="$ac_link"
8095case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098esac
8099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_link") 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108 { (case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111esac
8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_try") 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest$ac_exeext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121esac
8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008127 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128else
8129 echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008133fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134
Bill Wendlingebcceee2009-04-18 11:20:33 +00008135rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136 conftest$ac_exeext
8137 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008138 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008139fi
John Criswell7a73b802003-06-30 21:59:07 +00008140done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141if test "${ac_cv_search_opendir+set}" = set; then
8142 :
Reid Spencera773bd52006-08-04 18:18:08 +00008143else
8144 ac_cv_search_opendir=no
8145fi
8146rm conftest.$ac_ext
8147LIBS=$ac_func_search_save_LIBS
8148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8150echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008151ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008154
Reid Spencera773bd52006-08-04 18:18:08 +00008155fi
8156
8157else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8159echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8160if test "${ac_cv_search_opendir+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008162else
8163 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008169/* end confdefs.h. */
8170
8171/* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8174#ifdef __cplusplus
8175extern "C"
8176#endif
8177char opendir ();
8178int
8179main ()
8180{
8181return opendir ();
8182 ;
8183 return 0;
8184}
8185_ACEOF
8186for ac_lib in '' x; do
8187 if test -z "$ac_lib"; then
8188 ac_res="none required"
8189 else
8190 ac_res=-l$ac_lib
8191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8192 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008193 rm -f conftest.$ac_objext conftest$ac_exeext
8194if { (ac_try="$ac_link"
8195case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198esac
8199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211esac
8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008227 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008228else
8229 echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5
8231
8232
Reid Spencera773bd52006-08-04 18:18:08 +00008233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234
Bill Wendlingebcceee2009-04-18 11:20:33 +00008235rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 conftest$ac_exeext
8237 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008238 break
8239fi
8240done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241if test "${ac_cv_search_opendir+set}" = set; then
8242 :
Reid Spencera773bd52006-08-04 18:18:08 +00008243else
8244 ac_cv_search_opendir=no
8245fi
8246rm conftest.$ac_ext
8247LIBS=$ac_func_search_save_LIBS
8248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8250echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008252if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8254
8255fi
8256
8257fi
John Criswell7a73b802003-06-30 21:59:07 +00008258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008259
John Criswell7a73b802003-06-30 21:59:07 +00008260for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261do
8262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268fi
8269ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271echo "${ECHO_T}$ac_res" >&6; }
8272else
8273 # Is the header compilable?
8274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8276cat >conftest.$ac_ext <<_ACEOF
8277/* confdefs.h. */
8278_ACEOF
8279cat confdefs.h >>conftest.$ac_ext
8280cat >>conftest.$ac_ext <<_ACEOF
8281/* end confdefs.h. */
8282$ac_includes_default
8283#include <$ac_header>
8284_ACEOF
8285rm -f conftest.$ac_objext
8286if { (ac_try="$ac_compile"
8287case "(($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_compile") 2>conftest.er1
8293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_header_compiler=yes
8320else
8321 echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 ac_header_compiler=no
8325fi
8326
8327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8329echo "${ECHO_T}$ac_header_compiler" >&6; }
8330
8331# Is the header present?
8332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8334cat >conftest.$ac_ext <<_ACEOF
8335/* confdefs.h. */
8336_ACEOF
8337cat confdefs.h >>conftest.$ac_ext
8338cat >>conftest.$ac_ext <<_ACEOF
8339/* end confdefs.h. */
8340#include <$ac_header>
8341_ACEOF
8342if { (ac_try="$ac_cpp conftest.$ac_ext"
8343case "(($ac_try" in
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8346esac
8347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } >/dev/null; then
8355 if test -s conftest.err; then
8356 ac_cpp_err=$ac_c_preproc_warn_flag
8357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8358 else
8359 ac_cpp_err=
8360 fi
8361else
8362 ac_cpp_err=yes
8363fi
8364if test -z "$ac_cpp_err"; then
8365 ac_header_preproc=yes
8366else
8367 echo "$as_me: failed program was:" >&5
8368sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 ac_header_preproc=no
8371fi
8372
8373rm -f conftest.err conftest.$ac_ext
8374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375echo "${ECHO_T}$ac_header_preproc" >&6; }
8376
8377# So? What about this header?
8378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8379 yes:no: )
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8384 ac_header_preproc=yes
8385 ;;
8386 no:yes:* )
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8399 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008400## ------------------------------------ ##
8401## Report this to http://llvm.org/bugs/ ##
8402## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403_ASBOX
8404 ) | sed "s/^/$as_me: WARNING: /" >&2
8405 ;;
8406esac
8407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 eval "$as_ac_Header=\$ac_header_preproc"
8413fi
8414ac_res=`eval echo '${'$as_ac_Header'}'`
8415 { echo "$as_me:$LINENO: result: $ac_res" >&5
8416echo "${ECHO_T}$ac_res" >&6; }
8417
8418fi
8419if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008420 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008422_ACEOF
8423
8424fi
8425
8426done
8427
Reid Spencera773bd52006-08-04 18:18:08 +00008428# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008430 enableval=$enable_ltdl_install;
8431fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008432
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434
8435
8436if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008437 INSTALL_LTDL_TRUE=
8438 INSTALL_LTDL_FALSE='#'
8439else
8440 INSTALL_LTDL_TRUE='#'
8441 INSTALL_LTDL_FALSE=
8442fi
8443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444
8445
8446if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008447 CONVENIENCE_LTDL_TRUE=
8448 CONVENIENCE_LTDL_FALSE='#'
8449else
8450 CONVENIENCE_LTDL_TRUE='#'
8451 CONVENIENCE_LTDL_FALSE=
8452fi
8453
8454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8456echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008457library_names_spec=
8458libname_spec='lib$name'
8459soname_spec=
8460shrext_cmds=".so"
8461postinstall_cmds=
8462postuninstall_cmds=
8463finish_cmds=
8464finish_eval=
8465shlibpath_var=
8466shlibpath_overrides_runpath=unknown
8467version_type=none
8468dynamic_linker="$host_os ld.so"
8469sys_lib_dlsearch_path_spec="/lib /usr/lib"
8470if test "$GCC" = yes; then
8471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8472 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8473 # if the path contains ";" then we assume it to be the separator
8474 # otherwise default to the standard path separator (i.e. ":") - it is
8475 # assumed that no part of a normal pathname contains ";" but that should
8476 # okay in the real world where ";" in dirpaths is itself problematic.
8477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8478 else
8479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8480 fi
8481else
8482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8483fi
8484need_lib_prefix=unknown
8485hardcode_into_libs=no
8486
8487# when you set need_version to no, make sure it does not cause -set_version
8488# flags to be left without arguments
8489need_version=unknown
8490
8491case $host_os in
8492aix3*)
8493 version_type=linux
8494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8495 shlibpath_var=LIBPATH
8496
8497 # AIX 3 has no versioning support, so we append a major version to the name.
8498 soname_spec='${libname}${release}${shared_ext}$major'
8499 ;;
8500
8501aix4* | aix5*)
8502 version_type=linux
8503 need_lib_prefix=no
8504 need_version=no
8505 hardcode_into_libs=yes
8506 if test "$host_cpu" = ia64; then
8507 # AIX 5 supports IA64
8508 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8509 shlibpath_var=LD_LIBRARY_PATH
8510 else
8511 # With GCC up to 2.95.x, collect2 would create an import file
8512 # for dependence libraries. The import file would start with
8513 # the line `#! .'. This would cause the generated library to
8514 # depend on `.', always an invalid library. This was fixed in
8515 # development snapshots of GCC prior to 3.0.
8516 case $host_os in
8517 aix4 | aix4.[01] | aix4.[01].*)
8518 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8519 echo ' yes '
8520 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8521 :
8522 else
8523 can_build_shared=no
8524 fi
8525 ;;
8526 esac
8527 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8528 # soname into executable. Probably we can add versioning support to
8529 # collect2, so additional links can be useful in future.
8530 if test "$aix_use_runtimelinking" = yes; then
8531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8532 # instead of lib<name>.a to let people know that these are not
8533 # typical AIX shared libraries.
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535 else
8536 # We preserve .a as extension for shared libraries through AIX4.2
8537 # and later when we are not doing run time linking.
8538 library_names_spec='${libname}${release}.a $libname.a'
8539 soname_spec='${libname}${release}${shared_ext}$major'
8540 fi
8541 shlibpath_var=LIBPATH
8542 fi
8543 ;;
8544
8545amigaos*)
8546 library_names_spec='$libname.ixlibrary $libname.a'
8547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8548 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'
8549 ;;
8550
8551beos*)
8552 library_names_spec='${libname}${shared_ext}'
8553 dynamic_linker="$host_os ld.so"
8554 shlibpath_var=LIBRARY_PATH
8555 ;;
8556
8557bsdi[45]*)
8558 version_type=linux
8559 need_version=no
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561 soname_spec='${libname}${release}${shared_ext}$major'
8562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8563 shlibpath_var=LD_LIBRARY_PATH
8564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8566 # the default ld.so.conf also contains /usr/contrib/lib and
8567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8568 # libtool to hard-code these into programs
8569 ;;
8570
8571cygwin* | mingw* | pw32*)
8572 version_type=windows
8573 shrext_cmds=".dll"
8574 need_version=no
8575 need_lib_prefix=no
8576
8577 case $GCC,$host_os in
8578 yes,cygwin* | yes,mingw* | yes,pw32*)
8579 library_names_spec='$libname.dll.a'
8580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8581 postinstall_cmds='base_file=`basename \${file}`~
8582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8583 dldir=$destdir/`dirname \$dlpath`~
8584 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008585 $install_prog $dir/$dlname \$dldir/$dlname~
8586 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8588 dlpath=$dir/\$dldll~
8589 $rm \$dlpath'
8590 shlibpath_overrides_runpath=yes
8591
8592 case $host_os in
8593 cygwin*)
8594 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8597 ;;
8598 mingw*)
8599 # MinGW DLLs use traditional 'lib' prefix
8600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8603 # It is most probably a Windows format PATH printed by
8604 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8605 # path with ; separators, and with drive letters. We can handle the
8606 # drive letters (cygwin fileutils understands them), so leave them,
8607 # especially as we might pass files found there to a mingw objdump,
8608 # which wouldn't understand a cygwinified path. Ahh.
8609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8610 else
8611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8612 fi
8613 ;;
8614 pw32*)
8615 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008616 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 +00008617 ;;
8618 esac
8619 ;;
8620
8621 *)
8622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8623 ;;
8624 esac
8625 dynamic_linker='Win32 ld.exe'
8626 # FIXME: first we should search . and the directory the executable is in
8627 shlibpath_var=PATH
8628 ;;
8629
8630darwin* | rhapsody*)
8631 dynamic_linker="$host_os dyld"
8632 version_type=darwin
8633 need_lib_prefix=no
8634 need_version=no
8635 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8636 soname_spec='${libname}${release}${major}$shared_ext'
8637 shlibpath_overrides_runpath=yes
8638 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008639 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008640 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8641 if test "$GCC" = yes; then
8642 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"`
8643 else
8644 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8645 fi
8646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8647 ;;
8648
8649dgux*)
8650 version_type=linux
8651 need_lib_prefix=no
8652 need_version=no
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 shlibpath_var=LD_LIBRARY_PATH
8656 ;;
8657
Eric Christopher360fa9a2011-10-26 00:42:12 +00008658freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008659 dynamic_linker=no
8660 ;;
8661
8662kfreebsd*-gnu)
8663 version_type=linux
8664 need_lib_prefix=no
8665 need_version=no
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8667 soname_spec='${libname}${release}${shared_ext}$major'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 shlibpath_overrides_runpath=no
8670 hardcode_into_libs=yes
8671 dynamic_linker='GNU ld.so'
8672 ;;
8673
Reid Spencera773bd52006-08-04 18:18:08 +00008674freebsd* | dragonfly*)
8675 # DragonFly does not have aout. When/if they implement a new
8676 # versioning mechanism, adjust this.
8677 if test -x /usr/bin/objformat; then
8678 objformat=`/usr/bin/objformat`
8679 else
8680 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008681 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008682 *) objformat=elf ;;
8683 esac
8684 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008685 version_type=freebsd-$objformat
8686 case $version_type in
8687 freebsd-elf*)
8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8689 need_version=no
8690 need_lib_prefix=no
8691 ;;
8692 freebsd-*)
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8694 need_version=yes
8695 ;;
8696 esac
8697 shlibpath_var=LD_LIBRARY_PATH
8698 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008699 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008700 shlibpath_overrides_runpath=yes
8701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008702 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008703 shlibpath_overrides_runpath=yes
8704 hardcode_into_libs=yes
8705 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008706 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8707 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008708 shlibpath_overrides_runpath=no
8709 hardcode_into_libs=yes
8710 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008711 freebsd*) # from 4.6 on
8712 shlibpath_overrides_runpath=yes
8713 hardcode_into_libs=yes
8714 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008715 esac
8716 ;;
8717
8718gnu*)
8719 version_type=linux
8720 need_lib_prefix=no
8721 need_version=no
8722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8723 soname_spec='${libname}${release}${shared_ext}$major'
8724 shlibpath_var=LD_LIBRARY_PATH
8725 hardcode_into_libs=yes
8726 ;;
8727
8728hpux9* | hpux10* | hpux11*)
8729 # Give a soname corresponding to the major version so that dld.sl refuses to
8730 # link against other versions.
8731 version_type=sunos
8732 need_lib_prefix=no
8733 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008734 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008735 ia64*)
8736 shrext_cmds='.so'
8737 hardcode_into_libs=yes
8738 dynamic_linker="$host_os dld.so"
8739 shlibpath_var=LD_LIBRARY_PATH
8740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 if test "X$HPUX_IA64_MODE" = X32; then
8744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8745 else
8746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8747 fi
8748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8749 ;;
8750 hppa*64*)
8751 shrext_cmds='.sl'
8752 hardcode_into_libs=yes
8753 dynamic_linker="$host_os dld.sl"
8754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8760 ;;
8761 *)
8762 shrext_cmds='.sl'
8763 dynamic_linker="$host_os dld.sl"
8764 shlibpath_var=SHLIB_PATH
8765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 ;;
8769 esac
8770 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8771 postinstall_cmds='chmod 555 $lib'
8772 ;;
8773
Reid Spencera773bd52006-08-04 18:18:08 +00008774interix3*)
8775 version_type=linux
8776 need_lib_prefix=no
8777 need_version=no
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8779 soname_spec='${libname}${release}${shared_ext}$major'
8780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=no
8783 hardcode_into_libs=yes
8784 ;;
8785
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008786irix5* | irix6* | nonstopux*)
8787 case $host_os in
8788 nonstopux*) version_type=nonstopux ;;
8789 *)
8790 if test "$lt_cv_prog_gnu_ld" = yes; then
8791 version_type=linux
8792 else
8793 version_type=irix
8794 fi ;;
8795 esac
8796 need_lib_prefix=no
8797 need_version=no
8798 soname_spec='${libname}${release}${shared_ext}$major'
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8800 case $host_os in
8801 irix5* | nonstopux*)
8802 libsuff= shlibsuff=
8803 ;;
8804 *)
8805 case $LD in # libtool.m4 will add one of these switches to LD
8806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8807 libsuff= shlibsuff= libmagic=32-bit;;
8808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8809 libsuff=32 shlibsuff=N32 libmagic=N32;;
8810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8812 *) libsuff= shlibsuff= libmagic=never-match;;
8813 esac
8814 ;;
8815 esac
8816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8817 shlibpath_overrides_runpath=no
8818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8820 hardcode_into_libs=yes
8821 ;;
8822
8823# No shared lib support for Linux oldld, aout, or coff.
8824linux*oldld* | linux*aout* | linux*coff*)
8825 dynamic_linker=no
8826 ;;
8827
8828# This must be Linux ELF.
8829linux*)
8830 version_type=linux
8831 need_lib_prefix=no
8832 need_version=no
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8836 shlibpath_var=LD_LIBRARY_PATH
8837 shlibpath_overrides_runpath=no
8838 # This implies no fast_install, which is unacceptable.
8839 # Some rework will be needed to allow for fast_install
8840 # before this can be enabled.
8841 hardcode_into_libs=yes
8842
8843 # Append ld.so.conf contents to the search path
8844 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008845 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 +00008846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8847 fi
8848
8849 # We used to test for /lib/ld.so.1 and disable shared libraries on
8850 # powerpc, because MkLinux only supported shared libraries with the
8851 # GNU dynamic linker. Since this was broken with cross compilers,
8852 # most powerpc-linux boxes support dynamic linking these days and
8853 # people can always --disable-shared, the test was removed, and we
8854 # assume the GNU/Linux dynamic linker is in use.
8855 dynamic_linker='GNU/Linux ld.so'
8856 ;;
8857
8858knetbsd*-gnu)
8859 version_type=linux
8860 need_lib_prefix=no
8861 need_version=no
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 shlibpath_overrides_runpath=no
8866 hardcode_into_libs=yes
8867 dynamic_linker='GNU ld.so'
8868 ;;
8869
8870netbsd*)
8871 version_type=sunos
8872 need_lib_prefix=no
8873 need_version=no
8874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8877 dynamic_linker='NetBSD (a.out) ld.so'
8878 else
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 dynamic_linker='NetBSD ld.elf_so'
8882 fi
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=yes
8885 hardcode_into_libs=yes
8886 ;;
8887
8888newsos6)
8889 version_type=linux
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 shlibpath_var=LD_LIBRARY_PATH
8892 shlibpath_overrides_runpath=yes
8893 ;;
8894
8895nto-qnx*)
8896 version_type=linux
8897 need_lib_prefix=no
8898 need_version=no
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 shlibpath_var=LD_LIBRARY_PATH
8902 shlibpath_overrides_runpath=yes
8903 ;;
8904
8905openbsd*)
8906 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008907 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008908 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8910 case $host_os in
8911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8912 *) need_version=no ;;
8913 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8918 case $host_os in
8919 openbsd2.[89] | openbsd2.[89].*)
8920 shlibpath_overrides_runpath=no
8921 ;;
8922 *)
8923 shlibpath_overrides_runpath=yes
8924 ;;
8925 esac
8926 else
8927 shlibpath_overrides_runpath=yes
8928 fi
8929 ;;
8930
8931os2*)
8932 libname_spec='$name'
8933 shrext_cmds=".dll"
8934 need_lib_prefix=no
8935 library_names_spec='$libname${shared_ext} $libname.a'
8936 dynamic_linker='OS/2 ld.exe'
8937 shlibpath_var=LIBPATH
8938 ;;
8939
8940osf3* | osf4* | osf5*)
8941 version_type=osf
8942 need_lib_prefix=no
8943 need_version=no
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8949 ;;
8950
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008951solaris*)
8952 version_type=linux
8953 need_lib_prefix=no
8954 need_version=no
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=yes
8959 hardcode_into_libs=yes
8960 # ldd complains unless libraries are executable
8961 postinstall_cmds='chmod +x $lib'
8962 ;;
8963
8964sunos4*)
8965 version_type=sunos
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8968 shlibpath_var=LD_LIBRARY_PATH
8969 shlibpath_overrides_runpath=yes
8970 if test "$with_gnu_ld" = yes; then
8971 need_lib_prefix=no
8972 fi
8973 need_version=yes
8974 ;;
8975
Reid Spencera773bd52006-08-04 18:18:08 +00008976sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008977 version_type=linux
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 case $host_vendor in
8982 sni)
8983 shlibpath_overrides_runpath=no
8984 need_lib_prefix=no
8985 export_dynamic_flag_spec='${wl}-Blargedynsym'
8986 runpath_var=LD_RUN_PATH
8987 ;;
8988 siemens)
8989 need_lib_prefix=no
8990 ;;
8991 motorola)
8992 need_lib_prefix=no
8993 need_version=no
8994 shlibpath_overrides_runpath=no
8995 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8996 ;;
8997 esac
8998 ;;
8999
9000sysv4*MP*)
9001 if test -d /usr/nec ;then
9002 version_type=linux
9003 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9004 soname_spec='$libname${shared_ext}.$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 fi
9007 ;;
9008
Reid Spencera773bd52006-08-04 18:18:08 +00009009sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9010 version_type=freebsd-elf
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 hardcode_into_libs=yes
9017 if test "$with_gnu_ld" = yes; then
9018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9019 shlibpath_overrides_runpath=no
9020 else
9021 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9022 shlibpath_overrides_runpath=yes
9023 case $host_os in
9024 sco3.2v5*)
9025 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9026 ;;
9027 esac
9028 fi
9029 sys_lib_dlsearch_path_spec='/usr/lib'
9030 ;;
9031
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009032uts4*)
9033 version_type=linux
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 ;;
9038
9039*)
9040 dynamic_linker=no
9041 ;;
9042esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009043{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9044echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009045test "$dynamic_linker" = no && can_build_shared=no
9046
Reid Spencera773bd52006-08-04 18:18:08 +00009047variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9048if test "$GCC" = yes; then
9049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9050fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009051
Reid Spencera773bd52006-08-04 18:18:08 +00009052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009053{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9054echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9055if test "${libltdl_cv_shlibext+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009057else
9058
9059module=yes
9060eval libltdl_cv_shlibext=$shrext_cmds
9061
9062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009063{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9064echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009065if test -n "$libltdl_cv_shlibext"; then
9066
9067cat >>confdefs.h <<_ACEOF
9068#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9069_ACEOF
9070
9071fi
9072
9073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009074{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9075echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9076if test "${libltdl_cv_shlibpath_var+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009078else
9079 libltdl_cv_shlibpath_var="$shlibpath_var"
9080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009081{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9082echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009083if test -n "$libltdl_cv_shlibpath_var"; then
9084
9085cat >>confdefs.h <<_ACEOF
9086#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9087_ACEOF
9088
9089fi
9090
9091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009092{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9093echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9094if test "${libltdl_cv_sys_search_path+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009096else
9097 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009099{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9100echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009101if test -n "$libltdl_cv_sys_search_path"; then
9102 sys_search_path=
9103 for dir in $libltdl_cv_sys_search_path; do
9104 if test -z "$sys_search_path"; then
9105 sys_search_path="$dir"
9106 else
9107 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9108 fi
9109 done
9110
9111cat >>confdefs.h <<_ACEOF
9112#define LTDL_SYSSEARCHPATH "$sys_search_path"
9113_ACEOF
9114
9115fi
9116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009117{ echo "$as_me:$LINENO: checking for objdir" >&5
9118echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9119if test "${libltdl_cv_objdir+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121else
9122 libltdl_cv_objdir="$objdir"
9123 if test -n "$objdir"; then
9124 :
9125 else
9126 rm -f .libs 2>/dev/null
9127 mkdir .libs 2>/dev/null
9128 if test -d .libs; then
9129 libltdl_cv_objdir=.libs
9130 else
9131 # MS-DOS does not allow filenames that begin with a dot.
9132 libltdl_cv_objdir=_libs
9133 fi
9134 rmdir .libs 2>/dev/null
9135 fi
9136
9137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009138{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9139echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009140
9141cat >>confdefs.h <<_ACEOF
9142#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9143_ACEOF
9144
9145
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146
9147
9148
9149
9150# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009151{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9152echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9153if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155else
9156
9157# These are sane defaults that work on at least a few old systems.
9158# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9159
9160# Character class describing NM global symbol codes.
9161symcode='[BCDEGRST]'
9162
9163# Regexp to match symbols that can be accessed directly from C.
9164sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9165
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009166# Transform an extracted symbol line into a proper C declaration
9167lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9168
9169# Transform an extracted symbol line into symbol name and symbol address
9170lt_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'"
9171
9172# Define system-specific variables.
9173case $host_os in
9174aix*)
9175 symcode='[BCDT]'
9176 ;;
9177cygwin* | mingw* | pw32*)
9178 symcode='[ABCDGISTW]'
9179 ;;
9180hpux*) # Its linker distinguishes data from code symbols
9181 if test "$host_cpu" = ia64; then
9182 symcode='[ABCDEGRST]'
9183 fi
9184 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9185 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'"
9186 ;;
9187linux*)
9188 if test "$host_cpu" = ia64; then
9189 symcode='[ABCDGIRSTW]'
9190 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9191 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'"
9192 fi
9193 ;;
9194irix* | nonstopux*)
9195 symcode='[BCDEGRST]'
9196 ;;
9197osf*)
9198 symcode='[BCDEGQRST]'
9199 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009200solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009201 symcode='[BDRT]'
9202 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009203sco3.2v5*)
9204 symcode='[DT]'
9205 ;;
9206sysv4.2uw2*)
9207 symcode='[DT]'
9208 ;;
9209sysv5* | sco5v6* | unixware* | OpenUNIX*)
9210 symcode='[ABDT]'
9211 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009212sysv4)
9213 symcode='[DFNSTU]'
9214 ;;
9215esac
9216
9217# Handle CRLF in mingw tool chain
9218opt_cr=
9219case $build_os in
9220mingw*)
9221 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9222 ;;
9223esac
9224
9225# If we're using GNU nm, then use its standard symbol codes.
9226case `$NM -V 2>&1` in
9227*GNU* | *'with BFD'*)
9228 symcode='[ABCDGIRSTW]' ;;
9229esac
9230
9231# Try without a prefix undercore, then with it.
9232for ac_symprfx in "" "_"; do
9233
Reid Spencera773bd52006-08-04 18:18:08 +00009234 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9235 symxfrm="\\1 $ac_symprfx\\2 \\2"
9236
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009237 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009238 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 +00009239
9240 # Check to see that the pipe works correctly.
9241 pipe_works=no
9242
9243 rm -f conftest*
9244 cat > conftest.$ac_ext <<EOF
9245#ifdef __cplusplus
9246extern "C" {
9247#endif
9248char nm_test_var;
9249void nm_test_func(){}
9250#ifdef __cplusplus
9251}
9252#endif
9253int main(){nm_test_var='a';nm_test_func();return(0);}
9254EOF
9255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257 (eval $ac_compile) 2>&5
9258 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261 # Now try to grab the symbols.
9262 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009263 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 +00009264 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9265 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009268 # Try sorting and uniquifying the output.
9269 if sort "$nlist" | uniq > "$nlist"T; then
9270 mv -f "$nlist"T "$nlist"
9271 else
9272 rm -f "$nlist"T
9273 fi
9274
9275 # Make sure that we snagged all the symbols we need.
9276 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9277 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9278 cat <<EOF > conftest.$ac_ext
9279#ifdef __cplusplus
9280extern "C" {
9281#endif
9282
9283EOF
9284 # Now generate the symbol file.
9285 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9286
9287 cat <<EOF >> conftest.$ac_ext
9288#if defined (__STDC__) && __STDC__
9289# define lt_ptr_t void *
9290#else
9291# define lt_ptr_t char *
9292# define const
9293#endif
9294
9295/* The mapping between symbol names and symbols. */
9296const struct {
9297 const char *name;
9298 lt_ptr_t address;
9299}
9300lt_preloaded_symbols[] =
9301{
9302EOF
9303 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9304 cat <<\EOF >> conftest.$ac_ext
9305 {0, (lt_ptr_t) 0}
9306};
9307
9308#ifdef __cplusplus
9309}
9310#endif
9311EOF
9312 # Now try linking the two files.
9313 mv conftest.$ac_objext conftstm.$ac_objext
9314 lt_save_LIBS="$LIBS"
9315 lt_save_CFLAGS="$CFLAGS"
9316 LIBS="conftstm.$ac_objext"
9317 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319 (eval $ac_link) 2>&5
9320 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323 pipe_works=yes
9324 fi
9325 LIBS="$lt_save_LIBS"
9326 CFLAGS="$lt_save_CFLAGS"
9327 else
9328 echo "cannot find nm_test_func in $nlist" >&5
9329 fi
9330 else
9331 echo "cannot find nm_test_var in $nlist" >&5
9332 fi
9333 else
9334 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9335 fi
9336 else
9337 echo "$progname: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 fi
9340 rm -f conftest* conftst*
9341
9342 # Do not use the global_symbol_pipe unless it works.
9343 if test "$pipe_works" = yes; then
9344 break
9345 else
9346 lt_cv_sys_global_symbol_pipe=
9347 fi
9348done
9349
9350fi
9351
9352if test -z "$lt_cv_sys_global_symbol_pipe"; then
9353 lt_cv_sys_global_symbol_to_cdecl=
9354fi
9355if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009356 { echo "$as_me:$LINENO: result: failed" >&5
9357echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009359 { echo "$as_me:$LINENO: result: ok" >&5
9360echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361fi
9362
9363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009364{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9365echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9366if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009368else
9369 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9370 libltdl_cv_preloaded_symbols=yes
9371 else
9372 libltdl_cv_preloaded_symbols=no
9373 fi
9374
9375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009376{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9377echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009378if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380cat >>confdefs.h <<\_ACEOF
9381#define HAVE_PRELOADED_SYMBOLS 1
9382_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009383
9384fi
9385
9386LIBADD_DL=
9387
9388ac_ext=c
9389ac_cpp='$CPP $CPPFLAGS'
9390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9392ac_compiler_gnu=$ac_cv_c_compiler_gnu
9393
9394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009395{ echo "$as_me:$LINENO: checking for shl_load" >&5
9396echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9397if test "${ac_cv_func_shl_load+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9399else
9400 cat >conftest.$ac_ext <<_ACEOF
9401/* confdefs.h. */
9402_ACEOF
9403cat confdefs.h >>conftest.$ac_ext
9404cat >>conftest.$ac_ext <<_ACEOF
9405/* end confdefs.h. */
9406/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9408#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009410/* System header to define __stub macros and hopefully few prototypes,
9411 which can conflict with char shl_load (); below.
9412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9413 <limits.h> exists even on freestanding compilers. */
9414
9415#ifdef __STDC__
9416# include <limits.h>
9417#else
9418# include <assert.h>
9419#endif
9420
9421#undef shl_load
9422
9423/* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9426#ifdef __cplusplus
9427extern "C"
9428#endif
9429char shl_load ();
9430/* The GNU C library defines this for functions which it implements
9431 to always fail with ENOSYS. Some functions are actually named
9432 something starting with __ and the normal name is an alias. */
9433#if defined __stub_shl_load || defined __stub___shl_load
9434choke me
9435#endif
9436
9437int
9438main ()
9439{
9440return shl_load ();
9441 ;
9442 return 0;
9443}
9444_ACEOF
9445rm -f conftest.$ac_objext conftest$ac_exeext
9446if { (ac_try="$ac_link"
9447case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450esac
9451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_link") 2>conftest.er1
9453 ac_status=$?
9454 grep -v '^ *+' conftest.er1 >conftest.err
9455 rm -f conftest.er1
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9460 { (case "(($ac_try" in
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9463esac
9464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_try") 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest$ac_exeext'
9470 { (case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9473esac
9474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_try") 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 ac_cv_func_shl_load=yes
9480else
9481 echo "$as_me: failed program was:" >&5
9482sed 's/^/| /' conftest.$ac_ext >&5
9483
9484 ac_cv_func_shl_load=no
9485fi
9486
9487rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489fi
9490{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9491echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9492if test $ac_cv_func_shl_load = yes; then
9493
9494cat >>confdefs.h <<\_ACEOF
9495#define HAVE_SHL_LOAD 1
9496_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497
9498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009499 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9500echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9501if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009503else
9504 ac_check_lib_save_LIBS=$LIBS
9505LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009506cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511/* end confdefs.h. */
9512
Reid Spencera773bd52006-08-04 18:18:08 +00009513/* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516#ifdef __cplusplus
9517extern "C"
9518#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519char shl_load ();
9520int
9521main ()
9522{
Reid Spencera773bd52006-08-04 18:18:08 +00009523return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524 ;
9525 return 0;
9526}
9527_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009528rm -f conftest.$ac_objext conftest$ac_exeext
9529if { (ac_try="$ac_link"
9530case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533esac
9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_link") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_try") 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest$ac_exeext'
9553 { (case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9556esac
9557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_try") 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562 ac_cv_lib_dld_shl_load=yes
9563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009564 echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009569
Bill Wendlingebcceee2009-04-18 11:20:33 +00009570rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009571 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572LIBS=$ac_check_lib_save_LIBS
9573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009574{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9575echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9576if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009578cat >>confdefs.h <<\_ACEOF
9579#define HAVE_SHL_LOAD 1
9580_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009581
9582 LIBADD_DL="$LIBADD_DL -ldld"
9583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009584 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9585echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9586if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009588else
9589 ac_check_lib_save_LIBS=$LIBS
9590LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009591cat >conftest.$ac_ext <<_ACEOF
9592/* confdefs.h. */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596/* end confdefs.h. */
9597
Reid Spencera773bd52006-08-04 18:18:08 +00009598/* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601#ifdef __cplusplus
9602extern "C"
9603#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604char dlopen ();
9605int
9606main ()
9607{
Reid Spencera773bd52006-08-04 18:18:08 +00009608return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609 ;
9610 return 0;
9611}
9612_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613rm -f conftest.$ac_objext conftest$ac_exeext
9614if { (ac_try="$ac_link"
9615case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618esac
9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_link") 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9628 { (case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631esac
9632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_try") 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest$ac_exeext'
9638 { (case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641esac
9642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_try") 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647 ac_cv_lib_dl_dlopen=yes
9648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009649 echo "$as_me: failed program was:" >&5
9650sed 's/^/| /' conftest.$ac_ext >&5
9651
9652 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009654
Bill Wendlingebcceee2009-04-18 11:20:33 +00009655rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009656 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657LIBS=$ac_check_lib_save_LIBS
9658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009659{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9660echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9661if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009663cat >>confdefs.h <<\_ACEOF
9664#define HAVE_LIBDL 1
9665_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666
9667 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009669 cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674/* end confdefs.h. */
9675#if HAVE_DLFCN_H
9676# include <dlfcn.h>
9677#endif
9678
9679int
9680main ()
9681{
9682dlopen(0, 0);
9683 ;
9684 return 0;
9685}
9686_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009687rm -f conftest.$ac_objext conftest$ac_exeext
9688if { (ac_try="$ac_link"
9689case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9702 { (case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_try") 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715esac
9716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_try") 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009722cat >>confdefs.h <<\_ACEOF
9723#define HAVE_LIBDL 1
9724_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725 libltdl_cv_func_dlopen="yes"
9726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009727 echo "$as_me: failed program was:" >&5
9728sed 's/^/| /' conftest.$ac_ext >&5
9729
9730 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9731echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9732if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009734else
9735 ac_check_lib_save_LIBS=$LIBS
9736LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009737cat >conftest.$ac_ext <<_ACEOF
9738/* confdefs.h. */
9739_ACEOF
9740cat confdefs.h >>conftest.$ac_ext
9741cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742/* end confdefs.h. */
9743
Reid Spencera773bd52006-08-04 18:18:08 +00009744/* Override any GCC internal prototype to avoid an error.
9745 Use char because int might match the return type of a GCC
9746 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009747#ifdef __cplusplus
9748extern "C"
9749#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750char dlopen ();
9751int
9752main ()
9753{
Reid Spencera773bd52006-08-04 18:18:08 +00009754return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755 ;
9756 return 0;
9757}
9758_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009759rm -f conftest.$ac_objext conftest$ac_exeext
9760if { (ac_try="$ac_link"
9761case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764esac
9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_link") 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9774 { (case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777esac
9778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_try") 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793 ac_cv_lib_svld_dlopen=yes
9794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009795 echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009800
Bill Wendlingebcceee2009-04-18 11:20:33 +00009801rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009802 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803LIBS=$ac_check_lib_save_LIBS
9804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009805{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9806echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9807if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009809cat >>confdefs.h <<\_ACEOF
9810#define HAVE_LIBDL 1
9811_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812
9813 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009815 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9816echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9817if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819else
9820 ac_check_lib_save_LIBS=$LIBS
9821LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827/* end confdefs.h. */
9828
Reid Spencera773bd52006-08-04 18:18:08 +00009829/* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832#ifdef __cplusplus
9833extern "C"
9834#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835char dld_link ();
9836int
9837main ()
9838{
Reid Spencera773bd52006-08-04 18:18:08 +00009839return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840 ;
9841 return 0;
9842}
9843_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009844rm -f conftest.$ac_objext conftest$ac_exeext
9845if { (ac_try="$ac_link"
9846case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849esac
9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862esac
9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878 ac_cv_lib_dld_dld_link=yes
9879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009880 echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009885
Bill Wendlingebcceee2009-04-18 11:20:33 +00009886rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009887 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888LIBS=$ac_check_lib_save_LIBS
9889fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009890{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9891echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9892if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009894cat >>confdefs.h <<\_ACEOF
9895#define HAVE_DLD 1
9896_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897
9898 LIBADD_DL="$LIBADD_DL -ldld"
9899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009900 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9901echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9902if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904else
9905 cat >conftest.$ac_ext <<_ACEOF
9906/* confdefs.h. */
9907_ACEOF
9908cat confdefs.h >>conftest.$ac_ext
9909cat >>conftest.$ac_ext <<_ACEOF
9910/* end confdefs.h. */
9911/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9913#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009915/* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char _dyld_func_lookup (); below.
9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009920#ifdef __STDC__
9921# include <limits.h>
9922#else
9923# include <assert.h>
9924#endif
9925
9926#undef _dyld_func_lookup
9927
9928/* Override any GCC internal prototype to avoid an error.
9929 Use char because int might match the return type of a GCC
9930 builtin and then its argument prototype would still apply. */
9931#ifdef __cplusplus
9932extern "C"
9933#endif
9934char _dyld_func_lookup ();
9935/* The GNU C library defines this for functions which it implements
9936 to always fail with ENOSYS. Some functions are actually named
9937 something starting with __ and the normal name is an alias. */
9938#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9939choke me
9940#endif
9941
9942int
9943main ()
9944{
9945return _dyld_func_lookup ();
9946 ;
9947 return 0;
9948}
9949_ACEOF
9950rm -f conftest.$ac_objext conftest$ac_exeext
9951if { (ac_try="$ac_link"
9952case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_func__dyld_func_lookup=yes
9985else
9986 echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990fi
Reid Spencera773bd52006-08-04 18:18:08 +00009991
Bill Wendlingebcceee2009-04-18 11:20:33 +00009992rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009993 conftest$ac_exeext conftest.$ac_ext
9994fi
9995{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9996echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9997if test $ac_cv_func__dyld_func_lookup = yes; then
9998
9999cat >>confdefs.h <<\_ACEOF
10000#define HAVE_DYLD 1
10001_ACEOF
10002
10003fi
10004
10005
10006fi
10007
10008
10009fi
10010
10011
10012fi
10013
10014rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016
10017fi
10018
10019
10020fi
10021
10022
10023fi
10024
10025
10026if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10027then
10028 lt_save_LIBS="$LIBS"
10029 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010030
10031for ac_func in dlerror
10032do
10033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10036if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10038else
10039 cat >conftest.$ac_ext <<_ACEOF
10040/* confdefs.h. */
10041_ACEOF
10042cat confdefs.h >>conftest.$ac_ext
10043cat >>conftest.$ac_ext <<_ACEOF
10044/* end confdefs.h. */
10045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047#define $ac_func innocuous_$ac_func
10048
10049/* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10053
10054#ifdef __STDC__
10055# include <limits.h>
10056#else
10057# include <assert.h>
10058#endif
10059
10060#undef $ac_func
10061
10062/* Override any GCC internal prototype to avoid an error.
10063 Use char because int might match the return type of a GCC
10064 builtin and then its argument prototype would still apply. */
10065#ifdef __cplusplus
10066extern "C"
10067#endif
10068char $ac_func ();
10069/* The GNU C library defines this for functions which it implements
10070 to always fail with ENOSYS. Some functions are actually named
10071 something starting with __ and the normal name is an alias. */
10072#if defined __stub_$ac_func || defined __stub___$ac_func
10073choke me
10074#endif
10075
10076int
10077main ()
10078{
10079return $ac_func ();
10080 ;
10081 return 0;
10082}
10083_ACEOF
10084rm -f conftest.$ac_objext conftest$ac_exeext
10085if { (ac_try="$ac_link"
10086case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102esac
10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112esac
10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 eval "$as_ac_var=yes"
10119else
10120 echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
10122
10123 eval "$as_ac_var=no"
10124fi
10125
10126rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128fi
10129ac_res=`eval echo '${'$as_ac_var'}'`
10130 { echo "$as_me:$LINENO: result: $ac_res" >&5
10131echo "${ECHO_T}$ac_res" >&6; }
10132if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135_ACEOF
10136
10137fi
10138done
10139
10140 LIBS="$lt_save_LIBS"
10141fi
10142ac_ext=c
10143ac_cpp='$CPP $CPPFLAGS'
10144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146ac_compiler_gnu=$ac_cv_c_compiler_gnu
10147
10148
10149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010150{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10151echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10152if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154else
10155 ac_cv_sys_symbol_underscore=no
10156 cat > conftest.$ac_ext <<EOF
10157void nm_test_func(){}
10158int main(){nm_test_func;return 0;}
10159EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161 (eval $ac_compile) 2>&5
10162 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165 # Now try to grab the symbols.
10166 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010167 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 +000010168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10169 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172 # See whether the symbols have a leading underscore.
10173 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10174 ac_cv_sys_symbol_underscore=yes
10175 else
10176 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10177 :
10178 else
10179 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10180 fi
10181 fi
10182 else
10183 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10184 fi
10185 else
10186 echo "configure: failed program was:" >&5
10187 cat conftest.c >&5
10188 fi
10189 rm -rf conftest*
10190
10191fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010192{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10193echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194
10195
10196if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10197 if test x"$libltdl_cv_func_dlopen" = xyes ||
10198 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010199 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10200echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10201if test "${libltdl_cv_need_uscore+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203else
10204 libltdl_cv_need_uscore=unknown
10205 save_LIBS="$LIBS"
10206 LIBS="$LIBS $LIBADD_DL"
10207 if test "$cross_compiling" = yes; then :
10208 libltdl_cv_need_uscore=cross
10209else
10210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10211 lt_status=$lt_dlunknown
10212 cat > conftest.$ac_ext <<EOF
Tom Stellard38cda132012-07-16 18:19:46 +000010213#line 10213 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214#include "confdefs.h"
10215
10216#if HAVE_DLFCN_H
10217#include <dlfcn.h>
10218#endif
10219
10220#include <stdio.h>
10221
10222#ifdef RTLD_GLOBAL
10223# define LT_DLGLOBAL RTLD_GLOBAL
10224#else
10225# ifdef DL_GLOBAL
10226# define LT_DLGLOBAL DL_GLOBAL
10227# else
10228# define LT_DLGLOBAL 0
10229# endif
10230#endif
10231
10232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10233 find out it does not work in some platform. */
10234#ifndef LT_DLLAZY_OR_NOW
10235# ifdef RTLD_LAZY
10236# define LT_DLLAZY_OR_NOW RTLD_LAZY
10237# else
10238# ifdef DL_LAZY
10239# define LT_DLLAZY_OR_NOW DL_LAZY
10240# else
10241# ifdef RTLD_NOW
10242# define LT_DLLAZY_OR_NOW RTLD_NOW
10243# else
10244# ifdef DL_NOW
10245# define LT_DLLAZY_OR_NOW DL_NOW
10246# else
10247# define LT_DLLAZY_OR_NOW 0
10248# endif
10249# endif
10250# endif
10251# endif
10252#endif
10253
10254#ifdef __cplusplus
10255extern "C" void exit (int);
10256#endif
10257
10258void fnord() { int i=42;}
10259int main ()
10260{
10261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10262 int status = $lt_dlunknown;
10263
10264 if (self)
10265 {
10266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10268 /* dlclose (self); */
10269 }
Reid Spencera773bd52006-08-04 18:18:08 +000010270 else
10271 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272
10273 exit (status);
10274}
10275EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277 (eval $ac_link) 2>&5
10278 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010281 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282 lt_status=$?
10283 case x$lt_status in
10284 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10285 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010286 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010287 esac
10288 else :
10289 # compilation failed
10290
10291 fi
10292fi
10293rm -fr conftest*
10294
10295 LIBS="$save_LIBS"
10296
10297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010298{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10299echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300 fi
10301fi
10302
10303if test x"$libltdl_cv_need_uscore" = xyes; then
10304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010305cat >>confdefs.h <<\_ACEOF
10306#define NEED_USCORE 1
10307_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308
10309fi
10310
10311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010312{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10313echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10314if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316else
10317 # PORTME does your system automatically load deplibs for dlopen?
10318 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10319 # For now, we just catch OSes we know something about -- in the
10320 # future, we'll try test this programmatically.
10321 libltdl_cv_sys_dlopen_deplibs=unknown
10322 case "$host_os" in
10323 aix3*|aix4.1.*|aix4.2.*)
10324 # Unknown whether this is true for these versions of AIX, but
10325 # we want this `case' here to explicitly catch those versions.
10326 libltdl_cv_sys_dlopen_deplibs=unknown
10327 ;;
10328 aix[45]*)
10329 libltdl_cv_sys_dlopen_deplibs=yes
10330 ;;
10331 darwin*)
10332 # Assuming the user has installed a libdl from somewhere, this is true
10333 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10334 libltdl_cv_sys_dlopen_deplibs=yes
10335 ;;
10336 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10337 # GNU and its variants, using gnu ld.so (Glibc)
10338 libltdl_cv_sys_dlopen_deplibs=yes
10339 ;;
10340 hpux10*|hpux11*)
10341 libltdl_cv_sys_dlopen_deplibs=yes
10342 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010343 interix*)
10344 libltdl_cv_sys_dlopen_deplibs=yes
10345 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346 irix[12345]*|irix6.[01]*)
10347 # Catch all versions of IRIX before 6.2, and indicate that we don't
10348 # know how it worked for any of those versions.
10349 libltdl_cv_sys_dlopen_deplibs=unknown
10350 ;;
10351 irix*)
10352 # The case above catches anything before 6.2, and it's known that
10353 # at 6.2 and later dlopen does load deplibs.
10354 libltdl_cv_sys_dlopen_deplibs=yes
10355 ;;
10356 netbsd*)
10357 libltdl_cv_sys_dlopen_deplibs=yes
10358 ;;
10359 openbsd*)
10360 libltdl_cv_sys_dlopen_deplibs=yes
10361 ;;
10362 osf[1234]*)
10363 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10364 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010365 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366 libltdl_cv_sys_dlopen_deplibs=no
10367 ;;
10368 osf5.0|osf5.0a|osf5.1)
10369 # dlopen *does* load deplibs and with the right loader patch applied
10370 # it even uses RPATH in a shared library to search for shared objects
10371 # that the library depends on, but there's no easy way to know if that
10372 # patch is installed. Since this is the case, all we can really
10373 # say is unknown -- it depends on the patch being installed. If
10374 # it is, this changes to `yes'. Without it, it would be `no'.
10375 libltdl_cv_sys_dlopen_deplibs=unknown
10376 ;;
10377 osf*)
10378 # the two cases above should catch all versions of osf <= 5.1. Read
10379 # the comments above for what we know about them.
10380 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10381 # is used to find them so we can finally say `yes'.
10382 libltdl_cv_sys_dlopen_deplibs=yes
10383 ;;
10384 solaris*)
10385 libltdl_cv_sys_dlopen_deplibs=yes
10386 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10388 libltdl_cv_sys_dlopen_deplibs=yes
10389 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390 esac
10391
10392fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010393{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10394echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010397cat >>confdefs.h <<\_ACEOF
10398#define LTDL_DLOPEN_DEPLIBS 1
10399_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010400
10401fi
10402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010403
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010405do
10406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10412fi
10413ac_res=`eval echo '${'$as_ac_Header'}'`
10414 { echo "$as_me:$LINENO: result: $ac_res" >&5
10415echo "${ECHO_T}$ac_res" >&6; }
10416else
10417 # Is the header compilable?
10418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10420cat >conftest.$ac_ext <<_ACEOF
10421/* confdefs.h. */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h. */
10426$ac_includes_default
10427#include <$ac_header>
10428_ACEOF
10429rm -f conftest.$ac_objext
10430if { (ac_try="$ac_compile"
10431case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434esac
10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447esac
10448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try='test -s conftest.$ac_objext'
10454 { (case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457esac
10458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_try") 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_header_compiler=yes
10464else
10465 echo "$as_me: failed program was:" >&5
10466sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 ac_header_compiler=no
10469fi
10470
10471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473echo "${ECHO_T}$ac_header_compiler" >&6; }
10474
10475# Is the header present?
10476{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10478cat >conftest.$ac_ext <<_ACEOF
10479/* confdefs.h. */
10480_ACEOF
10481cat confdefs.h >>conftest.$ac_ext
10482cat >>conftest.$ac_ext <<_ACEOF
10483/* end confdefs.h. */
10484#include <$ac_header>
10485_ACEOF
10486if { (ac_try="$ac_cpp conftest.$ac_ext"
10487case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490esac
10491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } >/dev/null; then
10499 if test -s conftest.err; then
10500 ac_cpp_err=$ac_c_preproc_warn_flag
10501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10502 else
10503 ac_cpp_err=
10504 fi
10505else
10506 ac_cpp_err=yes
10507fi
10508if test -z "$ac_cpp_err"; then
10509 ac_header_preproc=yes
10510else
10511 echo "$as_me: failed program was:" >&5
10512sed 's/^/| /' conftest.$ac_ext >&5
10513
10514 ac_header_preproc=no
10515fi
10516
10517rm -f conftest.err conftest.$ac_ext
10518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10519echo "${ECHO_T}$ac_header_preproc" >&6; }
10520
10521# So? What about this header?
10522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10523 yes:no: )
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10528 ac_header_preproc=yes
10529 ;;
10530 no:yes:* )
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10543 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010544## ------------------------------------ ##
10545## Report this to http://llvm.org/bugs/ ##
10546## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010547_ASBOX
10548 ) | sed "s/^/$as_me: WARNING: /" >&2
10549 ;;
10550esac
10551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555else
10556 eval "$as_ac_Header=\$ac_header_preproc"
10557fi
10558ac_res=`eval echo '${'$as_ac_Header'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560echo "${ECHO_T}$ac_res" >&6; }
10561
10562fi
10563if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566_ACEOF
10567
10568fi
10569
10570done
10571
10572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010573{ echo "$as_me:$LINENO: checking for error_t" >&5
10574echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10575if test "${ac_cv_type_error_t+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
10584#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585# include <argz.h>
10586#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010587
10588typedef error_t ac__type_new_;
10589int
10590main ()
10591{
10592if ((ac__type_new_ *) 0)
10593 return 0;
10594if (sizeof (ac__type_new_))
10595 return 0;
10596 ;
10597 return 0;
10598}
10599_ACEOF
10600rm -f conftest.$ac_objext
10601if { (ac_try="$ac_compile"
10602case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605esac
10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
10614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10615 { (case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618esac
10619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_try") 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest.$ac_objext'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 ac_cv_type_error_t=yes
10635else
10636 echo "$as_me: failed program was:" >&5
10637sed 's/^/| /' conftest.$ac_ext >&5
10638
10639 ac_cv_type_error_t=no
10640fi
10641
10642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643fi
10644{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10645echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10646if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647
10648cat >>confdefs.h <<_ACEOF
10649#define HAVE_ERROR_T 1
10650_ACEOF
10651
10652
10653else
10654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010655cat >>confdefs.h <<\_ACEOF
10656#define error_t int
10657_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658
10659fi
10660
10661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010662
10663
10664
10665
10666
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010667for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010668do
10669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10683#define $ac_func innocuous_$ac_func
10684
10685/* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char $ac_func (); below.
10687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 <limits.h> exists even on freestanding compilers. */
10689
10690#ifdef __STDC__
10691# include <limits.h>
10692#else
10693# include <assert.h>
10694#endif
10695
10696#undef $ac_func
10697
10698/* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10701#ifdef __cplusplus
10702extern "C"
10703#endif
10704char $ac_func ();
10705/* The GNU C library defines this for functions which it implements
10706 to always fail with ENOSYS. Some functions are actually named
10707 something starting with __ and the normal name is an alias. */
10708#if defined __stub_$ac_func || defined __stub___$ac_func
10709choke me
10710#endif
10711
10712int
10713main ()
10714{
10715return $ac_func ();
10716 ;
10717 return 0;
10718}
10719_ACEOF
10720rm -f conftest.$ac_objext conftest$ac_exeext
10721if { (ac_try="$ac_link"
10722case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725esac
10726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_link") 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
10734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10735 { (case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10738esac
10739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_try") 2>&5
10741 ac_status=$?
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; } &&
10744 { ac_try='test -s conftest$ac_exeext'
10745 { (case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748esac
10749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_try") 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 eval "$as_ac_var=yes"
10755else
10756 echo "$as_me: failed program was:" >&5
10757sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 eval "$as_ac_var=no"
10760fi
10761
10762rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764fi
10765ac_res=`eval echo '${'$as_ac_var'}'`
10766 { echo "$as_me:$LINENO: result: $ac_res" >&5
10767echo "${ECHO_T}$ac_res" >&6; }
10768if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010771_ACEOF
10772
10773fi
10774done
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010795
10796
10797
10798
10799
10800
10801
10802
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010803for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10804 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010805do
10806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812fi
10813ac_res=`eval echo '${'$as_ac_Header'}'`
10814 { echo "$as_me:$LINENO: result: $ac_res" >&5
10815echo "${ECHO_T}$ac_res" >&6; }
10816else
10817 # Is the header compilable?
10818{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10820cat >conftest.$ac_ext <<_ACEOF
10821/* confdefs.h. */
10822_ACEOF
10823cat confdefs.h >>conftest.$ac_ext
10824cat >>conftest.$ac_ext <<_ACEOF
10825/* end confdefs.h. */
10826$ac_includes_default
10827#include <$ac_header>
10828_ACEOF
10829rm -f conftest.$ac_objext
10830if { (ac_try="$ac_compile"
10831case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834esac
10835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10844 { (case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847esac
10848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_try") 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest.$ac_objext'
10854 { (case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857esac
10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_header_compiler=yes
10864else
10865 echo "$as_me: failed program was:" >&5
10866sed 's/^/| /' conftest.$ac_ext >&5
10867
10868 ac_header_compiler=no
10869fi
10870
10871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10873echo "${ECHO_T}$ac_header_compiler" >&6; }
10874
10875# Is the header present?
10876{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10878cat >conftest.$ac_ext <<_ACEOF
10879/* confdefs.h. */
10880_ACEOF
10881cat confdefs.h >>conftest.$ac_ext
10882cat >>conftest.$ac_ext <<_ACEOF
10883/* end confdefs.h. */
10884#include <$ac_header>
10885_ACEOF
10886if { (ac_try="$ac_cpp conftest.$ac_ext"
10887case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890esac
10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } >/dev/null; then
10899 if test -s conftest.err; then
10900 ac_cpp_err=$ac_c_preproc_warn_flag
10901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10902 else
10903 ac_cpp_err=
10904 fi
10905else
10906 ac_cpp_err=yes
10907fi
10908if test -z "$ac_cpp_err"; then
10909 ac_header_preproc=yes
10910else
10911 echo "$as_me: failed program was:" >&5
10912sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 ac_header_preproc=no
10915fi
10916
10917rm -f conftest.err conftest.$ac_ext
10918{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10919echo "${ECHO_T}$ac_header_preproc" >&6; }
10920
10921# So? What about this header?
10922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10923 yes:no: )
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10928 ac_header_preproc=yes
10929 ;;
10930 no:yes:* )
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10943 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010944## ------------------------------------ ##
10945## Report this to http://llvm.org/bugs/ ##
10946## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947_ASBOX
10948 ) | sed "s/^/$as_me: WARNING: /" >&2
10949 ;;
10950esac
10951{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955else
10956 eval "$as_ac_Header=\$ac_header_preproc"
10957fi
10958ac_res=`eval echo '${'$as_ac_Header'}'`
10959 { echo "$as_me:$LINENO: result: $ac_res" >&5
10960echo "${ECHO_T}$ac_res" >&6; }
10961
10962fi
10963if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010964 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966_ACEOF
10967
10968fi
10969
10970done
10971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010972
10973
10974
10975
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010977do
10978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984fi
10985ac_res=`eval echo '${'$as_ac_Header'}'`
10986 { echo "$as_me:$LINENO: result: $ac_res" >&5
10987echo "${ECHO_T}$ac_res" >&6; }
10988else
10989 # Is the header compilable?
10990{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10992cat >conftest.$ac_ext <<_ACEOF
10993/* confdefs.h. */
10994_ACEOF
10995cat confdefs.h >>conftest.$ac_ext
10996cat >>conftest.$ac_ext <<_ACEOF
10997/* end confdefs.h. */
10998$ac_includes_default
10999#include <$ac_header>
11000_ACEOF
11001rm -f conftest.$ac_objext
11002if { (ac_try="$ac_compile"
11003case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_compile") 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029esac
11030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_header_compiler=yes
11036else
11037 echo "$as_me: failed program was:" >&5
11038sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 ac_header_compiler=no
11041fi
11042
11043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11045echo "${ECHO_T}$ac_header_compiler" >&6; }
11046
11047# Is the header present?
11048{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11050cat >conftest.$ac_ext <<_ACEOF
11051/* confdefs.h. */
11052_ACEOF
11053cat confdefs.h >>conftest.$ac_ext
11054cat >>conftest.$ac_ext <<_ACEOF
11055/* end confdefs.h. */
11056#include <$ac_header>
11057_ACEOF
11058if { (ac_try="$ac_cpp conftest.$ac_ext"
11059case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062esac
11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11065 ac_status=$?
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } >/dev/null; then
11071 if test -s conftest.err; then
11072 ac_cpp_err=$ac_c_preproc_warn_flag
11073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11074 else
11075 ac_cpp_err=
11076 fi
11077else
11078 ac_cpp_err=yes
11079fi
11080if test -z "$ac_cpp_err"; then
11081 ac_header_preproc=yes
11082else
11083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 ac_header_preproc=no
11087fi
11088
11089rm -f conftest.err conftest.$ac_ext
11090{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091echo "${ECHO_T}$ac_header_preproc" >&6; }
11092
11093# So? What about this header?
11094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095 yes:no: )
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11100 ac_header_preproc=yes
11101 ;;
11102 no:yes:* )
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11106echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11110echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11115 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011116## ------------------------------------ ##
11117## Report this to http://llvm.org/bugs/ ##
11118## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011119_ASBOX
11120 ) | sed "s/^/$as_me: WARNING: /" >&2
11121 ;;
11122esac
11123{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127else
11128 eval "$as_ac_Header=\$ac_header_preproc"
11129fi
11130ac_res=`eval echo '${'$as_ac_Header'}'`
11131 { echo "$as_me:$LINENO: result: $ac_res" >&5
11132echo "${ECHO_T}$ac_res" >&6; }
11133
11134fi
11135if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138_ACEOF
11139
11140fi
11141
11142done
11143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011144
11145
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011147do
11148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154fi
11155ac_res=`eval echo '${'$as_ac_Header'}'`
11156 { echo "$as_me:$LINENO: result: $ac_res" >&5
11157echo "${ECHO_T}$ac_res" >&6; }
11158else
11159 # Is the header compilable?
11160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11162cat >conftest.$ac_ext <<_ACEOF
11163/* confdefs.h. */
11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
11168$ac_includes_default
11169#include <$ac_header>
11170_ACEOF
11171rm -f conftest.$ac_objext
11172if { (ac_try="$ac_compile"
11173case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189esac
11190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199esac
11200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_header_compiler=yes
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 ac_header_compiler=no
11211fi
11212
11213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11215echo "${ECHO_T}$ac_header_compiler" >&6; }
11216
11217# Is the header present?
11218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11220cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226#include <$ac_header>
11227_ACEOF
11228if { (ac_try="$ac_cpp conftest.$ac_ext"
11229case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11232esac
11233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null; then
11241 if test -s conftest.err; then
11242 ac_cpp_err=$ac_c_preproc_warn_flag
11243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11244 else
11245 ac_cpp_err=
11246 fi
11247else
11248 ac_cpp_err=yes
11249fi
11250if test -z "$ac_cpp_err"; then
11251 ac_header_preproc=yes
11252else
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 ac_header_preproc=no
11257fi
11258
11259rm -f conftest.err conftest.$ac_ext
11260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11261echo "${ECHO_T}$ac_header_preproc" >&6; }
11262
11263# So? What about this header?
11264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11265 yes:no: )
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11270 ac_header_preproc=yes
11271 ;;
11272 no:yes:* )
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11285 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011286## ------------------------------------ ##
11287## Report this to http://llvm.org/bugs/ ##
11288## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011289_ASBOX
11290 ) | sed "s/^/$as_me: WARNING: /" >&2
11291 ;;
11292esac
11293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297else
11298 eval "$as_ac_Header=\$ac_header_preproc"
11299fi
11300ac_res=`eval echo '${'$as_ac_Header'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302echo "${ECHO_T}$ac_res" >&6; }
11303
11304fi
11305if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308_ACEOF
11309 break
11310fi
11311
11312done
11313
11314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011315
11316
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011318do
11319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11320{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11322if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11333#define $ac_func innocuous_$ac_func
11334
11335/* System header to define __stub macros and hopefully few prototypes,
11336 which can conflict with char $ac_func (); below.
11337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11338 <limits.h> exists even on freestanding compilers. */
11339
11340#ifdef __STDC__
11341# include <limits.h>
11342#else
11343# include <assert.h>
11344#endif
11345
11346#undef $ac_func
11347
11348/* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11351#ifdef __cplusplus
11352extern "C"
11353#endif
11354char $ac_func ();
11355/* The GNU C library defines this for functions which it implements
11356 to always fail with ENOSYS. Some functions are actually named
11357 something starting with __ and the normal name is an alias. */
11358#if defined __stub_$ac_func || defined __stub___$ac_func
11359choke me
11360#endif
11361
11362int
11363main ()
11364{
11365return $ac_func ();
11366 ;
11367 return 0;
11368}
11369_ACEOF
11370rm -f conftest.$ac_objext conftest$ac_exeext
11371if { (ac_try="$ac_link"
11372case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375esac
11376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_link") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11388esac
11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest$ac_exeext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398esac
11399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 eval "$as_ac_var=yes"
11405else
11406 echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 eval "$as_ac_var=no"
11410fi
11411
11412rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414fi
11415ac_res=`eval echo '${'$as_ac_var'}'`
11416 { echo "$as_me:$LINENO: result: $ac_res" >&5
11417echo "${ECHO_T}$ac_res" >&6; }
11418if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421_ACEOF
11422 break
11423fi
11424done
11425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011426
11427
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011428for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011429do
11430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11431{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 cat >conftest.$ac_ext <<_ACEOF
11437/* confdefs.h. */
11438_ACEOF
11439cat confdefs.h >>conftest.$ac_ext
11440cat >>conftest.$ac_ext <<_ACEOF
11441/* end confdefs.h. */
11442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11444#define $ac_func innocuous_$ac_func
11445
11446/* System header to define __stub macros and hopefully few prototypes,
11447 which can conflict with char $ac_func (); below.
11448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11449 <limits.h> exists even on freestanding compilers. */
11450
11451#ifdef __STDC__
11452# include <limits.h>
11453#else
11454# include <assert.h>
11455#endif
11456
11457#undef $ac_func
11458
11459/* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11462#ifdef __cplusplus
11463extern "C"
11464#endif
11465char $ac_func ();
11466/* The GNU C library defines this for functions which it implements
11467 to always fail with ENOSYS. Some functions are actually named
11468 something starting with __ and the normal name is an alias. */
11469#if defined __stub_$ac_func || defined __stub___$ac_func
11470choke me
11471#endif
11472
11473int
11474main ()
11475{
11476return $ac_func ();
11477 ;
11478 return 0;
11479}
11480_ACEOF
11481rm -f conftest.$ac_objext conftest$ac_exeext
11482if { (ac_try="$ac_link"
11483case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_link") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499esac
11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_try") 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 eval "$as_ac_var=yes"
11516else
11517 echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520 eval "$as_ac_var=no"
11521fi
11522
11523rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525fi
11526ac_res=`eval echo '${'$as_ac_var'}'`
11527 { echo "$as_me:$LINENO: result: $ac_res" >&5
11528echo "${ECHO_T}$ac_res" >&6; }
11529if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532_ACEOF
11533 break
11534fi
11535done
11536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011537
11538
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011540do
11541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11542{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 cat >conftest.$ac_ext <<_ACEOF
11548/* confdefs.h. */
11549_ACEOF
11550cat confdefs.h >>conftest.$ac_ext
11551cat >>conftest.$ac_ext <<_ACEOF
11552/* end confdefs.h. */
11553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11555#define $ac_func innocuous_$ac_func
11556
11557/* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char $ac_func (); below.
11559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 <limits.h> exists even on freestanding compilers. */
11561
11562#ifdef __STDC__
11563# include <limits.h>
11564#else
11565# include <assert.h>
11566#endif
11567
11568#undef $ac_func
11569
11570/* Override any GCC internal prototype to avoid an error.
11571 Use char because int might match the return type of a GCC
11572 builtin and then its argument prototype would still apply. */
11573#ifdef __cplusplus
11574extern "C"
11575#endif
11576char $ac_func ();
11577/* The GNU C library defines this for functions which it implements
11578 to always fail with ENOSYS. Some functions are actually named
11579 something starting with __ and the normal name is an alias. */
11580#if defined __stub_$ac_func || defined __stub___$ac_func
11581choke me
11582#endif
11583
11584int
11585main ()
11586{
11587return $ac_func ();
11588 ;
11589 return 0;
11590}
11591_ACEOF
11592rm -f conftest.$ac_objext conftest$ac_exeext
11593if { (ac_try="$ac_link"
11594case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_link") 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610esac
11611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620esac
11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_try") 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 eval "$as_ac_var=yes"
11627else
11628 echo "$as_me: failed program was:" >&5
11629sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 eval "$as_ac_var=no"
11632fi
11633
11634rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636fi
11637ac_res=`eval echo '${'$as_ac_var'}'`
11638 { echo "$as_me:$LINENO: result: $ac_res" >&5
11639echo "${ECHO_T}$ac_res" >&6; }
11640if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643_ACEOF
11644 break
11645fi
11646done
11647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011648
11649
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011651do
11652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 cat >conftest.$ac_ext <<_ACEOF
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
11664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666#define $ac_func innocuous_$ac_func
11667
11668/* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11672
11673#ifdef __STDC__
11674# include <limits.h>
11675#else
11676# include <assert.h>
11677#endif
11678
11679#undef $ac_func
11680
11681/* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11684#ifdef __cplusplus
11685extern "C"
11686#endif
11687char $ac_func ();
11688/* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691#if defined __stub_$ac_func || defined __stub___$ac_func
11692choke me
11693#endif
11694
11695int
11696main ()
11697{
11698return $ac_func ();
11699 ;
11700 return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext conftest$ac_exeext
11704if { (ac_try="$ac_link"
11705case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731esac
11732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_try") 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
11737 eval "$as_ac_var=yes"
11738else
11739 echo "$as_me: failed program was:" >&5
11740sed 's/^/| /' conftest.$ac_ext >&5
11741
11742 eval "$as_ac_var=no"
11743fi
11744
11745rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747fi
11748ac_res=`eval echo '${'$as_ac_var'}'`
11749 { echo "$as_me:$LINENO: result: $ac_res" >&5
11750echo "${ECHO_T}$ac_res" >&6; }
11751if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754_ACEOF
11755
11756fi
11757done
11758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011759
11760
11761
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011762for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011763do
11764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769else
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11778#define $ac_func innocuous_$ac_func
11779
11780/* System header to define __stub macros and hopefully few prototypes,
11781 which can conflict with char $ac_func (); below.
11782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 <limits.h> exists even on freestanding compilers. */
11784
11785#ifdef __STDC__
11786# include <limits.h>
11787#else
11788# include <assert.h>
11789#endif
11790
11791#undef $ac_func
11792
11793/* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11796#ifdef __cplusplus
11797extern "C"
11798#endif
11799char $ac_func ();
11800/* The GNU C library defines this for functions which it implements
11801 to always fail with ENOSYS. Some functions are actually named
11802 something starting with __ and the normal name is an alias. */
11803#if defined __stub_$ac_func || defined __stub___$ac_func
11804choke me
11805#endif
11806
11807int
11808main ()
11809{
11810return $ac_func ();
11811 ;
11812 return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext conftest$ac_exeext
11816if { (ac_try="$ac_link"
11817case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_link") 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833esac
11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843esac
11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 eval "$as_ac_var=yes"
11850else
11851 echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
11854 eval "$as_ac_var=no"
11855fi
11856
11857rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859fi
11860ac_res=`eval echo '${'$as_ac_var'}'`
11861 { echo "$as_me:$LINENO: result: $ac_res" >&5
11862echo "${ECHO_T}$ac_res" >&6; }
11863if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011864 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011866_ACEOF
11867
11868fi
11869done
11870
11871
Douglas Gregor01746742009-05-11 18:05:52 +000011872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011873{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11874echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011875
Reid Spencer86901802004-12-08 23:07:27 +000011876ICC=no
11877IXX=no
11878case $CC in
11879 icc*|icpc*)
11880 ICC=yes
11881 IXX=yes
11882 ;;
11883 *)
11884 ;;
11885esac
11886
Duraid Madina937c60a2006-02-15 07:57:42 +000011887if test "$GCC" != "yes" && test "$ICC" != "yes"
11888then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011889 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11890echo "$as_me: error: gcc|icc required but not found" >&2;}
11891 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011892fi
11893
11894if test "$GXX" != "yes" && test "$IXX" != "yes"
11895then
Eric Christopher73e36da2010-12-08 02:02:14 +000011896 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11897echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011898 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011899fi
11900
Reid Spencer86901802004-12-08 23:07:27 +000011901if test "$GCC" = "yes"
11902then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011903 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000011904#if !defined(__GNUC__) || __GNUC__ < 3
11905#error Unsupported GCC version
11906#endif
11907
11908_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011909rm -f conftest.$ac_objext
11910if { (ac_try="$ac_compile"
11911case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914esac
11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_compile") 2>conftest.er1
11917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927esac
11928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937esac
11938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_try") 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 :
Chris Lattner399c7c72008-02-05 19:43:53 +000011944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011945 echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
11948 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11949echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11950 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000011951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011952
Chris Lattner399c7c72008-02-05 19:43:53 +000011953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011954fi
11955
11956if test -z "$llvm_cv_gnu_make_command"
11957then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011958 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11959echo "$as_me: error: GNU Make required but not found" >&2;}
11960 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011961fi
11962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011963{ echo "$as_me:$LINENO: result: ok" >&5
11964echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011966{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
11967echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011968NO_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 +000011969
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011970NO_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 +000011971
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011972COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11973
11974{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11975echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000011976
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000011977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011978
11979{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
11980echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11981if test "${ac_cv_lib_m_sin+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000011983else
11984 ac_check_lib_save_LIBS=$LIBS
11985LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011986cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000011991/* end confdefs.h. */
11992
Reid Spencera773bd52006-08-04 18:18:08 +000011993/* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000011996#ifdef __cplusplus
11997extern "C"
11998#endif
Reid Spencer3484a992006-01-19 08:31:08 +000011999char sin ();
12000int
12001main ()
12002{
Reid Spencera773bd52006-08-04 18:18:08 +000012003return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012004 ;
12005 return 0;
12006}
12007_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012008rm -f conftest.$ac_objext conftest$ac_exeext
12009if { (ac_try="$ac_link"
12010case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012042 ac_cv_lib_m_sin=yes
12043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012044 echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012049
Bill Wendlingebcceee2009-04-18 11:20:33 +000012050rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012051 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012052LIBS=$ac_check_lib_save_LIBS
12053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012054{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12055echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12056if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012057 cat >>confdefs.h <<_ACEOF
12058#define HAVE_LIBM 1
12059_ACEOF
12060
12061 LIBS="-lm $LIBS"
12062
12063fi
12064
Jeff Cohen28783c32007-01-12 18:22:38 +000012065if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012066
12067{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12068echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12069if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012071else
12072 ac_check_lib_save_LIBS=$LIBS
12073LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012074cat >conftest.$ac_ext <<_ACEOF
12075/* confdefs.h. */
12076_ACEOF
12077cat confdefs.h >>conftest.$ac_ext
12078cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012079/* end confdefs.h. */
12080
Reid Spencer48fdf912006-06-01 19:03:21 +000012081
Reid Spencer484fc8e2006-06-01 16:55:59 +000012082int
12083main ()
12084{
Reid Spencera773bd52006-08-04 18:18:08 +000012085return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012086 ;
12087 return 0;
12088}
12089_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012090rm -f conftest.$ac_objext conftest$ac_exeext
12091if { (ac_try="$ac_link"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12105 { (case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108esac
12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_try") 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118esac
12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012124 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012126 echo "$as_me: failed program was:" >&5
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012131
Bill Wendlingebcceee2009-04-18 11:20:33 +000012132rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012133 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012134LIBS=$ac_check_lib_save_LIBS
12135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012136{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12137echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12138if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012139 cat >>confdefs.h <<_ACEOF
12140#define HAVE_LIBIMAGEHLP 1
12141_ACEOF
12142
12143 LIBS="-limagehlp $LIBS"
12144
12145fi
12146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012147
12148{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12149echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12150if test "${ac_cv_lib_psapi_main+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012152else
12153 ac_check_lib_save_LIBS=$LIBS
12154LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012155cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012160/* end confdefs.h. */
12161
Reid Spencer48fdf912006-06-01 19:03:21 +000012162
Reid Spencer484fc8e2006-06-01 16:55:59 +000012163int
12164main ()
12165{
Reid Spencera773bd52006-08-04 18:18:08 +000012166return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012167 ;
12168 return 0;
12169}
12170_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012171rm -f conftest.$ac_objext conftest$ac_exeext
12172if { (ac_try="$ac_link"
12173case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_link") 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189esac
12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest$ac_exeext'
12196 { (case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199esac
12200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_try") 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012205 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012212
Bill Wendlingebcceee2009-04-18 11:20:33 +000012213rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012214 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012215LIBS=$ac_check_lib_save_LIBS
12216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012217{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12218echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12219if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012220 cat >>confdefs.h <<_ACEOF
12221#define HAVE_LIBPSAPI 1
12222_ACEOF
12223
12224 LIBS="-lpsapi $LIBS"
12225
12226fi
12227
12228fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012230{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12231echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12232if test "${ac_cv_search_dlopen+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012234else
12235 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012236cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012242
Reid Spencera773bd52006-08-04 18:18:08 +000012243/* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012246#ifdef __cplusplus
12247extern "C"
12248#endif
John Criswell7a73b802003-06-30 21:59:07 +000012249char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012250int
12251main ()
12252{
Reid Spencera773bd52006-08-04 18:18:08 +000012253return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012254 ;
12255 return 0;
12256}
12257_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012258for ac_lib in '' dl; do
12259 if test -z "$ac_lib"; then
12260 ac_res="none required"
12261 else
12262 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012264 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012265 rm -f conftest.$ac_objext conftest$ac_exeext
12266if { (ac_try="$ac_link"
12267case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283esac
12284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest$ac_exeext'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012299 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012300else
12301 echo "$as_me: failed program was:" >&5
12302sed 's/^/| /' conftest.$ac_ext >&5
12303
12304
John Criswell7a73b802003-06-30 21:59:07 +000012305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012306
Bill Wendlingebcceee2009-04-18 11:20:33 +000012307rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012308 conftest$ac_exeext
12309 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012310 break
John Criswell7a73b802003-06-30 21:59:07 +000012311fi
Reid Spencera773bd52006-08-04 18:18:08 +000012312done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012313if test "${ac_cv_search_dlopen+set}" = set; then
12314 :
Reid Spencera773bd52006-08-04 18:18:08 +000012315else
12316 ac_cv_search_dlopen=no
12317fi
12318rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012319LIBS=$ac_func_search_save_LIBS
12320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12322echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012323ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012324if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012327cat >>confdefs.h <<\_ACEOF
12328#define HAVE_DLOPEN 1
12329_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012330
12331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12333echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012334fi
12335
12336
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012337if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012338 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12339echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12340if test "${ac_cv_search_ffi_call+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012342else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012343 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012344cat >conftest.$ac_ext <<_ACEOF
12345/* confdefs.h. */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012349/* end confdefs.h. */
12350
12351/* Override any GCC internal prototype to avoid an error.
12352 Use char because int might match the return type of a GCC
12353 builtin and then its argument prototype would still apply. */
12354#ifdef __cplusplus
12355extern "C"
12356#endif
12357char ffi_call ();
12358int
12359main ()
12360{
12361return ffi_call ();
12362 ;
12363 return 0;
12364}
12365_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012366for ac_lib in '' ffi; do
12367 if test -z "$ac_lib"; then
12368 ac_res="none required"
12369 else
12370 ac_res=-l$ac_lib
12371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12372 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012373 rm -f conftest.$ac_objext conftest$ac_exeext
12374if { (ac_try="$ac_link"
12375case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12378esac
12379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_link") 2>conftest.er1
12381 ac_status=$?
12382 grep -v '^ *+' conftest.er1 >conftest.err
12383 rm -f conftest.er1
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12388 { (case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391esac
12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_try") 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401esac
12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_try") 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012407 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012408else
12409 echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414
Bill Wendlingebcceee2009-04-18 11:20:33 +000012415rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012416 conftest$ac_exeext
12417 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012418 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012419fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012420done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012421if test "${ac_cv_search_ffi_call+set}" = set; then
12422 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012423else
12424 ac_cv_search_ffi_call=no
12425fi
12426rm conftest.$ac_ext
12427LIBS=$ac_func_search_save_LIBS
12428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012429{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12430echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012431ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012432if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435cat >>confdefs.h <<\_ACEOF
12436#define HAVE_FFI_CALL 1
12437_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012438
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012439else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012440 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12441echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12442 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012443fi
12444
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012445fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012447{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12448echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12449if test "${ac_cv_search_mallinfo+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012451else
12452 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012453cat >conftest.$ac_ext <<_ACEOF
12454/* confdefs.h. */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012458/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012459
Reid Spencera773bd52006-08-04 18:18:08 +000012460/* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012463#ifdef __cplusplus
12464extern "C"
12465#endif
John Criswell7a73b802003-06-30 21:59:07 +000012466char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012467int
12468main ()
12469{
Reid Spencera773bd52006-08-04 18:18:08 +000012470return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012471 ;
12472 return 0;
12473}
12474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012475for ac_lib in '' malloc; do
12476 if test -z "$ac_lib"; then
12477 ac_res="none required"
12478 else
12479 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012481 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012482 rm -f conftest.$ac_objext conftest$ac_exeext
12483if { (ac_try="$ac_link"
12484case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12487esac
12488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_link") 2>conftest.er1
12490 ac_status=$?
12491 grep -v '^ *+' conftest.er1 >conftest.err
12492 rm -f conftest.er1
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } &&
12496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12497 { (case "(($ac_try" in
12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499 *) ac_try_echo=$ac_try;;
12500esac
12501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502 (eval "$ac_try") 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try='test -s conftest$ac_exeext'
12507 { (case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12510esac
12511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512 (eval "$ac_try") 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012516 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012517else
12518 echo "$as_me: failed program was:" >&5
12519sed 's/^/| /' conftest.$ac_ext >&5
12520
12521
John Criswell7a73b802003-06-30 21:59:07 +000012522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012523
Bill Wendlingebcceee2009-04-18 11:20:33 +000012524rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012525 conftest$ac_exeext
12526 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012527 break
John Criswell7a73b802003-06-30 21:59:07 +000012528fi
Reid Spencera773bd52006-08-04 18:18:08 +000012529done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012530if test "${ac_cv_search_mallinfo+set}" = set; then
12531 :
Reid Spencera773bd52006-08-04 18:18:08 +000012532else
12533 ac_cv_search_mallinfo=no
12534fi
12535rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012536LIBS=$ac_func_search_save_LIBS
12537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012538{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12539echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012540ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012541if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012544cat >>confdefs.h <<\_ACEOF
12545#define HAVE_MALLINFO 1
12546_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012547
12548fi
12549
12550
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012551if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012552
12553{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12554echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12555if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012557else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012558 ac_check_lib_save_LIBS=$LIBS
12559LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012560cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012565/* end confdefs.h. */
12566
Reid Spencera773bd52006-08-04 18:18:08 +000012567/* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012570#ifdef __cplusplus
12571extern "C"
12572#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012573char pthread_mutex_init ();
12574int
12575main ()
12576{
Reid Spencera773bd52006-08-04 18:18:08 +000012577return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012578 ;
12579 return 0;
12580}
12581_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012582rm -f conftest.$ac_objext conftest$ac_exeext
12583if { (ac_try="$ac_link"
12584case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587esac
12588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_link") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12597 { (case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12600esac
12601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_try") 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest$ac_exeext'
12607 { (case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610esac
12611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_try") 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012616 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012623
Bill Wendlingebcceee2009-04-18 11:20:33 +000012624rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012625 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012626LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012628{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12629echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12630if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012631 cat >>confdefs.h <<_ACEOF
12632#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012633_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012634
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012635 LIBS="-lpthread $LIBS"
12636
Reid Spencer22177fe2005-07-12 15:24:20 +000012637fi
12638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012639 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12640echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12641if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012643else
12644 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012645cat >conftest.$ac_ext <<_ACEOF
12646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012650/* end confdefs.h. */
12651
Reid Spencera773bd52006-08-04 18:18:08 +000012652/* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012655#ifdef __cplusplus
12656extern "C"
12657#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012658char pthread_mutex_lock ();
12659int
12660main ()
12661{
Reid Spencera773bd52006-08-04 18:18:08 +000012662return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012663 ;
12664 return 0;
12665}
12666_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012667for ac_lib in '' pthread; do
12668 if test -z "$ac_lib"; then
12669 ac_res="none required"
12670 else
12671 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012673 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012674 rm -f conftest.$ac_objext conftest$ac_exeext
12675if { (ac_try="$ac_link"
12676case "(($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_link") 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest$ac_exeext'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702esac
12703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012708 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012709else
12710 echo "$as_me: failed program was:" >&5
12711sed 's/^/| /' conftest.$ac_ext >&5
12712
12713
Brian Gaeke5f268f72003-12-05 19:29:01 +000012714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012715
Bill Wendlingebcceee2009-04-18 11:20:33 +000012716rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717 conftest$ac_exeext
12718 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012719 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012720fi
Reid Spencera773bd52006-08-04 18:18:08 +000012721done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012722if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12723 :
Reid Spencera773bd52006-08-04 18:18:08 +000012724else
12725 ac_cv_search_pthread_mutex_lock=no
12726fi
12727rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012728LIBS=$ac_func_search_save_LIBS
12729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12731echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012732ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012733if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736cat >>confdefs.h <<\_ACEOF
12737#define HAVE_PTHREAD_MUTEX_LOCK 1
12738_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012739
12740fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012742 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12743echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12744if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012746else
12747 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012748cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012753/* end confdefs.h. */
12754
12755/* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12758#ifdef __cplusplus
12759extern "C"
12760#endif
12761char pthread_rwlock_init ();
12762int
12763main ()
12764{
12765return pthread_rwlock_init ();
12766 ;
12767 return 0;
12768}
12769_ACEOF
12770for ac_lib in '' pthread; do
12771 if test -z "$ac_lib"; then
12772 ac_res="none required"
12773 else
12774 ac_res=-l$ac_lib
12775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12776 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777 rm -f conftest.$ac_objext conftest$ac_exeext
12778if { (ac_try="$ac_link"
12779case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782esac
12783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_link") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805esac
12806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012811 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012812else
12813 echo "$as_me: failed program was:" >&5
12814sed 's/^/| /' conftest.$ac_ext >&5
12815
12816
Owen Andersonde8aed22009-06-16 18:20:20 +000012817fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012818
Owen Andersonde8aed22009-06-16 18:20:20 +000012819rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012820 conftest$ac_exeext
12821 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012822 break
12823fi
12824done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12826 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012827else
12828 ac_cv_search_pthread_rwlock_init=no
12829fi
12830rm conftest.$ac_ext
12831LIBS=$ac_func_search_save_LIBS
12832fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012833{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12834echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012835ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012836if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012839cat >>confdefs.h <<\_ACEOF
12840#define HAVE_PTHREAD_RWLOCK_INIT 1
12841_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012842
12843fi
12844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012845 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12846echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12847if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012849else
12850 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012851cat >conftest.$ac_ext <<_ACEOF
12852/* confdefs.h. */
12853_ACEOF
12854cat confdefs.h >>conftest.$ac_ext
12855cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012856/* end confdefs.h. */
12857
12858/* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12861#ifdef __cplusplus
12862extern "C"
12863#endif
12864char pthread_getspecific ();
12865int
12866main ()
12867{
12868return pthread_getspecific ();
12869 ;
12870 return 0;
12871}
12872_ACEOF
12873for ac_lib in '' pthread; do
12874 if test -z "$ac_lib"; then
12875 ac_res="none required"
12876 else
12877 ac_res=-l$ac_lib
12878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12879 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012880 rm -f conftest.$ac_objext conftest$ac_exeext
12881if { (ac_try="$ac_link"
12882case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12908esac
12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012914 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919
Owen Anderson27fcfe12009-06-25 23:10:26 +000012920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012921
Owen Anderson27fcfe12009-06-25 23:10:26 +000012922rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012923 conftest$ac_exeext
12924 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012925 break
12926fi
12927done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012928if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12929 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000012930else
12931 ac_cv_search_pthread_getspecific=no
12932fi
12933rm conftest.$ac_ext
12934LIBS=$ac_func_search_save_LIBS
12935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012936{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12937echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000012938ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012942cat >>confdefs.h <<\_ACEOF
12943#define HAVE_PTHREAD_GETSPECIFIC 1
12944_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012945
12946fi
12947
Reid Spencer0a262ba2005-08-24 10:07:20 +000012948fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000012949
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012950
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012951# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012952if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012953 withval=$with_udis86;
12954 USE_UDIS86=1
12955
12956 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000012957 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012958 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12959 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012960
12961{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12962echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12963if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012965else
12966 ac_check_lib_save_LIBS=$LIBS
12967LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012968cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h. */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012973/* end confdefs.h. */
12974
12975/* Override any GCC internal prototype to avoid an error.
12976 Use char because int might match the return type of a GCC
12977 builtin and then its argument prototype would still apply. */
12978#ifdef __cplusplus
12979extern "C"
12980#endif
12981char ud_init ();
12982int
12983main ()
12984{
12985return ud_init ();
12986 ;
12987 return 0;
12988}
12989_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012990rm -f conftest.$ac_objext conftest$ac_exeext
12991if { (ac_try="$ac_link"
12992case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995esac
12996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_link") 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest$ac_exeext'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018esac
13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013024 ac_cv_lib_udis86_ud_init=yes
13025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013026 echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031
Bill Wendlingebcceee2009-04-18 11:20:33 +000013032rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013033 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013034LIBS=$ac_check_lib_save_LIBS
13035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013036{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13037echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13038if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013039 cat >>confdefs.h <<_ACEOF
13040#define HAVE_LIBUDIS86 1
13041_ACEOF
13042
13043 LIBS="-ludis86 $LIBS"
13044
13045else
13046
13047 echo "Error! You need to have libudis86 around."
13048 exit -1
13049
13050fi
13051
13052
13053else
13054 USE_UDIS86=0
13055
13056fi
13057
13058
13059cat >>confdefs.h <<_ACEOF
13060#define USE_UDIS86 $USE_UDIS86
13061_ACEOF
13062
13063
13064
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013065# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013067 withval=$with_oprofile;
13068 USE_OPROFILE=1
13069
13070 case "$withval" in
13071 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013072 no) llvm_cv_oppath=
13073 USE_OPROFILE=0
13074 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013075 *) llvm_cv_oppath="${withval}/lib/oprofile"
13076 CPPFLAGS="-I${withval}/include";;
13077 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013078 case $llvm_cv_os_type in
13079 Linux)
13080 if test -n "$llvm_cv_oppath" ; then
13081 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13082 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013083echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13084if test "${ac_cv_search_bfd_init+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013086else
13087 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088cat >conftest.$ac_ext <<_ACEOF
13089/* confdefs.h. */
13090_ACEOF
13091cat confdefs.h >>conftest.$ac_ext
13092cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013093/* end confdefs.h. */
13094
13095/* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13098#ifdef __cplusplus
13099extern "C"
13100#endif
13101char bfd_init ();
13102int
13103main ()
13104{
13105return bfd_init ();
13106 ;
13107 return 0;
13108}
13109_ACEOF
13110for ac_lib in '' bfd; do
13111 if test -z "$ac_lib"; then
13112 ac_res="none required"
13113 else
13114 ac_res=-l$ac_lib
13115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13116 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013117 rm -f conftest.$ac_objext conftest$ac_exeext
13118if { (ac_try="$ac_link"
13119case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_link") 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
13131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13132 { (case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135esac
13136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_try") 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest$ac_exeext'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013151 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013152else
13153 echo "$as_me: failed program was:" >&5
13154sed 's/^/| /' conftest.$ac_ext >&5
13155
13156
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013158
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013159rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013160 conftest$ac_exeext
13161 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013162 break
13163fi
13164done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013165if test "${ac_cv_search_bfd_init+set}" = set; then
13166 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013167else
13168 ac_cv_search_bfd_init=no
13169fi
13170rm conftest.$ac_ext
13171LIBS=$ac_func_search_save_LIBS
13172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013173{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13174echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013175ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013176if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13178
13179fi
13180
Eli Bendersky61b18512012-03-13 08:33:15 +000013181 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13183if test "${ac_cv_search_op_open_agent+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013185else
13186 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187cat >conftest.$ac_ext <<_ACEOF
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013192/* end confdefs.h. */
13193
13194/* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
13197#ifdef __cplusplus
13198extern "C"
13199#endif
13200char op_open_agent ();
13201int
13202main ()
13203{
13204return op_open_agent ();
13205 ;
13206 return 0;
13207}
13208_ACEOF
13209for ac_lib in '' opagent; do
13210 if test -z "$ac_lib"; then
13211 ac_res="none required"
13212 else
13213 ac_res=-l$ac_lib
13214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13215 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216 rm -f conftest.$ac_objext conftest$ac_exeext
13217if { (ac_try="$ac_link"
13218case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_link") 2>conftest.er1
13224 ac_status=$?
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13231 { (case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234esac
13235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_try") 2>&5
13237 ac_status=$?
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest$ac_exeext'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013250 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013251else
13252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
13255
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013258rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259 conftest$ac_exeext
13260 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013261 break
13262fi
13263done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013264if test "${ac_cv_search_op_open_agent+set}" = set; then
13265 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013266else
13267 ac_cv_search_op_open_agent=no
13268fi
13269rm conftest.$ac_ext
13270LIBS=$ac_func_search_save_LIBS
13271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013272{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13273echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013274ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13277
13278else
13279
Eli Bendersky61b18512012-03-13 08:33:15 +000013280 echo "Error! You need to have libopagent around."
13281 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013282
13283fi
13284
Eli Bendersky61b18512012-03-13 08:33:15 +000013285 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013286 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13287echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13288if test "${ac_cv_header_opagent_h+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290fi
13291{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13292echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13293else
13294 # Is the header compilable?
13295{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13296echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13297cat >conftest.$ac_ext <<_ACEOF
13298/* confdefs.h. */
13299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
13302/* end confdefs.h. */
13303$ac_includes_default
13304#include <opagent.h>
13305_ACEOF
13306rm -f conftest.$ac_objext
13307if { (ac_try="$ac_compile"
13308case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_compile") 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324esac
13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334esac
13335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_try") 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_header_compiler=yes
13341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013345 ac_header_compiler=no
13346fi
13347
13348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350echo "${ECHO_T}$ac_header_compiler" >&6; }
13351
13352# Is the header present?
13353{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13354echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13355cat >conftest.$ac_ext <<_ACEOF
13356/* confdefs.h. */
13357_ACEOF
13358cat confdefs.h >>conftest.$ac_ext
13359cat >>conftest.$ac_ext <<_ACEOF
13360/* end confdefs.h. */
13361#include <opagent.h>
13362_ACEOF
13363if { (ac_try="$ac_cpp conftest.$ac_ext"
13364case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367esac
13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13370 ac_status=$?
13371 grep -v '^ *+' conftest.er1 >conftest.err
13372 rm -f conftest.er1
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } >/dev/null; then
13376 if test -s conftest.err; then
13377 ac_cpp_err=$ac_c_preproc_warn_flag
13378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13379 else
13380 ac_cpp_err=
13381 fi
13382else
13383 ac_cpp_err=yes
13384fi
13385if test -z "$ac_cpp_err"; then
13386 ac_header_preproc=yes
13387else
13388 echo "$as_me: failed program was:" >&5
13389sed 's/^/| /' conftest.$ac_ext >&5
13390
13391 ac_header_preproc=no
13392fi
13393
13394rm -f conftest.err conftest.$ac_ext
13395{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13396echo "${ECHO_T}$ac_header_preproc" >&6; }
13397
13398# So? What about this header?
13399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13400 yes:no: )
13401 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13402echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13404echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13405 ac_header_preproc=yes
13406 ;;
13407 no:yes:* )
13408 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13409echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13411echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13413echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13415echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13417echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13419echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13420 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013421## ------------------------------------ ##
13422## Report this to http://llvm.org/bugs/ ##
13423## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013424_ASBOX
13425 ) | sed "s/^/$as_me: WARNING: /" >&2
13426 ;;
13427esac
13428{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13429echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13430if test "${ac_cv_header_opagent_h+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432else
13433 ac_cv_header_opagent_h=$ac_header_preproc
13434fi
13435{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13436echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13437
13438fi
13439if test $ac_cv_header_opagent_h = yes; then
13440 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013441else
13442
Eli Bendersky61b18512012-03-13 08:33:15 +000013443 echo "Error! You need to have opagent.h around."
13444 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013445
13446fi
13447
13448
Eli Bendersky61b18512012-03-13 08:33:15 +000013449 fi ;;
13450 *)
13451 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13452echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13453 { (exit 1); exit 1; }; } ;;
13454 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013455
13456else
13457
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013458 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013459
13460
13461fi
13462
13463
13464cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013465#define LLVM_USE_OPROFILE $USE_OPROFILE
13466_ACEOF
13467
13468
13469
13470# Check whether --with-intel-jitevents was given.
13471if test "${with_intel_jitevents+set}" = set; then
13472 withval=$with_intel_jitevents;
13473 case $llvm_cv_os_type in
13474 Linux|Win32|Cygwin|MingW) ;;
13475 *)
13476 { { echo "$as_me:$LINENO: error:
13477 Intel JIT API support is available on Linux and Windows only.\"" >&5
13478echo "$as_me: error:
13479 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13480 { (exit 1); exit 1; }; } ;;
13481 esac
13482
13483 USE_INTEL_JITEVENTS=1
13484
13485 case "$llvm_cv_target_arch" in
13486 x86) llvm_intel_jitevents_archdir="lib32";;
13487 x86_64) llvm_intel_jitevents_archdir="lib64";;
13488 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13489 exit -1;;
13490 esac
13491 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13492 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13493 case "$withval" in
13494 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13495 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13496 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013497 esac
13498
13499
13500
13501
13502 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13503 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13504
13505 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13506echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13507if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509else
13510 ac_func_search_save_LIBS=$LIBS
13511cat >conftest.$ac_ext <<_ACEOF
13512/* confdefs.h. */
13513_ACEOF
13514cat confdefs.h >>conftest.$ac_ext
13515cat >>conftest.$ac_ext <<_ACEOF
13516/* end confdefs.h. */
13517
13518/* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply. */
13521#ifdef __cplusplus
13522extern "C"
13523#endif
13524char iJIT_IsProfilingActive ();
13525int
13526main ()
13527{
13528return iJIT_IsProfilingActive ();
13529 ;
13530 return 0;
13531}
13532_ACEOF
13533for ac_lib in '' jitprofiling; do
13534 if test -z "$ac_lib"; then
13535 ac_res="none required"
13536 else
13537 ac_res=-l$ac_lib
13538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13539 fi
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541if { (ac_try="$ac_link"
13542case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545esac
13546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>conftest.er1
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555 { (case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_try") 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest$ac_exeext'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13575else
13576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579
13580fi
13581
13582rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext
13584 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13585 break
13586fi
13587done
13588if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13589 :
13590else
13591 ac_cv_search_iJIT_IsProfilingActive=no
13592fi
13593rm conftest.$ac_ext
13594LIBS=$ac_func_search_save_LIBS
13595fi
13596{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13597echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13598ac_res=$ac_cv_search_iJIT_IsProfilingActive
13599if test "$ac_res" != no; then
13600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13601
13602else
13603
13604 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13605 exit -1
13606
13607fi
13608
13609 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13610 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13611echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13612if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614fi
13615{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13616echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13617else
13618 # Is the header compilable?
13619{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13620echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13621cat >conftest.$ac_ext <<_ACEOF
13622/* confdefs.h. */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
13626/* end confdefs.h. */
13627$ac_includes_default
13628#include <jitprofiling.h>
13629_ACEOF
13630rm -f conftest.$ac_objext
13631if { (ac_try="$ac_compile"
13632case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635esac
13636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13658esac
13659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_header_compiler=yes
13665else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 ac_header_compiler=no
13670fi
13671
13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13674echo "${ECHO_T}$ac_header_compiler" >&6; }
13675
13676# Is the header present?
13677{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13678echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13679cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685#include <jitprofiling.h>
13686_ACEOF
13687if { (ac_try="$ac_cpp conftest.$ac_ext"
13688case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691esac
13692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } >/dev/null; then
13700 if test -s conftest.err; then
13701 ac_cpp_err=$ac_c_preproc_warn_flag
13702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13703 else
13704 ac_cpp_err=
13705 fi
13706else
13707 ac_cpp_err=yes
13708fi
13709if test -z "$ac_cpp_err"; then
13710 ac_header_preproc=yes
13711else
13712 echo "$as_me: failed program was:" >&5
13713sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ac_header_preproc=no
13716fi
13717
13718rm -f conftest.err conftest.$ac_ext
13719{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13720echo "${ECHO_T}$ac_header_preproc" >&6; }
13721
13722# So? What about this header?
13723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13724 yes:no: )
13725 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13726echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13728echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13729 ac_header_preproc=yes
13730 ;;
13731 no:yes:* )
13732 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13733echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13734 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13735echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13736 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13737echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13739echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13741echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13743echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13744 ( cat <<\_ASBOX
13745## ------------------------------------ ##
13746## Report this to http://llvm.org/bugs/ ##
13747## ------------------------------------ ##
13748_ASBOX
13749 ) | sed "s/^/$as_me: WARNING: /" >&2
13750 ;;
13751esac
13752{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13753echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13754if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756else
13757 ac_cv_header_jitprofiling_h=$ac_header_preproc
13758fi
13759{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13760echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13761
13762fi
13763if test $ac_cv_header_jitprofiling_h = yes; then
13764 :
13765else
13766
13767 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13768 exit -1
13769
13770fi
13771
13772
13773
13774
13775else
13776
13777 USE_INTEL_JITEVENTS=0
13778
13779
13780fi
13781
13782
13783cat >>confdefs.h <<_ACEOF
13784#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013785_ACEOF
13786
13787
13788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013789
13790
13791
13792
13793
Reid Spencer59473af2004-12-25 07:31:29 +000013794ac_header_dirent=no
13795for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013796 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13797{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13798echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013802 cat >conftest.$ac_ext <<_ACEOF
13803/* confdefs.h. */
13804_ACEOF
13805cat confdefs.h >>conftest.$ac_ext
13806cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013807/* end confdefs.h. */
13808#include <sys/types.h>
13809#include <$ac_hdr>
13810
13811int
13812main ()
13813{
13814if ((DIR *) 0)
13815return 0;
13816 ;
13817 return 0;
13818}
13819_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013820rm -f conftest.$ac_objext
13821if { (ac_try="$ac_compile"
13822case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825esac
13826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_compile") 2>conftest.er1
13828 ac_status=$?
13829 grep -v '^ *+' conftest.er1 >conftest.err
13830 rm -f conftest.er1
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13835 { (case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13838esac
13839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_try") 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest.$ac_objext'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848esac
13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013854 eval "$as_ac_Header=yes"
13855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013856 echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013861
Reid Spencera773bd52006-08-04 18:18:08 +000013862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013864ac_res=`eval echo '${'$as_ac_Header'}'`
13865 { echo "$as_me:$LINENO: result: $ac_res" >&5
13866echo "${ECHO_T}$ac_res" >&6; }
13867if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013868 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013869#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013870_ACEOF
13871
13872ac_header_dirent=$ac_hdr; break
13873fi
13874
13875done
13876# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13877if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13879echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13880if test "${ac_cv_search_opendir+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013882else
13883 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013884cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013889/* end confdefs.h. */
13890
Reid Spencera773bd52006-08-04 18:18:08 +000013891/* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013894#ifdef __cplusplus
13895extern "C"
13896#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013897char opendir ();
13898int
13899main ()
13900{
Reid Spencera773bd52006-08-04 18:18:08 +000013901return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013902 ;
13903 return 0;
13904}
13905_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013906for ac_lib in '' dir; do
13907 if test -z "$ac_lib"; then
13908 ac_res="none required"
13909 else
13910 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013912 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013913 rm -f conftest.$ac_objext conftest$ac_exeext
13914if { (ac_try="$ac_link"
13915case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13918esac
13919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_link") 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931esac
13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941esac
13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013947 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013948else
13949 echo "$as_me: failed program was:" >&5
13950sed 's/^/| /' conftest.$ac_ext >&5
13951
13952
Reid Spencer59473af2004-12-25 07:31:29 +000013953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013954
Bill Wendlingebcceee2009-04-18 11:20:33 +000013955rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013956 conftest$ac_exeext
13957 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013958 break
Reid Spencer59473af2004-12-25 07:31:29 +000013959fi
Reid Spencera773bd52006-08-04 18:18:08 +000013960done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013961if test "${ac_cv_search_opendir+set}" = set; then
13962 :
Reid Spencera773bd52006-08-04 18:18:08 +000013963else
13964 ac_cv_search_opendir=no
13965fi
13966rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013967LIBS=$ac_func_search_save_LIBS
13968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013969{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13970echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013971ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013972if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013974
13975fi
13976
13977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13979echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13980if test "${ac_cv_search_opendir+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013982else
13983 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013984cat >conftest.$ac_ext <<_ACEOF
13985/* confdefs.h. */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013989/* end confdefs.h. */
13990
Reid Spencera773bd52006-08-04 18:18:08 +000013991/* Override any GCC internal prototype to avoid an error.
13992 Use char because int might match the return type of a GCC
13993 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013994#ifdef __cplusplus
13995extern "C"
13996#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013997char opendir ();
13998int
13999main ()
14000{
Reid Spencera773bd52006-08-04 18:18:08 +000014001return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014002 ;
14003 return 0;
14004}
14005_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014006for ac_lib in '' x; do
14007 if test -z "$ac_lib"; then
14008 ac_res="none required"
14009 else
14010 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014012 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013 rm -f conftest.$ac_objext conftest$ac_exeext
14014if { (ac_try="$ac_link"
14015case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018esac
14019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_link") 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031esac
14032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14041esac
14042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_try") 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014047 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048else
14049 echo "$as_me: failed program was:" >&5
14050sed 's/^/| /' conftest.$ac_ext >&5
14051
14052
Reid Spencer59473af2004-12-25 07:31:29 +000014053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054
Bill Wendlingebcceee2009-04-18 11:20:33 +000014055rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014056 conftest$ac_exeext
14057 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014058 break
Reid Spencer59473af2004-12-25 07:31:29 +000014059fi
Reid Spencera773bd52006-08-04 18:18:08 +000014060done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014061if test "${ac_cv_search_opendir+set}" = set; then
14062 :
Reid Spencera773bd52006-08-04 18:18:08 +000014063else
14064 ac_cv_search_opendir=no
14065fi
14066rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014067LIBS=$ac_func_search_save_LIBS
14068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14070echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014071ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014072if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014074
14075fi
14076
14077fi
14078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014079{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14080echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14081if test "${ac_cv_header_mmap_anon+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014083else
14084 ac_ext=c
14085ac_cpp='$CPP $CPPFLAGS'
14086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088ac_compiler_gnu=$ac_cv_c_compiler_gnu
14089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014095/* end confdefs.h. */
14096#include <sys/mman.h>
14097#include <unistd.h>
14098#include <fcntl.h>
14099int
14100main ()
14101{
14102mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14103 ;
14104 return 0;
14105}
14106_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014107rm -f conftest.$ac_objext
14108if { (ac_try="$ac_compile"
14109case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14112esac
14113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_compile") 2>conftest.er1
14115 ac_status=$?
14116 grep -v '^ *+' conftest.er1 >conftest.err
14117 rm -f conftest.er1
14118 cat conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
14121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14122 { (case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14125esac
14126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_try") 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14135esac
14136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014141 ac_cv_header_mmap_anon=yes
14142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014143 echo "$as_me: failed program was:" >&5
14144sed 's/^/| /' conftest.$ac_ext >&5
14145
14146 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148
Reid Spencera773bd52006-08-04 18:18:08 +000014149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014150 ac_ext=c
14151ac_cpp='$CPP $CPPFLAGS'
14152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154ac_compiler_gnu=$ac_cv_c_compiler_gnu
14155
14156
14157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14159echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014160if test "$ac_cv_header_mmap_anon" = yes; then
14161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162cat >>confdefs.h <<\_ACEOF
14163#define HAVE_MMAP_ANONYMOUS 1
14164_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014165
14166fi
14167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14169echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14170if test "${ac_cv_header_stat_broken+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014172else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014173 cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014178/* end confdefs.h. */
14179#include <sys/types.h>
14180#include <sys/stat.h>
14181
Reid Spencera773bd52006-08-04 18:18:08 +000014182#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014183# if S_ISBLK (S_IFDIR)
14184You lose.
14185# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014186#endif
14187
Reid Spencera773bd52006-08-04 18:18:08 +000014188#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014189# if S_ISBLK (S_IFCHR)
14190You lose.
14191# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014192#endif
14193
Reid Spencera773bd52006-08-04 18:18:08 +000014194#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014195# if S_ISLNK (S_IFREG)
14196You lose.
14197# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014198#endif
14199
Reid Spencera773bd52006-08-04 18:18:08 +000014200#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014201# if S_ISSOCK (S_IFREG)
14202You lose.
14203# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014204#endif
14205
14206_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14208 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014209 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014210else
14211 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014213rm -f conftest*
14214
Reid Spencer59473af2004-12-25 07:31:29 +000014215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014216{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14217echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014218if test $ac_cv_header_stat_broken = yes; then
14219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220cat >>confdefs.h <<\_ACEOF
14221#define STAT_MACROS_BROKEN 1
14222_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014223
14224fi
14225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014226{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14227echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14228if test "${ac_cv_header_sys_wait_h+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231 cat >conftest.$ac_ext <<_ACEOF
14232/* confdefs.h. */
14233_ACEOF
14234cat confdefs.h >>conftest.$ac_ext
14235cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014237#include <sys/types.h>
14238#include <sys/wait.h>
14239#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014240# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014241#endif
14242#ifndef WIFEXITED
14243# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14244#endif
14245
John Criswell7a73b802003-06-30 21:59:07 +000014246int
14247main ()
14248{
14249 int s;
14250 wait (&s);
14251 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14252 ;
14253 return 0;
14254}
14255_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256rm -f conftest.$ac_objext
14257if { (ac_try="$ac_compile"
14258case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14261esac
14262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_compile") 2>conftest.er1
14264 ac_status=$?
14265 grep -v '^ *+' conftest.er1 >conftest.err
14266 rm -f conftest.er1
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274esac
14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284esac
14285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014290 ac_cv_header_sys_wait_h=yes
14291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014292 echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014297
Reid Spencera773bd52006-08-04 18:18:08 +000014298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14301echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014302if test $ac_cv_header_sys_wait_h = yes; then
14303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014304cat >>confdefs.h <<\_ACEOF
14305#define HAVE_SYS_WAIT_H 1
14306_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014307
14308fi
14309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014310{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14311echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14312if test "${ac_cv_header_time+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014315 cat >conftest.$ac_ext <<_ACEOF
14316/* confdefs.h. */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014320/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014321#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014322#include <sys/time.h>
14323#include <time.h>
14324
14325int
14326main ()
14327{
14328if ((struct tm *) 0)
14329return 0;
14330 ;
14331 return 0;
14332}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014333_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334rm -f conftest.$ac_objext
14335if { (ac_try="$ac_compile"
14336case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14339esac
14340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_compile") 2>conftest.er1
14342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349 { (case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14352esac
14353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_try") 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest.$ac_objext'
14359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14362esac
14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_try") 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014368 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014370 echo "$as_me: failed program was:" >&5
14371sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014375
Reid Spencera773bd52006-08-04 18:18:08 +000014376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014378{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14379echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014380if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382cat >>confdefs.h <<\_ACEOF
14383#define TIME_WITH_SYS_TIME 1
14384_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014385
14386fi
14387
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014389
14390
14391
14392
14393
14394
Reid Spencer59473af2004-12-25 07:31:29 +000014395for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014396do
14397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14403fi
14404ac_res=`eval echo '${'$as_ac_Header'}'`
14405 { echo "$as_me:$LINENO: result: $ac_res" >&5
14406echo "${ECHO_T}$ac_res" >&6; }
14407else
14408 # Is the header compilable?
14409{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14411cat >conftest.$ac_ext <<_ACEOF
14412/* confdefs.h. */
14413_ACEOF
14414cat confdefs.h >>conftest.$ac_ext
14415cat >>conftest.$ac_ext <<_ACEOF
14416/* end confdefs.h. */
14417$ac_includes_default
14418#include <$ac_header>
14419_ACEOF
14420rm -f conftest.$ac_objext
14421if { (ac_try="$ac_compile"
14422case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425esac
14426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438esac
14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448esac
14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_header_compiler=yes
14455else
14456 echo "$as_me: failed program was:" >&5
14457sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 ac_header_compiler=no
14460fi
14461
14462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14464echo "${ECHO_T}$ac_header_compiler" >&6; }
14465
14466# Is the header present?
14467{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14469cat >conftest.$ac_ext <<_ACEOF
14470/* confdefs.h. */
14471_ACEOF
14472cat confdefs.h >>conftest.$ac_ext
14473cat >>conftest.$ac_ext <<_ACEOF
14474/* end confdefs.h. */
14475#include <$ac_header>
14476_ACEOF
14477if { (ac_try="$ac_cpp conftest.$ac_ext"
14478case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481esac
14482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } >/dev/null; then
14490 if test -s conftest.err; then
14491 ac_cpp_err=$ac_c_preproc_warn_flag
14492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14493 else
14494 ac_cpp_err=
14495 fi
14496else
14497 ac_cpp_err=yes
14498fi
14499if test -z "$ac_cpp_err"; then
14500 ac_header_preproc=yes
14501else
14502 echo "$as_me: failed program was:" >&5
14503sed 's/^/| /' conftest.$ac_ext >&5
14504
14505 ac_header_preproc=no
14506fi
14507
14508rm -f conftest.err conftest.$ac_ext
14509{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14510echo "${ECHO_T}$ac_header_preproc" >&6; }
14511
14512# So? What about this header?
14513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14514 yes:no: )
14515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14519 ac_header_preproc=yes
14520 ;;
14521 no:yes:* )
14522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14525echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14529echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14534 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014535## ------------------------------------ ##
14536## Report this to http://llvm.org/bugs/ ##
14537## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014538_ASBOX
14539 ) | sed "s/^/$as_me: WARNING: /" >&2
14540 ;;
14541esac
14542{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546else
14547 eval "$as_ac_Header=\$ac_header_preproc"
14548fi
14549ac_res=`eval echo '${'$as_ac_Header'}'`
14550 { echo "$as_me:$LINENO: result: $ac_res" >&5
14551echo "${ECHO_T}$ac_res" >&6; }
14552
14553fi
14554if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014555 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014557_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014558
14559fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014560
Reid Spencer59473af2004-12-25 07:31:29 +000014561done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563
14564
14565
14566
14567
14568
Douglas Gregor071d73d2009-05-18 17:21:34 +000014569for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014570do
14571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577fi
14578ac_res=`eval echo '${'$as_ac_Header'}'`
14579 { echo "$as_me:$LINENO: result: $ac_res" >&5
14580echo "${ECHO_T}$ac_res" >&6; }
14581else
14582 # Is the header compilable?
14583{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14585cat >conftest.$ac_ext <<_ACEOF
14586/* confdefs.h. */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h. */
14591$ac_includes_default
14592#include <$ac_header>
14593_ACEOF
14594rm -f conftest.$ac_objext
14595if { (ac_try="$ac_compile"
14596case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14599esac
14600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_compile") 2>conftest.er1
14602 ac_status=$?
14603 grep -v '^ *+' conftest.er1 >conftest.err
14604 rm -f conftest.er1
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609 { (case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612esac
14613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_try") 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try='test -s conftest.$ac_objext'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622esac
14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_header_compiler=yes
14629else
14630 echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633 ac_header_compiler=no
14634fi
14635
14636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14638echo "${ECHO_T}$ac_header_compiler" >&6; }
14639
14640# Is the header present?
14641{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14643cat >conftest.$ac_ext <<_ACEOF
14644/* confdefs.h. */
14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */
14649#include <$ac_header>
14650_ACEOF
14651if { (ac_try="$ac_cpp conftest.$ac_ext"
14652case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14655esac
14656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658 ac_status=$?
14659 grep -v '^ *+' conftest.er1 >conftest.err
14660 rm -f conftest.er1
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } >/dev/null; then
14664 if test -s conftest.err; then
14665 ac_cpp_err=$ac_c_preproc_warn_flag
14666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14667 else
14668 ac_cpp_err=
14669 fi
14670else
14671 ac_cpp_err=yes
14672fi
14673if test -z "$ac_cpp_err"; then
14674 ac_header_preproc=yes
14675else
14676 echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
14679 ac_header_preproc=no
14680fi
14681
14682rm -f conftest.err conftest.$ac_ext
14683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684echo "${ECHO_T}$ac_header_preproc" >&6; }
14685
14686# So? What about this header?
14687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14688 yes:no: )
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14693 ac_header_preproc=yes
14694 ;;
14695 no:yes:* )
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14699echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14703echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14708 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014709## ------------------------------------ ##
14710## Report this to http://llvm.org/bugs/ ##
14711## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014712_ASBOX
14713 ) | sed "s/^/$as_me: WARNING: /" >&2
14714 ;;
14715esac
14716{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
14721 eval "$as_ac_Header=\$ac_header_preproc"
14722fi
14723ac_res=`eval echo '${'$as_ac_Header'}'`
14724 { echo "$as_me:$LINENO: result: $ac_res" >&5
14725echo "${ECHO_T}$ac_res" >&6; }
14726
14727fi
14728if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014729 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014731_ACEOF
14732
14733fi
14734
14735done
14736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014737
14738
Douglas Gregor071d73d2009-05-18 17:21:34 +000014739for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014740do
14741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747fi
14748ac_res=`eval echo '${'$as_ac_Header'}'`
14749 { echo "$as_me:$LINENO: result: $ac_res" >&5
14750echo "${ECHO_T}$ac_res" >&6; }
14751else
14752 # Is the header compilable?
14753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14755cat >conftest.$ac_ext <<_ACEOF
14756/* confdefs.h. */
14757_ACEOF
14758cat confdefs.h >>conftest.$ac_ext
14759cat >>conftest.$ac_ext <<_ACEOF
14760/* end confdefs.h. */
14761$ac_includes_default
14762#include <$ac_header>
14763_ACEOF
14764rm -f conftest.$ac_objext
14765if { (ac_try="$ac_compile"
14766case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769esac
14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_compile") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792esac
14793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_header_compiler=yes
14799else
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803 ac_header_compiler=no
14804fi
14805
14806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808echo "${ECHO_T}$ac_header_compiler" >&6; }
14809
14810# Is the header present?
14811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14813cat >conftest.$ac_ext <<_ACEOF
14814/* confdefs.h. */
14815_ACEOF
14816cat confdefs.h >>conftest.$ac_ext
14817cat >>conftest.$ac_ext <<_ACEOF
14818/* end confdefs.h. */
14819#include <$ac_header>
14820_ACEOF
14821if { (ac_try="$ac_cpp conftest.$ac_ext"
14822case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825esac
14826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev/null; then
14834 if test -s conftest.err; then
14835 ac_cpp_err=$ac_c_preproc_warn_flag
14836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14837 else
14838 ac_cpp_err=
14839 fi
14840else
14841 ac_cpp_err=yes
14842fi
14843if test -z "$ac_cpp_err"; then
14844 ac_header_preproc=yes
14845else
14846 echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_header_preproc=no
14850fi
14851
14852rm -f conftest.err conftest.$ac_ext
14853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854echo "${ECHO_T}$ac_header_preproc" >&6; }
14855
14856# So? What about this header?
14857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858 yes:no: )
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863 ac_header_preproc=yes
14864 ;;
14865 no:yes:* )
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14878 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014879## ------------------------------------ ##
14880## Report this to http://llvm.org/bugs/ ##
14881## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014882_ASBOX
14883 ) | sed "s/^/$as_me: WARNING: /" >&2
14884 ;;
14885esac
14886{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14890else
14891 eval "$as_ac_Header=\$ac_header_preproc"
14892fi
14893ac_res=`eval echo '${'$as_ac_Header'}'`
14894 { echo "$as_me:$LINENO: result: $ac_res" >&5
14895echo "${ECHO_T}$ac_res" >&6; }
14896
14897fi
14898if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014899 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014901_ACEOF
14902
14903fi
14904
14905done
Reid Spencer59473af2004-12-25 07:31:29 +000014906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014907
14908
14909
14910
Daniel Dunbar3e462932011-02-03 02:40:02 +000014911
14912for 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 +000014913do
14914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920fi
14921ac_res=`eval echo '${'$as_ac_Header'}'`
14922 { echo "$as_me:$LINENO: result: $ac_res" >&5
14923echo "${ECHO_T}$ac_res" >&6; }
14924else
14925 # Is the header compilable?
14926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14928cat >conftest.$ac_ext <<_ACEOF
14929/* confdefs.h. */
14930_ACEOF
14931cat confdefs.h >>conftest.$ac_ext
14932cat >>conftest.$ac_ext <<_ACEOF
14933/* end confdefs.h. */
14934$ac_includes_default
14935#include <$ac_header>
14936_ACEOF
14937rm -f conftest.$ac_objext
14938if { (ac_try="$ac_compile"
14939case "(($ac_try" in
14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941 *) ac_try_echo=$ac_try;;
14942esac
14943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944 (eval "$ac_compile") 2>conftest.er1
14945 ac_status=$?
14946 grep -v '^ *+' conftest.er1 >conftest.err
14947 rm -f conftest.er1
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14952 { (case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14955esac
14956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_try") 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; } &&
14961 { ac_try='test -s conftest.$ac_objext'
14962 { (case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14965esac
14966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_try") 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_header_compiler=yes
14972else
14973 echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
14975
14976 ac_header_compiler=no
14977fi
14978
14979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14981echo "${ECHO_T}$ac_header_compiler" >&6; }
14982
14983# Is the header present?
14984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14986cat >conftest.$ac_ext <<_ACEOF
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992#include <$ac_header>
14993_ACEOF
14994if { (ac_try="$ac_cpp conftest.$ac_ext"
14995case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998esac
14999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } >/dev/null; then
15007 if test -s conftest.err; then
15008 ac_cpp_err=$ac_c_preproc_warn_flag
15009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15010 else
15011 ac_cpp_err=
15012 fi
15013else
15014 ac_cpp_err=yes
15015fi
15016if test -z "$ac_cpp_err"; then
15017 ac_header_preproc=yes
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_header_preproc=no
15023fi
15024
15025rm -f conftest.err conftest.$ac_ext
15026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027echo "${ECHO_T}$ac_header_preproc" >&6; }
15028
15029# So? What about this header?
15030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15031 yes:no: )
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15036 ac_header_preproc=yes
15037 ;;
15038 no:yes:* )
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15051 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015052## ------------------------------------ ##
15053## Report this to http://llvm.org/bugs/ ##
15054## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015055_ASBOX
15056 ) | sed "s/^/$as_me: WARNING: /" >&2
15057 ;;
15058esac
15059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063else
15064 eval "$as_ac_Header=\$ac_header_preproc"
15065fi
15066ac_res=`eval echo '${'$as_ac_Header'}'`
15067 { echo "$as_me:$LINENO: result: $ac_res" >&5
15068echo "${ECHO_T}$ac_res" >&6; }
15069
15070fi
15071if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015072 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015074_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015075
15076fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015077
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015078done
15079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015080
15081
15082
15083
Douglas Gregor01746742009-05-11 18:05:52 +000015084for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015085do
15086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15091 echo $ECHO_N "(cached) $ECHO_C" >&6
15092fi
15093ac_res=`eval echo '${'$as_ac_Header'}'`
15094 { echo "$as_me:$LINENO: result: $ac_res" >&5
15095echo "${ECHO_T}$ac_res" >&6; }
15096else
15097 # Is the header compilable?
15098{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15100cat >conftest.$ac_ext <<_ACEOF
15101/* confdefs.h. */
15102_ACEOF
15103cat confdefs.h >>conftest.$ac_ext
15104cat >>conftest.$ac_ext <<_ACEOF
15105/* end confdefs.h. */
15106$ac_includes_default
15107#include <$ac_header>
15108_ACEOF
15109rm -f conftest.$ac_objext
15110if { (ac_try="$ac_compile"
15111case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114esac
15115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_compile") 2>conftest.er1
15117 ac_status=$?
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15124 { (case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127esac
15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_try") 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; } &&
15133 { ac_try='test -s conftest.$ac_objext'
15134 { (case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_try") 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 ac_header_compiler=yes
15144else
15145 echo "$as_me: failed program was:" >&5
15146sed 's/^/| /' conftest.$ac_ext >&5
15147
15148 ac_header_compiler=no
15149fi
15150
15151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15153echo "${ECHO_T}$ac_header_compiler" >&6; }
15154
15155# Is the header present?
15156{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15158cat >conftest.$ac_ext <<_ACEOF
15159/* confdefs.h. */
15160_ACEOF
15161cat confdefs.h >>conftest.$ac_ext
15162cat >>conftest.$ac_ext <<_ACEOF
15163/* end confdefs.h. */
15164#include <$ac_header>
15165_ACEOF
15166if { (ac_try="$ac_cpp conftest.$ac_ext"
15167case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15170esac
15171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15173 ac_status=$?
15174 grep -v '^ *+' conftest.er1 >conftest.err
15175 rm -f conftest.er1
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } >/dev/null; then
15179 if test -s conftest.err; then
15180 ac_cpp_err=$ac_c_preproc_warn_flag
15181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15182 else
15183 ac_cpp_err=
15184 fi
15185else
15186 ac_cpp_err=yes
15187fi
15188if test -z "$ac_cpp_err"; then
15189 ac_header_preproc=yes
15190else
15191 echo "$as_me: failed program was:" >&5
15192sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 ac_header_preproc=no
15195fi
15196
15197rm -f conftest.err conftest.$ac_ext
15198{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15199echo "${ECHO_T}$ac_header_preproc" >&6; }
15200
15201# So? What about this header?
15202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15203 yes:no: )
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15208 ac_header_preproc=yes
15209 ;;
15210 no:yes:* )
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15223 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015224## ------------------------------------ ##
15225## Report this to http://llvm.org/bugs/ ##
15226## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015227_ASBOX
15228 ) | sed "s/^/$as_me: WARNING: /" >&2
15229 ;;
15230esac
15231{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235else
15236 eval "$as_ac_Header=\$ac_header_preproc"
15237fi
15238ac_res=`eval echo '${'$as_ac_Header'}'`
15239 { echo "$as_me:$LINENO: result: $ac_res" >&5
15240echo "${ECHO_T}$ac_res" >&6; }
15241
15242fi
15243if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015246_ACEOF
15247
15248fi
15249
15250done
15251
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015252
15253for ac_header in valgrind/valgrind.h
15254do
15255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15261fi
15262ac_res=`eval echo '${'$as_ac_Header'}'`
15263 { echo "$as_me:$LINENO: result: $ac_res" >&5
15264echo "${ECHO_T}$ac_res" >&6; }
15265else
15266 # Is the header compilable?
15267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15269cat >conftest.$ac_ext <<_ACEOF
15270/* confdefs.h. */
15271_ACEOF
15272cat confdefs.h >>conftest.$ac_ext
15273cat >>conftest.$ac_ext <<_ACEOF
15274/* end confdefs.h. */
15275$ac_includes_default
15276#include <$ac_header>
15277_ACEOF
15278rm -f conftest.$ac_objext
15279if { (ac_try="$ac_compile"
15280case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283esac
15284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296esac
15297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306esac
15307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_header_compiler=yes
15313else
15314 echo "$as_me: failed program was:" >&5
15315sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 ac_header_compiler=no
15318fi
15319
15320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15322echo "${ECHO_T}$ac_header_compiler" >&6; }
15323
15324# Is the header present?
15325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15327cat >conftest.$ac_ext <<_ACEOF
15328/* confdefs.h. */
15329_ACEOF
15330cat confdefs.h >>conftest.$ac_ext
15331cat >>conftest.$ac_ext <<_ACEOF
15332/* end confdefs.h. */
15333#include <$ac_header>
15334_ACEOF
15335if { (ac_try="$ac_cpp conftest.$ac_ext"
15336case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339esac
15340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15342 ac_status=$?
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } >/dev/null; then
15348 if test -s conftest.err; then
15349 ac_cpp_err=$ac_c_preproc_warn_flag
15350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15351 else
15352 ac_cpp_err=
15353 fi
15354else
15355 ac_cpp_err=yes
15356fi
15357if test -z "$ac_cpp_err"; then
15358 ac_header_preproc=yes
15359else
15360 echo "$as_me: failed program was:" >&5
15361sed 's/^/| /' conftest.$ac_ext >&5
15362
15363 ac_header_preproc=no
15364fi
15365
15366rm -f conftest.err conftest.$ac_ext
15367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15368echo "${ECHO_T}$ac_header_preproc" >&6; }
15369
15370# So? What about this header?
15371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15372 yes:no: )
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15377 ac_header_preproc=yes
15378 ;;
15379 no:yes:* )
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15392 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015393## ------------------------------------ ##
15394## Report this to http://llvm.org/bugs/ ##
15395## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015396_ASBOX
15397 ) | sed "s/^/$as_me: WARNING: /" >&2
15398 ;;
15399esac
15400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15404else
15405 eval "$as_ac_Header=\$ac_header_preproc"
15406fi
15407ac_res=`eval echo '${'$as_ac_Header'}'`
15408 { echo "$as_me:$LINENO: result: $ac_res" >&5
15409echo "${ECHO_T}$ac_res" >&6; }
15410
15411fi
15412if test `eval echo '${'$as_ac_Header'}'` = yes; then
15413 cat >>confdefs.h <<_ACEOF
15414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15415_ACEOF
15416
15417fi
15418
15419done
15420
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015421
15422for ac_header in fenv.h
15423do
15424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429 echo $ECHO_N "(cached) $ECHO_C" >&6
15430fi
15431ac_res=`eval echo '${'$as_ac_Header'}'`
15432 { echo "$as_me:$LINENO: result: $ac_res" >&5
15433echo "${ECHO_T}$ac_res" >&6; }
15434else
15435 # Is the header compilable?
15436{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15438cat >conftest.$ac_ext <<_ACEOF
15439/* confdefs.h. */
15440_ACEOF
15441cat confdefs.h >>conftest.$ac_ext
15442cat >>conftest.$ac_ext <<_ACEOF
15443/* end confdefs.h. */
15444$ac_includes_default
15445#include <$ac_header>
15446_ACEOF
15447rm -f conftest.$ac_objext
15448if { (ac_try="$ac_compile"
15449case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452esac
15453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_compile") 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15462 { (case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15465esac
15466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_try") 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475esac
15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_try") 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_header_compiler=yes
15482else
15483 echo "$as_me: failed program was:" >&5
15484sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 ac_header_compiler=no
15487fi
15488
15489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15491echo "${ECHO_T}$ac_header_compiler" >&6; }
15492
15493# Is the header present?
15494{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15496cat >conftest.$ac_ext <<_ACEOF
15497/* confdefs.h. */
15498_ACEOF
15499cat confdefs.h >>conftest.$ac_ext
15500cat >>conftest.$ac_ext <<_ACEOF
15501/* end confdefs.h. */
15502#include <$ac_header>
15503_ACEOF
15504if { (ac_try="$ac_cpp conftest.$ac_ext"
15505case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508esac
15509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15511 ac_status=$?
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } >/dev/null; then
15517 if test -s conftest.err; then
15518 ac_cpp_err=$ac_c_preproc_warn_flag
15519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15520 else
15521 ac_cpp_err=
15522 fi
15523else
15524 ac_cpp_err=yes
15525fi
15526if test -z "$ac_cpp_err"; then
15527 ac_header_preproc=yes
15528else
15529 echo "$as_me: failed program was:" >&5
15530sed 's/^/| /' conftest.$ac_ext >&5
15531
15532 ac_header_preproc=no
15533fi
15534
15535rm -f conftest.err conftest.$ac_ext
15536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15537echo "${ECHO_T}$ac_header_preproc" >&6; }
15538
15539# So? What about this header?
15540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15541 yes:no: )
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15546 ac_header_preproc=yes
15547 ;;
15548 no:yes:* )
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15552echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15556echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15561 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015562## ------------------------------------ ##
15563## Report this to http://llvm.org/bugs/ ##
15564## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015565_ASBOX
15566 ) | sed "s/^/$as_me: WARNING: /" >&2
15567 ;;
15568esac
15569{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15573else
15574 eval "$as_ac_Header=\$ac_header_preproc"
15575fi
15576ac_res=`eval echo '${'$as_ac_Header'}'`
15577 { echo "$as_me:$LINENO: result: $ac_res" >&5
15578echo "${ECHO_T}$ac_res" >&6; }
15579
15580fi
15581if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582 cat >>confdefs.h <<_ACEOF
15583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584_ACEOF
15585
15586fi
15587
15588done
15589
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015590if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015591
15592for ac_header in pthread.h
15593do
15594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600fi
15601ac_res=`eval echo '${'$as_ac_Header'}'`
15602 { echo "$as_me:$LINENO: result: $ac_res" >&5
15603echo "${ECHO_T}$ac_res" >&6; }
15604else
15605 # Is the header compilable?
15606{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15608cat >conftest.$ac_ext <<_ACEOF
15609/* confdefs.h. */
15610_ACEOF
15611cat confdefs.h >>conftest.$ac_ext
15612cat >>conftest.$ac_ext <<_ACEOF
15613/* end confdefs.h. */
15614$ac_includes_default
15615#include <$ac_header>
15616_ACEOF
15617rm -f conftest.$ac_objext
15618if { (ac_try="$ac_compile"
15619case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_compile") 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635esac
15636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest.$ac_objext'
15642 { (case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_try") 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_header_compiler=yes
15652else
15653 echo "$as_me: failed program was:" >&5
15654sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 ac_header_compiler=no
15657fi
15658
15659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661echo "${ECHO_T}$ac_header_compiler" >&6; }
15662
15663# Is the header present?
15664{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15666cat >conftest.$ac_ext <<_ACEOF
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
15672#include <$ac_header>
15673_ACEOF
15674if { (ac_try="$ac_cpp conftest.$ac_ext"
15675case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15678esac
15679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15681 ac_status=$?
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } >/dev/null; then
15687 if test -s conftest.err; then
15688 ac_cpp_err=$ac_c_preproc_warn_flag
15689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15690 else
15691 ac_cpp_err=
15692 fi
15693else
15694 ac_cpp_err=yes
15695fi
15696if test -z "$ac_cpp_err"; then
15697 ac_header_preproc=yes
15698else
15699 echo "$as_me: failed program was:" >&5
15700sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_header_preproc=no
15703fi
15704
15705rm -f conftest.err conftest.$ac_ext
15706{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15707echo "${ECHO_T}$ac_header_preproc" >&6; }
15708
15709# So? What about this header?
15710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15711 yes:no: )
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15716 ac_header_preproc=yes
15717 ;;
15718 no:yes:* )
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15731 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015732## ------------------------------------ ##
15733## Report this to http://llvm.org/bugs/ ##
15734## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015735_ASBOX
15736 ) | sed "s/^/$as_me: WARNING: /" >&2
15737 ;;
15738esac
15739{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743else
15744 eval "$as_ac_Header=\$ac_header_preproc"
15745fi
15746ac_res=`eval echo '${'$as_ac_Header'}'`
15747 { echo "$as_me:$LINENO: result: $ac_res" >&5
15748echo "${ECHO_T}$ac_res" >&6; }
15749
15750fi
15751if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015752 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015754_ACEOF
15755 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015756
15757else
15758 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015759
15760fi
15761
Reid Spencerbe3e4192007-08-17 05:45:26 +000015762done
Reid Spencer1000b732006-12-01 00:37:14 +000015763
15764else
15765 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015766
15767fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015768
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015769if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015770
15771
15772for ac_header in ffi.h ffi/ffi.h
15773do
15774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780fi
15781ac_res=`eval echo '${'$as_ac_Header'}'`
15782 { echo "$as_me:$LINENO: result: $ac_res" >&5
15783echo "${ECHO_T}$ac_res" >&6; }
15784else
15785 # Is the header compilable?
15786{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15788cat >conftest.$ac_ext <<_ACEOF
15789/* confdefs.h. */
15790_ACEOF
15791cat confdefs.h >>conftest.$ac_ext
15792cat >>conftest.$ac_ext <<_ACEOF
15793/* end confdefs.h. */
15794$ac_includes_default
15795#include <$ac_header>
15796_ACEOF
15797rm -f conftest.$ac_objext
15798if { (ac_try="$ac_compile"
15799case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15802esac
15803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804 (eval "$ac_compile") 2>conftest.er1
15805 ac_status=$?
15806 grep -v '^ *+' conftest.er1 >conftest.err
15807 rm -f conftest.er1
15808 cat conftest.err >&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15812 { (case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15815esac
15816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_try") 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try='test -s conftest.$ac_objext'
15822 { (case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15825esac
15826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_try") 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 ac_header_compiler=yes
15832else
15833 echo "$as_me: failed program was:" >&5
15834sed 's/^/| /' conftest.$ac_ext >&5
15835
15836 ac_header_compiler=no
15837fi
15838
15839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15841echo "${ECHO_T}$ac_header_compiler" >&6; }
15842
15843# Is the header present?
15844{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15845echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15846cat >conftest.$ac_ext <<_ACEOF
15847/* confdefs.h. */
15848_ACEOF
15849cat confdefs.h >>conftest.$ac_ext
15850cat >>conftest.$ac_ext <<_ACEOF
15851/* end confdefs.h. */
15852#include <$ac_header>
15853_ACEOF
15854if { (ac_try="$ac_cpp conftest.$ac_ext"
15855case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15858esac
15859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15861 ac_status=$?
15862 grep -v '^ *+' conftest.er1 >conftest.err
15863 rm -f conftest.er1
15864 cat conftest.err >&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } >/dev/null; then
15867 if test -s conftest.err; then
15868 ac_cpp_err=$ac_c_preproc_warn_flag
15869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15870 else
15871 ac_cpp_err=
15872 fi
15873else
15874 ac_cpp_err=yes
15875fi
15876if test -z "$ac_cpp_err"; then
15877 ac_header_preproc=yes
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882 ac_header_preproc=no
15883fi
15884
15885rm -f conftest.err conftest.$ac_ext
15886{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15887echo "${ECHO_T}$ac_header_preproc" >&6; }
15888
15889# So? What about this header?
15890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15891 yes:no: )
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15896 ac_header_preproc=yes
15897 ;;
15898 no:yes:* )
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15904echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15906echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15911 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015912## ------------------------------------ ##
15913## Report this to http://llvm.org/bugs/ ##
15914## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015915_ASBOX
15916 ) | sed "s/^/$as_me: WARNING: /" >&2
15917 ;;
15918esac
15919{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923else
15924 eval "$as_ac_Header=\$ac_header_preproc"
15925fi
15926ac_res=`eval echo '${'$as_ac_Header'}'`
15927 { echo "$as_me:$LINENO: result: $ac_res" >&5
15928echo "${ECHO_T}$ac_res" >&6; }
15929
15930fi
15931if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015932 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015934_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015935
15936fi
15937
15938done
15939
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015940fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015941
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015942
Eric Christopher654dee42010-06-22 21:01:04 +000015943for ac_header in CrashReporterClient.h
15944do
15945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951fi
15952ac_res=`eval echo '${'$as_ac_Header'}'`
15953 { echo "$as_me:$LINENO: result: $ac_res" >&5
15954echo "${ECHO_T}$ac_res" >&6; }
15955else
15956 # Is the header compilable?
15957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15959cat >conftest.$ac_ext <<_ACEOF
15960/* confdefs.h. */
15961_ACEOF
15962cat confdefs.h >>conftest.$ac_ext
15963cat >>conftest.$ac_ext <<_ACEOF
15964/* end confdefs.h. */
15965$ac_includes_default
15966#include <$ac_header>
15967_ACEOF
15968rm -f conftest.$ac_objext
15969if { (ac_try="$ac_compile"
15970case "(($ac_try" in
15971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972 *) ac_try_echo=$ac_try;;
15973esac
15974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15975 (eval "$ac_compile") 2>conftest.er1
15976 ac_status=$?
15977 grep -v '^ *+' conftest.er1 >conftest.err
15978 rm -f conftest.er1
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15983 { (case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15986esac
15987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_try") 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try='test -s conftest.$ac_objext'
15993 { (case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15996esac
15997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_try") 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002 ac_header_compiler=yes
16003else
16004 echo "$as_me: failed program was:" >&5
16005sed 's/^/| /' conftest.$ac_ext >&5
16006
16007 ac_header_compiler=no
16008fi
16009
16010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16012echo "${ECHO_T}$ac_header_compiler" >&6; }
16013
16014# Is the header present?
16015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16017cat >conftest.$ac_ext <<_ACEOF
16018/* confdefs.h. */
16019_ACEOF
16020cat confdefs.h >>conftest.$ac_ext
16021cat >>conftest.$ac_ext <<_ACEOF
16022/* end confdefs.h. */
16023#include <$ac_header>
16024_ACEOF
16025if { (ac_try="$ac_cpp conftest.$ac_ext"
16026case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } >/dev/null; then
16038 if test -s conftest.err; then
16039 ac_cpp_err=$ac_c_preproc_warn_flag
16040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16041 else
16042 ac_cpp_err=
16043 fi
16044else
16045 ac_cpp_err=yes
16046fi
16047if test -z "$ac_cpp_err"; then
16048 ac_header_preproc=yes
16049else
16050 echo "$as_me: failed program was:" >&5
16051sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 ac_header_preproc=no
16054fi
16055
16056rm -f conftest.err conftest.$ac_ext
16057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16058echo "${ECHO_T}$ac_header_preproc" >&6; }
16059
16060# So? What about this header?
16061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16062 yes:no: )
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16067 ac_header_preproc=yes
16068 ;;
16069 no:yes:* )
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16082 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016083## ------------------------------------ ##
16084## Report this to http://llvm.org/bugs/ ##
16085## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016086_ASBOX
16087 ) | sed "s/^/$as_me: WARNING: /" >&2
16088 ;;
16089esac
16090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16094else
16095 eval "$as_ac_Header=\$ac_header_preproc"
16096fi
16097ac_res=`eval echo '${'$as_ac_Header'}'`
16098 { echo "$as_me:$LINENO: result: $ac_res" >&5
16099echo "${ECHO_T}$ac_res" >&6; }
16100
16101fi
16102if test `eval echo '${'$as_ac_Header'}'` = yes; then
16103 cat >>confdefs.h <<_ACEOF
16104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16105_ACEOF
16106
16107fi
16108
16109done
16110
16111
Eric Christopher51e57132010-12-07 02:05:42 +000016112{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16113echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016114cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016120extern const char *__crashreporter_info__;
16121 int main() {
16122 __crashreporter_info__ = "test";
16123 return 0;
16124 }
Eric Christopher481d4022010-12-03 07:45:22 +000016125
Eric Christopher481d4022010-12-03 07:45:22 +000016126_ACEOF
16127rm -f conftest.$ac_objext conftest$ac_exeext
16128if { (ac_try="$ac_link"
16129case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16132esac
16133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_link") 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145esac
16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; } &&
16151 { ac_try='test -s conftest$ac_exeext'
16152 { (case "(($ac_try" in
16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154 *) ac_try_echo=$ac_try;;
16155esac
16156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157 (eval "$ac_try") 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016161 { echo "$as_me:$LINENO: result: yes" >&5
16162echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016163
16164cat >>confdefs.h <<\_ACEOF
16165#define HAVE_CRASHREPORTER_INFO 1
16166_ACEOF
16167
Eric Christopher51e57132010-12-07 02:05:42 +000016168else
16169 echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172 { echo "$as_me:$LINENO: result: no" >&5
16173echo "${ECHO_T}no" >&6; }
16174
16175cat >>confdefs.h <<\_ACEOF
16176#define HAVE_CRASHREPORTER_INFO 0
16177_ACEOF
16178
Eric Christopher481d4022010-12-03 07:45:22 +000016179fi
Eric Christopher654dee42010-06-22 21:01:04 +000016180
Eric Christopher51e57132010-12-07 02:05:42 +000016181rm -f core conftest.err conftest.$ac_objext \
16182 conftest$ac_exeext conftest.$ac_ext
16183
16184
Reid Spencer8085cff2005-01-16 02:58:39 +000016185
Torok Edwin871384f2010-01-26 08:50:50 +000016186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016187 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16188echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16189if test "${ac_cv_huge_val_sanity+set}" = set; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016191else
16192
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016193 ac_ext=cpp
16194ac_cpp='$CXXCPP $CPPFLAGS'
16195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016198
Eric Christopherc7718502010-03-02 05:06:54 +000016199 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016200 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016201 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016202 ac_cv_huge_val_sanity=yes
16203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016204 cat >conftest.$ac_ext <<_ACEOF
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016209/* end confdefs.h. */
16210#include <math.h>
16211int
16212main ()
16213{
16214double x = HUGE_VAL; return x != x;
16215 ;
16216 return 0;
16217}
16218_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016219rm -f conftest$ac_exeext
16220if { (ac_try="$ac_link"
16221case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224esac
16225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016239 ac_cv_huge_val_sanity=yes
16240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016241 echo "$as_me: program exited with status $ac_status" >&5
16242echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245( exit $ac_status )
16246ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016248rm -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 +000016249fi
16250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016251
Eric Christopherc7718502010-03-02 05:06:54 +000016252 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016253 ac_ext=c
16254ac_cpp='$CPP $CPPFLAGS'
16255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16257ac_compiler_gnu=$ac_cv_c_compiler_gnu
16258
16259
16260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016261{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16262echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016263 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16264
16265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016266{ echo "$as_me:$LINENO: checking for pid_t" >&5
16267echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16268if test "${ac_cv_type_pid_t+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
16271 cat >conftest.$ac_ext <<_ACEOF
16272/* confdefs.h. */
16273_ACEOF
16274cat confdefs.h >>conftest.$ac_ext
16275cat >>conftest.$ac_ext <<_ACEOF
16276/* end confdefs.h. */
16277$ac_includes_default
16278typedef pid_t ac__type_new_;
16279int
16280main ()
16281{
16282if ((ac__type_new_ *) 0)
16283 return 0;
16284if (sizeof (ac__type_new_))
16285 return 0;
16286 ;
16287 return 0;
16288}
16289_ACEOF
16290rm -f conftest.$ac_objext
16291if { (ac_try="$ac_compile"
16292case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295esac
16296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318esac
16319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_cv_type_pid_t=yes
16325else
16326 echo "$as_me: failed program was:" >&5
16327sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016329 ac_cv_type_pid_t=no
16330fi
16331
16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333fi
16334{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16335echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16336if test $ac_cv_type_pid_t = yes; then
16337 :
John Criswell7a73b802003-06-30 21:59:07 +000016338else
16339
16340cat >>confdefs.h <<_ACEOF
16341#define pid_t int
16342_ACEOF
16343
16344fi
16345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016346{ echo "$as_me:$LINENO: checking for size_t" >&5
16347echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16348if test "${ac_cv_type_size_t+set}" = set; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16350else
16351 cat >conftest.$ac_ext <<_ACEOF
16352/* confdefs.h. */
16353_ACEOF
16354cat confdefs.h >>conftest.$ac_ext
16355cat >>conftest.$ac_ext <<_ACEOF
16356/* end confdefs.h. */
16357$ac_includes_default
16358typedef size_t ac__type_new_;
16359int
16360main ()
16361{
16362if ((ac__type_new_ *) 0)
16363 return 0;
16364if (sizeof (ac__type_new_))
16365 return 0;
16366 ;
16367 return 0;
16368}
16369_ACEOF
16370rm -f conftest.$ac_objext
16371if { (ac_try="$ac_compile"
16372case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_compile") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16385 { (case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16388esac
16389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_try") 2>&5
16391 ac_status=$?
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; } &&
16394 { ac_try='test -s conftest.$ac_objext'
16395 { (case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16398esac
16399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_try") 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 ac_cv_type_size_t=yes
16405else
16406 echo "$as_me: failed program was:" >&5
16407sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016409 ac_cv_type_size_t=no
16410fi
16411
16412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413fi
16414{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16415echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16416if test $ac_cv_type_size_t = yes; then
16417 :
John Criswell7a73b802003-06-30 21:59:07 +000016418else
16419
16420cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016421#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016422_ACEOF
16423
16424fi
16425
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016426
16427cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016428#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016429_ACEOF
16430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016431{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16432echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16433if test "${ac_cv_struct_tm+set}" = set; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016436 cat >conftest.$ac_ext <<_ACEOF
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016441/* end confdefs.h. */
16442#include <sys/types.h>
16443#include <time.h>
16444
16445int
16446main ()
16447{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016448struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016449 ;
16450 return 0;
16451}
16452_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016453rm -f conftest.$ac_objext
16454if { (ac_try="$ac_compile"
16455case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458esac
16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_compile") 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471esac
16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481esac
16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016487 ac_cv_struct_tm=time.h
16488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016493fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016494
Reid Spencera773bd52006-08-04 18:18:08 +000016495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016497{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16498echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016499if test $ac_cv_struct_tm = sys/time.h; then
16500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016501cat >>confdefs.h <<\_ACEOF
16502#define TM_IN_SYS_TIME 1
16503_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016504
16505fi
16506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016507{ echo "$as_me:$LINENO: checking for int64_t" >&5
16508echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16509if test "${ac_cv_type_int64_t+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511else
16512 cat >conftest.$ac_ext <<_ACEOF
16513/* confdefs.h. */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h. */
16518$ac_includes_default
16519typedef int64_t ac__type_new_;
16520int
16521main ()
16522{
16523if ((ac__type_new_ *) 0)
16524 return 0;
16525if (sizeof (ac__type_new_))
16526 return 0;
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (ac_try="$ac_compile"
16533case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16536esac
16537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_compile") 2>conftest.er1
16539 ac_status=$?
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
16545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549esac
16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest.$ac_objext'
16556 { (case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559esac
16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_try") 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_type_int64_t=yes
16566else
16567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
16569
16570 ac_cv_type_int64_t=no
16571fi
16572
16573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16574fi
16575{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16576echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16577if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016578
16579cat >>confdefs.h <<_ACEOF
16580#define HAVE_INT64_T 1
16581_ACEOF
16582
16583
16584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016585 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16586echo "$as_me: error: Type int64_t required but not found" >&2;}
16587 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016588fi
16589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016590{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16591echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16592if test "${ac_cv_type_uint64_t+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595 cat >conftest.$ac_ext <<_ACEOF
16596/* confdefs.h. */
16597_ACEOF
16598cat confdefs.h >>conftest.$ac_ext
16599cat >>conftest.$ac_ext <<_ACEOF
16600/* end confdefs.h. */
16601$ac_includes_default
16602typedef uint64_t ac__type_new_;
16603int
16604main ()
16605{
16606if ((ac__type_new_ *) 0)
16607 return 0;
16608if (sizeof (ac__type_new_))
16609 return 0;
16610 ;
16611 return 0;
16612}
16613_ACEOF
16614rm -f conftest.$ac_objext
16615if { (ac_try="$ac_compile"
16616case "(($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_compile") 2>conftest.er1
16622 ac_status=$?
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16629 { (case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_try") 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642esac
16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_type_uint64_t=yes
16649else
16650 echo "$as_me: failed program was:" >&5
16651sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 ac_cv_type_uint64_t=no
16654fi
16655
16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657fi
16658{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16659echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16660if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016661
16662cat >>confdefs.h <<_ACEOF
16663#define HAVE_UINT64_T 1
16664_ACEOF
16665
16666
16667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016668 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16669echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16670if test "${ac_cv_type_u_int64_t+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672else
16673 cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
16679$ac_includes_default
16680typedef u_int64_t ac__type_new_;
16681int
16682main ()
16683{
16684if ((ac__type_new_ *) 0)
16685 return 0;
16686if (sizeof (ac__type_new_))
16687 return 0;
16688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext
16693if { (ac_try="$ac_compile"
16694case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_cv_type_u_int64_t=yes
16727else
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_type_u_int64_t=no
16732fi
16733
16734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735fi
16736{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16737echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16738if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016739
16740cat >>confdefs.h <<_ACEOF
16741#define HAVE_U_INT64_T 1
16742_ACEOF
16743
16744
Misha Brukmanceca9042004-09-02 23:02:30 +000016745else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016746 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16747echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16748 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016749fi
16750
John Criswell679ff312004-09-02 18:44:44 +000016751fi
16752
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016753
16754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016755
16756
16757
16758
16759
16760
16761
Reid Spencerdf3be822006-01-23 08:15:53 +000016762for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016763do
16764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769else
16770 cat >conftest.$ac_ext <<_ACEOF
16771/* confdefs.h. */
16772_ACEOF
16773cat confdefs.h >>conftest.$ac_ext
16774cat >>conftest.$ac_ext <<_ACEOF
16775/* end confdefs.h. */
16776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16778#define $ac_func innocuous_$ac_func
16779
16780/* System header to define __stub macros and hopefully few prototypes,
16781 which can conflict with char $ac_func (); below.
16782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16783 <limits.h> exists even on freestanding compilers. */
16784
16785#ifdef __STDC__
16786# include <limits.h>
16787#else
16788# include <assert.h>
16789#endif
16790
16791#undef $ac_func
16792
16793/* Override any GCC internal prototype to avoid an error.
16794 Use char because int might match the return type of a GCC
16795 builtin and then its argument prototype would still apply. */
16796#ifdef __cplusplus
16797extern "C"
16798#endif
16799char $ac_func ();
16800/* The GNU C library defines this for functions which it implements
16801 to always fail with ENOSYS. Some functions are actually named
16802 something starting with __ and the normal name is an alias. */
16803#if defined __stub_$ac_func || defined __stub___$ac_func
16804choke me
16805#endif
16806
16807int
16808main ()
16809{
16810return $ac_func ();
16811 ;
16812 return 0;
16813}
16814_ACEOF
16815rm -f conftest.$ac_objext conftest$ac_exeext
16816if { (ac_try="$ac_link"
16817case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820esac
16821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_link") 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest$ac_exeext'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 eval "$as_ac_var=yes"
16850else
16851 echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
16853
16854 eval "$as_ac_var=no"
16855fi
16856
16857rm -f core conftest.err conftest.$ac_objext \
16858 conftest$ac_exeext conftest.$ac_ext
16859fi
16860ac_res=`eval echo '${'$as_ac_var'}'`
16861 { echo "$as_me:$LINENO: result: $ac_res" >&5
16862echo "${ECHO_T}$ac_res" >&6; }
16863if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016864 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016866_ACEOF
16867
16868fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016869done
John Criswell7a73b802003-06-30 21:59:07 +000016870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016871
16872
16873
16874
Reid Spencer96cf5872007-07-13 10:05:30 +000016875for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016876do
16877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882else
16883 cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h. */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h. */
16889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16891#define $ac_func innocuous_$ac_func
16892
16893/* System header to define __stub macros and hopefully few prototypes,
16894 which can conflict with char $ac_func (); below.
16895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896 <limits.h> exists even on freestanding compilers. */
16897
16898#ifdef __STDC__
16899# include <limits.h>
16900#else
16901# include <assert.h>
16902#endif
16903
16904#undef $ac_func
16905
16906/* Override any GCC internal prototype to avoid an error.
16907 Use char because int might match the return type of a GCC
16908 builtin and then its argument prototype would still apply. */
16909#ifdef __cplusplus
16910extern "C"
16911#endif
16912char $ac_func ();
16913/* The GNU C library defines this for functions which it implements
16914 to always fail with ENOSYS. Some functions are actually named
16915 something starting with __ and the normal name is an alias. */
16916#if defined __stub_$ac_func || defined __stub___$ac_func
16917choke me
16918#endif
16919
16920int
16921main ()
16922{
16923return $ac_func ();
16924 ;
16925 return 0;
16926}
16927_ACEOF
16928rm -f conftest.$ac_objext conftest$ac_exeext
16929if { (ac_try="$ac_link"
16930case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16933esac
16934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_link") 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946esac
16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest$ac_exeext'
16953 { (case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16956esac
16957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_try") 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 eval "$as_ac_var=yes"
16963else
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967 eval "$as_ac_var=no"
16968fi
16969
16970rm -f core conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
16972fi
16973ac_res=`eval echo '${'$as_ac_var'}'`
16974 { echo "$as_me:$LINENO: result: $ac_res" >&5
16975echo "${ECHO_T}$ac_res" >&6; }
16976if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016977 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016979_ACEOF
16980
16981fi
16982done
16983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016984
16985
16986
16987
16988
Reid Spencerb90645c2007-02-16 19:17:20 +000016989for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016990do
16991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16992{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16994if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16996else
16997 cat >conftest.$ac_ext <<_ACEOF
16998/* confdefs.h. */
16999_ACEOF
17000cat confdefs.h >>conftest.$ac_ext
17001cat >>conftest.$ac_ext <<_ACEOF
17002/* end confdefs.h. */
17003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17005#define $ac_func innocuous_$ac_func
17006
17007/* System header to define __stub macros and hopefully few prototypes,
17008 which can conflict with char $ac_func (); below.
17009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17010 <limits.h> exists even on freestanding compilers. */
17011
17012#ifdef __STDC__
17013# include <limits.h>
17014#else
17015# include <assert.h>
17016#endif
17017
17018#undef $ac_func
17019
17020/* Override any GCC internal prototype to avoid an error.
17021 Use char because int might match the return type of a GCC
17022 builtin and then its argument prototype would still apply. */
17023#ifdef __cplusplus
17024extern "C"
17025#endif
17026char $ac_func ();
17027/* The GNU C library defines this for functions which it implements
17028 to always fail with ENOSYS. Some functions are actually named
17029 something starting with __ and the normal name is an alias. */
17030#if defined __stub_$ac_func || defined __stub___$ac_func
17031choke me
17032#endif
17033
17034int
17035main ()
17036{
17037return $ac_func ();
17038 ;
17039 return 0;
17040}
17041_ACEOF
17042rm -f conftest.$ac_objext conftest$ac_exeext
17043if { (ac_try="$ac_link"
17044case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057 { (case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060esac
17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_try") 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17070esac
17071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_try") 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 eval "$as_ac_var=yes"
17077else
17078 echo "$as_me: failed program was:" >&5
17079sed 's/^/| /' conftest.$ac_ext >&5
17080
17081 eval "$as_ac_var=no"
17082fi
17083
17084rm -f core conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
17086fi
17087ac_res=`eval echo '${'$as_ac_var'}'`
17088 { echo "$as_me:$LINENO: result: $ac_res" >&5
17089echo "${ECHO_T}$ac_res" >&6; }
17090if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017091 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017093_ACEOF
17094
17095fi
17096done
17097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017098
17099
17100
Reid Spencerb90645c2007-02-16 19:17:20 +000017101for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017102do
17103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17104{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108else
17109 cat >conftest.$ac_ext <<_ACEOF
17110/* confdefs.h. */
17111_ACEOF
17112cat confdefs.h >>conftest.$ac_ext
17113cat >>conftest.$ac_ext <<_ACEOF
17114/* end confdefs.h. */
17115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17117#define $ac_func innocuous_$ac_func
17118
17119/* System header to define __stub macros and hopefully few prototypes,
17120 which can conflict with char $ac_func (); below.
17121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17122 <limits.h> exists even on freestanding compilers. */
17123
17124#ifdef __STDC__
17125# include <limits.h>
17126#else
17127# include <assert.h>
17128#endif
17129
17130#undef $ac_func
17131
17132/* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17135#ifdef __cplusplus
17136extern "C"
17137#endif
17138char $ac_func ();
17139/* The GNU C library defines this for functions which it implements
17140 to always fail with ENOSYS. Some functions are actually named
17141 something starting with __ and the normal name is an alias. */
17142#if defined __stub_$ac_func || defined __stub___$ac_func
17143choke me
17144#endif
17145
17146int
17147main ()
17148{
17149return $ac_func ();
17150 ;
17151 return 0;
17152}
17153_ACEOF
17154rm -f conftest.$ac_objext conftest$ac_exeext
17155if { (ac_try="$ac_link"
17156case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159esac
17160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_link") 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172esac
17173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest$ac_exeext'
17179 { (case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17182esac
17183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_try") 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 eval "$as_ac_var=yes"
17189else
17190 echo "$as_me: failed program was:" >&5
17191sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 eval "$as_ac_var=no"
17194fi
17195
17196rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198fi
17199ac_res=`eval echo '${'$as_ac_var'}'`
17200 { echo "$as_me:$LINENO: result: $ac_res" >&5
17201echo "${ECHO_T}$ac_res" >&6; }
17202if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017203 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017205_ACEOF
17206
17207fi
17208done
17209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017210
17211
17212
17213
17214
Eric Christophere4291822010-04-16 05:14:21 +000017215
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017216
17217for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017218do
17219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224else
17225 cat >conftest.$ac_ext <<_ACEOF
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
17231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17233#define $ac_func innocuous_$ac_func
17234
17235/* System header to define __stub macros and hopefully few prototypes,
17236 which can conflict with char $ac_func (); below.
17237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238 <limits.h> exists even on freestanding compilers. */
17239
17240#ifdef __STDC__
17241# include <limits.h>
17242#else
17243# include <assert.h>
17244#endif
17245
17246#undef $ac_func
17247
17248/* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251#ifdef __cplusplus
17252extern "C"
17253#endif
17254char $ac_func ();
17255/* The GNU C library defines this for functions which it implements
17256 to always fail with ENOSYS. Some functions are actually named
17257 something starting with __ and the normal name is an alias. */
17258#if defined __stub_$ac_func || defined __stub___$ac_func
17259choke me
17260#endif
17261
17262int
17263main ()
17264{
17265return $ac_func ();
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270rm -f conftest.$ac_objext conftest$ac_exeext
17271if { (ac_try="$ac_link"
17272case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275esac
17276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_link") 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288esac
17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest$ac_exeext'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 eval "$as_ac_var=yes"
17305else
17306 echo "$as_me: failed program was:" >&5
17307sed 's/^/| /' conftest.$ac_ext >&5
17308
17309 eval "$as_ac_var=no"
17310fi
17311
17312rm -f core conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17314fi
17315ac_res=`eval echo '${'$as_ac_var'}'`
17316 { echo "$as_me:$LINENO: result: $ac_res" >&5
17317echo "${ECHO_T}$ac_res" >&6; }
17318if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017319 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017321_ACEOF
17322
17323fi
17324done
Reid Spencerdf3be822006-01-23 08:15:53 +000017325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017326
17327
17328
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017329
17330for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017331do
17332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17333{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337else
17338 cat >conftest.$ac_ext <<_ACEOF
17339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
17344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17346#define $ac_func innocuous_$ac_func
17347
17348/* System header to define __stub macros and hopefully few prototypes,
17349 which can conflict with char $ac_func (); below.
17350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17351 <limits.h> exists even on freestanding compilers. */
17352
17353#ifdef __STDC__
17354# include <limits.h>
17355#else
17356# include <assert.h>
17357#endif
17358
17359#undef $ac_func
17360
17361/* Override any GCC internal prototype to avoid an error.
17362 Use char because int might match the return type of a GCC
17363 builtin and then its argument prototype would still apply. */
17364#ifdef __cplusplus
17365extern "C"
17366#endif
17367char $ac_func ();
17368/* The GNU C library defines this for functions which it implements
17369 to always fail with ENOSYS. Some functions are actually named
17370 something starting with __ and the normal name is an alias. */
17371#if defined __stub_$ac_func || defined __stub___$ac_func
17372choke me
17373#endif
17374
17375int
17376main ()
17377{
17378return $ac_func ();
17379 ;
17380 return 0;
17381}
17382_ACEOF
17383rm -f conftest.$ac_objext conftest$ac_exeext
17384if { (ac_try="$ac_link"
17385case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17388esac
17389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_link") 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17401esac
17402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411esac
17412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 eval "$as_ac_var=yes"
17418else
17419 echo "$as_me: failed program was:" >&5
17420sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 eval "$as_ac_var=no"
17423fi
17424
17425rm -f core conftest.err conftest.$ac_objext \
17426 conftest$ac_exeext conftest.$ac_ext
17427fi
17428ac_res=`eval echo '${'$as_ac_var'}'`
17429 { echo "$as_me:$LINENO: result: $ac_res" >&5
17430echo "${ECHO_T}$ac_res" >&6; }
17431if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017432 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017434_ACEOF
17435
17436fi
17437done
17438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017439
17440
17441
17442
Chris Lattner511f11d2005-11-14 07:25:50 +000017443for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017444do
17445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17450else
17451 cat >conftest.$ac_ext <<_ACEOF
17452/* confdefs.h. */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h. */
17457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17459#define $ac_func innocuous_$ac_func
17460
17461/* System header to define __stub macros and hopefully few prototypes,
17462 which can conflict with char $ac_func (); below.
17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464 <limits.h> exists even on freestanding compilers. */
17465
17466#ifdef __STDC__
17467# include <limits.h>
17468#else
17469# include <assert.h>
17470#endif
17471
17472#undef $ac_func
17473
17474/* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17477#ifdef __cplusplus
17478extern "C"
17479#endif
17480char $ac_func ();
17481/* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484#if defined __stub_$ac_func || defined __stub___$ac_func
17485choke me
17486#endif
17487
17488int
17489main ()
17490{
17491return $ac_func ();
17492 ;
17493 return 0;
17494}
17495_ACEOF
17496rm -f conftest.$ac_objext conftest$ac_exeext
17497if { (ac_try="$ac_link"
17498case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501esac
17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17504 ac_status=$?
17505 grep -v '^ *+' conftest.er1 >conftest.err
17506 rm -f conftest.er1
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } &&
17510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511 { (case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17514esac
17515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_try") 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17524esac
17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_try") 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 eval "$as_ac_var=yes"
17531else
17532 echo "$as_me: failed program was:" >&5
17533sed 's/^/| /' conftest.$ac_ext >&5
17534
17535 eval "$as_ac_var=no"
17536fi
17537
17538rm -f core conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
17540fi
17541ac_res=`eval echo '${'$as_ac_var'}'`
17542 { echo "$as_me:$LINENO: result: $ac_res" >&5
17543echo "${ECHO_T}$ac_res" >&6; }
17544if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017545 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017547_ACEOF
17548
17549fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017550done
John Criswell7a73b802003-06-30 21:59:07 +000017551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017552
17553
17554
17555
Daniel Dunbar3e462932011-02-03 02:40:02 +000017556
17557for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017558do
17559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564else
17565 cat >conftest.$ac_ext <<_ACEOF
17566/* confdefs.h. */
17567_ACEOF
17568cat confdefs.h >>conftest.$ac_ext
17569cat >>conftest.$ac_ext <<_ACEOF
17570/* end confdefs.h. */
17571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573#define $ac_func innocuous_$ac_func
17574
17575/* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17579
17580#ifdef __STDC__
17581# include <limits.h>
17582#else
17583# include <assert.h>
17584#endif
17585
17586#undef $ac_func
17587
17588/* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17591#ifdef __cplusplus
17592extern "C"
17593#endif
17594char $ac_func ();
17595/* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598#if defined __stub_$ac_func || defined __stub___$ac_func
17599choke me
17600#endif
17601
17602int
17603main ()
17604{
17605return $ac_func ();
17606 ;
17607 return 0;
17608}
17609_ACEOF
17610rm -f conftest.$ac_objext conftest$ac_exeext
17611if { (ac_try="$ac_link"
17612case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17615esac
17616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17618 ac_status=$?
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638esac
17639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 eval "$as_ac_var=yes"
17645else
17646 echo "$as_me: failed program was:" >&5
17647sed 's/^/| /' conftest.$ac_ext >&5
17648
17649 eval "$as_ac_var=no"
17650fi
17651
17652rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17654fi
17655ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657echo "${ECHO_T}$ac_res" >&6; }
17658if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017659 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017661_ACEOF
17662
17663fi
17664done
17665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17667echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17668if test "${llvm_cv_c_printf_a+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017670else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017671 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017672ac_cpp='$CPP $CPPFLAGS'
17673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17675ac_compiler_gnu=$ac_cv_c_compiler_gnu
17676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017677 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017678 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017680 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017682 /* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017687
John Criswella0137d32003-10-13 16:22:01 +000017688#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017689#include <stdlib.h>
17690
John Criswella0137d32003-10-13 16:22:01 +000017691int
17692main ()
17693{
17694
Reid Spencer2706f8c2004-09-19 23:53:36 +000017695volatile double A, B;
17696char Buffer[100];
17697A = 1;
17698A /= 10.0;
17699sprintf(Buffer, "%a", A);
17700B = atof(Buffer);
17701if (A != B)
17702 return (1);
17703if (A != 0x1.999999999999ap-4)
17704 return (1);
17705return (0);
John Criswella0137d32003-10-13 16:22:01 +000017706 ;
17707 return 0;
17708}
17709_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017710rm -f conftest$ac_exeext
17711if { (ac_try="$ac_link"
17712case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715esac
17716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_link") 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17721 { (case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17724esac
17725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_try") 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017730 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017732 echo "$as_me: program exited with status $ac_status" >&5
17733echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
17735
17736( exit $ac_status )
17737llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017739rm -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 +000017740fi
Reid Spencera773bd52006-08-04 18:18:08 +000017741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017742
Reid Spencer2706f8c2004-09-19 23:53:36 +000017743 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017744ac_cpp='$CPP $CPPFLAGS'
17745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17747ac_compiler_gnu=$ac_cv_c_compiler_gnu
17748
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017750{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17751echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017752 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017754cat >>confdefs.h <<\_ACEOF
17755#define HAVE_PRINTF_A 1
17756_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017757
Reid Spencer2706f8c2004-09-19 23:53:36 +000017758 fi
John Criswella0137d32003-10-13 16:22:01 +000017759
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017761{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17762echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17763if test "${ac_cv_func_rand48+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017765else
Reid Spencera773bd52006-08-04 18:18:08 +000017766 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017767ac_cpp='$CXXCPP $CPPFLAGS'
17768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017772 cat >conftest.$ac_ext <<_ACEOF
17773/* confdefs.h. */
17774_ACEOF
17775cat confdefs.h >>conftest.$ac_ext
17776cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017777/* end confdefs.h. */
17778#include <stdlib.h>
17779int
17780main ()
17781{
17782srand48(0);lrand48();drand48();
17783 ;
17784 return 0;
17785}
17786_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017787rm -f conftest.$ac_objext
17788if { (ac_try="$ac_compile"
17789case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17792esac
17793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_compile") 2>conftest.er1
17795 ac_status=$?
17796 grep -v '^ *+' conftest.er1 >conftest.err
17797 rm -f conftest.er1
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } &&
17801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17802 { (case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17805esac
17806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_try") 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815esac
17816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_try") 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017821 ac_cv_func_rand48=yes
17822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017823 echo "$as_me: failed program was:" >&5
17824sed 's/^/| /' conftest.$ac_ext >&5
17825
17826 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017828
Reid Spencera773bd52006-08-04 18:18:08 +000017829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017830 ac_ext=c
17831ac_cpp='$CPP $CPPFLAGS'
17832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17834ac_compiler_gnu=$ac_cv_c_compiler_gnu
17835
17836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017837{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17838echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017839
17840if test "$ac_cv_func_rand48" = "yes" ; then
17841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017842cat >>confdefs.h <<\_ACEOF
17843#define HAVE_RAND48 1
17844_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017845
17846fi
John Criswell0021c312004-02-13 21:57:29 +000017847
17848
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017849{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17850echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17851if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853else
17854 cat >conftest.$ac_ext <<_ACEOF
17855/* confdefs.h. */
17856_ACEOF
17857cat confdefs.h >>conftest.$ac_ext
17858cat >>conftest.$ac_ext <<_ACEOF
17859/* end confdefs.h. */
17860$ac_includes_default
17861int
17862main ()
17863{
17864#ifndef strerror_s
17865 char *p = (char *) strerror_s;
17866 return !p;
17867#endif
17868
17869 ;
17870 return 0;
17871}
17872_ACEOF
17873rm -f conftest.$ac_objext
17874if { (ac_try="$ac_compile"
17875case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878esac
17879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_compile") 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891esac
17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest.$ac_objext'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17901esac
17902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 ac_cv_have_decl_strerror_s=yes
17908else
17909 echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912 ac_cv_have_decl_strerror_s=no
17913fi
17914
17915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916fi
17917{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17918echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17919if test $ac_cv_have_decl_strerror_s = yes; then
17920
17921cat >>confdefs.h <<_ACEOF
17922#define HAVE_DECL_STRERROR_S 1
17923_ACEOF
17924
17925
17926else
17927 cat >>confdefs.h <<_ACEOF
17928#define HAVE_DECL_STRERROR_S 0
17929_ACEOF
17930
17931
17932fi
17933
17934
17935
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017936if test "$llvm_cv_os_type" = "MingW" ; then
17937 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17938echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17939if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17941else
17942 ac_check_lib_save_LIBS=$LIBS
17943LIBS="-lgcc $LIBS"
17944cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950
17951/* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17954#ifdef __cplusplus
17955extern "C"
17956#endif
17957char _alloca ();
17958int
17959main ()
17960{
17961return _alloca ();
17962 ;
17963 return 0;
17964}
17965_ACEOF
17966rm -f conftest.$ac_objext conftest$ac_exeext
17967if { (ac_try="$ac_link"
17968case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971esac
17972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_link") 2>conftest.er1
17974 ac_status=$?
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17981 { (case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17984esac
17985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_try") 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest$ac_exeext'
17991 { (case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17994esac
17995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_try") 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_lib_gcc__alloca=yes
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005 ac_cv_lib_gcc__alloca=no
18006fi
18007
18008rm -f core conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18010LIBS=$ac_check_lib_save_LIBS
18011fi
18012{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18013echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18014if test $ac_cv_lib_gcc__alloca = yes; then
18015
18016cat >>confdefs.h <<\_ACEOF
18017#define HAVE__ALLOCA 1
18018_ACEOF
18019
18020fi
18021
18022 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18023echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18024if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026else
18027 ac_check_lib_save_LIBS=$LIBS
18028LIBS="-lgcc $LIBS"
18029cat >conftest.$ac_ext <<_ACEOF
18030/* confdefs.h. */
18031_ACEOF
18032cat confdefs.h >>conftest.$ac_ext
18033cat >>conftest.$ac_ext <<_ACEOF
18034/* end confdefs.h. */
18035
18036/* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18039#ifdef __cplusplus
18040extern "C"
18041#endif
18042char __alloca ();
18043int
18044main ()
18045{
18046return __alloca ();
18047 ;
18048 return 0;
18049}
18050_ACEOF
18051rm -f conftest.$ac_objext conftest$ac_exeext
18052if { (ac_try="$ac_link"
18053case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056esac
18057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069esac
18070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079esac
18080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_cv_lib_gcc___alloca=yes
18086else
18087 echo "$as_me: failed program was:" >&5
18088sed 's/^/| /' conftest.$ac_ext >&5
18089
18090 ac_cv_lib_gcc___alloca=no
18091fi
18092
18093rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095LIBS=$ac_check_lib_save_LIBS
18096fi
18097{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18098echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18099if test $ac_cv_lib_gcc___alloca = yes; then
18100
18101cat >>confdefs.h <<\_ACEOF
18102#define HAVE___ALLOCA 1
18103_ACEOF
18104
18105fi
18106
18107 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18108echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18109if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111else
18112 ac_check_lib_save_LIBS=$LIBS
18113LIBS="-lgcc $LIBS"
18114cat >conftest.$ac_ext <<_ACEOF
18115/* confdefs.h. */
18116_ACEOF
18117cat confdefs.h >>conftest.$ac_ext
18118cat >>conftest.$ac_ext <<_ACEOF
18119/* end confdefs.h. */
18120
18121/* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18124#ifdef __cplusplus
18125extern "C"
18126#endif
18127char __chkstk ();
18128int
18129main ()
18130{
18131return __chkstk ();
18132 ;
18133 return 0;
18134}
18135_ACEOF
18136rm -f conftest.$ac_objext conftest$ac_exeext
18137if { (ac_try="$ac_link"
18138case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18141esac
18142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18151 { (case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18154esac
18155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_try") 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest$ac_exeext'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164esac
18165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_lib_gcc___chkstk=yes
18171else
18172 echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
18175 ac_cv_lib_gcc___chkstk=no
18176fi
18177
18178rm -f core conftest.err conftest.$ac_objext \
18179 conftest$ac_exeext conftest.$ac_ext
18180LIBS=$ac_check_lib_save_LIBS
18181fi
18182{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18183echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18184if test $ac_cv_lib_gcc___chkstk = yes; then
18185
18186cat >>confdefs.h <<\_ACEOF
18187#define HAVE___CHKSTK 1
18188_ACEOF
18189
18190fi
18191
18192 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18193echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18194if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18196else
18197 ac_check_lib_save_LIBS=$LIBS
18198LIBS="-lgcc $LIBS"
18199cat >conftest.$ac_ext <<_ACEOF
18200/* confdefs.h. */
18201_ACEOF
18202cat confdefs.h >>conftest.$ac_ext
18203cat >>conftest.$ac_ext <<_ACEOF
18204/* end confdefs.h. */
18205
18206/* Override any GCC internal prototype to avoid an error.
18207 Use char because int might match the return type of a GCC
18208 builtin and then its argument prototype would still apply. */
18209#ifdef __cplusplus
18210extern "C"
18211#endif
18212char ___chkstk ();
18213int
18214main ()
18215{
18216return ___chkstk ();
18217 ;
18218 return 0;
18219}
18220_ACEOF
18221rm -f conftest.$ac_objext conftest$ac_exeext
18222if { (ac_try="$ac_link"
18223case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18226esac
18227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_link") 2>conftest.er1
18229 ac_status=$?
18230 grep -v '^ *+' conftest.er1 >conftest.err
18231 rm -f conftest.er1
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18236 { (case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18239esac
18240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_try") 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest$ac_exeext'
18246 { (case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_try") 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; }; then
18255 ac_cv_lib_gcc____chkstk=yes
18256else
18257 echo "$as_me: failed program was:" >&5
18258sed 's/^/| /' conftest.$ac_ext >&5
18259
18260 ac_cv_lib_gcc____chkstk=no
18261fi
18262
18263rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265LIBS=$ac_check_lib_save_LIBS
18266fi
18267{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18268echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18269if test $ac_cv_lib_gcc____chkstk = yes; then
18270
18271cat >>confdefs.h <<\_ACEOF
18272#define HAVE____CHKSTK 1
18273_ACEOF
18274
18275fi
18276
18277
18278 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18279echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18280if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18282else
18283 ac_check_lib_save_LIBS=$LIBS
18284LIBS="-lgcc $LIBS"
18285cat >conftest.$ac_ext <<_ACEOF
18286/* confdefs.h. */
18287_ACEOF
18288cat confdefs.h >>conftest.$ac_ext
18289cat >>conftest.$ac_ext <<_ACEOF
18290/* end confdefs.h. */
18291
18292/* Override any GCC internal prototype to avoid an error.
18293 Use char because int might match the return type of a GCC
18294 builtin and then its argument prototype would still apply. */
18295#ifdef __cplusplus
18296extern "C"
18297#endif
18298char __ashldi3 ();
18299int
18300main ()
18301{
18302return __ashldi3 ();
18303 ;
18304 return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext conftest$ac_exeext
18308if { (ac_try="$ac_link"
18309case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18312esac
18313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_link") 2>conftest.er1
18315 ac_status=$?
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18322 { (case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18325esac
18326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327 (eval "$ac_try") 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; } &&
18331 { ac_try='test -s conftest$ac_exeext'
18332 { (case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335esac
18336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_try") 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_cv_lib_gcc___ashldi3=yes
18342else
18343 echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346 ac_cv_lib_gcc___ashldi3=no
18347fi
18348
18349rm -f core conftest.err conftest.$ac_objext \
18350 conftest$ac_exeext conftest.$ac_ext
18351LIBS=$ac_check_lib_save_LIBS
18352fi
18353{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18354echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18355if test $ac_cv_lib_gcc___ashldi3 = yes; then
18356
18357cat >>confdefs.h <<\_ACEOF
18358#define HAVE___ASHLDI3 1
18359_ACEOF
18360
18361fi
18362
18363 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18364echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18365if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18367else
18368 ac_check_lib_save_LIBS=$LIBS
18369LIBS="-lgcc $LIBS"
18370cat >conftest.$ac_ext <<_ACEOF
18371/* confdefs.h. */
18372_ACEOF
18373cat confdefs.h >>conftest.$ac_ext
18374cat >>conftest.$ac_ext <<_ACEOF
18375/* end confdefs.h. */
18376
18377/* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18380#ifdef __cplusplus
18381extern "C"
18382#endif
18383char __ashrdi3 ();
18384int
18385main ()
18386{
18387return __ashrdi3 ();
18388 ;
18389 return 0;
18390}
18391_ACEOF
18392rm -f conftest.$ac_objext conftest$ac_exeext
18393if { (ac_try="$ac_link"
18394case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18397esac
18398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_link") 2>conftest.er1
18400 ac_status=$?
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407 { (case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18410esac
18411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_try") 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18420esac
18421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_try") 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 ac_cv_lib_gcc___ashrdi3=yes
18427else
18428 echo "$as_me: failed program was:" >&5
18429sed 's/^/| /' conftest.$ac_ext >&5
18430
18431 ac_cv_lib_gcc___ashrdi3=no
18432fi
18433
18434rm -f core conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18436LIBS=$ac_check_lib_save_LIBS
18437fi
18438{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18439echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18440if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18441
18442cat >>confdefs.h <<\_ACEOF
18443#define HAVE___ASHRDI3 1
18444_ACEOF
18445
18446fi
18447
18448 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18449echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18450if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452else
18453 ac_check_lib_save_LIBS=$LIBS
18454LIBS="-lgcc $LIBS"
18455cat >conftest.$ac_ext <<_ACEOF
18456/* confdefs.h. */
18457_ACEOF
18458cat confdefs.h >>conftest.$ac_ext
18459cat >>conftest.$ac_ext <<_ACEOF
18460/* end confdefs.h. */
18461
18462/* Override any GCC internal prototype to avoid an error.
18463 Use char because int might match the return type of a GCC
18464 builtin and then its argument prototype would still apply. */
18465#ifdef __cplusplus
18466extern "C"
18467#endif
18468char __divdi3 ();
18469int
18470main ()
18471{
18472return __divdi3 ();
18473 ;
18474 return 0;
18475}
18476_ACEOF
18477rm -f conftest.$ac_objext conftest$ac_exeext
18478if { (ac_try="$ac_link"
18479case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482esac
18483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_link") 2>conftest.er1
18485 ac_status=$?
18486 grep -v '^ *+' conftest.er1 >conftest.err
18487 rm -f conftest.er1
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492 { (case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18495esac
18496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_try") 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest$ac_exeext'
18502 { (case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18505esac
18506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_try") 2>&5
18508 ac_status=$?
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; }; then
18511 ac_cv_lib_gcc___divdi3=yes
18512else
18513 echo "$as_me: failed program was:" >&5
18514sed 's/^/| /' conftest.$ac_ext >&5
18515
18516 ac_cv_lib_gcc___divdi3=no
18517fi
18518
18519rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521LIBS=$ac_check_lib_save_LIBS
18522fi
18523{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18524echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18525if test $ac_cv_lib_gcc___divdi3 = yes; then
18526
18527cat >>confdefs.h <<\_ACEOF
18528#define HAVE___DIVDI3 1
18529_ACEOF
18530
18531fi
18532
18533 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18534echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18535if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537else
18538 ac_check_lib_save_LIBS=$LIBS
18539LIBS="-lgcc $LIBS"
18540cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546
18547/* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18550#ifdef __cplusplus
18551extern "C"
18552#endif
18553char __fixdfdi ();
18554int
18555main ()
18556{
18557return __fixdfdi ();
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562rm -f conftest.$ac_objext conftest$ac_exeext
18563if { (ac_try="$ac_link"
18564case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18567esac
18568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_link") 2>conftest.er1
18570 ac_status=$?
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577 { (case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18580esac
18581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_try") 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
18586 { ac_try='test -s conftest$ac_exeext'
18587 { (case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590esac
18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_try") 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596 ac_cv_lib_gcc___fixdfdi=yes
18597else
18598 echo "$as_me: failed program was:" >&5
18599sed 's/^/| /' conftest.$ac_ext >&5
18600
18601 ac_cv_lib_gcc___fixdfdi=no
18602fi
18603
18604rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18606LIBS=$ac_check_lib_save_LIBS
18607fi
18608{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18609echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18610if test $ac_cv_lib_gcc___fixdfdi = yes; then
18611
18612cat >>confdefs.h <<\_ACEOF
18613#define HAVE___FIXDFDI 1
18614_ACEOF
18615
18616fi
18617
18618 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18619echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18620if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18622else
18623 ac_check_lib_save_LIBS=$LIBS
18624LIBS="-lgcc $LIBS"
18625cat >conftest.$ac_ext <<_ACEOF
18626/* confdefs.h. */
18627_ACEOF
18628cat confdefs.h >>conftest.$ac_ext
18629cat >>conftest.$ac_ext <<_ACEOF
18630/* end confdefs.h. */
18631
18632/* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
18635#ifdef __cplusplus
18636extern "C"
18637#endif
18638char __fixsfdi ();
18639int
18640main ()
18641{
18642return __fixsfdi ();
18643 ;
18644 return 0;
18645}
18646_ACEOF
18647rm -f conftest.$ac_objext conftest$ac_exeext
18648if { (ac_try="$ac_link"
18649case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652esac
18653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18665esac
18666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest$ac_exeext'
18672 { (case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18675esac
18676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_try") 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_lib_gcc___fixsfdi=yes
18682else
18683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ac_cv_lib_gcc___fixsfdi=no
18687fi
18688
18689rm -f core conftest.err conftest.$ac_objext \
18690 conftest$ac_exeext conftest.$ac_ext
18691LIBS=$ac_check_lib_save_LIBS
18692fi
18693{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18694echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18695if test $ac_cv_lib_gcc___fixsfdi = yes; then
18696
18697cat >>confdefs.h <<\_ACEOF
18698#define HAVE___FIXSFDI 1
18699_ACEOF
18700
18701fi
18702
18703 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18704echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18705if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707else
18708 ac_check_lib_save_LIBS=$LIBS
18709LIBS="-lgcc $LIBS"
18710cat >conftest.$ac_ext <<_ACEOF
18711/* confdefs.h. */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h. */
18716
18717/* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18720#ifdef __cplusplus
18721extern "C"
18722#endif
18723char __floatdidf ();
18724int
18725main ()
18726{
18727return __floatdidf ();
18728 ;
18729 return 0;
18730}
18731_ACEOF
18732rm -f conftest.$ac_objext conftest$ac_exeext
18733if { (ac_try="$ac_link"
18734case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737esac
18738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_link") 2>conftest.er1
18740 ac_status=$?
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
18746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18747 { (case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750esac
18751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_try") 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest$ac_exeext'
18757 { (case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18760esac
18761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_try") 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_cv_lib_gcc___floatdidf=yes
18767else
18768 echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ac_cv_lib_gcc___floatdidf=no
18772fi
18773
18774rm -f core conftest.err conftest.$ac_objext \
18775 conftest$ac_exeext conftest.$ac_ext
18776LIBS=$ac_check_lib_save_LIBS
18777fi
18778{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18779echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18780if test $ac_cv_lib_gcc___floatdidf = yes; then
18781
18782cat >>confdefs.h <<\_ACEOF
18783#define HAVE___FLOATDIDF 1
18784_ACEOF
18785
18786fi
18787
18788 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18789echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18790if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792else
18793 ac_check_lib_save_LIBS=$LIBS
18794LIBS="-lgcc $LIBS"
18795cat >conftest.$ac_ext <<_ACEOF
18796/* confdefs.h. */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h. */
18801
18802/* Override any GCC internal prototype to avoid an error.
18803 Use char because int might match the return type of a GCC
18804 builtin and then its argument prototype would still apply. */
18805#ifdef __cplusplus
18806extern "C"
18807#endif
18808char __lshrdi3 ();
18809int
18810main ()
18811{
18812return __lshrdi3 ();
18813 ;
18814 return 0;
18815}
18816_ACEOF
18817rm -f conftest.$ac_objext conftest$ac_exeext
18818if { (ac_try="$ac_link"
18819case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18822esac
18823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_link") 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } &&
18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832 { (case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835esac
18836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_try") 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest$ac_exeext'
18842 { (case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18845esac
18846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_try") 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_lib_gcc___lshrdi3=yes
18852else
18853 echo "$as_me: failed program was:" >&5
18854sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 ac_cv_lib_gcc___lshrdi3=no
18857fi
18858
18859rm -f core conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
18861LIBS=$ac_check_lib_save_LIBS
18862fi
18863{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18864echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18865if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18866
18867cat >>confdefs.h <<\_ACEOF
18868#define HAVE___LSHRDI3 1
18869_ACEOF
18870
18871fi
18872
18873 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18874echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18875if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878 ac_check_lib_save_LIBS=$LIBS
18879LIBS="-lgcc $LIBS"
18880cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886
18887/* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18890#ifdef __cplusplus
18891extern "C"
18892#endif
18893char __moddi3 ();
18894int
18895main ()
18896{
18897return __moddi3 ();
18898 ;
18899 return 0;
18900}
18901_ACEOF
18902rm -f conftest.$ac_objext conftest$ac_exeext
18903if { (ac_try="$ac_link"
18904case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_link") 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920esac
18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest$ac_exeext'
18927 { (case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930esac
18931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_lib_gcc___moddi3=yes
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 ac_cv_lib_gcc___moddi3=no
18942fi
18943
18944rm -f core conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18946LIBS=$ac_check_lib_save_LIBS
18947fi
18948{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18949echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18950if test $ac_cv_lib_gcc___moddi3 = yes; then
18951
18952cat >>confdefs.h <<\_ACEOF
18953#define HAVE___MODDI3 1
18954_ACEOF
18955
18956fi
18957
18958 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18959echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18960if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962else
18963 ac_check_lib_save_LIBS=$LIBS
18964LIBS="-lgcc $LIBS"
18965cat >conftest.$ac_ext <<_ACEOF
18966/* confdefs.h. */
18967_ACEOF
18968cat confdefs.h >>conftest.$ac_ext
18969cat >>conftest.$ac_ext <<_ACEOF
18970/* end confdefs.h. */
18971
18972/* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply. */
18975#ifdef __cplusplus
18976extern "C"
18977#endif
18978char __udivdi3 ();
18979int
18980main ()
18981{
18982return __udivdi3 ();
18983 ;
18984 return 0;
18985}
18986_ACEOF
18987rm -f conftest.$ac_objext conftest$ac_exeext
18988if { (ac_try="$ac_link"
18989case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18992esac
18993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_link") 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005esac
19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest$ac_exeext'
19012 { (case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19015esac
19016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_try") 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_gcc___udivdi3=yes
19022else
19023 echo "$as_me: failed program was:" >&5
19024sed 's/^/| /' conftest.$ac_ext >&5
19025
19026 ac_cv_lib_gcc___udivdi3=no
19027fi
19028
19029rm -f core conftest.err conftest.$ac_objext \
19030 conftest$ac_exeext conftest.$ac_ext
19031LIBS=$ac_check_lib_save_LIBS
19032fi
19033{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19034echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19035if test $ac_cv_lib_gcc___udivdi3 = yes; then
19036
19037cat >>confdefs.h <<\_ACEOF
19038#define HAVE___UDIVDI3 1
19039_ACEOF
19040
19041fi
19042
19043 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19044echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19045if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047else
19048 ac_check_lib_save_LIBS=$LIBS
19049LIBS="-lgcc $LIBS"
19050cat >conftest.$ac_ext <<_ACEOF
19051/* confdefs.h. */
19052_ACEOF
19053cat confdefs.h >>conftest.$ac_ext
19054cat >>conftest.$ac_ext <<_ACEOF
19055/* end confdefs.h. */
19056
19057/* Override any GCC internal prototype to avoid an error.
19058 Use char because int might match the return type of a GCC
19059 builtin and then its argument prototype would still apply. */
19060#ifdef __cplusplus
19061extern "C"
19062#endif
19063char __umoddi3 ();
19064int
19065main ()
19066{
19067return __umoddi3 ();
19068 ;
19069 return 0;
19070}
19071_ACEOF
19072rm -f conftest.$ac_objext conftest$ac_exeext
19073if { (ac_try="$ac_link"
19074case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>conftest.er1
19080 ac_status=$?
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
19086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19087 { (case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19090esac
19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_try") 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; } &&
19096 { ac_try='test -s conftest$ac_exeext'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_cv_lib_gcc___umoddi3=yes
19107else
19108 echo "$as_me: failed program was:" >&5
19109sed 's/^/| /' conftest.$ac_ext >&5
19110
19111 ac_cv_lib_gcc___umoddi3=no
19112fi
19113
19114rm -f core conftest.err conftest.$ac_objext \
19115 conftest$ac_exeext conftest.$ac_ext
19116LIBS=$ac_check_lib_save_LIBS
19117fi
19118{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19119echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19120if test $ac_cv_lib_gcc___umoddi3 = yes; then
19121
19122cat >>confdefs.h <<\_ACEOF
19123#define HAVE___UMODDI3 1
19124_ACEOF
19125
19126fi
19127
19128
19129 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19130echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19131if test "${ac_cv_lib_gcc___main+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19133else
19134 ac_check_lib_save_LIBS=$LIBS
19135LIBS="-lgcc $LIBS"
19136cat >conftest.$ac_ext <<_ACEOF
19137/* confdefs.h. */
19138_ACEOF
19139cat confdefs.h >>conftest.$ac_ext
19140cat >>conftest.$ac_ext <<_ACEOF
19141/* end confdefs.h. */
19142
19143/* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19146#ifdef __cplusplus
19147extern "C"
19148#endif
19149char __main ();
19150int
19151main ()
19152{
19153return __main ();
19154 ;
19155 return 0;
19156}
19157_ACEOF
19158rm -f conftest.$ac_objext conftest$ac_exeext
19159if { (ac_try="$ac_link"
19160case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163esac
19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_link") 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173 { (case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176esac
19177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_try") 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19186esac
19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_lib_gcc___main=yes
19193else
19194 echo "$as_me: failed program was:" >&5
19195sed 's/^/| /' conftest.$ac_ext >&5
19196
19197 ac_cv_lib_gcc___main=no
19198fi
19199
19200rm -f core conftest.err conftest.$ac_objext \
19201 conftest$ac_exeext conftest.$ac_ext
19202LIBS=$ac_check_lib_save_LIBS
19203fi
19204{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19205echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19206if test $ac_cv_lib_gcc___main = yes; then
19207
19208cat >>confdefs.h <<\_ACEOF
19209#define HAVE___MAIN 1
19210_ACEOF
19211
19212fi
19213
19214 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19215echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19216if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19218else
19219 ac_check_lib_save_LIBS=$LIBS
19220LIBS="-lgcc $LIBS"
19221cat >conftest.$ac_ext <<_ACEOF
19222/* confdefs.h. */
19223_ACEOF
19224cat confdefs.h >>conftest.$ac_ext
19225cat >>conftest.$ac_ext <<_ACEOF
19226/* end confdefs.h. */
19227
19228/* Override any GCC internal prototype to avoid an error.
19229 Use char because int might match the return type of a GCC
19230 builtin and then its argument prototype would still apply. */
19231#ifdef __cplusplus
19232extern "C"
19233#endif
19234char __cmpdi2 ();
19235int
19236main ()
19237{
19238return __cmpdi2 ();
19239 ;
19240 return 0;
19241}
19242_ACEOF
19243rm -f conftest.$ac_objext conftest$ac_exeext
19244if { (ac_try="$ac_link"
19245case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248esac
19249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_link") 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
19257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19258 { (case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19261esac
19262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263 (eval "$ac_try") 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; } &&
19267 { ac_try='test -s conftest$ac_exeext'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271esac
19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_lib_gcc___cmpdi2=yes
19278else
19279 echo "$as_me: failed program was:" >&5
19280sed 's/^/| /' conftest.$ac_ext >&5
19281
19282 ac_cv_lib_gcc___cmpdi2=no
19283fi
19284
19285rm -f core conftest.err conftest.$ac_objext \
19286 conftest$ac_exeext conftest.$ac_ext
19287LIBS=$ac_check_lib_save_LIBS
19288fi
19289{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19290echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19291if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19292
19293cat >>confdefs.h <<\_ACEOF
19294#define HAVE___CMPDI2 1
19295_ACEOF
19296
19297fi
19298
19299fi
19300
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019301if test "$llvm_cv_os_type" = "MingW" ; then
19302 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19303echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19304 cat >conftest.$ac_ext <<_ACEOF
19305#include <windows.h>
19306#include <imagehlp.h>
19307extern void foo(PENUMLOADED_MODULES_CALLBACK);
19308extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19309_ACEOF
19310rm -f conftest.$ac_objext
19311if { (ac_try="$ac_compile"
19312case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19315esac
19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_compile") 2>conftest.er1
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328esac
19329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest.$ac_objext'
19335 { (case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19338esac
19339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_try") 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344
19345 { echo "$as_me:$LINENO: result: yes" >&5
19346echo "${ECHO_T}yes" >&6; }
19347 llvm_cv_win32_elmcb_pcstr="PCSTR"
19348
19349else
19350 echo "$as_me: failed program was:" >&5
19351sed 's/^/| /' conftest.$ac_ext >&5
19352
19353
19354 { echo "$as_me:$LINENO: result: no" >&5
19355echo "${ECHO_T}no" >&6; }
19356 llvm_cv_win32_elmcb_pcstr="PSTR"
19357
19358fi
19359
19360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19361
19362cat >>confdefs.h <<_ACEOF
19363#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19364_ACEOF
19365
19366fi
19367
Torok Edwin871384f2010-01-26 08:50:50 +000019368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019369{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19370echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19371if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019373else
Reid Spencera773bd52006-08-04 18:18:08 +000019374 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019375ac_cpp='$CXXCPP $CPPFLAGS'
19376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019380 cat >conftest.$ac_ext <<_ACEOF
19381/* confdefs.h. */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019385/* end confdefs.h. */
19386#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019387int
19388main ()
19389{
19390float f; isnan(f);
19391 ;
19392 return 0;
19393}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019395rm -f conftest.$ac_objext
19396if { (ac_try="$ac_compile"
19397case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413esac
19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423esac
19424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019429 ac_cv_func_isnan_in_math_h=yes
19430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019431 echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019436
Reid Spencera773bd52006-08-04 18:18:08 +000019437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019438 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019439ac_cpp='$CPP $CPPFLAGS'
19440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443
19444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019445{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19446echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019447
19448
19449if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019451cat >>confdefs.h <<\_ACEOF
19452#define HAVE_ISNAN_IN_MATH_H 1
19453_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019454
Reid Spencerabec8f92004-10-27 23:03:44 +000019455fi
19456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019457{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19458echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19459if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019461else
Reid Spencera773bd52006-08-04 18:18:08 +000019462 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019463ac_cpp='$CXXCPP $CPPFLAGS'
19464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019468 cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019473/* end confdefs.h. */
19474#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019475int
19476main ()
19477{
19478float f; isnan(f);
19479 ;
19480 return 0;
19481}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019482_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483rm -f conftest.$ac_objext
19484if { (ac_try="$ac_compile"
19485case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19488esac
19489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_compile") 2>conftest.er1
19491 ac_status=$?
19492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
19497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19498 { (case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_try") 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511esac
19512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_try") 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019517 ac_cv_func_isnan_in_cmath=yes
19518else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019519 echo "$as_me: failed program was:" >&5
19520sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019524
Reid Spencera773bd52006-08-04 18:18:08 +000019525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019526 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019527ac_cpp='$CPP $CPPFLAGS'
19528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530ac_compiler_gnu=$ac_cv_c_compiler_gnu
19531
19532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019533{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19534echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019535
19536if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019538cat >>confdefs.h <<\_ACEOF
19539#define HAVE_ISNAN_IN_CMATH 1
19540_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019541
Reid Spencerabec8f92004-10-27 23:03:44 +000019542fi
19543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019544{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19545echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19546if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019548else
Reid Spencera773bd52006-08-04 18:18:08 +000019549 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019550ac_cpp='$CXXCPP $CPPFLAGS'
19551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019560/* end confdefs.h. */
19561#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019562int
19563main ()
19564{
19565float f; std::isnan(f);
19566 ;
19567 return 0;
19568}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019569_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570rm -f conftest.$ac_objext
19571if { (ac_try="$ac_compile"
19572case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19575esac
19576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_compile") 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585 { (case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588esac
19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_try") 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest.$ac_objext'
19595 { (case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19598esac
19599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_try") 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019604 ac_cv_func_std_isnan_in_cmath=yes
19605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019611
Reid Spencera773bd52006-08-04 18:18:08 +000019612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019613 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019614ac_cpp='$CPP $CPPFLAGS'
19615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617ac_compiler_gnu=$ac_cv_c_compiler_gnu
19618
19619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019620{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19621echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019622
19623if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019625cat >>confdefs.h <<\_ACEOF
19626#define HAVE_STD_ISNAN_IN_CMATH 1
19627_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019628
Reid Spencerabec8f92004-10-27 23:03:44 +000019629fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019630
19631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019632{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19633echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19634if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019636else
Reid Spencera773bd52006-08-04 18:18:08 +000019637 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019638ac_cpp='$CXXCPP $CPPFLAGS'
19639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019643 cat >conftest.$ac_ext <<_ACEOF
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019648/* end confdefs.h. */
19649#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019650int
19651main ()
19652{
19653float f; isinf(f);
19654 ;
19655 return 0;
19656}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019657_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658rm -f conftest.$ac_objext
19659if { (ac_try="$ac_compile"
19660case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663esac
19664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_compile") 2>conftest.er1
19666 ac_status=$?
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
19672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19673 { (case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19676esac
19677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_try") 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try='test -s conftest.$ac_objext'
19683 { (case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686esac
19687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_try") 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019692 ac_cv_func_isinf_in_math_h=yes
19693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699
Reid Spencera773bd52006-08-04 18:18:08 +000019700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019701 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019702ac_cpp='$CPP $CPPFLAGS'
19703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705ac_compiler_gnu=$ac_cv_c_compiler_gnu
19706
19707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019708{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19709echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019710
19711if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019713cat >>confdefs.h <<\_ACEOF
19714#define HAVE_ISINF_IN_MATH_H 1
19715_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019716
Reid Spencerabec8f92004-10-27 23:03:44 +000019717fi
19718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019719{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19720echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19721if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019723else
Reid Spencera773bd52006-08-04 18:18:08 +000019724 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019725ac_cpp='$CXXCPP $CPPFLAGS'
19726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730 cat >conftest.$ac_ext <<_ACEOF
19731/* confdefs.h. */
19732_ACEOF
19733cat confdefs.h >>conftest.$ac_ext
19734cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019735/* end confdefs.h. */
19736#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019737int
19738main ()
19739{
19740float f; isinf(f);
19741 ;
19742 return 0;
19743}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019744_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019745rm -f conftest.$ac_objext
19746if { (ac_try="$ac_compile"
19747case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19750esac
19751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_compile") 2>conftest.er1
19753 ac_status=$?
19754 grep -v '^ *+' conftest.er1 >conftest.err
19755 rm -f conftest.er1
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19760 { (case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763esac
19764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_try") 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19773esac
19774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_try") 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019779 ac_cv_func_isinf_in_cmath=yes
19780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019781 echo "$as_me: failed program was:" >&5
19782sed 's/^/| /' conftest.$ac_ext >&5
19783
19784 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019786
Reid Spencera773bd52006-08-04 18:18:08 +000019787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019788 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019789ac_cpp='$CPP $CPPFLAGS'
19790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19792ac_compiler_gnu=$ac_cv_c_compiler_gnu
19793
19794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019795{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19796echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019797
19798if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019800cat >>confdefs.h <<\_ACEOF
19801#define HAVE_ISINF_IN_CMATH 1
19802_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019803
Reid Spencerabec8f92004-10-27 23:03:44 +000019804fi
19805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19807echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19808if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019810else
Reid Spencera773bd52006-08-04 18:18:08 +000019811 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019812ac_cpp='$CXXCPP $CPPFLAGS'
19813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817 cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019822/* end confdefs.h. */
19823#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019824int
19825main ()
19826{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019827float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019828 ;
19829 return 0;
19830}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019831_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019832rm -f conftest.$ac_objext
19833if { (ac_try="$ac_compile"
19834case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837esac
19838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_compile") 2>conftest.er1
19840 ac_status=$?
19841 grep -v '^ *+' conftest.er1 >conftest.err
19842 rm -f conftest.er1
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
19846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19847 { (case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850esac
19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_try") 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest.$ac_objext'
19857 { (case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860esac
19861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_try") 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019866 ac_cv_func_std_isinf_in_cmath=yes
19867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019868 echo "$as_me: failed program was:" >&5
19869sed 's/^/| /' conftest.$ac_ext >&5
19870
19871 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019873
Reid Spencera773bd52006-08-04 18:18:08 +000019874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019875 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019876ac_cpp='$CPP $CPPFLAGS'
19877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879ac_compiler_gnu=$ac_cv_c_compiler_gnu
19880
19881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019882{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19883echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019884
19885if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019887cat >>confdefs.h <<\_ACEOF
19888#define HAVE_STD_ISINF_IN_CMATH 1
19889_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019890
Reid Spencerabec8f92004-10-27 23:03:44 +000019891fi
19892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019893{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19894echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19895if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019897else
Reid Spencera773bd52006-08-04 18:18:08 +000019898 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019899ac_cpp='$CXXCPP $CPPFLAGS'
19900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019904 cat >conftest.$ac_ext <<_ACEOF
19905/* confdefs.h. */
19906_ACEOF
19907cat confdefs.h >>conftest.$ac_ext
19908cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019909/* end confdefs.h. */
19910#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019911int
19912main ()
19913{
19914float f; finite(f);
19915 ;
19916 return 0;
19917}
Brian Gaeked59a6472004-07-21 03:33:58 +000019918_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019919rm -f conftest.$ac_objext
19920if { (ac_try="$ac_compile"
19921case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_compile") 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19934 { (case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937esac
19938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_try") 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest.$ac_objext'
19944 { (case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19947esac
19948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_try") 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019953 ac_cv_func_finite_in_ieeefp_h=yes
19954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019955 echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
19958 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019960
Reid Spencera773bd52006-08-04 18:18:08 +000019961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019962 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019963ac_cpp='$CPP $CPPFLAGS'
19964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19966ac_compiler_gnu=$ac_cv_c_compiler_gnu
19967
19968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019969{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19970echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019971
Brian Gaeke6802b552004-10-28 05:06:45 +000019972if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019974cat >>confdefs.h <<\_ACEOF
19975#define HAVE_FINITE_IN_IEEEFP_H 1
19976_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019977
Reid Spencerabec8f92004-10-27 23:03:44 +000019978fi
19979
19980
19981
Reid Spencer30fe5262007-01-20 07:48:49 +000019982if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019983
19984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019985for ac_header in stdlib.h unistd.h
19986do
19987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993fi
19994ac_res=`eval echo '${'$as_ac_Header'}'`
19995 { echo "$as_me:$LINENO: result: $ac_res" >&5
19996echo "${ECHO_T}$ac_res" >&6; }
19997else
19998 # Is the header compilable?
19999{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20001cat >conftest.$ac_ext <<_ACEOF
20002/* confdefs.h. */
20003_ACEOF
20004cat confdefs.h >>conftest.$ac_ext
20005cat >>conftest.$ac_ext <<_ACEOF
20006/* end confdefs.h. */
20007$ac_includes_default
20008#include <$ac_header>
20009_ACEOF
20010rm -f conftest.$ac_objext
20011if { (ac_try="$ac_compile"
20012case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015esac
20016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_compile") 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } &&
20024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20025 { (case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028esac
20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_try") 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest.$ac_objext'
20035 { (case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20038esac
20039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_try") 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 ac_header_compiler=yes
20045else
20046 echo "$as_me: failed program was:" >&5
20047sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020049 ac_header_compiler=no
20050fi
20051
20052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20054echo "${ECHO_T}$ac_header_compiler" >&6; }
20055
20056# Is the header present?
20057{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20059cat >conftest.$ac_ext <<_ACEOF
20060/* confdefs.h. */
20061_ACEOF
20062cat confdefs.h >>conftest.$ac_ext
20063cat >>conftest.$ac_ext <<_ACEOF
20064/* end confdefs.h. */
20065#include <$ac_header>
20066_ACEOF
20067if { (ac_try="$ac_cpp conftest.$ac_ext"
20068case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } >/dev/null; then
20080 if test -s conftest.err; then
20081 ac_cpp_err=$ac_c_preproc_warn_flag
20082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20083 else
20084 ac_cpp_err=
20085 fi
20086else
20087 ac_cpp_err=yes
20088fi
20089if test -z "$ac_cpp_err"; then
20090 ac_header_preproc=yes
20091else
20092 echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ac_header_preproc=no
20096fi
20097
20098rm -f conftest.err conftest.$ac_ext
20099{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20100echo "${ECHO_T}$ac_header_preproc" >&6; }
20101
20102# So? What about this header?
20103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20104 yes:no: )
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20109 ac_header_preproc=yes
20110 ;;
20111 no:yes:* )
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20119echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20124 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020125## ------------------------------------ ##
20126## Report this to http://llvm.org/bugs/ ##
20127## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020128_ASBOX
20129 ) | sed "s/^/$as_me: WARNING: /" >&2
20130 ;;
20131esac
20132{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20136else
20137 eval "$as_ac_Header=\$ac_header_preproc"
20138fi
20139ac_res=`eval echo '${'$as_ac_Header'}'`
20140 { echo "$as_me:$LINENO: result: $ac_res" >&5
20141echo "${ECHO_T}$ac_res" >&6; }
20142
20143fi
20144if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020145 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020147_ACEOF
20148
20149fi
20150
20151done
20152
20153
20154for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020155do
20156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20157{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20159if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20161else
20162 cat >conftest.$ac_ext <<_ACEOF
20163/* confdefs.h. */
20164_ACEOF
20165cat confdefs.h >>conftest.$ac_ext
20166cat >>conftest.$ac_ext <<_ACEOF
20167/* end confdefs.h. */
20168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20170#define $ac_func innocuous_$ac_func
20171
20172/* System header to define __stub macros and hopefully few prototypes,
20173 which can conflict with char $ac_func (); below.
20174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20175 <limits.h> exists even on freestanding compilers. */
20176
20177#ifdef __STDC__
20178# include <limits.h>
20179#else
20180# include <assert.h>
20181#endif
20182
20183#undef $ac_func
20184
20185/* Override any GCC internal prototype to avoid an error.
20186 Use char because int might match the return type of a GCC
20187 builtin and then its argument prototype would still apply. */
20188#ifdef __cplusplus
20189extern "C"
20190#endif
20191char $ac_func ();
20192/* The GNU C library defines this for functions which it implements
20193 to always fail with ENOSYS. Some functions are actually named
20194 something starting with __ and the normal name is an alias. */
20195#if defined __stub_$ac_func || defined __stub___$ac_func
20196choke me
20197#endif
20198
20199int
20200main ()
20201{
20202return $ac_func ();
20203 ;
20204 return 0;
20205}
20206_ACEOF
20207rm -f conftest.$ac_objext conftest$ac_exeext
20208if { (ac_try="$ac_link"
20209case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212esac
20213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_link") 2>conftest.er1
20215 ac_status=$?
20216 grep -v '^ *+' conftest.er1 >conftest.err
20217 rm -f conftest.er1
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20222 { (case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20225esac
20226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_try") 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest$ac_exeext'
20232 { (case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20235esac
20236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_try") 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 eval "$as_ac_var=yes"
20242else
20243 echo "$as_me: failed program was:" >&5
20244sed 's/^/| /' conftest.$ac_ext >&5
20245
20246 eval "$as_ac_var=no"
20247fi
20248
20249rm -f core conftest.err conftest.$ac_objext \
20250 conftest$ac_exeext conftest.$ac_ext
20251fi
20252ac_res=`eval echo '${'$as_ac_var'}'`
20253 { echo "$as_me:$LINENO: result: $ac_res" >&5
20254echo "${ECHO_T}$ac_res" >&6; }
20255if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020256 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020258_ACEOF
20259
20260fi
20261done
20262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020263{ echo "$as_me:$LINENO: checking for working mmap" >&5
20264echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20265if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020268 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020269 ac_cv_func_mmap_fixed_mapped=no
20270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020271 cat >conftest.$ac_ext <<_ACEOF
20272/* confdefs.h. */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020277$ac_includes_default
20278/* malloc might have been renamed as rpl_malloc. */
20279#undef malloc
20280
20281/* Thanks to Mike Haertel and Jim Avera for this test.
20282 Here is a matrix of mmap possibilities:
20283 mmap private not fixed
20284 mmap private fixed at somewhere currently unmapped
20285 mmap private fixed at somewhere already mapped
20286 mmap shared not fixed
20287 mmap shared fixed at somewhere currently unmapped
20288 mmap shared fixed at somewhere already mapped
20289 For private mappings, we should verify that changes cannot be read()
20290 back from the file, nor mmap's back from the file at a different
20291 address. (There have been systems where private was not correctly
20292 implemented like the infamous i386 svr4.0, and systems where the
20293 VM page cache was not coherent with the file system buffer cache
20294 like early versions of FreeBSD and possibly contemporary NetBSD.)
20295 For shared mappings, we should conversely verify that changes get
20296 propagated back to all the places they're supposed to be.
20297
20298 Grep wants private fixed already mapped.
20299 The main things grep needs to know about mmap are:
20300 * does it exist and is it safe to write into the mmap'd area
20301 * how to use it (BSD variants) */
20302
20303#include <fcntl.h>
20304#include <sys/mman.h>
20305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020307char *malloc ();
20308#endif
20309
20310/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020311#if !HAVE_GETPAGESIZE
20312/* Assume that all systems that can run configure have sys/param.h. */
20313# if !HAVE_SYS_PARAM_H
20314# define HAVE_SYS_PARAM_H 1
20315# endif
20316
John Criswell7a73b802003-06-30 21:59:07 +000020317# ifdef _SC_PAGESIZE
20318# define getpagesize() sysconf(_SC_PAGESIZE)
20319# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020321# include <sys/param.h>
20322# ifdef EXEC_PAGESIZE
20323# define getpagesize() EXEC_PAGESIZE
20324# else /* no EXEC_PAGESIZE */
20325# ifdef NBPG
20326# define getpagesize() NBPG * CLSIZE
20327# ifndef CLSIZE
20328# define CLSIZE 1
20329# endif /* no CLSIZE */
20330# else /* no NBPG */
20331# ifdef NBPC
20332# define getpagesize() NBPC
20333# else /* no NBPC */
20334# ifdef PAGESIZE
20335# define getpagesize() PAGESIZE
20336# endif /* PAGESIZE */
20337# endif /* no NBPC */
20338# endif /* no NBPG */
20339# endif /* no EXEC_PAGESIZE */
20340# else /* no HAVE_SYS_PARAM_H */
20341# define getpagesize() 8192 /* punt totally */
20342# endif /* no HAVE_SYS_PARAM_H */
20343# endif /* no _SC_PAGESIZE */
20344
20345#endif /* no HAVE_GETPAGESIZE */
20346
20347int
20348main ()
20349{
20350 char *data, *data2, *data3;
20351 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020353
20354 pagesize = getpagesize ();
20355
20356 /* First, make a file with some known garbage in it. */
20357 data = (char *) malloc (pagesize);
20358 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020359 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020360 for (i = 0; i < pagesize; ++i)
20361 *(data + i) = rand ();
20362 umask (0);
20363 fd = creat ("conftest.mmap", 0600);
20364 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020365 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020366 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020368 close (fd);
20369
20370 /* Next, try to mmap the file at a fixed address which already has
20371 something else allocated at it. If we can, also make sure that
20372 we see the same garbage. */
20373 fd = open ("conftest.mmap", O_RDWR);
20374 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020375 return 1;
20376 data2 = (char *) malloc (2 * pagesize);
20377 if (!data2)
20378 return 1;
20379 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020380 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020381 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020382 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020383 for (i = 0; i < pagesize; ++i)
20384 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020386
20387 /* Finally, make sure that changes to the mapped area do not
20388 percolate back to the file as seen by read(). (This is a bug on
20389 some variants of i386 svr4.0.) */
20390 for (i = 0; i < pagesize; ++i)
20391 *(data2 + i) = *(data2 + i) + 1;
20392 data3 = (char *) malloc (pagesize);
20393 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020395 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020397 for (i = 0; i < pagesize; ++i)
20398 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020399 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020400 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020401 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020402}
20403_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020404rm -f conftest$ac_exeext
20405if { (ac_try="$ac_link"
20406case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20409esac
20410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_link") 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418esac
20419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020424 ac_cv_func_mmap_fixed_mapped=yes
20425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020426 echo "$as_me: program exited with status $ac_status" >&5
20427echo "$as_me: failed program was:" >&5
20428sed 's/^/| /' conftest.$ac_ext >&5
20429
20430( exit $ac_status )
20431ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020433rm -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 +000020434fi
Reid Spencera773bd52006-08-04 18:18:08 +000020435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020436
John Criswell7a73b802003-06-30 21:59:07 +000020437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020438{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20439echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020440if test $ac_cv_func_mmap_fixed_mapped = yes; then
20441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020442cat >>confdefs.h <<\_ACEOF
20443#define HAVE_MMAP 1
20444_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020445
20446fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020447rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20450echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20451if test "${ac_cv_func_mmap_file+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020453else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020454 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020455ac_cpp='$CPP $CPPFLAGS'
20456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458ac_compiler_gnu=$ac_cv_c_compiler_gnu
20459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020460 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020461 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020465 /* confdefs.h. */
20466_ACEOF
20467cat confdefs.h >>conftest.$ac_ext
20468cat >>conftest.$ac_ext <<_ACEOF
20469/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020470
John Criswell7a73b802003-06-30 21:59:07 +000020471#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020472#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020473#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020474
20475int
20476main ()
20477{
John Criswell7a73b802003-06-30 21:59:07 +000020478
20479 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020480 fd = creat ("foo",0777);
20481 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20482 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020483 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020484 ;
20485 return 0;
20486}
John Criswell7a73b802003-06-30 21:59:07 +000020487_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020488rm -f conftest$ac_exeext
20489if { (ac_try="$ac_link"
20490case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493esac
20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_link") 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502esac
20503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020508 ac_cv_func_mmap_file=yes
20509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020510 echo "$as_me: program exited with status $ac_status" >&5
20511echo "$as_me: failed program was:" >&5
20512sed 's/^/| /' conftest.$ac_ext >&5
20513
20514( exit $ac_status )
20515ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020516fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020517rm -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 +000020518fi
Reid Spencera773bd52006-08-04 18:18:08 +000020519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520
John Criswell7a73b802003-06-30 21:59:07 +000020521 ac_ext=c
20522ac_cpp='$CPP $CPPFLAGS'
20523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20525ac_compiler_gnu=$ac_cv_c_compiler_gnu
20526
20527
20528fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020529{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20530echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020531if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533cat >>confdefs.h <<\_ACEOF
20534#define HAVE_MMAP_FILE
20535_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020536
20537 MMAP_FILE=yes
20538
20539fi
20540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20542echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20543if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020545else
Reid Spencer582a23c2004-12-29 07:07:57 +000020546 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020547 ac_cv_need_dev_zero_for_mmap=yes
20548 else
20549 ac_cv_need_dev_zero_for_mmap=no
20550 fi
20551
20552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020553{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20554echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020555if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020557cat >>confdefs.h <<\_ACEOF
20558#define NEED_DEV_ZERO_FOR_MMAP 1
20559_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020560
20561fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020562
Reid Spencer30fe5262007-01-20 07:48:49 +000020563 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20564 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20566echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020567 fi
20568 if test "$ac_cv_func_mmap_file" = "no"
20569 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020570 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20571echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020572 fi
John Criswellb13092b2003-07-22 21:00:24 +000020573fi
John Criswell7a73b802003-06-30 21:59:07 +000020574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020575{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20576echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020577ac_ext=cpp
20578ac_cpp='$CXXCPP $CPPFLAGS'
20579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020583cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h. */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020588/* end confdefs.h. */
20589int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020590 volatile unsigned long val = 1;
20591 __sync_synchronize();
20592 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020593 __sync_add_and_fetch(&val, 1);
20594 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020595 return 0;
20596 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020597
20598_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020599rm -f conftest.$ac_objext conftest$ac_exeext
20600if { (ac_try="$ac_link"
20601case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20604esac
20605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_link") 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614 { (case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617esac
20618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_try") 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627esac
20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020633 ac_ext=c
20634ac_cpp='$CPP $CPPFLAGS'
20635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20637ac_compiler_gnu=$ac_cv_c_compiler_gnu
20638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020639 { echo "$as_me:$LINENO: result: yes" >&5
20640echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020642cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020643#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020644_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020645
Owen Andersond4b272b2009-05-18 23:58:51 +000020646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020647 echo "$as_me: failed program was:" >&5
20648sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650 { echo "$as_me:$LINENO: result: no" >&5
20651echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020654#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655_ACEOF
20656
20657 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20658echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020660
Owen Andersond4b272b2009-05-18 23:58:51 +000020661rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020662 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020663
John Criswell7a73b802003-06-30 21:59:07 +000020664
Nick Lewycky4372e692009-09-29 06:18:23 +000020665if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20667echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20668if test "${llvm_cv_linux_mixed+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020670else
20671 ac_ext=c
20672ac_cpp='$CPP $CPPFLAGS'
20673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20675ac_compiler_gnu=$ac_cv_c_compiler_gnu
20676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020677 cat >conftest.$ac_ext <<_ACEOF
20678/* confdefs.h. */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020682/* end confdefs.h. */
20683#ifndef __x86_64__
20684 error: Not x86-64 even if uname says so!
20685 #endif
20686
20687int
20688main ()
20689{
20690
20691 ;
20692 return 0;
20693}
20694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020695rm -f conftest.$ac_objext
20696if { (ac_try="$ac_compile"
20697case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700esac
20701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_compile") 2>conftest.er1
20703 ac_status=$?
20704 grep -v '^ *+' conftest.er1 >conftest.err
20705 rm -f conftest.er1
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20710 { (case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20713esac
20714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_try") 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest.$ac_objext'
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
Nick Lewycky4372e692009-09-29 06:18:23 +000020729 llvm_cv_linux_mixed=no
20730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020731 echo "$as_me: failed program was:" >&5
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
20734 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020736
Nick Lewycky4372e692009-09-29 06:18:23 +000020737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738 ac_ext=c
20739ac_cpp='$CPP $CPPFLAGS'
20740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742ac_compiler_gnu=$ac_cv_c_compiler_gnu
20743
20744
20745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020746{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20747echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020748
20749 if test "$llvm_cv_linux_mixed" = "yes"; then
20750 llvm_cv_target_arch="x86"
20751 ARCH="x86"
20752 fi
20753fi
20754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020755
Reid Spencer9372f152007-07-30 20:13:24 +000020756for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757do
20758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20759{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763else
20764 cat >conftest.$ac_ext <<_ACEOF
20765/* confdefs.h. */
20766_ACEOF
20767cat confdefs.h >>conftest.$ac_ext
20768cat >>conftest.$ac_ext <<_ACEOF
20769/* end confdefs.h. */
20770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20772#define $ac_func innocuous_$ac_func
20773
20774/* System header to define __stub macros and hopefully few prototypes,
20775 which can conflict with char $ac_func (); below.
20776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20777 <limits.h> exists even on freestanding compilers. */
20778
20779#ifdef __STDC__
20780# include <limits.h>
20781#else
20782# include <assert.h>
20783#endif
20784
20785#undef $ac_func
20786
20787/* Override any GCC internal prototype to avoid an error.
20788 Use char because int might match the return type of a GCC
20789 builtin and then its argument prototype would still apply. */
20790#ifdef __cplusplus
20791extern "C"
20792#endif
20793char $ac_func ();
20794/* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797#if defined __stub_$ac_func || defined __stub___$ac_func
20798choke me
20799#endif
20800
20801int
20802main ()
20803{
20804return $ac_func ();
20805 ;
20806 return 0;
20807}
20808_ACEOF
20809rm -f conftest.$ac_objext conftest$ac_exeext
20810if { (ac_try="$ac_link"
20811case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20814esac
20815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_link") 2>conftest.er1
20817 ac_status=$?
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20827esac
20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest$ac_exeext'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20837esac
20838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 eval "$as_ac_var=yes"
20844else
20845 echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 eval "$as_ac_var=no"
20849fi
20850
20851rm -f core conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20853fi
20854ac_res=`eval echo '${'$as_ac_var'}'`
20855 { echo "$as_me:$LINENO: result: $ac_res" >&5
20856echo "${ECHO_T}$ac_res" >&6; }
20857if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020858 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020860_ACEOF
20861
20862fi
20863done
20864
20865
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020866SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020867
20868
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020869SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20870
20871
Jeff Cohen28783c32007-01-12 18:22:38 +000020872if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020873 prefix="/usr/local"
20874fi
Reid Spencere9de0912004-08-20 09:03:57 +000020875eval LLVM_PREFIX="${prefix}";
20876eval LLVM_BINDIR="${prefix}/bin";
20877eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020878eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020879eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020880eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020881eval LLVM_INCLUDEDIR="${prefix}/include";
20882eval LLVM_INFODIR="${prefix}/info";
20883eval LLVM_MANDIR="${prefix}/man";
20884LLVM_CONFIGTIME=`date`
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000020896if test "${ENABLE_TIMESTAMPS}" = "0"; then
20897 LLVM_CONFIGTIME="(timestamp not enabled)"
20898fi
20899
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020900
Reid Spencere9de0912004-08-20 09:03:57 +000020901cat >>confdefs.h <<_ACEOF
20902#define LLVM_PREFIX "$LLVM_PREFIX"
20903_ACEOF
20904
20905
20906cat >>confdefs.h <<_ACEOF
20907#define LLVM_BINDIR "$LLVM_BINDIR"
20908_ACEOF
20909
20910
20911cat >>confdefs.h <<_ACEOF
20912#define LLVM_LIBDIR "$LLVM_LIBDIR"
20913_ACEOF
20914
20915
20916cat >>confdefs.h <<_ACEOF
20917#define LLVM_DATADIR "$LLVM_DATADIR"
20918_ACEOF
20919
20920
20921cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020922#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020923_ACEOF
20924
20925
20926cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020927#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020928_ACEOF
20929
20930
20931cat >>confdefs.h <<_ACEOF
20932#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20933_ACEOF
20934
20935
20936cat >>confdefs.h <<_ACEOF
20937#define LLVM_INFODIR "$LLVM_INFODIR"
20938_ACEOF
20939
20940
20941cat >>confdefs.h <<_ACEOF
20942#define LLVM_MANDIR "$LLVM_MANDIR"
20943_ACEOF
20944
20945
20946cat >>confdefs.h <<_ACEOF
20947#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20948_ACEOF
20949
20950
Eric Christopher790e11c2007-12-01 00:34:39 +000020951cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020952#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020953_ACEOF
20954
20955
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020956if test "$BINDINGS_TO_BUILD" = auto ; then
20957 BINDINGS_TO_BUILD=""
20958 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20959 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20960 fi
20961fi
20962BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20963
20964
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020965ALL_BINDINGS=ocaml
20966
20967
Gordon Henriksenf0915682007-10-02 16:42:22 +000020968binding_prereqs_failed=0
20969for a_binding in $BINDINGS_TO_BUILD ; do
20970 case "$a_binding" in
20971 ocaml)
20972 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020973 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20974echo "$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 +000020975 binding_prereqs_failed=1
20976 fi
20977 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020978 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20979echo "$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 +000020980 binding_prereqs_failed=1
20981 fi
20982 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020983 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20984echo "$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 +000020985 fi
20986 if test "x$with_ocaml_libdir" != xauto ; then
20987 OCAML_LIBDIR=$with_ocaml_libdir
20988
20989 else
20990 ocaml_stdlib="`"$OCAMLC" -where`"
20991 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20992 then
20993 # ocaml stdlib is beneath our prefix; use stdlib
20994 OCAML_LIBDIR=$ocaml_stdlib
20995
20996 else
20997 # ocaml stdlib is outside our prefix; use libdir/ocaml
20998 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20999
21000 fi
21001 fi
21002 ;;
21003 esac
21004done
21005if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21007echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21008 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021009fi
21010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021011{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21012echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21013if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021015else
21016 ac_ext=cpp
21017ac_cpp='$CXXCPP $CPPFLAGS'
21018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21021
21022 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021023 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021024 cat >conftest.$ac_ext <<_ACEOF
21025/* confdefs.h. */
21026_ACEOF
21027cat confdefs.h >>conftest.$ac_ext
21028cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021029/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021030template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021031int
21032main ()
21033{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021034X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021035 ;
21036 return 0;
21037}
21038_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021039rm -f conftest.$ac_objext
21040if { (ac_try="$ac_compile"
21041case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21044esac
21045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_compile") 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21054 { (case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057esac
21058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_try") 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; } &&
21063 { ac_try='test -s conftest.$ac_objext'
21064 { (case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21067esac
21068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_try") 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021073 llvm_cv_cxx_visibility_inlines_hidden=yes
21074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021075 echo "$as_me: failed program was:" >&5
21076sed 's/^/| /' conftest.$ac_ext >&5
21077
21078 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021080
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 CXXFLAGS="$oldcxxflags"
21083 ac_ext=c
21084ac_cpp='$CPP $CPPFLAGS'
21085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087ac_compiler_gnu=$ac_cv_c_compiler_gnu
21088
21089
21090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021091{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21092echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021093if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21094 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21095
21096else
21097 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21098
21099fi
21100
Gordon Henriksenf0915682007-10-02 16:42:22 +000021101
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021102if test "$llvm_cv_link_use_r" = "yes" ; then
21103 RPATH="-Wl,-R"
21104else
21105 RPATH="-Wl,-rpath"
21106fi
21107
21108
21109if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21110 RDYNAMIC="-Wl,-export-dynamic"
21111else
21112 RDYNAMIC=""
21113fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021114
21115
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021116
Eric Christophera1cba682010-08-08 02:44:25 +000021117ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021118
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021119
21120
21121
21122
21123
Douglas Gregor1555a232009-06-16 20:12:29 +000021124ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21125
21126ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21127
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021128ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21129
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021130ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21131
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021132ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021133
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021134
Reid Spencera773bd52006-08-04 18:18:08 +000021135ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021136
Eric Christopher360fa9a2011-10-26 00:42:12 +000021137
Reid Spencerea949cf2006-08-16 00:45:38 +000021138ac_config_files="$ac_config_files llvm.spec"
21139
21140
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021141ac_config_files="$ac_config_files docs/doxygen.cfg"
21142
Eric Christopher63c09512012-02-02 00:16:55 +000021143
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021144if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021145 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021146fi
Eric Christopher63c09512012-02-02 00:16:55 +000021147if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021148 configh="include/clang/Config/config.h"
21149 doxy="docs/doxygen.cfg"
21150 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021151
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021152 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021153
21154fi
21155
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021156ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021157
Eric Christopher360fa9a2011-10-26 00:42:12 +000021158
Reid Spencera773bd52006-08-04 18:18:08 +000021159ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021160
Reid Spencera773bd52006-08-04 18:18:08 +000021161ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021162
21163
Reid Spencera773bd52006-08-04 18:18:08 +000021164ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021165
21166
Reid Spencera773bd52006-08-04 18:18:08 +000021167ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021168
21169
Reid Spencera773bd52006-08-04 18:18:08 +000021170ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021171
21172
Reid Spencer8b2e1412006-11-17 03:32:33 +000021173ac_config_commands="$ac_config_commands runtime/Makefile"
21174
21175
Reid Spencera773bd52006-08-04 18:18:08 +000021176ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021177
21178
Reid Spencera773bd52006-08-04 18:18:08 +000021179ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021180
21181
Bill Wendlingf24eb392009-01-04 23:12:30 +000021182ac_config_commands="$ac_config_commands unittests/Makefile"
21183
21184
Reid Spencera773bd52006-08-04 18:18:08 +000021185ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021186
21187
Reid Spencera773bd52006-08-04 18:18:08 +000021188ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021189
21190
Reid Spencera773bd52006-08-04 18:18:08 +000021191ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021192
21193
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021194ac_config_commands="$ac_config_commands bindings/Makefile"
21195
21196
21197ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21198
21199
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021200
John Criswell7a73b802003-06-30 21:59:07 +000021201cat >confcache <<\_ACEOF
21202# This file is a shell script that caches the results of configure
21203# tests run on this system so they can be shared between configure
21204# scripts and configure runs, see configure's option --config-cache.
21205# It is not useful on other systems. If it contains results you don't
21206# want to keep, you may remove or edit it.
21207#
21208# config.status only pays attention to the cache file if you give it
21209# the --recheck option to rerun configure.
21210#
John Criswell0c38eaf2003-09-10 15:17:25 +000021211# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021212# loading this file, other *unset* `ac_cv_foo' will be assigned the
21213# following values.
21214
21215_ACEOF
21216
21217# The following way of writing the cache mishandles newlines in values,
21218# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021219# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021220# Ultrix sh set writes to stderr and can't be redirected directly,
21221# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021222(
21223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21224 eval ac_val=\$$ac_var
21225 case $ac_val in #(
21226 *${as_nl}*)
21227 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021228 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21229echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021230 esac
21231 case $ac_var in #(
21232 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021233 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021234 esac ;;
21235 esac
21236 done
21237
John Criswell7a73b802003-06-30 21:59:07 +000021238 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21240 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021241 # `set' does not quote correctly, so add quotes (double-quote
21242 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021243 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021244 "s/'/'\\\\''/g;
21245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021246 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021247 *)
21248 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021250 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021251 esac |
21252 sort
21253) |
John Criswell7a73b802003-06-30 21:59:07 +000021254 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021255 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021256 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021257 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21259 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21261 :end' >>confcache
21262if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21263 if test -w "$cache_file"; then
21264 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21266echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021267 cat confcache >$cache_file
21268 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021269 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21270echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021271 fi
21272fi
21273rm -f confcache
21274
21275test "x$prefix" = xNONE && prefix=$ac_default_prefix
21276# Let make expand exec_prefix.
21277test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21278
John Criswell7a73b802003-06-30 21:59:07 +000021279DEFS=-DHAVE_CONFIG_H
21280
John Criswell0c38eaf2003-09-10 15:17:25 +000021281ac_libobjs=
21282ac_ltlibobjs=
21283for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21284 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21288 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21290 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021291done
21292LIBOBJS=$ac_libobjs
21293
21294LTLIBOBJS=$ac_ltlibobjs
21295
21296
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021297if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021298 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21299Usually this means the macro was only invoked conditionally." >&5
21300echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21301Usually this means the macro was only invoked conditionally." >&2;}
21302 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021303fi
21304if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021305 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21306Usually this means the macro was only invoked conditionally." >&5
21307echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21308Usually this means the macro was only invoked conditionally." >&2;}
21309 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021310fi
John Criswell7a73b802003-06-30 21:59:07 +000021311
21312: ${CONFIG_STATUS=./config.status}
21313ac_clean_files_save=$ac_clean_files
21314ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021315{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21316echo "$as_me: creating $CONFIG_STATUS" >&6;}
21317cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021318#! $SHELL
21319# Generated by $as_me.
21320# Run this file to recreate the current configuration.
21321# Compiler output produced by configure, useful for debugging
21322# configure, is in config.log if it exists.
21323
21324debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021325ac_cs_recheck=false
21326ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021327SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021330cat >>$CONFIG_STATUS <<\_ACEOF
21331## --------------------- ##
21332## M4sh Initialization. ##
21333## --------------------- ##
21334
21335# Be Bourne compatible
21336if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021337 emulate sh
21338 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021339 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021340 # is contrary to our usage. Disable this feature.
21341 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021342 setopt NO_GLOB_SUBST
21343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021346BIN_SH=xpg4; export BIN_SH # for Tru64
21347DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021348
John Criswell7a73b802003-06-30 21:59:07 +000021349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021350# PATH needs CR
21351# Avoid depending upon Character Ranges.
21352as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21353as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21354as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21355as_cr_digits='0123456789'
21356as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021357
21358# The user is always right.
21359if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021360 echo "#! /bin/sh" >conf$$.sh
21361 echo "exit 0" >>conf$$.sh
21362 chmod +x conf$$.sh
21363 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21364 PATH_SEPARATOR=';'
21365 else
21366 PATH_SEPARATOR=:
21367 fi
21368 rm -f conf$$.sh
21369fi
21370
21371# Support unset when possible.
21372if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21373 as_unset=unset
21374else
21375 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021376fi
John Criswell7a73b802003-06-30 21:59:07 +000021377
Reid Spencera773bd52006-08-04 18:18:08 +000021378
21379# IFS
21380# We need space, tab and new line, in precisely that order. Quoting is
21381# there to prevent editors from complaining about space-tab.
21382# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21383# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021384as_nl='
21385'
Reid Spencera773bd52006-08-04 18:18:08 +000021386IFS=" "" $as_nl"
21387
21388# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021389case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021390 *[\\/]* ) as_myself=$0 ;;
21391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021392for as_dir in $PATH
21393do
21394 IFS=$as_save_IFS
21395 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21397done
Reid Spencera773bd52006-08-04 18:18:08 +000021398IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021399
Reid Spencera773bd52006-08-04 18:18:08 +000021400 ;;
21401esac
21402# We did not find ourselves, most probably we were run as `sh COMMAND'
21403# in which case we are not to be found in the path.
21404if test "x$as_myself" = x; then
21405 as_myself=$0
21406fi
21407if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21409 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021410fi
21411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412# Work around bugs in pre-3.0 UWIN ksh.
21413for as_var in ENV MAIL MAILPATH
21414do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021415done
21416PS1='$ '
21417PS2='> '
21418PS4='+ '
21419
21420# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021421for as_var in \
21422 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21423 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21424 LC_TELEPHONE LC_TIME
21425do
21426 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21427 eval $as_var=C; export $as_var
21428 else
21429 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021430 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021431done
Torok Edwin871384f2010-01-26 08:50:50 +000021432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021433# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021434if expr a : '\(a\)' >/dev/null 2>&1 &&
21435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21436 as_expr=expr
21437else
21438 as_expr=false
21439fi
21440
21441if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21442 as_basename=basename
21443else
21444 as_basename=false
21445fi
21446
21447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021448# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021449as_me=`$as_basename -- "$0" ||
21450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21451 X"$0" : 'X\(//\)$' \| \
21452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021453echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021454 sed '/^.*\/\([^/][^/]*\)\/*$/{
21455 s//\1/
21456 q
21457 }
21458 /^X\/\(\/\/\)$/{
21459 s//\1/
21460 q
21461 }
21462 /^X\/\(\/\).*/{
21463 s//\1/
21464 q
21465 }
21466 s/.*/./; q'`
21467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021468# CDPATH.
21469$as_unset CDPATH
21470
21471
21472
21473 as_lineno_1=$LINENO
21474 as_lineno_2=$LINENO
21475 test "x$as_lineno_1" != "x$as_lineno_2" &&
21476 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21477
21478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21479 # uniformly replaced by the line number. The first 'sed' inserts a
21480 # line-number line after each line using $LINENO; the second 'sed'
21481 # does the real work. The second script uses 'N' to pair each
21482 # line-number line with the line containing $LINENO, and appends
21483 # trailing '-' during substitution so that $LINENO is not a special
21484 # case at line end.
21485 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21486 # scripts with optimization help from Paolo Bonzini. Blame Lee
21487 # E. McMahon (1931-1989) for sed's syntax. :-)
21488 sed -n '
21489 p
21490 /[$]LINENO/=
21491 ' <$as_myself |
21492 sed '
21493 s/[$]LINENO.*/&-/
21494 t lineno
21495 b
21496 :lineno
21497 N
21498 :loop
21499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21500 t loop
21501 s/-\n.*//
21502 ' >$as_me.lineno &&
21503 chmod +x "$as_me.lineno" ||
21504 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21505 { (exit 1); exit 1; }; }
21506
21507 # Don't try to exec as it changes $[0], causing all sort of problems
21508 # (the dirname of $[0] is not the place where we might find the
21509 # original and so on. Autoconf is especially sensitive to this).
21510 . "./$as_me.lineno"
21511 # Exit status is that of the last command.
21512 exit
21513}
21514
21515
21516if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21517 as_dirname=dirname
21518else
21519 as_dirname=false
21520fi
Reid Spencera773bd52006-08-04 18:18:08 +000021521
21522ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021524-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021525 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021526 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021528 esac;;
21529*)
21530 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021531esac
21532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533if expr a : '\(a\)' >/dev/null 2>&1 &&
21534 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21535 as_expr=expr
21536else
21537 as_expr=false
21538fi
21539
John Criswell7a73b802003-06-30 21:59:07 +000021540rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021541if test -d conf$$.dir; then
21542 rm -f conf$$.dir/conf$$.file
21543else
21544 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021545 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547echo >conf$$.file
21548if ln -s conf$$.file conf$$ 2>/dev/null; then
21549 as_ln_s='ln -s'
21550 # ... but there are two gotchas:
21551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21553 # In both cases, we have to default to `cp -p'.
21554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021555 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021556elif ln conf$$.file conf$$ 2>/dev/null; then
21557 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021558else
21559 as_ln_s='cp -p'
21560fi
Reid Spencera773bd52006-08-04 18:18:08 +000021561rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21562rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021563
John Criswell0c38eaf2003-09-10 15:17:25 +000021564if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021565 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021566else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021567 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021568 as_mkdir_p=false
21569fi
21570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021571# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21572# systems may use methods other than mode bits to determine executability.
21573cat >conf$$.file <<_ASEOF
21574#! /bin/sh
21575exit 0
21576_ASEOF
21577chmod +x conf$$.file
21578if test -x conf$$.file >/dev/null 2>&1; then
21579 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021584
21585# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021587
21588# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021590
21591
John Criswell7a73b802003-06-30 21:59:07 +000021592exec 6>&1
21593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021594# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021595# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021596# values after options handling.
21597ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021598This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021600
21601 CONFIG_FILES = $CONFIG_FILES
21602 CONFIG_HEADERS = $CONFIG_HEADERS
21603 CONFIG_LINKS = $CONFIG_LINKS
21604 CONFIG_COMMANDS = $CONFIG_COMMANDS
21605 $ $0 $@
21606
Reid Spencera773bd52006-08-04 18:18:08 +000021607on `(hostname || uname -n) 2>/dev/null | sed 1q`
21608"
21609
John Criswell7a73b802003-06-30 21:59:07 +000021610_ACEOF
21611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021612cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021613# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021614config_files="$ac_config_files"
21615config_headers="$ac_config_headers"
21616config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021617
Reid Spencera773bd52006-08-04 18:18:08 +000021618_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021621ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622\`$as_me' instantiates files from templates according to the
21623current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021626
21627 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628 -V, --version print version number, then exit
21629 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021630 -d, --debug don't remove temporary files
21631 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021632 --file=FILE[:TEMPLATE]
21633 instantiate the configuration file FILE
21634 --header=FILE[:TEMPLATE]
21635 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021636
21637Configuration files:
21638$config_files
21639
21640Configuration headers:
21641$config_headers
21642
John Criswellc764fbc2003-09-06 15:17:13 +000021643Configuration commands:
21644$config_commands
21645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021646Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021647
Reid Spencera773bd52006-08-04 18:18:08 +000021648_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021649cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021650ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021651LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021652configured by $0, generated by GNU Autoconf 2.60,
21653 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021656This config.status script is free software; the Free Software Foundation
21657gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021658
21659ac_pwd='$ac_pwd'
21660srcdir='$srcdir'
21661INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021662_ACEOF
21663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664cat >>$CONFIG_STATUS <<\_ACEOF
21665# If no file are specified by the user, then we need to provide default
21666# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021667ac_need_defaults=:
21668while test $# != 0
21669do
21670 case $1 in
21671 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021674 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021676 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021677 ac_option=$1
21678 ac_optarg=$2
21679 ac_shift=shift
21680 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021681 esac
21682
John Criswell0c38eaf2003-09-10 15:17:25 +000021683 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021684 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21686 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021688 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021689 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021690 debug=: ;;
21691 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021692 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021693 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021694 ac_need_defaults=false;;
21695 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021696 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021697 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021698 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021699 --he | --h)
21700 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021701 { echo "$as_me: error: ambiguous option: $1
21702Try \`$0 --help' for more information." >&2
21703 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021704 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021705 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21708 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021709
21710 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021711 -*) { echo "$as_me: error: unrecognized option: $1
21712Try \`$0 --help' for more information." >&2
21713 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021715 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021716 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021717
21718 esac
21719 shift
21720done
21721
John Criswell0c38eaf2003-09-10 15:17:25 +000021722ac_configure_extra_args=
21723
21724if $ac_cs_silent; then
21725 exec 6>/dev/null
21726 ac_configure_extra_args="$ac_configure_extra_args --silent"
21727fi
21728
21729_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021730cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021731if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21733 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021734 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021735 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021736fi
21737
John Criswell7a73b802003-06-30 21:59:07 +000021738_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021739cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021740exec 5>>config.log
21741{
21742 echo
21743 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21744## Running $as_me. ##
21745_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021747} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021748
Reid Spencera773bd52006-08-04 18:18:08 +000021749_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021750cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021751#
Reid Spencera773bd52006-08-04 18:18:08 +000021752# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021753#
Reid Spencerc0682832005-02-24 19:05:19 +000021754llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021755
21756_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021759
21760# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021761for ac_config_target in $ac_config_targets
21762do
Reid Spencera773bd52006-08-04 18:18:08 +000021763 case $ac_config_target in
21764 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021765 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021766 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21767 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021768 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021769 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021770 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021771 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021772 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021773 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021774 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21775 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021776 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021777 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21778 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21779 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21780 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21781 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021782 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021783 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21784 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021785 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021786 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21787 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21788 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021789 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21790 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21793echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21794 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021795 esac
21796done
21797
Reid Spencera773bd52006-08-04 18:18:08 +000021798
John Criswell7a73b802003-06-30 21:59:07 +000021799# If the user did not use the arguments to specify the items to instantiate,
21800# then the envvar interface is used. Set only those that are not.
21801# We use the long form for the default assignment because of an extremely
21802# bizarre bug on SunOS 4.1.3.
21803if $ac_need_defaults; then
21804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21805 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021806 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021807fi
21808
John Criswell0c38eaf2003-09-10 15:17:25 +000021809# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021810# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021811# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021812# Hook for its removal unless debugging.
21813# Note that there is a small window in which the directory will not be cleaned:
21814# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021815$debug ||
21816{
Reid Spencera773bd52006-08-04 18:18:08 +000021817 tmp=
21818 trap 'exit_status=$?
21819 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21820' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021821 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021822}
John Criswell7a73b802003-06-30 21:59:07 +000021823# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021824
John Criswell7a73b802003-06-30 21:59:07 +000021825{
Reid Spencera773bd52006-08-04 18:18:08 +000021826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021827 test -n "$tmp" && test -d "$tmp"
21828} ||
21829{
Reid Spencera773bd52006-08-04 18:18:08 +000021830 tmp=./conf$$-$RANDOM
21831 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021832} ||
21833{
21834 echo "$me: cannot create a temporary directory in ." >&2
21835 { (exit 1); exit 1; }
21836}
John Criswell7a73b802003-06-30 21:59:07 +000021837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838#
21839# Set up the sed scripts for CONFIG_FILES section.
21840#
21841
21842# No need to generate the scripts if there are no CONFIG_FILES.
21843# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021844if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021845
21846_ACEOF
21847
Reid Spencera773bd52006-08-04 18:18:08 +000021848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021849
Reid Spencera773bd52006-08-04 18:18:08 +000021850ac_delim='%!_!# '
21851for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852 cat >conf$$subs.sed <<_ACEOF
21853SHELL!$SHELL$ac_delim
21854PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21855PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21856PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21857PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21858PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21859PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21860exec_prefix!$exec_prefix$ac_delim
21861prefix!$prefix$ac_delim
21862program_transform_name!$program_transform_name$ac_delim
21863bindir!$bindir$ac_delim
21864sbindir!$sbindir$ac_delim
21865libexecdir!$libexecdir$ac_delim
21866datarootdir!$datarootdir$ac_delim
21867datadir!$datadir$ac_delim
21868sysconfdir!$sysconfdir$ac_delim
21869sharedstatedir!$sharedstatedir$ac_delim
21870localstatedir!$localstatedir$ac_delim
21871includedir!$includedir$ac_delim
21872oldincludedir!$oldincludedir$ac_delim
21873docdir!$docdir$ac_delim
21874infodir!$infodir$ac_delim
21875htmldir!$htmldir$ac_delim
21876dvidir!$dvidir$ac_delim
21877pdfdir!$pdfdir$ac_delim
21878psdir!$psdir$ac_delim
21879libdir!$libdir$ac_delim
21880localedir!$localedir$ac_delim
21881mandir!$mandir$ac_delim
21882DEFS!$DEFS$ac_delim
21883ECHO_C!$ECHO_C$ac_delim
21884ECHO_N!$ECHO_N$ac_delim
21885ECHO_T!$ECHO_T$ac_delim
21886LIBS!$LIBS$ac_delim
21887build_alias!$build_alias$ac_delim
21888host_alias!$host_alias$ac_delim
21889target_alias!$target_alias$ac_delim
21890LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021891CC!$CC$ac_delim
21892CFLAGS!$CFLAGS$ac_delim
21893LDFLAGS!$LDFLAGS$ac_delim
21894CPPFLAGS!$CPPFLAGS$ac_delim
21895ac_ct_CC!$ac_ct_CC$ac_delim
21896EXEEXT!$EXEEXT$ac_delim
21897OBJEXT!$OBJEXT$ac_delim
21898CXX!$CXX$ac_delim
21899CXXFLAGS!$CXXFLAGS$ac_delim
21900ac_ct_CXX!$ac_ct_CXX$ac_delim
21901CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021903ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21904LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021905build!$build$ac_delim
21906build_cpu!$build_cpu$ac_delim
21907build_vendor!$build_vendor$ac_delim
21908build_os!$build_os$ac_delim
21909host!$host$ac_delim
21910host_cpu!$host_cpu$ac_delim
21911host_vendor!$host_vendor$ac_delim
21912host_os!$host_os$ac_delim
21913target!$target$ac_delim
21914target_cpu!$target_cpu$ac_delim
21915target_vendor!$target_vendor$ac_delim
21916target_os!$target_os$ac_delim
21917OS!$OS$ac_delim
21918HOST_OS!$HOST_OS$ac_delim
21919TARGET_OS!$TARGET_OS$ac_delim
21920LINKALL!$LINKALL$ac_delim
21921NOLINKALL!$NOLINKALL$ac_delim
21922LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21923LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21924ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021925HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021927GREP!$GREP$ac_delim
21928EGREP!$EGREP$ac_delim
21929LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21930BUILD_CC!$BUILD_CC$ac_delim
21931BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21932BUILD_CXX!$BUILD_CXX$ac_delim
21933CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021934ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021935ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21936ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21937DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21938ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21939EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21940DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21941DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21942JIT!$JIT$ac_delim
21943TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021944ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021945ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021946LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021947ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021948ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021949ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021953 break
21954 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021955 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21956echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21957 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021958 else
21959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021960 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021961done
21962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21964if test -n "$ac_eof"; then
21965 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21966 ac_eof=`expr $ac_eof + 1`
21967fi
21968
21969cat >>$CONFIG_STATUS <<_ACEOF
21970cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021972_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973sed '
21974s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21975s/^/s,@/; s/!/@,|#_!!_#|/
21976:n
21977t n
21978s/'"$ac_delim"'$/,g/; t
21979s/$/\\/; p
21980N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21981' >>$CONFIG_STATUS <conf$$subs.sed
21982rm -f conf$$subs.sed
21983cat >>$CONFIG_STATUS <<_ACEOF
21984CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021985_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021986
21987
21988ac_delim='%!_!# '
21989for ac_last_try in false false false false false :; do
21990 cat >conf$$subs.sed <<_ACEOF
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021991ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021992ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021993TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21994LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21995LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021996LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021997LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021998OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021999EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022000EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022001CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022002BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022003INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022004NM!$NM$ac_delim
22005ifGNUmake!$ifGNUmake$ac_delim
22006LN_S!$LN_S$ac_delim
22007CMP!$CMP$ac_delim
22008CP!$CP$ac_delim
22009DATE!$DATE$ac_delim
22010FIND!$FIND$ac_delim
22011MKDIR!$MKDIR$ac_delim
22012MV!$MV$ac_delim
22013RANLIB!$RANLIB$ac_delim
22014AR!$AR$ac_delim
22015RM!$RM$ac_delim
22016SED!$SED$ac_delim
22017TAR!$TAR$ac_delim
22018BINPWD!$BINPWD$ac_delim
22019GRAPHVIZ!$GRAPHVIZ$ac_delim
22020DOT!$DOT$ac_delim
22021FDP!$FDP$ac_delim
22022NEATO!$NEATO$ac_delim
22023TWOPI!$TWOPI$ac_delim
22024CIRCO!$CIRCO$ac_delim
22025GV!$GV$ac_delim
22026DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022027XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022028INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22029INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22030INSTALL_DATA!$INSTALL_DATA$ac_delim
22031BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022032CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022033DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022034GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022035GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022036PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022037ZIP!$ZIP$ac_delim
22038OCAMLC!$OCAMLC$ac_delim
22039OCAMLOPT!$OCAMLOPT$ac_delim
22040OCAMLDEP!$OCAMLDEP$ac_delim
22041OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022042GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022043HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22045INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22046CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22047CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22048LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022049NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22050NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022051COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052USE_UDIS86!$USE_UDIS86$ac_delim
22053USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022054USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22055INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22056INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022057HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22058HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22059MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022060SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022061SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022062LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22063LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22064LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22065LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22066LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22067LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22068LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22069LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22070LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22071LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22072BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22073ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022074OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22075ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22076RPATH!$RPATH$ac_delim
22077RDYNAMIC!$RDYNAMIC$ac_delim
22078LIBOBJS!$LIBOBJS$ac_delim
22079LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022080_ACEOF
22081
Eric Christophera1095b22012-06-28 20:35:00 +000022082 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022083 break
22084 elif $ac_last_try; then
22085 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22086echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22087 { (exit 1); exit 1; }; }
22088 else
22089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22090 fi
22091done
22092
22093ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22094if test -n "$ac_eof"; then
22095 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22096 ac_eof=`expr $ac_eof + 1`
22097fi
22098
22099cat >>$CONFIG_STATUS <<_ACEOF
22100cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22102_ACEOF
22103sed '
22104s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22105s/^/s,@/; s/!/@,|#_!!_#|/
22106:n
22107t n
22108s/'"$ac_delim"'$/,g/; t
22109s/$/\\/; p
22110N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22111' >>$CONFIG_STATUS <conf$$subs.sed
22112rm -f conf$$subs.sed
22113cat >>$CONFIG_STATUS <<_ACEOF
22114:end
22115s/|#_!!_#|//g
22116CEOF$ac_eof
22117_ACEOF
22118
22119
Reid Spencera773bd52006-08-04 18:18:08 +000022120# VPATH may cause trouble with some makes, so we remove $(srcdir),
22121# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22122# trailing colons and then remove the whole line if VPATH becomes empty
22123# (actually we leave an empty line to preserve line numbers).
22124if test "x$srcdir" = x.; then
22125 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22126s/:*\$(srcdir):*/:/
22127s/:*\${srcdir}:*/:/
22128s/:*@srcdir@:*/:/
22129s/^\([^=]*=[ ]*\):*/\1/
22130s/:*$//
22131s/^[^=]*=[ ]*$//
22132}'
22133fi
22134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022135cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022136fi # test -n "$CONFIG_FILES"
22137
Reid Spencera773bd52006-08-04 18:18:08 +000022138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022139for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022140do
22141 case $ac_tag in
22142 :[FHLC]) ac_mode=$ac_tag; continue;;
22143 esac
22144 case $ac_mode$ac_tag in
22145 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022146 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22147echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22148 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022149 :[FH]-) ac_tag=-:-;;
22150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22151 esac
22152 ac_save_IFS=$IFS
22153 IFS=:
22154 set x $ac_tag
22155 IFS=$ac_save_IFS
22156 shift
22157 ac_file=$1
22158 shift
22159
22160 case $ac_mode in
22161 :L) ac_source=$1;;
22162 :[FH])
22163 ac_file_inputs=
22164 for ac_f
22165 do
22166 case $ac_f in
22167 -) ac_f="$tmp/stdin";;
22168 *) # Look for the file first in the build tree, then in the source tree
22169 # (if the path is not absolute). The absolute path cannot be DOS-style,
22170 # because $ac_f cannot contain `:'.
22171 test -f "$ac_f" ||
22172 case $ac_f in
22173 [\\/$]*) false;;
22174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22175 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022176 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22177echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22178 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022179 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022180 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022181 done
22182
22183 # Let's still pretend it is `configure' which instantiates (i.e., don't
22184 # use $as_me), people would be surprised to read:
22185 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022186 configure_input="Generated from "`IFS=:
22187 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022188 if test x"$ac_file" != x-; then
22189 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022190 { echo "$as_me:$LINENO: creating $ac_file" >&5
22191echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022192 fi
22193
22194 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022196 esac
22197 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022198 esac
22199
Reid Spencera773bd52006-08-04 18:18:08 +000022200 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022201$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022202 X"$ac_file" : 'X\(//\)[^/]' \| \
22203 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022204 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022205echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22207 s//\1/
22208 q
22209 }
22210 /^X\(\/\/\)[^/].*/{
22211 s//\1/
22212 q
22213 }
22214 /^X\(\/\/\)$/{
22215 s//\1/
22216 q
22217 }
22218 /^X\(\/\).*/{
22219 s//\1/
22220 q
22221 }
22222 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022223 { as_dir="$ac_dir"
22224 case $as_dir in #(
22225 -*) as_dir=./$as_dir;;
22226 esac
22227 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22228 as_dirs=
22229 while :; do
22230 case $as_dir in #(
22231 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22232 *) as_qdir=$as_dir;;
22233 esac
22234 as_dirs="'$as_qdir' $as_dirs"
22235 as_dir=`$as_dirname -- "$as_dir" ||
22236$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22237 X"$as_dir" : 'X\(//\)[^/]' \| \
22238 X"$as_dir" : 'X\(//\)$' \| \
22239 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22240echo X"$as_dir" |
22241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22242 s//\1/
22243 q
22244 }
22245 /^X\(\/\/\)[^/].*/{
22246 s//\1/
22247 q
22248 }
22249 /^X\(\/\/\)$/{
22250 s//\1/
22251 q
22252 }
22253 /^X\(\/\).*/{
22254 s//\1/
22255 q
22256 }
22257 s/.*/./; q'`
22258 test -d "$as_dir" && break
22259 done
22260 test -z "$as_dirs" || eval "mkdir $as_dirs"
22261 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22262echo "$as_me: error: cannot create directory $as_dir" >&2;}
22263 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022264 ac_builddir=.
22265
Reid Spencera773bd52006-08-04 18:18:08 +000022266case "$ac_dir" in
22267.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22268*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022270 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022271 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022272 case $ac_top_builddir_sub in
22273 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22274 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22275 esac ;;
22276esac
22277ac_abs_top_builddir=$ac_pwd
22278ac_abs_builddir=$ac_pwd$ac_dir_suffix
22279# for backward compatibility:
22280ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022281
22282case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022283 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022284 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022285 ac_top_srcdir=$ac_top_builddir_sub
22286 ac_abs_top_srcdir=$ac_pwd ;;
22287 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022288 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022289 ac_top_srcdir=$srcdir
22290 ac_abs_top_srcdir=$srcdir ;;
22291 *) # Relative name.
22292 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22293 ac_top_srcdir=$ac_top_build_prefix$srcdir
22294 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022295esac
Reid Spencera773bd52006-08-04 18:18:08 +000022296ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022297
John Criswell7a73b802003-06-30 21:59:07 +000022298
Reid Spencera773bd52006-08-04 18:18:08 +000022299 case $ac_mode in
22300 :F)
22301 #
22302 # CONFIG_FILE
22303 #
John Criswell7a73b802003-06-30 21:59:07 +000022304
22305 case $INSTALL in
22306 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022307 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022308 esac
John Criswell7a73b802003-06-30 21:59:07 +000022309_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022311cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022312# If the template does not know about datarootdir, expand it.
22313# FIXME: This hack should be removed a few years after 2.60.
22314ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022315
22316case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022317 p
22318 q
22319}
22320/@datadir@/p
22321/@docdir@/p
22322/@infodir@/p
22323/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324/@mandir@/p
22325' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022326*datarootdir*) ac_datarootdir_seen=yes;;
22327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022328 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22329echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022330_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022331cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022332 ac_datarootdir_hack='
22333 s&@datadir@&$datadir&g
22334 s&@docdir@&$docdir&g
22335 s&@infodir@&$infodir&g
22336 s&@localedir@&$localedir&g
22337 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022338 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022339esac
22340_ACEOF
22341
22342# Neutralize VPATH when `$srcdir' = `.'.
22343# Shell code in configure.ac might set extrasub.
22344# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022345cat >>$CONFIG_STATUS <<_ACEOF
22346 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022347$extrasub
22348_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022349cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022350:t
22351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022352s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022353s&@top_builddir@&$ac_top_builddir_sub&;t t
22354s&@srcdir@&$ac_srcdir&;t t
22355s&@abs_srcdir@&$ac_abs_srcdir&;t t
22356s&@top_srcdir@&$ac_top_srcdir&;t t
22357s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22358s&@builddir@&$ac_builddir&;t t
22359s&@abs_builddir@&$ac_abs_builddir&;t t
22360s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22361s&@INSTALL@&$ac_INSTALL&;t t
22362$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022363" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022364
Reid Spencera773bd52006-08-04 18:18:08 +000022365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022368 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022369which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022370echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022371which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022372
Reid Spencera773bd52006-08-04 18:18:08 +000022373 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022374 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022375 -) cat "$tmp/out"; rm -f "$tmp/out";;
22376 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22377 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022378 ;;
22379 :H)
22380 #
22381 # CONFIG_HEADER
22382 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022383_ACEOF
22384
22385# Transform confdefs.h into a sed script `conftest.defines', that
22386# substitutes the proper values into config.h.in to produce config.h.
22387rm -f conftest.defines conftest.tail
22388# First, append a space to every undef/define line, to ease matching.
22389echo 's/$/ /' >conftest.defines
22390# Then, protect against being on the right side of a sed subst, or in
22391# an unquoted here document, in config.status. If some macros were
22392# called several times there might be several #defines for the same
22393# symbol, which is useless. But do not sort them, since the last
22394# AC_DEFINE must be honored.
22395ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22396# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22397# NAME is the cpp macro being defined, VALUE is the value it is being given.
22398# PARAMS is the parameter list in the macro definition--in most cases, it's
22399# just an empty string.
22400ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22401ac_dB='\\)[ (].*,\\1define\\2'
22402ac_dC=' '
22403ac_dD=' ,'
22404
22405uniq confdefs.h |
22406 sed -n '
22407 t rset
22408 :rset
22409 s/^[ ]*#[ ]*define[ ][ ]*//
22410 t ok
22411 d
22412 :ok
22413 s/[\\&,]/\\&/g
22414 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22415 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22416 ' >>conftest.defines
22417
22418# Remove the space that was appended to ease matching.
22419# Then replace #undef with comments. This is necessary, for
22420# example, in the case of _POSIX_SOURCE, which is predefined and required
22421# on some systems where configure will not decide to define it.
22422# (The regexp can be short, since the line contains either #define or #undef.)
22423echo 's/ $//
22424s,^[ #]*u.*,/* & */,' >>conftest.defines
22425
22426# Break up conftest.defines:
22427ac_max_sed_lines=50
22428
22429# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22430# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22431# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22432# et cetera.
22433ac_in='$ac_file_inputs'
22434ac_out='"$tmp/out1"'
22435ac_nxt='"$tmp/out2"'
22436
22437while :
22438do
22439 # Write a here document:
22440 cat >>$CONFIG_STATUS <<_ACEOF
22441 # First, check the format of the line:
22442 cat >"\$tmp/defines.sed" <<\\CEOF
22443/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22444/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22445b
22446:def
22447_ACEOF
22448 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22449 echo 'CEOF
22450 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22451 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22452 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22453 grep . conftest.tail >/dev/null || break
22454 rm -f conftest.defines
22455 mv conftest.tail conftest.defines
22456done
22457rm -f conftest.defines conftest.tail
22458
22459echo "ac_result=$ac_in" >>$CONFIG_STATUS
22460cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022461 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022462 echo "/* $configure_input */" >"$tmp/config.h"
22463 cat "$ac_result" >>"$tmp/config.h"
22464 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22465 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22466echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022467 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022468 rm -f $ac_file
22469 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022470 fi
22471 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022472 echo "/* $configure_input */"
22473 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022474 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022475 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022476 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022478 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22479echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022480 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022481 esac
John Criswell7a73b802003-06-30 21:59:07 +000022482
Reid Spencera773bd52006-08-04 18:18:08 +000022483
22484 case $ac_file$ac_mode in
22485 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022486 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022487 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022488 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022489 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022490 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022491 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022492 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022493 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022494 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022495 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022496 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022497 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022498 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022499 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022500 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022501 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022502 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022503 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022504 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022505 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022506 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022507 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022508 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022509 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022510 ${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 +000022511
22512 esac
22513done # for ac_tag
22514
John Criswell7a73b802003-06-30 21:59:07 +000022515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022518chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022519ac_clean_files=$ac_clean_files_save
22520
22521
22522# configure is writing to config.log, and then calls config.status.
22523# config.status does its own redirection, appending to config.log.
22524# Unfortunately, on DOS this fails, as config.log is still kept open
22525# by configure, so config.status won't be able to write to it; its
22526# output is simply discarded. So we exec the FD to /dev/null,
22527# effectively closing config.log, so it can be properly (re)opened and
22528# appended to by config.status. When coming back to configure, we
22529# need to make the FD available again.
22530if test "$no_create" != yes; then
22531 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022532 ac_config_status_args=
22533 test "$silent" = yes &&
22534 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022535 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022537 exec 5>>config.log
22538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22539 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022540 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022541fi
22542
John Criswell12399a12003-09-30 15:55:44 +000022543#
22544# CONFIG_SUBDIRS section.
22545#
22546if test "$no_recursion" != yes; then
22547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022548 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022549 ac_sub_configure_args=
22550 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022551 eval "set x $ac_configure_args"
22552 shift
22553 for ac_arg
22554 do
John Criswell12399a12003-09-30 15:55:44 +000022555 if test -n "$ac_prev"; then
22556 ac_prev=
22557 continue
22558 fi
22559 case $ac_arg in
22560 -cache-file | --cache-file | --cache-fil | --cache-fi \
22561 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22562 ac_prev=cache_file ;;
22563 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22564 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22565 | --c=*)
22566 ;;
22567 --config-cache | -C)
22568 ;;
22569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22570 ac_prev=srcdir ;;
22571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22572 ;;
22573 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22574 ac_prev=prefix ;;
22575 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22576 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022577 *)
22578 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022579 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022580 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022581 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022582 esac
22583 done
22584
22585 # Always prepend --prefix to ensure using the same prefix
22586 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022587 ac_arg="--prefix=$prefix"
22588 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022589 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022590 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022591 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022592
22593 ac_popdir=`pwd`
22594 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22595
22596 # Do not complain, so a configure script can configure whichever
22597 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022598 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022599
Reid Spencera773bd52006-08-04 18:18:08 +000022600 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022601 echo "$as_me:$LINENO: $ac_msg" >&5
22602 echo "$ac_msg" >&6
22603 { as_dir="$ac_dir"
22604 case $as_dir in #(
22605 -*) as_dir=./$as_dir;;
22606 esac
22607 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22608 as_dirs=
22609 while :; do
22610 case $as_dir in #(
22611 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22612 *) as_qdir=$as_dir;;
22613 esac
22614 as_dirs="'$as_qdir' $as_dirs"
22615 as_dir=`$as_dirname -- "$as_dir" ||
22616$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22617 X"$as_dir" : 'X\(//\)[^/]' \| \
22618 X"$as_dir" : 'X\(//\)$' \| \
22619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22620echo X"$as_dir" |
22621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22622 s//\1/
22623 q
22624 }
22625 /^X\(\/\/\)[^/].*/{
22626 s//\1/
22627 q
22628 }
22629 /^X\(\/\/\)$/{
22630 s//\1/
22631 q
22632 }
22633 /^X\(\/\).*/{
22634 s//\1/
22635 q
22636 }
22637 s/.*/./; q'`
22638 test -d "$as_dir" && break
22639 done
22640 test -z "$as_dirs" || eval "mkdir $as_dirs"
22641 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22642echo "$as_me: error: cannot create directory $as_dir" >&2;}
22643 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022644 ac_builddir=.
22645
Reid Spencera773bd52006-08-04 18:18:08 +000022646case "$ac_dir" in
22647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22648*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022650 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022651 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022652 case $ac_top_builddir_sub in
22653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22655 esac ;;
22656esac
22657ac_abs_top_builddir=$ac_pwd
22658ac_abs_builddir=$ac_pwd$ac_dir_suffix
22659# for backward compatibility:
22660ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022661
22662case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022663 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022664 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022665 ac_top_srcdir=$ac_top_builddir_sub
22666 ac_abs_top_srcdir=$ac_pwd ;;
22667 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022668 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022669 ac_top_srcdir=$srcdir
22670 ac_abs_top_srcdir=$srcdir ;;
22671 *) # Relative name.
22672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22673 ac_top_srcdir=$ac_top_build_prefix$srcdir
22674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022675esac
Reid Spencera773bd52006-08-04 18:18:08 +000022676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022677
22678
Reid Spencera773bd52006-08-04 18:18:08 +000022679 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022680
22681 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022682 if test -f "$ac_srcdir/configure.gnu"; then
22683 ac_sub_configure=$ac_srcdir/configure.gnu
22684 elif test -f "$ac_srcdir/configure"; then
22685 ac_sub_configure=$ac_srcdir/configure
22686 elif test -f "$ac_srcdir/configure.in"; then
22687 # This should be Cygnus configure.
22688 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022689 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022690 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22691echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022692 ac_sub_configure=
22693 fi
22694
22695 # The recursion is here.
22696 if test -n "$ac_sub_configure"; then
22697 # Make the cache file name correct relative to the subdirectory.
22698 case $cache_file in
22699 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022700 *) # Relative name.
22701 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022702 esac
22703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022704 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22705echo "$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 +000022706 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022707 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22708 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022709 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22710echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22711 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022712 fi
22713
Reid Spencera773bd52006-08-04 18:18:08 +000022714 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022715 done
22716fi
22717